UNPKG

@kephas/ngx-oidc

Version:

Provides the integration of the OIDC API with Kephas and Angular 12+.

16 lines (15 loc) 878 B
import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router'; import { Observable } from 'rxjs'; import { AuthenticationService } from './authentication.service'; import { AuthenticationSettingsProvider } from './authentication.settings'; import * as i0 from "@angular/core"; export declare class AuthorizeGuard implements CanActivate { private authService; private router; private settingsProvider; constructor(authService: AuthenticationService, router: Router, settingsProvider: AuthenticationSettingsProvider); canActivate(_next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> | Promise<boolean> | boolean; private handleAuthorization; static ɵfac: i0.ɵɵFactoryDeclaration<AuthorizeGuard, never>; static ɵprov: i0.ɵɵInjectableDeclaration<AuthorizeGuard>; }