src/core/auth/types/smart-authentication-strategy-config.interface.ts
Shape of the authentication configuration passed to providers.
Properties |
|
[key: string]:
|
|
Strategy-specific options. |
| blockBootstrapUntilAuthenticated |
blockBootstrapUntilAuthenticated:
|
Type : boolean
|
| Optional |
|
When true, blocks Angular bootstrap until authentication completes. Defaults to true for token-based strategies (Keycloak, Entra ID). Set to false to allow the app to render before authentication. |
| enableProactiveRefresh |
enableProactiveRefresh:
|
Type : boolean
|
| Optional |
|
Enable or disable proactive token refresh. When enabled, tokens are automatically refreshed before expiration. Defaults to true for token-based strategies. |
| serviceURI |
serviceURI:
|
Type : string
|
| Optional |
|
Optional service URI override applied when this strategy is active. When set, SmartConfig.serviceURI will be replaced with this value before authentication providers are initialized. |
| strategy |
strategy:
|
Type : string
|
|
Name of the strategy to activate. |
| tokenMinValidity |
tokenMinValidity:
|
Type : number
|
| Optional |
|
Optional override for minimum token validity in seconds before refresh is triggered. When not set, the value is automatically calculated based on token lifetime (typically 25% of the access token lifetime). Only applicable to token-based strategies (Keycloak, Entra ID). |
| tokenRefreshInterval |
tokenRefreshInterval:
|
Type : number
|
| Optional |
|
Optional override for token refresh interval in milliseconds. When not set, the interval is automatically calculated based on token lifetime (typically 75% of the access token lifetime). Only applicable to token-based strategies (Keycloak, Entra ID). |