MsalGuard class

Propriétés

ɵfac
ɵprov

Détails du constructeur

MsalGuard(MsalGuardConfiguration, MsalBroadcastService, MsalService, Location, Router)

new MsalGuard(msalGuardConfig: MsalGuardConfiguration, msalBroadcastService: MsalBroadcastService, authService: MsalService, location: Location, router: Router)

Paramètres

msalGuardConfig
MsalGuardConfiguration
msalBroadcastService
MsalBroadcastService
authService
MsalService
location

Location

router

Router

Détails de la propriété

ɵfac

static ɵfac: ɵɵFactoryDeclaration<MsalGuard, never>

Valeur de propriété

ɵɵFactoryDeclaration<MsalGuard, never>

ɵprov

static ɵprov: ɵɵInjectableDeclaration<MsalGuard>

Valeur de propriété

ɵɵInjectableDeclaration<MsalGuard>

Détails de la méthode

canActivate(ActivatedRouteSnapshot, RouterStateSnapshot)

function canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<any>

Paramètres

route

ActivatedRouteSnapshot

state

RouterStateSnapshot

Retours

Observable<any>

canActivateChild(ActivatedRouteSnapshot, RouterStateSnapshot)

function canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<any>

Paramètres

route

ActivatedRouteSnapshot

state

RouterStateSnapshot

Retours

Observable<any>

canMatch()

function canMatch(): Observable<any>

Retours

Observable<any>

getDestinationUrl(string)

Génère l’URL absolue de la page de destination

function getDestinationUrl(path: string): string

Paramètres

path

string

Chemin relatif de la page demandée

Retours

string

URL de destination complète

includesCode(string)

function includesCode(path: string): boolean

Paramètres

path

string

Retours

boolean

parseUrl(string)

Analyser la chaîne d’URL vers UrlTree

function parseUrl(url: string): UrlTree

Paramètres

url

string

Retours

UrlTree