UNPKG

@kephas/ngx-oidc

Version:

Provides the integration of the OIDC API with Kephas and Angular 12+.

72 lines (71 loc) 2.65 kB
import { AppIdProvider } from './appIdProvider.service'; import * as i0 from "@angular/core"; export declare const ReturnUrlType = "returnUrl"; export declare const QueryParameterNames: { ReturnUrl: string; Message: string; }; export declare const LogoutActions: { LogoutCallback: string; Logout: string; LoggedOut: string; }; export declare const LoginActions: { Login: string; LoginCallback: string; LoginFailed: string; Profile: string; Register: string; }; export interface ApplicationPathsType { readonly DefaultLoginRedirectPath: string; readonly ApiAuthorizationClientConfigurationUrl: string; readonly Login: string; readonly LoginFailed: string; readonly LoginCallback: string; readonly Register: string; readonly Profile: string; readonly LogOut: string; readonly LoggedOut: string; readonly LogOutCallback: string; readonly LoginPathComponents: string[]; readonly LoginFailedPathComponents: string[]; readonly LoginCallbackPathComponents: string[]; readonly RegisterPathComponents: string[]; readonly ProfilePathComponents: string[]; readonly LogOutPathComponents: string[]; readonly LoggedOutPathComponents: string[]; readonly LogOutCallbackPathComponents: string[]; readonly IdentityRegisterPath: string; readonly IdentityManagePath: string; } export interface ActivitySettingsType { /** * The maximum idle time (seconds) until an automatic disconnect happens. * Do not set if the automatic disconnect should not be triggered. * * @type {number} * @memberof ActivitySettingsType */ readonly MaxIdleSeconds?: number; } export interface AuthenticationSettings { readonly identityAppId: string; readonly returnUrl: string; readonly applicationPaths: ApplicationPathsType; readonly activity: ActivitySettingsType; popUpDisabled: boolean; } export declare class AuthenticationSettingsProvider { static readonly instance: AuthenticationSettingsProvider; readonly settings: AuthenticationSettings; /** * Creates an instance of AuthenticationSettingsProvider. * @param {AppIdProvider} appIdProvider The application ID provider. * @memberof AuthenticationSettingsProvider */ constructor(appIdProvider: AppIdProvider); protected getSettings(identityAppId: string): AuthenticationSettings; static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationSettingsProvider, never>; static ɵprov: i0.ɵɵInjectableDeclaration<AuthenticationSettingsProvider>; }