UNPKG

@jamarsto/kiunzi-micro-frontend-tools

Version:
22 lines (21 loc) 1.48 kB
import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, CanLoad, Route, Router, RouterStateSnapshot, UrlSegment, UrlTree } from '@angular/router'; import { Observable } from 'rxjs'; import { OidcSecurityService, AutoLoginPartialRoutesGuard } from 'angular-auth-oidc-client'; import * as i0 from "@angular/core"; export declare class AutoLoginPartialRoutesWithRoleGuard implements CanActivate, CanActivateChild, CanLoad { private oidcSecurityService; private router; private autoLoginPartialRoutesGuard; constructor(oidcSecurityService: OidcSecurityService, router: Router, autoLoginPartialRoutesGuard: AutoLoginPartialRoutesGuard); 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<AutoLoginPartialRoutesWithRoleGuard, never>; static ɵprov: i0.ɵɵInjectableDeclaration<AutoLoginPartialRoutesWithRoleGuard>; }