@azure/msal-angular 3.0.0-beta.1 → 3.0.1
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/LICENSE +20 -20
- package/README.md +43 -35
- package/constants.d.ts +5 -5
- package/esm2020/IMsalService.mjs +6 -6
- package/esm2020/azure-msal-angular.mjs +4 -4
- package/esm2020/constants.mjs +10 -10
- package/esm2020/msal.broadcast.config.mjs +6 -6
- package/esm2020/msal.broadcast.service.mjs +57 -57
- package/esm2020/msal.guard.config.mjs +6 -6
- package/esm2020/msal.guard.mjs +218 -218
- package/esm2020/msal.interceptor.config.mjs +6 -6
- package/esm2020/msal.interceptor.mjs +270 -270
- package/esm2020/msal.module.mjs +46 -46
- package/esm2020/msal.navigation.client.mjs +51 -51
- package/esm2020/msal.redirect.component.mjs +31 -31
- package/esm2020/msal.service.mjs +81 -81
- package/esm2020/packageMetadata.mjs +4 -4
- package/esm2020/public-api.mjs +18 -18
- package/fesm2015/azure-msal-angular.mjs +712 -703
- package/fesm2015/azure-msal-angular.mjs.map +1 -1
- package/fesm2020/azure-msal-angular.mjs +709 -700
- 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 +17 -17
- package/msal.interceptor.d.ts +63 -63
- 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 -4
- package/packageMetadata.d.ts +2 -2
- package/public-api.d.ts +17 -17
package/IMsalService.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { EndSessionRequest, AuthorizationUrlRequest, AuthenticationResult, PopupRequest, RedirectRequest, SilentRequest, Logger } from '@azure/msal-browser';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export interface IMsalService {
|
|
4
|
-
initialize(): Observable<void>;
|
|
5
|
-
acquireTokenPopup(request: PopupRequest): Observable<AuthenticationResult>;
|
|
6
|
-
acquireTokenRedirect(request: RedirectRequest): Observable<void>;
|
|
7
|
-
acquireTokenSilent(silentRequest: SilentRequest): Observable<AuthenticationResult>;
|
|
8
|
-
handleRedirectObservable(): Observable<AuthenticationResult | null>;
|
|
9
|
-
loginPopup(request?: PopupRequest): Observable<AuthenticationResult>;
|
|
10
|
-
loginRedirect(request?: RedirectRequest): Observable<void>;
|
|
11
|
-
logout(logoutRequest?: EndSessionRequest): Observable<void>;
|
|
12
|
-
ssoSilent(request: AuthorizationUrlRequest): Observable<AuthenticationResult>;
|
|
13
|
-
getLogger(): Logger;
|
|
14
|
-
setLogger(logger: Logger): void;
|
|
15
|
-
}
|
|
1
|
+
import { EndSessionRequest, AuthorizationUrlRequest, AuthenticationResult, PopupRequest, RedirectRequest, SilentRequest, Logger } from '@azure/msal-browser';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export interface IMsalService {
|
|
4
|
+
initialize(): Observable<void>;
|
|
5
|
+
acquireTokenPopup(request: PopupRequest): Observable<AuthenticationResult>;
|
|
6
|
+
acquireTokenRedirect(request: RedirectRequest): Observable<void>;
|
|
7
|
+
acquireTokenSilent(silentRequest: SilentRequest): Observable<AuthenticationResult>;
|
|
8
|
+
handleRedirectObservable(): Observable<AuthenticationResult | null>;
|
|
9
|
+
loginPopup(request?: PopupRequest): Observable<AuthenticationResult>;
|
|
10
|
+
loginRedirect(request?: RedirectRequest): Observable<void>;
|
|
11
|
+
logout(logoutRequest?: EndSessionRequest): Observable<void>;
|
|
12
|
+
ssoSilent(request: AuthorizationUrlRequest): Observable<AuthenticationResult>;
|
|
13
|
+
getLogger(): Logger;
|
|
14
|
+
setLogger(logger: Logger): void;
|
|
15
|
+
}
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE
|
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|

