@dbg-riskit/angular-auth
Version:
31 lines (30 loc) • 1.42 kB
TypeScript
import { Router, RouterStateSnapshot } from '@angular/router';
import { HttpService } from '@dbg-riskit/angular-http';
import { Observable } from 'rxjs';
import { AuthConfig, AuthFlow } from './auth.config';
import { AuthService } from './auth.service';
import { AuthStorageService } from './auth.storage.service';
import { WellKnownService } from './well.known.service';
import * as i0 from "@angular/core";
export declare class AuthRoutingFlowService {
private readonly router;
private readonly http;
private readonly authService;
private readonly storage;
private readonly authConfig;
private readonly wellKnownService;
constructor(router: Router, http: HttpService, authService: AuthService, storage: AuthStorageService, authConfig: AuthConfig, wellKnownService: WellKnownService);
get authFlow(): AuthFlow;
get authorizationCodeFlow(): boolean;
get implicitFlow(): boolean;
get hybridFlow(): boolean;
get directFlow(): boolean;
logout(state?: RouterStateSnapshot): Observable<boolean>;
login(username?: string, password?: string): Observable<boolean>;
loginViaService(): Observable<boolean>;
storeRequestedPath(state?: RouterStateSnapshot): void;
private loginRedirect;
private doLogin;
static ɵfac: i0.ɵɵFactoryDeclaration<AuthRoutingFlowService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<AuthRoutingFlowService>;
}