Skip to main content

Configuration

note

Draft document..

AuthSettings

authorityUrl*

type: string
required

clientId*

type: string
required

mobileScheme*

type: string
required

loginRequired

type: boolean
default: false

loadUserInfo

type: boolean
default: false

retrieveUserSession

type: boolean
default: true

automaticSilentRenew

type: boolean
default: true

automaticLoginOn401

type: boolean
default: true

automaticInjectToken

type: boolean or custom object
default: any hostname or pathname that starts with 'api'

Custom object example
automaticInjectToken: {
headerName: 'Authorization',
include: (url: string): boolean => url?.includes('user'),
exclude: [
'/public-api',
/^\/my-custom-api\/.*$/gm
]
}

authGuardFallbackUrl

type: string
default: undefined

scope

type: string
default: "openid profile email phone"

desktopNavigationType

type: enum - DesktopNavigation.(REDIRECT, POPUP)
default: REDIRECT

logLevel

type: enum - Log.(NONE, ERROR, WARN, INFO, DEBUG)
default: NONE

internal

type: UserManagerSettings