|
|
5
5
|
[](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js)
|
|
6
6
|
|
|
7
|
-
| <a href="https://docs.microsoft.com/azure/active-directory/develop/tutorial-v2-angular-auth-code" target="blank">Getting Started</a
|
|
8
|
-
|
|
|
7
|
+
| <a href="https://docs.microsoft.com/azure/active-directory/develop/tutorial-v2-angular-auth-code" target="blank">Getting Started</a> | <a href="https://aka.ms/aaddevv2" target="_blank">AAD Docs</a> | <a href="https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_angular.html" target="_blank">Library Reference</a> | [Support](README.md#community-help-and-support) | <a href="https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-angular-v3-samples" target="blank">Samples</a> |
|
|
8
|
+
| ------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
9
9
|
|
|
10
10
|
1. [About](#about)
|
|
11
11
|
1. [Guides](#guides)
|
|
@@ -43,12 +43,12 @@ The current `@azure/msal-angular` library improves upon the previous version and
|
|
|
43
43
|
|
|
44
44
|
At a minimum, `@azure/msal-angular` will follow the [support schedule of the main Angular project](https://angular.io/guide/releases#support-policy-and-schedule). We may continue to support certain versions of Angular that are not under Active or LTS support from the main Angular project on a version-by-version basis, as defined below.
|
|
45
45
|
|
|
46
|
-
| MSAL Angular version | MSAL support status
|
|
47
|
-
|
|
48
|
-
| MSAL Angular v3
|
|
49
|
-
| MSAL Angular v2 | In maintenance
|
|
50
|
-
| MSAL Angular v1 | In maintenance
|
|
51
|
-
| MSAL Angular v0 | Out of support
|
|
46
|
+
| MSAL Angular version | MSAL support status | Supported Angular versions |
|
|
47
|
+
| -------------------- | ------------------- | -------------------------- |
|
|
48
|
+
| MSAL Angular v3 | Active development | 15, 16 |
|
|
49
|
+
| MSAL Angular v2 | In maintenance | 9, 10, 11, 12, 13, 14 |
|
|
50
|
+
| MSAL Angular v1 | In maintenance | 6, 7, 8, 9 |
|
|
51
|
+
| MSAL Angular v0 | Out of support | 4, 5 |
|
|
52
52
|
|
|
53
53
|
## Prerequisites
|
|
54
54
|
|
|
@@ -57,6 +57,7 @@ Before using `@azure/msal-angular`, [register an application in Azure AD](https:
|
|
|
57
57
|
## Installation
|
|
58
58
|
|
|
59
59
|
The `@azure/msal-angular` package is available on NPM:
|
|
60
|
+
|
|
60
61
|
```
|
|
61
62
|
npm install @azure/msal-browser @azure/msal-angular@latest
|
|
62
63
|
```
|
|
@@ -64,6 +65,7 @@ npm install @azure/msal-browser @azure/msal-angular@latest
|
|
|
64
65
|
## Usage
|
|
65
66
|
|
|
66
67
|
MSAL Angular Basics
|
|
68
|
+
|
|
67
69
|
1. [Initialization](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/docs/initialization.md)
|
|
68
70
|
1. [Public APIs](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/docs/public-apis.md)
|
|
69
71
|
1. [Using redirects](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/docs/redirects.md)
|
|
@@ -72,6 +74,7 @@ MSAL Angular Basics
|
|
|
72
74
|
1. [Known issues](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/docs/known-issues.md)
|
|
73
75
|
|
|
74
76
|
Advanced Topics
|
|
77
|
+
|
|
75
78
|
1. [Logging](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/docs/logging.md)
|
|
76
79
|
1. [Multi-Tenant](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/docs/multi-tenant.md)
|
|
77
80
|
1. [Security](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/docs/security.md)
|
|
@@ -85,35 +88,40 @@ Documentation specifically for MSAL Angular v1 can be found [here](https://githu
|
|
|
85
88
|
## Samples
|
|
86
89
|
|
|
87
90
|
### MSAL Angular v3 Samples
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
|
|
92
|
+
- [Angular v15](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-angular-v3-samples/angular15-sample-app)
|
|
93
|
+
- [Angular v16](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-angular-v3-samples/angular16-sample-app)
|
|
94
|
+
- [Angular v16 B2C Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-angular-v3-samples/angular-b2c-sample-app)
|
|
95
|
+
- [Angular Standalone Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-angular-v3-samples/angular-standalone-sample)
|
|
91
96
|
|
|
92
97
|
### MSAL Angular v2 Samples
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
|
|
99
|
+
- [Angular v9](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-lts/samples/msal-angular-v2-samples/angular9-v2-sample-app)
|
|
100
|
+
- [Angular v10](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-lts/samples/msal-angular-v2-samples/angular10-sample-app)
|
|
101
|
+
- [Angular v11](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-lts/samples/msal-angular-v2-samples/angular11-sample-app)
|
|
102
|
+
- [Angular v12](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-lts/samples/msal-angular-v2-samples/angular12-sample-app)
|
|
103
|
+
- [Angular v13 RxJS v6](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-lts/samples/msal-angular-v2-samples/angular13-rxjs6-sample-app)
|
|
104
|
+
- [Angular v13 RxJS v7](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-lts/samples/msal-angular-v2-samples/angular13-rxjs7-sample-app)
|
|
105
|
+
- [Angular v14 RxJS v6](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-lts/samples/msal-angular-v2-samples/angular14-rxjs6-sample-app)
|
|
106
|
+
- [Angular v14 RxJS v7](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-lts/samples/msal-angular-v2-samples/angular14-rxjs7-sample-app)
|
|
107
|
+
- [Angular v14 B2C Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-lts/samples/msal-angular-v2-samples/angular-b2c-sample-app)
|
|
102
108
|
|
|
103
109
|
See [here](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-lts/samples/msal-angular-v2-samples/README.md) for specific features demonstrated by our MSAL Angular v2 samples.
|
|
104
110
|
|
|
105
111
|
### Advanced MSAL Angular v2 Samples
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
112
|
+
|
|
113
|
+
- [Angular SPA with ASP.NET Core web API](https://github.com/Azure-Samples/ms-identity-javascript-angular-tutorial/tree/main/3-Authorization-II/1-call-api)
|
|
114
|
+
- [Angular SPA with APS.NET Core web API using App Roles and RBAC](https://github.com/Azure-Samples/ms-identity-javascript-angular-tutorial/tree/main/5-AccessControl/1-call-api-roles)
|
|
115
|
+
- [Angular SPA calling Microsoft Graph via ASP.NET Core web API using on-behalf-of flow](https://github.com/Azure-Samples/ms-identity-javascript-angular-tutorial/tree/main/6-AdvancedScenarios/1-call-api-obo)
|
|
116
|
+
- [Multi-tenant tutorial using MSAL Angular v2](https://github.com/Azure-Samples/ms-identity-javascript-angular-tutorial/tree/main/6-AdvancedScenarios/2-call-api-mt)
|
|
117
|
+
- [Deployment tutorial using Azure App Service and Azure Storage](https://github.com/Azure-Samples/ms-identity-javascript-angular-tutorial/tree/main/4-Deployment)
|
|
111
118
|
|
|
112
119
|
### MSAL Angular v1 Samples
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
120
|
+
|
|
121
|
+
- [Angular v6](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-angular-v1/samples/msal-angular-samples/angular6-sample-app)
|
|
122
|
+
- [Angular v7](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-angular-v1/samples/msal-angular-samples/angular7-sample-app)
|
|
123
|
+
- [Angular v8](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-angular-v1/samples/msal-angular-samples/angular8-sample-app)
|
|
124
|
+
- [Angular v9](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/msal-angular-v1/samples/msal-angular-samples/angular9-sample-app)
|
|
117
125
|
|
|
118
126
|
## Build and running tests
|
|
119
127
|
|
|
@@ -135,11 +143,11 @@ This library controls how users sign-in and access services. We recommend you al
|
|
|
135
143
|
|
|
136
144
|
## Community Help and Support
|
|
137
145
|
|
|
138
|
-
-
|
|
139
|
-
-
|
|
140
|
-
|
|
141
|
-
-
|
|
142
|
-
-
|
|
146
|
+
- [Msal Browser FAQ](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/FAQ.md) for access to our frequently asked questions
|
|
147
|
+
- [Stack Overflow](http://stackoverflow.com/questions/tagged/msal) using tag "msal".
|
|
148
|
+
We highly recommend you ask your questions on Stack Overflow first and browse existing issues to see if someone has asked your question before.
|
|
149
|
+
- [GitHub Issues](https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/templates/edit) for reporting a bug or feature requests
|
|
150
|
+
- [User Voice page](https://feedback.azure.com/forums/169401-azure-active-directory) to provide recommendations and/or feedback
|
|
143
151
|
|
|
144
152
|
## Contribute
|
|
145
153
|
|
|
@@ -155,4 +163,4 @@ Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT
|
|
|
155
163
|
|
|
156
164
|
## We Value and Adhere to the Microsoft Open Source Code of Conduct
|
|
157
165
|
|
|
158
|
-
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
|
166
|
+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
package/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export declare const MSAL_INSTANCE: InjectionToken<string>;
|
|
3
|
-
export declare const MSAL_GUARD_CONFIG: InjectionToken<string>;
|
|
4
|
-
export declare const MSAL_INTERCEPTOR_CONFIG: InjectionToken<string>;
|
|
5
|
-
export declare const MSAL_BROADCAST_CONFIG: InjectionToken<string>;
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export declare const MSAL_INSTANCE: InjectionToken<string>;
|
|
3
|
+
export declare const MSAL_GUARD_CONFIG: InjectionToken<string>;
|
|
4
|
+
export declare const MSAL_INTERCEPTOR_CONFIG: InjectionToken<string>;
|
|
5
|
+
export declare const MSAL_BROADCAST_CONFIG: InjectionToken<string>;
|
package/esm2020/IMsalService.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSU1zYWxTZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0lNc2FsU2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0ciLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdCBDb3Jwb3JhdGlvbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC5cclxuICogTGljZW5zZWQgdW5kZXIgdGhlIE1JVCBMaWNlbnNlLlxyXG4gKi9cclxuXHJcbmltcG9ydCB7XHJcbiAgRW5kU2Vzc2lvblJlcXVlc3QsXHJcbiAgQXV0aG9yaXphdGlvblVybFJlcXVlc3QsXHJcbiAgQXV0aGVudGljYXRpb25SZXN1bHQsXHJcbiAgUG9wdXBSZXF1ZXN0LFxyXG4gIFJlZGlyZWN0UmVxdWVzdCxcclxuICBTaWxlbnRSZXF1ZXN0LFxyXG4gIExvZ2dlcixcclxufSBmcm9tICdAYXp1cmUvbXNhbC1icm93c2VyJztcclxuaW1wb3J0IHsgT2JzZXJ2YWJsZSB9IGZyb20gJ3J4anMnO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
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXp1cmUtbXNhbC1hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2F6dXJlLW1zYWwtYW5ndWxhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
package/esm2020/constants.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
import { InjectionToken } from '@angular/core';
|
|
6
|
-
export const MSAL_INSTANCE = new InjectionToken('MSAL_INSTANCE');
|
|
7
|
-
export const MSAL_GUARD_CONFIG = new InjectionToken('MSAL_GUARD_CONFIG');
|
|
8
|
-
export const MSAL_INTERCEPTOR_CONFIG = new InjectionToken('MSAL_INTERCEPTOR_CONFIG');
|
|
9
|
-
export const MSAL_BROADCAST_CONFIG = new InjectionToken('MSAL_BROADCAST_CONFIG');
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { InjectionToken } from '@angular/core';
|
|
6
|
+
export const MSAL_INSTANCE = new InjectionToken('MSAL_INSTANCE');
|
|
7
|
+
export const MSAL_GUARD_CONFIG = new InjectionToken('MSAL_GUARD_CONFIG');
|
|
8
|
+
export const MSAL_INTERCEPTOR_CONFIG = new InjectionToken('MSAL_INTERCEPTOR_CONFIG');
|
|
9
|
+
export const MSAL_BROADCAST_CONFIG = new InjectionToken('MSAL_BROADCAST_CONFIG');
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFFSCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRS9DLE1BQU0sQ0FBQyxNQUFNLGFBQWEsR0FBRyxJQUFJLGNBQWMsQ0FBUyxlQUFlLENBQUMsQ0FBQztBQUV6RSxNQUFNLENBQUMsTUFBTSxpQkFBaUIsR0FBRyxJQUFJLGNBQWMsQ0FDakQsbUJBQW1CLENBQ3BCLENBQUM7QUFFRixNQUFNLENBQUMsTUFBTSx1QkFBdUIsR0FBRyxJQUFJLGNBQWMsQ0FDdkQseUJBQXlCLENBQzFCLENBQUM7QUFFRixNQUFNLENBQUMsTUFBTSxxQkFBcUIsR0FBRyxJQUFJLGNBQWMsQ0FDckQsdUJBQXVCLENBQ3hCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdCBDb3Jwb3JhdGlvbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC5cclxuICogTGljZW5zZWQgdW5kZXIgdGhlIE1JVCBMaWNlbnNlLlxyXG4gKi9cclxuXHJcbmltcG9ydCB7IEluamVjdGlvblRva2VuIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5leHBvcnQgY29uc3QgTVNBTF9JTlNUQU5DRSA9IG5ldyBJbmplY3Rpb25Ub2tlbjxzdHJpbmc+KCdNU0FMX0lOU1RBTkNFJyk7XHJcblxyXG5leHBvcnQgY29uc3QgTVNBTF9HVUFSRF9DT05GSUcgPSBuZXcgSW5qZWN0aW9uVG9rZW48c3RyaW5nPihcclxuICAnTVNBTF9HVUFSRF9DT05GSUcnXHJcbik7XHJcblxyXG5leHBvcnQgY29uc3QgTVNBTF9JTlRFUkNFUFRPUl9DT05GSUcgPSBuZXcgSW5qZWN0aW9uVG9rZW48c3RyaW5nPihcclxuICAnTVNBTF9JTlRFUkNFUFRPUl9DT05GSUcnXHJcbik7XHJcblxyXG5leHBvcnQgY29uc3QgTVNBTF9CUk9BRENBU1RfQ09ORklHID0gbmV3IEluamVjdGlvblRva2VuPHN0cmluZz4oXHJcbiAgJ01TQUxfQlJPQURDQVNUX0NPTkZJRydcclxuKTtcclxuIl19
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC5icm9hZGNhc3QuY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21zYWwuYnJvYWRjYXN0LmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0ciLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdCBDb3Jwb3JhdGlvbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC5cclxuICogTGljZW5zZWQgdW5kZXIgdGhlIE1JVCBMaWNlbnNlLlxyXG4gKi9cclxuXHJcbmV4cG9ydCB0eXBlIE1zYWxCcm9hZGNhc3RDb25maWd1cmF0aW9uID0ge1xyXG4gIGV2ZW50c1RvUmVwbGF5OiBudW1iZXI7XHJcbn07XHJcbiJdfQ==
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
import { Inject, Injectable, Optional } from '@angular/core';
|
|
6
|
-
import { EventMessageUtils, InteractionStatus, } from '@azure/msal-browser';
|
|
7
|
-
import { BehaviorSubject, ReplaySubject, Subject } from 'rxjs';
|
|
8
|
-
import { MSAL_BROADCAST_CONFIG, MSAL_INSTANCE } from './constants';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "./msal.service";
|
|
11
|
-
export class MsalBroadcastService {
|
|
12
|
-
constructor(msalInstance, authService, msalBroadcastConfig) {
|
|
13
|
-
this.msalInstance = msalInstance;
|
|
14
|
-
this.authService = authService;
|
|
15
|
-
this.msalBroadcastConfig = msalBroadcastConfig;
|
|
16
|
-
// Make _msalSubject a ReplaySubject if configured to replay past events
|
|
17
|
-
if (this.msalBroadcastConfig &&
|
|
18
|
-
this.msalBroadcastConfig.eventsToReplay > 0) {
|
|
19
|
-
this.authService
|
|
20
|
-
.getLogger()
|
|
21
|
-
.verbose(`BroadcastService - eventsToReplay set on BroadcastConfig, replaying the last ${this.msalBroadcastConfig.eventsToReplay} events`);
|
|
22
|
-
this._msalSubject = new ReplaySubject(this.msalBroadcastConfig.eventsToReplay);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
// Defaults to _msalSubject being a Subject
|
|
26
|
-
this._msalSubject = new Subject();
|
|
27
|
-
}
|
|
28
|
-
this.msalSubject$ = this._msalSubject.asObservable();
|
|
29
|
-
// InProgress as BehaviorSubject so most recent inProgress state will be available upon subscription
|
|
30
|
-
this._inProgress = new BehaviorSubject(InteractionStatus.Startup);
|
|
31
|
-
this.inProgress$ = this._inProgress.asObservable();
|
|
32
|
-
this.msalInstance.addEventCallback((message) => {
|
|
33
|
-
this._msalSubject.next(message);
|
|
34
|
-
const status = EventMessageUtils.getInteractionStatusFromEvent(message, this._inProgress.value);
|
|
35
|
-
if (status !== null) {
|
|
36
|
-
this.authService
|
|
37
|
-
.getLogger()
|
|
38
|
-
.verbose(`BroadcastService - ${message.eventType} results in setting inProgress from ${this._inProgress.value} to ${status}`);
|
|
39
|
-
this._inProgress.next(status);
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
MsalBroadcastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
45
|
-
MsalBroadcastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
47
|
-
type: Injectable
|
|
48
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
49
|
-
type: Inject,
|
|
50
|
-
args: [MSAL_INSTANCE]
|
|
51
|
-
}] }, { type: i1.MsalService }, { type: undefined, decorators: [{
|
|
52
|
-
type: Optional
|
|
53
|
-
}, {
|
|
54
|
-
type: Inject,
|
|
55
|
-
args: [MSAL_BROADCAST_CONFIG]
|
|
56
|
-
}] }]; } });
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
6
|
+
import { EventMessageUtils, InteractionStatus, } from '@azure/msal-browser';
|
|
7
|
+
import { BehaviorSubject, ReplaySubject, Subject } from 'rxjs';
|
|
8
|
+
import { MSAL_BROADCAST_CONFIG, MSAL_INSTANCE } from './constants';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "./msal.service";
|
|
11
|
+
export class MsalBroadcastService {
|
|
12
|
+
constructor(msalInstance, authService, msalBroadcastConfig) {
|
|
13
|
+
this.msalInstance = msalInstance;
|
|
14
|
+
this.authService = authService;
|
|
15
|
+
this.msalBroadcastConfig = msalBroadcastConfig;
|
|
16
|
+
// Make _msalSubject a ReplaySubject if configured to replay past events
|
|
17
|
+
if (this.msalBroadcastConfig &&
|
|
18
|
+
this.msalBroadcastConfig.eventsToReplay > 0) {
|
|
19
|
+
this.authService
|
|
20
|
+
.getLogger()
|
|
21
|
+
.verbose(`BroadcastService - eventsToReplay set on BroadcastConfig, replaying the last ${this.msalBroadcastConfig.eventsToReplay} events`);
|
|
22
|
+
this._msalSubject = new ReplaySubject(this.msalBroadcastConfig.eventsToReplay);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
// Defaults to _msalSubject being a Subject
|
|
26
|
+
this._msalSubject = new Subject();
|
|
27
|
+
}
|
|
28
|
+
this.msalSubject$ = this._msalSubject.asObservable();
|
|
29
|
+
// InProgress as BehaviorSubject so most recent inProgress state will be available upon subscription
|
|
30
|
+
this._inProgress = new BehaviorSubject(InteractionStatus.Startup);
|
|
31
|
+
this.inProgress$ = this._inProgress.asObservable();
|
|
32
|
+
this.msalInstance.addEventCallback((message) => {
|
|
33
|
+
this._msalSubject.next(message);
|
|
34
|
+
const status = EventMessageUtils.getInteractionStatusFromEvent(message, this._inProgress.value);
|
|
35
|
+
if (status !== null) {
|
|
36
|
+
this.authService
|
|
37
|
+
.getLogger()
|
|
38
|
+
.verbose(`BroadcastService - ${message.eventType} results in setting inProgress from ${this._inProgress.value} to ${status}`);
|
|
39
|
+
this._inProgress.next(status);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
MsalBroadcastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MsalBroadcastService, deps: [{ token: MSAL_INSTANCE }, { token: i1.MsalService }, { token: MSAL_BROADCAST_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
45
|
+
MsalBroadcastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MsalBroadcastService });
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MsalBroadcastService, decorators: [{
|
|
47
|
+
type: Injectable
|
|
48
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
49
|
+
type: Inject,
|
|
50
|
+
args: [MSAL_INSTANCE]
|
|
51
|
+
}] }, { type: i1.MsalService }, { type: undefined, decorators: [{
|
|
52
|
+
type: Optional
|
|
53
|
+
}, {
|
|
54
|
+
type: Inject,
|
|
55
|
+
args: [MSAL_BROADCAST_CONFIG]
|
|
56
|
+
}] }]; } });
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC5icm9hZGNhc3Quc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tc2FsLmJyb2FkY2FzdC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7R0FHRztBQUVILE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RCxPQUFPLEVBRUwsaUJBQWlCLEVBRWpCLGlCQUFpQixHQUNsQixNQUFNLHFCQUFxQixDQUFDO0FBQzdCLE9BQU8sR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VzdWx0cyBpbiBzZXR0aW5nIGluUHJvZ3Jlc3MgZnJvbSAke3RoaXMuX2luUHJvZ3Jlc3MudmFsdWV9IHRvICR7c3RhdHVzfWBcclxuICAgICAgICAgICk7XHJcbiAgICAgICAgdGhpcy5faW5Qcm9ncmVzcy5uZXh0KHN0YXR1cyk7XHJcbiAgICAgIH1cclxuICAgIH0pO1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNhbC5ndWFyZC5jb25maWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbXNhbC5ndWFyZC5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7OztHQUdHIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uIEFsbCByaWdodHMgcmVzZXJ2ZWQuXHJcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgTGljZW5zZS5cclxuICovXHJcblxyXG5pbXBvcnQgeyBSb3V0ZXJTdGF0ZVNuYXBzaG90IH0gZnJvbSAnQGFuZ3VsYXIvcm91dGVyJztcclxuaW1wb3J0IHtcclxuICBQb3B1cFJlcXVlc3QsXHJcbiAgUmVkaXJlY3RSZXF1ZXN0LFxyXG4gIEludGVyYWN0aW9uVHlwZSxcclxufSBmcm9tICdA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