UNPKG

ngx-gem-spaas

Version:

This library contains services, components, images and styles to provide a unified look and way-of-working throughout GEM SPaaS.

47 lines (46 loc) 1.75 kB
import { Observable } from 'rxjs'; import { OnDestroy } from '@angular/core'; import { Router } from '@angular/router'; import { OAuthError } from '@okta/okta-auth-js'; import { ConfigService } from "./config.service"; import { LocalStorageService } from "./local-storage.service"; import { SessionStorageService } from "./session-storage.service"; import { OktaUserModel } from "../_models/okta.model"; import * as i0 from "@angular/core"; export declare class OktaService implements OnDestroy { private configService; private lsService; private router; private ssService; readonly LS_ACTIVEROUTE = "activeRoute"; readonly SS_ERROR = "oktaError"; private oktaError; private oktaError$; private oktaUserInfo; private oktaUserInfo$; private readonly oktaClient; private readonly oktaClientConfig; private readonly tokenManager; private readonly tokenParams; private onDestroy$; constructor(configService: ConfigService, lsService: LocalStorageService, router: Router, ssService: SessionStorageService); ngOnDestroy(): void; private setConfig; private onRouting; private handleRedirect; private parseFromUrl; private getUserInfoFromToken; private getTokenWithRedirect; getCachedAccessToken(): string; updateOktaError(newState: OAuthError | null): void; forceRetry(): void; private setActiveRoute; private getActiveRoute; private newUserInfo; onNewUserInfo(): Observable<OktaUserModel>; getUserInfo(): OktaUserModel; private newOktaError; onNewOktaError(): Observable<OAuthError | null>; static ɵfac: i0.ɵɵFactoryDeclaration<OktaService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<OktaService>; }