UNPKG

@jamarsto/kiunzi-micro-frontend-tools

Version:
22 lines (21 loc) 1.45 kB
import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, CanLoad, Route, Router, RouterStateSnapshot, UrlSegment, UrlTree } from '@angular/router'; import { Observable } from 'rxjs'; import { OidcSecurityService, AutoLoginAllRoutesGuard } from 'angular-auth-oidc-client'; import * as i0 from "@angular/core"; export declare class AutoLoginAllRoutesWithRoleGuard implements CanActivate, CanActivateChild, CanLoad { private oidcSecurityService; private router; private autoLoginAllRoutesGuard; constructor(oidcSecurityService: OidcSecurityService, router: Router, autoLoginAllRoutesGuard: AutoLoginAllRoutesGuard); canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree; canActivateChild(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree; canLoad(route: Route, url: UrlSegment[]): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree; private checkRoleForActivate; private checkRoleForActivateChild; private checkRoleForLoad; private isInRole; private isInRoleArray; private isInRoleString; static ɵfac: i0.ɵɵFactoryDeclaration<AutoLoginAllRoutesWithRoleGuard, never>; static ɵprov: i0.ɵɵInjectableDeclaration<AutoLoginAllRoutesWithRoleGuard>; }