src/modules/session/entities/session-config.entity.intf.ts
Definition of the configuration object for the StarkSessionService
Properties |
|
| loginStateName |
loginStateName:
|
Type : string
|
| Optional |
|
Router state for the starkLoginStateName where the user can choose a profile and use it to impersonate himself as someone else. This state is only used in DEVELOPMENT. |
| preloadingStateName |
preloadingStateName:
|
Type : string
|
| Optional |
|
Router state for the Preloading page where the user profile is fetched and used to automatically log the user in. This state is only used in PRODUCTION. |
| sessionExpiredStateName |
sessionExpiredStateName:
|
Type : string
|
| Optional |
|
Router state for the Session Expired page to be shown when the user has been automatically logged out. Such automatic logout occurs when the timeout of the session expiration timer (triggered due to user inactivity) is reached. This state is used in PRODUCTION and DEVELOPMENT. |
| sessionLogoutStateName |
sessionLogoutStateName:
|
Type : string
|
| Optional |
|
Router state for the Session Logout Page that will be shown when the user intentionally logs out from the application. This state is used in PRODUCTION and DEVELOPMENT. |
import { InjectionToken } from "@angular/core";
/**
* {@link https://v12.angular.io/api/core/InjectionToken|InjectionToken} used to provide the {@link StarkSessionConfig}
*/
export const STARK_SESSION_CONFIG: InjectionToken<StarkSessionConfig> = new InjectionToken<StarkSessionConfig>("StarkSessionConfig");
/**
* Definition of the configuration object for the {@link StarkSessionService}
*/
export interface StarkSessionConfig {
/**
* Router state for the {@link starkLoginStateName} where the user can choose a profile and use it to impersonate himself as someone else.
* This state is only used in DEVELOPMENT.
*/
loginStateName?: string;
/**
* Router state for the Preloading page where the user profile is fetched and used to automatically log the user in.
* This state is only used in PRODUCTION.
*/
preloadingStateName?: string;
/**
* Router state for the Session Expired page to be shown when the user has been automatically logged out.
* Such automatic logout occurs when the timeout of the session expiration timer (triggered due to user inactivity) is reached.
* This state is used in PRODUCTION and DEVELOPMENT.
*/
sessionExpiredStateName?: string;
/**
* Router state for the Session Logout Page that will be shown when the user intentionally logs out from the application.
* This state is used in PRODUCTION and DEVELOPMENT.
*/
sessionLogoutStateName?: string;
}