@azure/msal-angular 6.2.2 → 6.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,292 +1,276 @@
1
- import * as i0 from '@angular/core';
2
- import { Injector, NgZone, InjectionToken, OnInit, ModuleWithProviders } from '@angular/core';
3
- import * as i2 from '@angular/common';
4
- import { Location } from '@angular/common';
5
- import { PopupRequest, AuthenticationResult, RedirectRequest, SilentRequest, HandleRedirectPromiseOptions, EndSessionRequest, EndSessionPopupRequest, SsoSilentRequest, Logger, IPublicClientApplication, InteractionType, EventMessage, InteractionStatus, NavigationClient, NavigationOptions } from '@azure/msal-browser';
6
- import { Observable } from 'rxjs';
7
- import { RouterStateSnapshot, Router, UrlTree, ActivatedRouteSnapshot } from '@angular/router';
8
- import { HttpRequest, HttpInterceptor, HttpHandler, HttpEvent } from '@angular/common/http';
9
-
10
- interface IMsalService {
11
- initialize(): Observable<void>;
12
- acquireTokenPopup(request: PopupRequest): Observable<AuthenticationResult>;
13
- acquireTokenRedirect(request: RedirectRequest): Observable<void>;
14
- acquireTokenSilent(silentRequest: SilentRequest): Observable<AuthenticationResult>;
15
- /**
16
- * @deprecated Pass options object instead of hash string. Use handleRedirectObservable({ hash: "#..." }) instead.
17
- */
18
- handleRedirectObservable(hash: string): Observable<AuthenticationResult | null>;
19
- handleRedirectObservable(options?: HandleRedirectPromiseOptions): Observable<AuthenticationResult | null>;
20
- loginPopup(request?: PopupRequest): Observable<AuthenticationResult>;
21
- loginRedirect(request?: RedirectRequest): Observable<void>;
22
- logoutRedirect(logoutRequest?: EndSessionRequest): Observable<void>;
23
- logoutPopup(logoutRequest?: EndSessionPopupRequest): Observable<void>;
24
- ssoSilent(request: SsoSilentRequest): Observable<AuthenticationResult>;
25
- getLogger(): Logger;
26
- setLogger(logger: Logger): void;
1
+ import * as i0 from "@angular/core";
2
+ import { InjectionToken, Injector, ModuleWithProviders, NgZone, OnInit } from "@angular/core";
3
+ import * as i2 from "@angular/common";
4
+ import { Location } from "@angular/common";
5
+ import { AuthenticationResult, EndSessionPopupRequest, EndSessionRequest, EventMessage, HandleRedirectPromiseOptions, IPublicClientApplication, InteractionStatus, InteractionType, Logger, NavigationClient, NavigationOptions, PopupRequest, RedirectRequest, SilentRequest, SsoSilentRequest } from "@azure/msal-browser";
6
+ import { Observable } from "rxjs";
7
+ import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from "@angular/router";
8
+ import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from "@angular/common/http";
9
+ export interface IMsalService {
10
+ initialize(): Observable<void>;
11
+ acquireTokenPopup(request: PopupRequest): Observable<AuthenticationResult>;
12
+ acquireTokenRedirect(request: RedirectRequest): Observable<void>;
13
+ acquireTokenSilent(silentRequest: SilentRequest): Observable<AuthenticationResult>;
14
+ /**
15
+ * @deprecated Pass options object instead of hash string. Use handleRedirectObservable({ hash: "#..." }) instead.
16
+ */
17
+ handleRedirectObservable(hash: string): Observable<AuthenticationResult | null>;
18
+ handleRedirectObservable(options?: HandleRedirectPromiseOptions): Observable<AuthenticationResult | null>;
19
+ loginPopup(request?: PopupRequest): Observable<AuthenticationResult>;
20
+ loginRedirect(request?: RedirectRequest): Observable<void>;
21
+ logoutRedirect(logoutRequest?: EndSessionRequest): Observable<void>;
22
+ logoutPopup(logoutRequest?: EndSessionPopupRequest): Observable<void>;
23
+ ssoSilent(request: SsoSilentRequest): Observable<AuthenticationResult>;
24
+ getLogger(): Logger;
25
+ setLogger(logger: Logger): void;
27
26
  }
28
-
29
- declare class MsalService implements IMsalService {
30
- instance: IPublicClientApplication;
31
- private location;
32
- private injector;
33
- private redirectHash?;
34
- private logger?;
35
- constructor(instance: IPublicClientApplication, location: Location, injector: Injector);
36
- initialize(): Observable<void>;
37
- /**
38
- * Ensures the PublicClientApplication has been initialized.
39
- */
40
- private withInitialize;
41
- acquireTokenPopup(request: PopupRequest): Observable<AuthenticationResult>;
42
- acquireTokenRedirect(request: RedirectRequest): Observable<void>;
43
- acquireTokenSilent(silentRequest: SilentRequest): Observable<AuthenticationResult>;
44
- /**
45
- * @deprecated Pass options object instead of hash string. Use handleRedirectObservable({ hash: "#..." }) instead.
46
- */
47
- handleRedirectObservable(hash: string): Observable<AuthenticationResult | null>;
48
- /**
49
- * Handles the redirect response from authentication. Call this on every page load after a redirect-based login.
50
- * If no options are provided, the service will attempt to use the cached redirect hash captured during construction.
51
- *
52
- * @param options - Optional configuration for redirect handling, such as an explicit hash value to process.
53
- * @returns Observable that emits the AuthenticationResult when a redirect is successfully handled.
54
- */
55
- handleRedirectObservable(options?: HandleRedirectPromiseOptions): Observable<AuthenticationResult | null>;
56
- loginPopup(request?: PopupRequest): Observable<AuthenticationResult>;
57
- loginRedirect(request?: RedirectRequest): Observable<void>;
58
- logoutRedirect(logoutRequest?: EndSessionRequest): Observable<void>;
59
- logoutPopup(logoutRequest?: EndSessionPopupRequest): Observable<void>;
60
- ssoSilent(request: SsoSilentRequest): Observable<AuthenticationResult>;
61
- /**
62
- * Gets logger for msal-angular.
63
- * If no logger set, returns logger instance created with same options as msal-browser
64
- */
65
- getLogger(): Logger;
66
- setLogger(logger: Logger): void;
67
- static ɵfac: i0.ɵɵFactoryDeclaration<MsalService, never>;
68
- static ɵprov: i0.ɵɵInjectableDeclaration<MsalService>;
27
+ export declare class MsalService implements IMsalService {
28
+ instance: IPublicClientApplication;
29
+ private location;
30
+ private injector;
31
+ private redirectHash?;
32
+ private logger?;
33
+ constructor(instance: IPublicClientApplication, location: Location, injector: Injector);
34
+ initialize(): Observable<void>;
35
+ /**
36
+ * Ensures the PublicClientApplication has been initialized.
37
+ */
38
+ private withInitialize;
39
+ acquireTokenPopup(request: PopupRequest): Observable<AuthenticationResult>;
40
+ acquireTokenRedirect(request: RedirectRequest): Observable<void>;
41
+ acquireTokenSilent(silentRequest: SilentRequest): Observable<AuthenticationResult>;
42
+ /**
43
+ * @deprecated Pass options object instead of hash string. Use handleRedirectObservable({ hash: "#..." }) instead.
44
+ */
45
+ handleRedirectObservable(hash: string): Observable<AuthenticationResult | null>;
46
+ /**
47
+ * Handles the redirect response from authentication. Call this on every page load after a redirect-based login.
48
+ * If no options are provided, the service will attempt to use the cached redirect hash captured during construction.
49
+ *
50
+ * @param options - Optional configuration for redirect handling, such as an explicit hash value to process.
51
+ * @returns Observable that emits the AuthenticationResult when a redirect is successfully handled.
52
+ */
53
+ handleRedirectObservable(options?: HandleRedirectPromiseOptions): Observable<AuthenticationResult | null>;
54
+ loginPopup(request?: PopupRequest): Observable<AuthenticationResult>;
55
+ loginRedirect(request?: RedirectRequest): Observable<void>;
56
+ logoutRedirect(logoutRequest?: EndSessionRequest): Observable<void>;
57
+ logoutPopup(logoutRequest?: EndSessionPopupRequest): Observable<void>;
58
+ ssoSilent(request: SsoSilentRequest): Observable<AuthenticationResult>;
59
+ /**
60
+ * Gets logger for msal-angular.
61
+ * If no logger set, returns logger instance created with same options as msal-browser
62
+ */
63
+ getLogger(): Logger;
64
+ setLogger(logger: Logger): void;
65
+ static ɵfac: i0.ɵɵFactoryDeclaration<MsalService, never>;
66
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
69
67
  }
70
-
71
- declare type MsalGuardAuthRequest = Partial<PopupRequest> | Partial<Omit<RedirectRequest, "redirectStartPage">>;
72
- type MsalGuardConfiguration = {
73
- interactionType: InteractionType.Popup | InteractionType.Redirect;
74
- authRequest?: MsalGuardAuthRequest | ((authService: MsalService, state: RouterStateSnapshot) => MsalGuardAuthRequest);
75
- loginFailedRoute?: string;
68
+ export declare type MsalGuardAuthRequest = Partial<PopupRequest> | Partial<Omit<RedirectRequest, "redirectStartPage">>;
69
+ export type MsalGuardConfiguration = {
70
+ interactionType: InteractionType.Popup | InteractionType.Redirect;
71
+ authRequest?: MsalGuardAuthRequest | ((authService: MsalService, state: RouterStateSnapshot) => MsalGuardAuthRequest);
72
+ loginFailedRoute?: string;
76
73
  };
77
-
78
- type MsalBroadcastConfiguration = {
79
- eventsToReplay: number;
74
+ export type MsalBroadcastConfiguration = {
75
+ eventsToReplay: number;
80
76
  };
81
-
82
- declare class MsalBroadcastService {
83
- private msalInstance;
84
- private ngZone;
85
- private msalBroadcastConfig?;
86
- private _msalSubject;
87
- msalSubject$: Observable<EventMessage>;
88
- private _inProgress;
89
- inProgress$: Observable<InteractionStatus>;
90
- constructor(msalInstance: IPublicClientApplication, ngZone: NgZone, msalBroadcastConfig?: MsalBroadcastConfiguration | undefined);
91
- /**
92
- * Resets inProgress state to None
93
- */
94
- resetInProgressEvent(): void;
95
- static ɵfac: i0.ɵɵFactoryDeclaration<MsalBroadcastService, [null, null, { optional: true; }]>;
96
- static ɵprov: i0.ɵɵInjectableDeclaration<MsalBroadcastService>;
77
+ export declare class MsalBroadcastService {
78
+ private msalInstance;
79
+ private ngZone;
80
+ private msalBroadcastConfig?;
81
+ private _msalSubject;
82
+ msalSubject$: Observable<EventMessage>;
83
+ private _inProgress;
84
+ inProgress$: Observable<InteractionStatus>;
85
+ constructor(msalInstance: IPublicClientApplication, ngZone: NgZone, msalBroadcastConfig?: MsalBroadcastConfiguration | undefined);
86
+ /**
87
+ * Resets inProgress state to None
88
+ */
89
+ resetInProgressEvent(): void;
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<MsalBroadcastService, [null, null, {
91
+ optional: true;
92
+ }]>;
93
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
97
94
  }
98
-
99
- declare class MsalGuard {
100
- private msalGuardConfig;
101
- private msalBroadcastService;
102
- private authService;
103
- private location;
104
- private router;
105
- private loginFailedRoute?;
106
- constructor(msalGuardConfig: MsalGuardConfiguration, msalBroadcastService: MsalBroadcastService, authService: MsalService, location: Location, router: Router);
107
- /**
108
- * Parses url string to UrlTree
109
- * @param url
110
- */
111
- parseUrl(url: string): UrlTree;
112
- /**
113
- * Builds the absolute url for the destination page
114
- * @param path Relative path of requested page
115
- * @returns Full destination url
116
- */
117
- getDestinationUrl(path: string): string;
118
- /**
119
- * Interactively prompt the user to login
120
- * @param url Path of the requested page
121
- */
122
- private loginInteractively;
123
- /**
124
- * Helper which checks for the correct interaction type, prevents page with Guard to be set as redirect, and calls handleRedirectObservable
125
- * @param state
126
- */
127
- private activateHelper;
128
- includesCode(path: string): boolean;
129
- canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree>;
130
- canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree>;
131
- canMatch(): Observable<boolean | UrlTree>;
132
- static ɵfac: i0.ɵɵFactoryDeclaration<MsalGuard, never>;
133
- static ɵprov: i0.ɵɵInjectableDeclaration<MsalGuard>;
95
+ export declare class MsalGuard {
96
+ private msalGuardConfig;
97
+ private msalBroadcastService;
98
+ private authService;
99
+ private location;
100
+ private router;
101
+ private loginFailedRoute?;
102
+ constructor(msalGuardConfig: MsalGuardConfiguration, msalBroadcastService: MsalBroadcastService, authService: MsalService, location: Location, router: Router);
103
+ /**
104
+ * Parses url string to UrlTree
105
+ * @param url
106
+ */
107
+ parseUrl(url: string): UrlTree;
108
+ /**
109
+ * Builds the absolute url for the destination page
110
+ * @param path Relative path of requested page
111
+ * @returns Full destination url
112
+ */
113
+ getDestinationUrl(path: string): string;
114
+ /**
115
+ * Interactively prompt the user to login
116
+ * @param url Path of the requested page
117
+ */
118
+ private loginInteractively;
119
+ /**
120
+ * Helper which checks for the correct interaction type, prevents page with Guard to be set as redirect, and calls handleRedirectObservable
121
+ * @param state
122
+ */
123
+ private activateHelper;
124
+ includesCode(path: string): boolean;
125
+ canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree>;
126
+ canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree>;
127
+ canMatch(): Observable<boolean | UrlTree>;
128
+ static ɵfac: i0.ɵɵFactoryDeclaration<MsalGuard, never>;
129
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
134
130
  }
135
-
136
- declare type MsalInterceptorAuthRequest = Omit<PopupRequest, "scopes"> | Omit<RedirectRequest, "scopes"> | Omit<SilentRequest, "scopes">;
137
- type MsalInterceptorConfiguration = {
138
- interactionType: InteractionType.Popup | InteractionType.Redirect;
139
- protectedResourceMap: Map<string, Array<string | ProtectedResourceScopes> | null>;
140
- authRequest?: MsalInterceptorAuthRequest | ((msalService: MsalService, req: HttpRequest<unknown>, originalAuthRequest: MsalInterceptorAuthRequest) => MsalInterceptorAuthRequest);
141
- /**
142
- * When `true` (the default in v5), enables stricter, more correct URL component pattern matching for
143
- * `protectedResourceMap` entries. Strict matching uses anchored regex patterns and
144
- * treats metacharacters (including `.`) as literals, so patterns match only their
145
- * intended strings. Wildcards still apply, but host-component wildcards
146
- * are constrained to a single DNS label.
147
- *
148
- * Set to `false` to use the legacy matching behaviour from v4 for
149
- * backwards compatibility.
150
- *
151
- * @default true
152
- */
153
- strictMatching?: boolean;
131
+ export declare type MsalInterceptorAuthRequest = Omit<PopupRequest, "scopes"> | Omit<RedirectRequest, "scopes"> | Omit<SilentRequest, "scopes">;
132
+ export type MsalInterceptorConfiguration = {
133
+ interactionType: InteractionType.Popup | InteractionType.Redirect;
134
+ protectedResourceMap: Map<string, Array<string | ProtectedResourceScopes> | null>;
135
+ authRequest?: MsalInterceptorAuthRequest | ((msalService: MsalService, req: HttpRequest<unknown>, originalAuthRequest: MsalInterceptorAuthRequest) => MsalInterceptorAuthRequest);
136
+ /**
137
+ * When `true` (the default in v5), enables stricter, more correct URL component pattern matching for
138
+ * `protectedResourceMap` entries. Strict matching uses anchored regex patterns and
139
+ * treats metacharacters (including `.`) as literals, so patterns match only their
140
+ * intended strings. Wildcards still apply, but host-component wildcards
141
+ * are constrained to a single DNS label.
142
+ *
143
+ * Set to `false` to use the legacy matching behaviour from v4 for
144
+ * backwards compatibility.
145
+ *
146
+ * @default true
147
+ */
148
+ strictMatching?: boolean;
154
149
  };
155
- type ProtectedResourceScopes = {
156
- httpMethod: string;
157
- scopes: Array<string> | null;
150
+ export type ProtectedResourceScopes = {
151
+ httpMethod: string;
152
+ scopes: Array<string> | null;
158
153
  };
159
-
160
- declare class MsalInterceptor implements HttpInterceptor {
161
- private msalInterceptorConfig;
162
- private authService;
163
- private location;
164
- private msalBroadcastService;
165
- private _document;
166
- constructor(msalInterceptorConfig: MsalInterceptorConfiguration, authService: MsalService, location: Location, msalBroadcastService: MsalBroadcastService, document: Document);
167
- intercept(req: HttpRequest<any>, // eslint-disable-line @typescript-eslint/no-explicit-any
168
- next: HttpHandler): Observable<HttpEvent<any>>;
169
- /**
170
- * Try to acquire token silently. Invoke interaction if acquireTokenSilent rejected with error or resolved with null access token
171
- * @param authRequest Request
172
- * @param scopes Array of scopes for the request
173
- * @param account Account
174
- * @returns Authentication result
175
- */
176
- private acquireToken;
177
- /**
178
- * Invoke interaction for the given set of scopes
179
- * @param authRequest Request
180
- * @param scopes Array of scopes for the request
181
- * @returns Result from the interactive request
182
- */
183
- private acquireTokenInteractively;
184
- /**
185
- * Looks up the scopes for the given endpoint from the protectedResourceMap
186
- * @param endpoint Url of the request
187
- * @param httpMethod Http method of the request
188
- * @returns Array of scopes, or null if not found
189
- *
190
- */
191
- private getScopesForEndpoint;
192
- /**
193
- * Finds resource endpoints that match request endpoint
194
- * @param protectedResourcesEndpoints
195
- * @param endpoint
196
- * @returns
197
- */
198
- private matchResourcesToEndpoint;
199
- /**
200
- * Compares URL segments between key and endpoint
201
- * @param key
202
- * @param endpoint
203
- * @returns
204
- */
205
- private checkUrlComponents;
206
- /**
207
- * Transforms relative urls to absolute urls
208
- * @param url
209
- * @returns
210
- */
211
- private getAbsoluteUrl;
212
- /**
213
- * Finds scopes from first matching endpoint with HTTP method that matches request
214
- * @param protectedResourceMap Protected resource map
215
- * @param endpointArray Array of resources that match request endpoint
216
- * @param httpMethod Http method of the request
217
- * @returns
218
- */
219
- private matchScopesToEndpoint;
220
- /**
221
- * Tests if a given string matches a given pattern, with support for wildcards and queries.
222
- * @param pattern Wildcard pattern to string match. Supports "*" for wildcards and "?" for queries
223
- * @param input String to match against
224
- */
225
- private matchPattern;
226
- /**
227
- * Tests if a given string matches a given pattern using stricter, anchored
228
- * matching semantics.
229
- *
230
- * Differences from `matchPattern` (legacy):
231
- * - All regex metacharacters (including `.` and `?`) are treated as literals.
232
- * - The generated regex is anchored with `^` and `$` (full-string match).
233
- * - `*` wildcard behaviour depends on the URL component:
234
- * - `host`: `*` maps to `[^.]*` — matches any characters that do NOT
235
- * include `.`, so wildcards stay within a single DNS label.
236
- * - All other components: `*` matches any characters.
237
- *
238
- * @param pattern - The protectedResourceMap key pattern.
239
- * @param input - The URL component value from the outgoing request.
240
- * @param component - Which URL component is being matched.
241
- * @returns `true` if the full input string matches the pattern.
242
- */
243
- private matchPatternStrict;
244
- static ɵfac: i0.ɵɵFactoryDeclaration<MsalInterceptor, never>;
245
- static ɵprov: i0.ɵɵInjectableDeclaration<MsalInterceptor>;
154
+ export declare class MsalInterceptor implements HttpInterceptor {
155
+ private msalInterceptorConfig;
156
+ private authService;
157
+ private location;
158
+ private msalBroadcastService;
159
+ private _document;
160
+ constructor(msalInterceptorConfig: MsalInterceptorConfiguration, authService: MsalService, location: Location, msalBroadcastService: MsalBroadcastService, document: Document);
161
+ intercept(req: HttpRequest<any> // eslint-disable-line @typescript-eslint/no-explicit-any
162
+ , next: HttpHandler): Observable<HttpEvent<any>>;
163
+ /**
164
+ * Try to acquire token silently. Invoke interaction if acquireTokenSilent rejected with error or resolved with null access token
165
+ * @param authRequest Request
166
+ * @param scopes Array of scopes for the request
167
+ * @param account Account
168
+ * @returns Authentication result
169
+ */
170
+ private acquireToken;
171
+ /**
172
+ * Invoke interaction for the given set of scopes
173
+ * @param authRequest Request
174
+ * @param scopes Array of scopes for the request
175
+ * @returns Result from the interactive request
176
+ */
177
+ private acquireTokenInteractively;
178
+ /**
179
+ * Looks up the scopes for the given endpoint from the protectedResourceMap
180
+ * @param endpoint Url of the request
181
+ * @param httpMethod Http method of the request
182
+ * @returns Array of scopes, or null if not found
183
+ *
184
+ */
185
+ private getScopesForEndpoint;
186
+ /**
187
+ * Finds resource endpoints that match request endpoint
188
+ * @param protectedResourcesEndpoints
189
+ * @param endpoint
190
+ * @returns
191
+ */
192
+ private matchResourcesToEndpoint;
193
+ /**
194
+ * Compares URL segments between key and endpoint
195
+ * @param key
196
+ * @param endpoint
197
+ * @returns
198
+ */
199
+ private checkUrlComponents;
200
+ /**
201
+ * Transforms relative urls to absolute urls
202
+ * @param url
203
+ * @returns
204
+ */
205
+ private getAbsoluteUrl;
206
+ /**
207
+ * Finds scopes from first matching endpoint with HTTP method that matches request
208
+ * @param protectedResourceMap Protected resource map
209
+ * @param endpointArray Array of resources that match request endpoint
210
+ * @param httpMethod Http method of the request
211
+ * @returns
212
+ */
213
+ private matchScopesToEndpoint;
214
+ /**
215
+ * Tests if a given string matches a given pattern, with support for wildcards and queries.
216
+ * @param pattern Wildcard pattern to string match. Supports "*" for wildcards and "?" for queries
217
+ * @param input String to match against
218
+ */
219
+ private matchPattern;
220
+ /**
221
+ * Tests if a given string matches a given pattern using stricter, anchored
222
+ * matching semantics.
223
+ *
224
+ * Differences from `matchPattern` (legacy):
225
+ * - All regex metacharacters (including `.` and `?`) are treated as literals.
226
+ * - The generated regex is anchored with `^` and `$` (full-string match).
227
+ * - `*` wildcard behaviour depends on the URL component:
228
+ * - `host`: `*` maps to `[^.]*` — matches any characters that do NOT
229
+ * include `.`, so wildcards stay within a single DNS label.
230
+ * - All other components: `*` matches any characters.
231
+ *
232
+ * @param pattern - The protectedResourceMap key pattern.
233
+ * @param input - The URL component value from the outgoing request.
234
+ * @param component - Which URL component is being matched.
235
+ * @returns `true` if the full input string matches the pattern.
236
+ */
237
+ private matchPatternStrict;
238
+ static ɵfac: i0.ɵɵFactoryDeclaration<MsalInterceptor, never>;
239
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
246
240
  }
247
-
248
- declare const MSAL_INSTANCE: InjectionToken<IPublicClientApplication>;
249
- declare const MSAL_GUARD_CONFIG: InjectionToken<MsalGuardConfiguration>;
250
- declare const MSAL_INTERCEPTOR_CONFIG: InjectionToken<MsalInterceptorConfiguration>;
251
- declare const MSAL_BROADCAST_CONFIG: InjectionToken<MsalBroadcastConfiguration>;
252
-
253
- /**
254
- * This is a dedicated redirect component to be added to Angular apps to
255
- * handle redirects when using @azure/msal-angular.
256
- * Import this component to use redirects in your app.
257
- */
258
-
259
- declare class MsalRedirectComponent implements OnInit {
260
- private authService;
261
- constructor(authService: MsalService);
262
- ngOnInit(): void;
263
- static ɵfac: i0.ɵɵFactoryDeclaration<MsalRedirectComponent, never>;
264
- static ɵcmp: i0.ɵɵComponentDeclaration<MsalRedirectComponent, "app-redirect", never, {}, {}, never, never, false, never>;
241
+ export declare const MSAL_INSTANCE: InjectionToken<IPublicClientApplication>;
242
+ export declare const MSAL_GUARD_CONFIG: InjectionToken<MsalGuardConfiguration>;
243
+ export declare const MSAL_INTERCEPTOR_CONFIG: InjectionToken<MsalInterceptorConfiguration>;
244
+ export declare const MSAL_BROADCAST_CONFIG: InjectionToken<MsalBroadcastConfiguration>;
245
+ declare namespace msal_redirect_component_d_exports {
246
+ export { MsalRedirectComponent };
247
+ }
248
+ export declare class MsalRedirectComponent implements OnInit {
249
+ private authService;
250
+ constructor(authService: MsalService);
251
+ ngOnInit(): void;
252
+ static ɵfac: i0.ɵɵFactoryDeclaration<MsalRedirectComponent, never>;
253
+ static ɵcmp: i0.ɵɵComponentDeclaration<MsalRedirectComponent, "app-redirect", never, {}, {}, never, never, false, never>;
265
254
  }
266
-
267
- declare class MsalModule {
268
- static forRoot(msalInstance: IPublicClientApplication, guardConfig: MsalGuardConfiguration, interceptorConfig: MsalInterceptorConfiguration): ModuleWithProviders<MsalModule>;
269
- static ɵfac: i0.ɵɵFactoryDeclaration<MsalModule, never>;
270
- static ɵmod: i0.ɵɵNgModuleDeclaration<MsalModule, [typeof MsalRedirectComponent], [typeof i2.CommonModule], never>;
271
- static ɵinj: i0.ɵɵInjectorDeclaration<MsalModule>;
255
+ export declare class MsalModule {
256
+ static forRoot(msalInstance: IPublicClientApplication, guardConfig: MsalGuardConfiguration, interceptorConfig: MsalInterceptorConfiguration): ModuleWithProviders<MsalModule>;
257
+ static ɵfac: i0.ɵɵFactoryDeclaration<MsalModule, never>;
258
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MsalModule, [typeof MsalRedirectComponent], [typeof i2.CommonModule], never>;
259
+ static ɵinj: i0.ɵɵInjectorDeclaration<MsalModule>;
272
260
  }
273
-
274
261
  /**
275
262
  * Custom navigation used for Angular client-side navigation.
276
263
  * See performance doc for details:
277
264
  * https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/docs/performance.md
278
265
  */
279
- declare class MsalCustomNavigationClient extends NavigationClient {
280
- private authService;
281
- private router;
282
- private location;
283
- constructor(authService: MsalService, router: Router, location: Location);
284
- navigateInternal(url: string, options: NavigationOptions): Promise<boolean>;
285
- static ɵfac: i0.ɵɵFactoryDeclaration<MsalCustomNavigationClient, never>;
286
- static ɵprov: i0.ɵɵInjectableDeclaration<MsalCustomNavigationClient>;
266
+ export declare class MsalCustomNavigationClient extends NavigationClient {
267
+ private authService;
268
+ private router;
269
+ private location;
270
+ constructor(authService: MsalService, router: Router, location: Location);
271
+ navigateInternal(url: string, options: NavigationOptions): Promise<boolean>;
272
+ static ɵfac: i0.ɵɵFactoryDeclaration<MsalCustomNavigationClient, never>;
273
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
287
274
  }
288
-
289
- declare const version = "6.2.2";
290
-
291
- export { MSAL_BROADCAST_CONFIG, MSAL_GUARD_CONFIG, MSAL_INSTANCE, MSAL_INTERCEPTOR_CONFIG, MsalBroadcastService, MsalCustomNavigationClient, MsalGuard, MsalInterceptor, MsalModule, MsalRedirectComponent, MsalService, version };
292
- export type { IMsalService, MsalBroadcastConfiguration, MsalGuardAuthRequest, MsalGuardConfiguration, MsalInterceptorAuthRequest, MsalInterceptorConfiguration, ProtectedResourceScopes };
275
+ declare const name = "@azure/msal-angular";
276
+ export declare const version = "6.2.4";