arlas-wui-toolkit > "src/app/services/authentification/authentification.service" > AuthentificationService

Class: AuthentificationService

Hierarchy

AuthentificationService

Index

Constructors

Properties

Accessors

Methods


Constructors

constructor

new AuthentificationService(oauthService: OAuthService, http: HttpClient): AuthentificationService

Defined in src/app/services/authentification/authentification.service.ts:34

Parameters:

Name Type
oauthService OAuthService
http HttpClient

Returns: AuthentificationService


Properties

authConfig

● authConfig: AuthConfig

Defined in src/app/services/authentification/authentification.service.ts:15


authConfigValue

● authConfigValue: any

Defined in src/app/services/authentification/authentification.service.ts:16


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:31


isAuthenticated

● isAuthenticated: Observable<boolean> = this.isAuthenticatedSubject.asObservable()

Defined in src/app/services/authentification/authentification.service.ts:18


isDoneLoading

● isDoneLoading: Observable<boolean> = this.isDoneLoadingSubject.asObservable()

Defined in src/app/services/authentification/authentification.service.ts:20


Accessors

accessToken

accessToken:

Defined in src/app/services/authentification/authentification.service.ts:104


idToken

idToken:

Defined in src/app/services/authentification/authentification.service.ts:106


identityClaims

identityClaims:

Defined in src/app/services/authentification/authentification.service.ts:105


logoutUrl

logoutUrl:

Defined in src/app/services/authentification/authentification.service.ts:107


Methods

hasValidAccessToken

hasValidAccessToken(): boolean

Defined in src/app/services/authentification/authentification.service.ts:102

Returns: boolean


hasValidIdToken

hasValidIdToken(): boolean

Defined in src/app/services/authentification/authentification.service.ts:103

Returns: boolean


initAuthService

initAuthService(configService: any, useDiscovery?: boolean, forceConnect?: boolean): Promise<void>

Defined in src/app/services/authentification/authentification.service.ts:40

Parameters:

Name Type
configService any
Optional useDiscovery boolean
Optional forceConnect boolean

Returns: Promise<void>


login

login(): void

Defined in src/app/services/authentification/authentification.service.ts:97

Returns: void


logout

logout(): void

Defined in src/app/services/authentification/authentification.service.ts:100

Returns: void


refresh

refresh(): void

Defined in src/app/services/authentification/authentification.service.ts:101

Returns: void


runInitialLoginSequence

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

Defined in src/app/services/authentification/authentification.service.ts:65

Parameters:

Name Type
Optional useDiscovery boolean
Optional forceConnect boolean

Returns: Promise<void>