arlas-wui-toolkit / Exports / AuthentificationService

Class: AuthentificationService

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new AuthentificationService(oauthService, http)

Parameters

Name Type
oauthService OAuthService
http HttpClient

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:39

Properties

authConfig

authConfig: AuthConfig

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:17


authConfigValue

authConfigValue: AuthentSetting

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:18


canActivateProtectedRoutes

canActivateProtectedRoutes: Observable<boolean>

Publishes true if and only if (a) all the asynchronous initial login calls have completed or errorred, and (b) the user ended up being authenticated.

In essence, it combines:

  • the latest known state of whether the user is authorized
  • whether the ajax calls for initial log in have all been done

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:35


isAuthenticated

isAuthenticated: Observable<boolean>

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:20


isDoneLoading

isDoneLoading: Observable<boolean>

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:22


silentRefreshErrorSubject

silentRefreshErrorSubject: any

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:24

Accessors

accessToken

get accessToken(): string

Returns

string

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:117


idToken

get idToken(): string

Returns

string

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:123


identityClaims

get identityClaims(): object

Returns

object

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:120


logoutUrl

get logoutUrl(): string

Returns

string

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:126

Methods

areSettingsValid

areSettingsValid(authentSetting): [boolean, string]

Parameters

Name Type
authentSetting AuthentSetting

Returns

[boolean, string]

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:130


hasValidAccessToken

hasValidAccessToken(): boolean

Returns

boolean

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:111


hasValidIdToken

hasValidIdToken(): boolean

Returns

boolean

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:114


initAuthService

initAuthService(authentSettings): Promise<void>

Parameters

Name Type
authentSettings AuthentSetting

Returns

Promise<void>

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:45


loadUserInfo

loadUserInfo(): Observable<UserInfo>

Return an observable of the user Auth0 profile

Returns

Observable<UserInfo>

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:171


login

login(): void

Returns

void

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:102


logout

logout(): void

Returns

void

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:105


refresh

refresh(): void

Returns

void

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:108


runInitialLoginSequence

runInitialLoginSequence(useDiscovery?, forceConnect?): Promise<void>

Parameters

Name Type
useDiscovery? boolean
forceConnect? boolean

Returns

Promise<void>

Defined in

projects/arlas-toolkit/src/lib/services/authentification/authentification.service.ts:71