arlas-wui-toolkit > "src/app/services/authentification/authentification.service" > AuthentificationService
Class: AuthentificationService
Hierarchy
AuthentificationService
Index
Constructors
Properties
- authConfig
- authConfigValue
- canActivateProtectedRoutes
- isAuthenticated
- isDoneLoading
- silentRefreshErrorSubject
Accessors
Methods
- areSettingsValid
- hasValidAccessToken
- hasValidIdToken
- initAuthService
- loadUserInfo
- login
- logout
- refresh
- runInitialLoginSequence
Constructors
constructor
⊕ new AuthentificationService(oauthService: OAuthService
, http: HttpClient
): AuthentificationService
Defined in src/app/services/authentification/authentification.service.ts:38
Parameters:
Name | Type |
---|---|
oauthService | OAuthService |
http | HttpClient |
Returns: AuthentificationService
Properties
authConfig
● authConfig: AuthConfig
Defined in src/app/services/authentification/authentification.service.ts:17
authConfigValue
● authConfigValue: AuthentSetting
Defined in src/app/services/authentification/authentification.service.ts:18
canActivateProtectedRoutes
● canActivateProtectedRoutes: Observable
<boolean
> = combineLatest(
this.isAuthenticated,
this.isDoneLoading
).pipe(map(values => values.every(b => b)))
Defined in src/app/services/authentification/authentification.service.ts:35
isAuthenticated
● isAuthenticated: Observable
<boolean
> = this.isAuthenticatedSubject.asObservable()
Defined in src/app/services/authentification/authentification.service.ts:20
isDoneLoading
● isDoneLoading: Observable
<boolean
> = this.isDoneLoadingSubject.asObservable()
Defined in src/app/services/authentification/authentification.service.ts:22
silentRefreshErrorSubject
● silentRefreshErrorSubject: any
Defined in src/app/services/authentification/authentification.service.ts:24
Accessors
accessToken
accessToken:
Defined in src/app/services/authentification/authentification.service.ts:109
idToken
idToken:
Defined in src/app/services/authentification/authentification.service.ts:111
identityClaims
identityClaims:
Defined in src/app/services/authentification/authentification.service.ts:110
logoutUrl
logoutUrl:
Defined in src/app/services/authentification/authentification.service.ts:112
Methods
areSettingsValid
▸ areSettingsValid(authentSetting: AuthentSetting): [boolean
, string
]
Defined in src/app/services/authentification/authentification.service.ts:114
Parameters:
Name | Type |
---|---|
authentSetting | AuthentSetting |
Returns: [boolean
, string
]
hasValidAccessToken
▸ hasValidAccessToken(): boolean
Defined in src/app/services/authentification/authentification.service.ts:107
Returns: boolean
hasValidIdToken
▸ hasValidIdToken(): boolean
Defined in src/app/services/authentification/authentification.service.ts:108
Returns: boolean
initAuthService
▸ initAuthService(authentSettings: AuthentSetting): Promise
<void
>
Defined in src/app/services/authentification/authentification.service.ts:45
Parameters:
Name | Type |
---|---|
authentSettings | AuthentSetting |
Returns: Promise
<void
>
loadUserInfo
▸ loadUserInfo(): Observable
<UserInfo
>
Defined in src/app/services/authentification/authentification.service.ts:159
Returns: Observable
<UserInfo
>
login
▸ login(): void
Defined in src/app/services/authentification/authentification.service.ts:102
Returns: void
logout
▸ logout(): void
Defined in src/app/services/authentification/authentification.service.ts:105
Returns: void
refresh
▸ refresh(): void
Defined in src/app/services/authentification/authentification.service.ts:106
Returns: void
runInitialLoginSequence
▸ runInitialLoginSequence(useDiscovery?: boolean
, forceConnect?: boolean
): Promise
<void
>
Defined in src/app/services/authentification/authentification.service.ts:71
Parameters:
Name | Type |
---|---|
Optional useDiscovery |
boolean |
Optional forceConnect |
boolean |
Returns: Promise
<void
>