File

src/core/auth/types/smart-authentication-strategy-config.interface.ts

Description

Shape of the authentication configuration passed to providers.

Index

Properties

Indexable

[key: string]: any

Strategy-specific options.

Properties

blockBootstrapUntilAuthenticated
blockBootstrapUntilAuthenticated: boolean
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: boolean
Type : boolean
Optional

Enable or disable proactive token refresh. When enabled, tokens are automatically refreshed before expiration. Defaults to true for token-based strategies.

flow
flow: "standard" | "implicit" | "hybrid"
Type : "standard" | "implicit" | "hybrid"
Optional

Keycloak/OIDC flow type.

  • 'standard': Authorization code flow (recommended)
  • 'implicit': Implicit flow (less secure, not recommended)
  • 'hybrid': Hybrid flow
responseMode
responseMode: "query" | "fragment"
Type : "query" | "fragment"
Optional

Keycloak/OIDC response mode.

  • 'query': Auth code is returned in the URL query string (?code=...)
  • 'fragment': Auth code is returned in the URL hash (#code=...)

Must match the Keycloak client configuration. Use 'fragment' if Keycloak returns the auth code in the URL hash.

serviceURI
serviceURI: string
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: string
Type : string

Name of the strategy to activate.

tokenMinValidity
tokenMinValidity: number
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: number
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).

results matching ""

    No results matching ""