@azure/msal-angular 3.0.23 → 3.0.24
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.
- package/IMsalService.d.ts +15 -15
- package/constants.d.ts +5 -5
- package/esm2020/IMsalService.mjs +5 -5
- package/esm2020/azure-msal-angular.mjs +4 -4
- package/esm2020/constants.mjs +9 -9
- package/esm2020/msal.broadcast.config.mjs +5 -5
- package/esm2020/msal.broadcast.service.mjs +56 -56
- package/esm2020/msal.guard.config.mjs +5 -5
- package/esm2020/msal.guard.mjs +217 -217
- package/esm2020/msal.interceptor.config.mjs +5 -5
- package/esm2020/msal.interceptor.mjs +269 -269
- package/esm2020/msal.module.mjs +45 -45
- package/esm2020/msal.navigation.client.mjs +52 -52
- package/esm2020/msal.redirect.component.mjs +30 -30
- package/esm2020/msal.service.mjs +80 -80
- package/esm2020/packageMetadata.mjs +4 -4
- package/esm2020/public-api.mjs +17 -17
- package/fesm2015/azure-msal-angular.mjs +714 -714
- package/fesm2015/azure-msal-angular.mjs.map +1 -1
- package/fesm2020/azure-msal-angular.mjs +711 -711
- package/fesm2020/azure-msal-angular.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/msal.broadcast.config.d.ts +3 -3
- package/msal.broadcast.service.d.ts +17 -17
- package/msal.guard.config.d.ts +9 -9
- package/msal.guard.d.ts +43 -43
- package/msal.interceptor.config.d.ts +13 -13
- package/msal.interceptor.d.ts +70 -70
- package/msal.module.d.ts +13 -13
- package/msal.navigation.client.d.ts +19 -19
- package/msal.redirect.component.d.ts +15 -15
- package/msal.service.d.ts +31 -31
- package/package.json +2 -2
- package/packageMetadata.d.ts +2 -2
- package/public-api.d.ts +17 -17
package/msal.module.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ModuleWithProviders } from "@angular/core";
|
|
2
|
-
import { IPublicClientApplication } from "@azure/msal-browser";
|
|
3
|
-
import { MsalGuardConfiguration } from "./msal.guard.config";
|
|
4
|
-
import { MsalInterceptorConfiguration } from "./msal.interceptor.config";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "./msal.redirect.component";
|
|
7
|
-
import * as i2 from "@angular/common";
|
|
8
|
-
export declare class MsalModule {
|
|
9
|
-
static forRoot(msalInstance: IPublicClientApplication, guardConfig: MsalGuardConfiguration, interceptorConfig: MsalInterceptorConfiguration): ModuleWithProviders<MsalModule>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MsalModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MsalModule, [typeof i1.MsalRedirectComponent], [typeof i2.CommonModule], never>;
|
|
12
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MsalModule>;
|
|
13
|
-
}
|
|
1
|
+
import { ModuleWithProviders } from "@angular/core";
|
|
2
|
+
import { IPublicClientApplication } from "@azure/msal-browser";
|
|
3
|
+
import { MsalGuardConfiguration } from "./msal.guard.config";
|
|
4
|
+
import { MsalInterceptorConfiguration } from "./msal.interceptor.config";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./msal.redirect.component";
|
|
7
|
+
import * as i2 from "@angular/common";
|
|
8
|
+
export declare class MsalModule {
|
|
9
|
+
static forRoot(msalInstance: IPublicClientApplication, guardConfig: MsalGuardConfiguration, interceptorConfig: MsalInterceptorConfiguration): ModuleWithProviders<MsalModule>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MsalModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MsalModule, [typeof i1.MsalRedirectComponent], [typeof i2.CommonModule], never>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MsalModule>;
|
|
13
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Location } from "@angular/common";
|
|
2
|
-
import { Router } from "@angular/router";
|
|
3
|
-
import { NavigationClient, NavigationOptions } from "@azure/msal-browser";
|
|
4
|
-
import { MsalService } from "./msal.service";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Custom navigation used for Angular client-side navigation.
|
|
8
|
-
* See performance doc for details:
|
|
9
|
-
* https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/docs/performance.md
|
|
10
|
-
*/
|
|
11
|
-
export declare class MsalCustomNavigationClient extends NavigationClient {
|
|
12
|
-
private authService;
|
|
13
|
-
private router;
|
|
14
|
-
private location;
|
|
15
|
-
constructor(authService: MsalService, router: Router, location: Location);
|
|
16
|
-
navigateInternal(url: string, options: NavigationOptions): Promise<boolean>;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MsalCustomNavigationClient, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MsalCustomNavigationClient>;
|
|
19
|
-
}
|
|
1
|
+
import { Location } from "@angular/common";
|
|
2
|
+
import { Router } from "@angular/router";
|
|
3
|
+
import { NavigationClient, NavigationOptions } from "@azure/msal-browser";
|
|
4
|
+
import { MsalService } from "./msal.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Custom navigation used for Angular client-side navigation.
|
|
8
|
+
* See performance doc for details:
|
|
9
|
+
* https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/docs/performance.md
|
|
10
|
+
*/
|
|
11
|
+
export declare class MsalCustomNavigationClient extends NavigationClient {
|
|
12
|
+
private authService;
|
|
13
|
+
private router;
|
|
14
|
+
private location;
|
|
15
|
+
constructor(authService: MsalService, router: Router, location: Location);
|
|
16
|
+
navigateInternal(url: string, options: NavigationOptions): Promise<boolean>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MsalCustomNavigationClient, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MsalCustomNavigationClient>;
|
|
19
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is a dedicated redirect component to be added to Angular apps to
|
|
3
|
-
* handle redirects when using @azure/msal-angular.
|
|
4
|
-
* Import this component to use redirects in your app.
|
|
5
|
-
*/
|
|
6
|
-
import { OnInit } from "@angular/core";
|
|
7
|
-
import { MsalService } from "./msal.service";
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class MsalRedirectComponent implements OnInit {
|
|
10
|
-
private authService;
|
|
11
|
-
constructor(authService: MsalService);
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MsalRedirectComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MsalRedirectComponent, "app-redirect", never, {}, {}, never, never, false, never>;
|
|
15
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* This is a dedicated redirect component to be added to Angular apps to
|
|
3
|
+
* handle redirects when using @azure/msal-angular.
|
|
4
|
+
* Import this component to use redirects in your app.
|
|
5
|
+
*/
|
|
6
|
+
import { OnInit } from "@angular/core";
|
|
7
|
+
import { MsalService } from "./msal.service";
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class MsalRedirectComponent implements OnInit {
|
|
10
|
+
private authService;
|
|
11
|
+
constructor(authService: MsalService);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MsalRedirectComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MsalRedirectComponent, "app-redirect", never, {}, {}, never, never, false, never>;
|
|
15
|
+
}
|
package/msal.service.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { Location } from "@angular/common";
|
|
2
|
-
import { IPublicClientApplication, EndSessionRequest, EndSessionPopupRequest, AuthenticationResult, RedirectRequest, SilentRequest, PopupRequest, SsoSilentRequest, Logger } from "@azure/msal-browser";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
import { IMsalService } from "./IMsalService";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class MsalService implements IMsalService {
|
|
7
|
-
instance: IPublicClientApplication;
|
|
8
|
-
private location;
|
|
9
|
-
private redirectHash;
|
|
10
|
-
private logger;
|
|
11
|
-
constructor(instance: IPublicClientApplication, location: Location);
|
|
12
|
-
initialize(): Observable<void>;
|
|
13
|
-
acquireTokenPopup(request: PopupRequest): Observable<AuthenticationResult>;
|
|
14
|
-
acquireTokenRedirect(request: RedirectRequest): Observable<void>;
|
|
15
|
-
acquireTokenSilent(silentRequest: SilentRequest): Observable<AuthenticationResult>;
|
|
16
|
-
handleRedirectObservable(hash?: string): Observable<AuthenticationResult>;
|
|
17
|
-
loginPopup(request?: PopupRequest): Observable<AuthenticationResult>;
|
|
18
|
-
loginRedirect(request?: RedirectRequest): Observable<void>;
|
|
19
|
-
logout(logoutRequest?: EndSessionRequest): Observable<void>;
|
|
20
|
-
logoutRedirect(logoutRequest?: EndSessionRequest): Observable<void>;
|
|
21
|
-
logoutPopup(logoutRequest?: EndSessionPopupRequest): Observable<void>;
|
|
22
|
-
ssoSilent(request: SsoSilentRequest): Observable<AuthenticationResult>;
|
|
23
|
-
/**
|
|
24
|
-
* Gets logger for msal-angular.
|
|
25
|
-
* If no logger set, returns logger instance created with same options as msal-browser
|
|
26
|
-
*/
|
|
27
|
-
getLogger(): Logger;
|
|
28
|
-
setLogger(logger: Logger): void;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MsalService, never>;
|
|
30
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MsalService>;
|
|
31
|
-
}
|
|
1
|
+
import { Location } from "@angular/common";
|
|
2
|
+
import { IPublicClientApplication, EndSessionRequest, EndSessionPopupRequest, AuthenticationResult, RedirectRequest, SilentRequest, PopupRequest, SsoSilentRequest, Logger } from "@azure/msal-browser";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
import { IMsalService } from "./IMsalService";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MsalService implements IMsalService {
|
|
7
|
+
instance: IPublicClientApplication;
|
|
8
|
+
private location;
|
|
9
|
+
private redirectHash;
|
|
10
|
+
private logger;
|
|
11
|
+
constructor(instance: IPublicClientApplication, location: Location);
|
|
12
|
+
initialize(): Observable<void>;
|
|
13
|
+
acquireTokenPopup(request: PopupRequest): Observable<AuthenticationResult>;
|
|
14
|
+
acquireTokenRedirect(request: RedirectRequest): Observable<void>;
|
|
15
|
+
acquireTokenSilent(silentRequest: SilentRequest): Observable<AuthenticationResult>;
|
|
16
|
+
handleRedirectObservable(hash?: string): Observable<AuthenticationResult>;
|
|
17
|
+
loginPopup(request?: PopupRequest): Observable<AuthenticationResult>;
|
|
18
|
+
loginRedirect(request?: RedirectRequest): Observable<void>;
|
|
19
|
+
logout(logoutRequest?: EndSessionRequest): Observable<void>;
|
|
20
|
+
logoutRedirect(logoutRequest?: EndSessionRequest): Observable<void>;
|
|
21
|
+
logoutPopup(logoutRequest?: EndSessionPopupRequest): Observable<void>;
|
|
22
|
+
ssoSilent(request: SsoSilentRequest): Observable<AuthenticationResult>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets logger for msal-angular.
|
|
25
|
+
* If no logger set, returns logger instance created with same options as msal-browser
|
|
26
|
+
*/
|
|
27
|
+
getLogger(): Logger;
|
|
28
|
+
setLogger(logger: Logger): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MsalService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MsalService>;
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/msal-angular",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.24",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Microsoft",
|
|
6
6
|
"email": "nugetaad@microsoft.com",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@azure/msal-browser": "^3.
|
|
22
|
+
"@azure/msal-browser": "^3.24.0",
|
|
23
23
|
"rxjs": "^7.0.0"
|
|
24
24
|
},
|
|
25
25
|
"module": "fesm2015/azure-msal-angular.mjs",
|
package/packageMetadata.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const name = "@azure/msal-angular";
|
|
2
|
-
export declare const version = "3.0.
|
|
1
|
+
export declare const name = "@azure/msal-angular";
|
|
2
|
+
export declare const version = "3.0.24";
|
package/public-api.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @packageDocumentation
|
|
3
|
-
* @module @azure/msal-angular
|
|
4
|
-
*/
|
|
5
|
-
export { MsalService } from "./msal.service";
|
|
6
|
-
export { IMsalService } from "./IMsalService";
|
|
7
|
-
export { MsalGuard } from "./msal.guard";
|
|
8
|
-
export { MsalGuardConfiguration, MsalGuardAuthRequest, } from "./msal.guard.config";
|
|
9
|
-
export { MsalInterceptor } from "./msal.interceptor";
|
|
10
|
-
export { MsalInterceptorConfiguration, MsalInterceptorAuthRequest, ProtectedResourceScopes, } from "./msal.interceptor.config";
|
|
11
|
-
export { MSAL_INSTANCE, MSAL_GUARD_CONFIG, MSAL_INTERCEPTOR_CONFIG, MSAL_BROADCAST_CONFIG, } from "./constants";
|
|
12
|
-
export { MsalBroadcastService } from "./msal.broadcast.service";
|
|
13
|
-
export { MsalBroadcastConfiguration } from "./msal.broadcast.config";
|
|
14
|
-
export { MsalModule } from "./msal.module";
|
|
15
|
-
export { MsalRedirectComponent } from "./msal.redirect.component";
|
|
16
|
-
export { MsalCustomNavigationClient } from "./msal.navigation.client";
|
|
17
|
-
export { version } from "./packageMetadata";
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* @module @azure/msal-angular
|
|
4
|
+
*/
|
|
5
|
+
export { MsalService } from "./msal.service";
|
|
6
|
+
export { IMsalService } from "./IMsalService";
|
|
7
|
+
export { MsalGuard } from "./msal.guard";
|
|
8
|
+
export { MsalGuardConfiguration, MsalGuardAuthRequest, } from "./msal.guard.config";
|
|
9
|
+
export { MsalInterceptor } from "./msal.interceptor";
|
|
10
|
+
export { MsalInterceptorConfiguration, MsalInterceptorAuthRequest, ProtectedResourceScopes, } from "./msal.interceptor.config";
|
|
11
|
+
export { MSAL_INSTANCE, MSAL_GUARD_CONFIG, MSAL_INTERCEPTOR_CONFIG, MSAL_BROADCAST_CONFIG, } from "./constants";
|
|
12
|
+
export { MsalBroadcastService } from "./msal.broadcast.service";
|
|
13
|
+
export { MsalBroadcastConfiguration } from "./msal.broadcast.config";
|
|
14
|
+
export { MsalModule } from "./msal.module";
|
|
15
|
+
export { MsalRedirectComponent } from "./msal.redirect.component";
|
|
16
|
+
export { MsalCustomNavigationClient } from "./msal.navigation.client";
|
|
17
|
+
export { version } from "./packageMetadata";
|