@azure/msal-browser 2.22.0 → 2.22.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/README.md +1 -1
- package/dist/_virtual/_tslib.js +1 -1
- package/dist/app/ClientApplication.js +1 -1
- package/dist/app/IPublicClientApplication.js +1 -1
- package/dist/app/PublicClientApplication.js +1 -1
- package/dist/cache/AsyncMemoryStorage.js +1 -1
- package/dist/cache/BrowserCacheManager.js +1 -1
- package/dist/cache/BrowserStorage.js +1 -1
- package/dist/cache/DatabaseStorage.js +1 -1
- package/dist/cache/MemoryStorage.js +1 -1
- package/dist/cache/TokenCache.js +1 -1
- package/dist/config/Configuration.js +1 -1
- package/dist/crypto/BrowserCrypto.js +1 -1
- package/dist/crypto/CryptoOps.js +1 -1
- package/dist/crypto/GuidGenerator.js +1 -1
- package/dist/crypto/PkceGenerator.js +1 -1
- package/dist/crypto/SignedHttpRequest.js +1 -1
- package/dist/encode/Base64Decode.js +1 -1
- package/dist/encode/Base64Encode.js +1 -1
- package/dist/error/BrowserAuthError.js +1 -1
- package/dist/error/BrowserConfigurationAuthError.js +1 -1
- package/dist/event/EventHandler.js +1 -1
- package/dist/event/EventMessage.js +1 -1
- package/dist/event/EventType.js +1 -1
- package/dist/index.cjs.js +75 -65
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/interaction_client/BaseInteractionClient.js +11 -12
- package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
- package/dist/interaction_client/PopupClient.js +1 -1
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.js +13 -2
- package/dist/interaction_client/RedirectClient.js.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
- package/dist/interaction_client/SilentCacheClient.js +1 -1
- package/dist/interaction_client/SilentIframeClient.js +1 -1
- package/dist/interaction_client/SilentRefreshClient.js +1 -1
- package/dist/interaction_client/StandardInteractionClient.js +1 -1
- package/dist/interaction_handler/InteractionHandler.js +1 -1
- package/dist/interaction_handler/PopupHandler.js +1 -1
- package/dist/interaction_handler/RedirectHandler.js +1 -1
- package/dist/interaction_handler/SilentHandler.js +1 -1
- package/dist/navigation/NavigationClient.js +1 -1
- package/dist/network/FetchClient.js +1 -1
- package/dist/network/XhrClient.js +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.js +2 -2
- package/dist/packageMetadata.js.map +1 -1
- package/dist/utils/BrowserConstants.js +1 -1
- package/dist/utils/BrowserProtocolUtils.js +1 -1
- package/dist/utils/BrowserStringUtils.js +1 -1
- package/dist/utils/BrowserUtils.js +1 -1
- package/dist/utils/MathUtils.js +1 -1
- package/dist/utils/PopupUtils.js +1 -1
- package/lib/msal-browser.js +75 -65
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +24 -24
- package/package.json +1 -1
- package/CHANGELOG.json +0 -1758
- package/CHANGELOG.md +0 -553
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v2.22.
|
|
1
|
+
/*! @azure/msal-browser v2.22.1 2022-03-07 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -105,7 +105,7 @@ function __spread() {
|
|
|
105
105
|
return ar;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
108
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
109
109
|
/*! *****************************************************************************
|
|
110
110
|
Copyright (c) Microsoft Corporation.
|
|
111
111
|
|
|
@@ -192,7 +192,7 @@ function __spreadArrays() {
|
|
|
192
192
|
return r;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
195
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
196
196
|
|
|
197
197
|
/*
|
|
198
198
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -556,7 +556,7 @@ var CacheOutcome;
|
|
|
556
556
|
CacheOutcome["REFRESH_CACHED_ACCESS_TOKEN"] = "4";
|
|
557
557
|
})(CacheOutcome || (CacheOutcome = {}));
|
|
558
558
|
|
|
559
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
559
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
560
560
|
|
|
561
561
|
/*
|
|
562
562
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -600,7 +600,7 @@ var AuthError = /** @class */ (function (_super) {
|
|
|
600
600
|
return AuthError;
|
|
601
601
|
}(Error));
|
|
602
602
|
|
|
603
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
603
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
604
604
|
|
|
605
605
|
/*
|
|
606
606
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -675,7 +675,7 @@ var DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
675
675
|
}
|
|
676
676
|
};
|
|
677
677
|
|
|
678
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
678
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
679
679
|
|
|
680
680
|
/*
|
|
681
681
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1137,7 +1137,7 @@ var ClientAuthError = /** @class */ (function (_super) {
|
|
|
1137
1137
|
return ClientAuthError;
|
|
1138
1138
|
}(AuthError));
|
|
1139
1139
|
|
|
1140
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
1140
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
1141
1141
|
|
|
1142
1142
|
/*
|
|
1143
1143
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1262,7 +1262,7 @@ var StringUtils = /** @class */ (function () {
|
|
|
1262
1262
|
return StringUtils;
|
|
1263
1263
|
}());
|
|
1264
1264
|
|
|
1265
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
1265
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
1266
1266
|
|
|
1267
1267
|
/*
|
|
1268
1268
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1442,12 +1442,12 @@ var Logger = /** @class */ (function () {
|
|
|
1442
1442
|
return Logger;
|
|
1443
1443
|
}());
|
|
1444
1444
|
|
|
1445
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
1445
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
1446
1446
|
/* eslint-disable header/header */
|
|
1447
1447
|
var name$1 = "@azure/msal-common";
|
|
1448
1448
|
var version$1 = "6.1.0";
|
|
1449
1449
|
|
|
1450
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
1450
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
1451
1451
|
/*
|
|
1452
1452
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1453
1453
|
* Licensed under the MIT License.
|
|
@@ -1466,7 +1466,7 @@ exports.AzureCloudInstance = void 0;
|
|
|
1466
1466
|
AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
|
|
1467
1467
|
})(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
|
|
1468
1468
|
|
|
1469
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
1469
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
1470
1470
|
|
|
1471
1471
|
/*
|
|
1472
1472
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1625,7 +1625,7 @@ var CredentialEntity = /** @class */ (function () {
|
|
|
1625
1625
|
return CredentialEntity;
|
|
1626
1626
|
}());
|
|
1627
1627
|
|
|
1628
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
1628
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
1629
1629
|
|
|
1630
1630
|
/*
|
|
1631
1631
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1880,7 +1880,7 @@ var ClientConfigurationError = /** @class */ (function (_super) {
|
|
|
1880
1880
|
return ClientConfigurationError;
|
|
1881
1881
|
}(ClientAuthError));
|
|
1882
1882
|
|
|
1883
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
1883
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
1884
1884
|
|
|
1885
1885
|
/*
|
|
1886
1886
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2064,7 +2064,7 @@ var ScopeSet = /** @class */ (function () {
|
|
|
2064
2064
|
return ScopeSet;
|
|
2065
2065
|
}());
|
|
2066
2066
|
|
|
2067
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
2067
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
2068
2068
|
|
|
2069
2069
|
/*
|
|
2070
2070
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2102,7 +2102,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2102
2102
|
};
|
|
2103
2103
|
}
|
|
2104
2104
|
|
|
2105
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
2105
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
2106
2106
|
/*
|
|
2107
2107
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2108
2108
|
* Licensed under the MIT License.
|
|
@@ -2116,7 +2116,7 @@ var AuthorityType;
|
|
|
2116
2116
|
AuthorityType[AuthorityType["Adfs"] = 1] = "Adfs";
|
|
2117
2117
|
})(AuthorityType || (AuthorityType = {}));
|
|
2118
2118
|
|
|
2119
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
2119
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
2120
2120
|
|
|
2121
2121
|
/*
|
|
2122
2122
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2350,7 +2350,7 @@ var AccountEntity = /** @class */ (function () {
|
|
|
2350
2350
|
return AccountEntity;
|
|
2351
2351
|
}());
|
|
2352
2352
|
|
|
2353
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
2353
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
2354
2354
|
|
|
2355
2355
|
/*
|
|
2356
2356
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2388,7 +2388,7 @@ var AuthToken = /** @class */ (function () {
|
|
|
2388
2388
|
return AuthToken;
|
|
2389
2389
|
}());
|
|
2390
2390
|
|
|
2391
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
2391
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
2392
2392
|
|
|
2393
2393
|
/*
|
|
2394
2394
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3230,7 +3230,7 @@ var DefaultStorageClass = /** @class */ (function (_super) {
|
|
|
3230
3230
|
return DefaultStorageClass;
|
|
3231
3231
|
}(CacheManager));
|
|
3232
3232
|
|
|
3233
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
3233
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
3234
3234
|
|
|
3235
3235
|
/*
|
|
3236
3236
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3317,7 +3317,7 @@ function buildAuthOptions(authOptions) {
|
|
|
3317
3317
|
return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS }, authOptions);
|
|
3318
3318
|
}
|
|
3319
3319
|
|
|
3320
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
3320
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
3321
3321
|
|
|
3322
3322
|
/*
|
|
3323
3323
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3337,7 +3337,7 @@ var ServerError = /** @class */ (function (_super) {
|
|
|
3337
3337
|
return ServerError;
|
|
3338
3338
|
}(AuthError));
|
|
3339
3339
|
|
|
3340
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
3340
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
3341
3341
|
|
|
3342
3342
|
/*
|
|
3343
3343
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3433,7 +3433,7 @@ var ThrottlingUtils = /** @class */ (function () {
|
|
|
3433
3433
|
return ThrottlingUtils;
|
|
3434
3434
|
}());
|
|
3435
3435
|
|
|
3436
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
3436
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
3437
3437
|
|
|
3438
3438
|
/*
|
|
3439
3439
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3482,7 +3482,7 @@ var NetworkManager = /** @class */ (function () {
|
|
|
3482
3482
|
return NetworkManager;
|
|
3483
3483
|
}());
|
|
3484
3484
|
|
|
3485
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
3485
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
3486
3486
|
/*
|
|
3487
3487
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3488
3488
|
* Licensed under the MIT License.
|
|
@@ -3493,7 +3493,7 @@ var CcsCredentialType;
|
|
|
3493
3493
|
CcsCredentialType["UPN"] = "UPN";
|
|
3494
3494
|
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
3495
3495
|
|
|
3496
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
3496
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
3497
3497
|
|
|
3498
3498
|
/*
|
|
3499
3499
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3582,7 +3582,7 @@ var BaseClient = /** @class */ (function () {
|
|
|
3582
3582
|
return BaseClient;
|
|
3583
3583
|
}());
|
|
3584
3584
|
|
|
3585
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
3585
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
3586
3586
|
|
|
3587
3587
|
/*
|
|
3588
3588
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3668,7 +3668,7 @@ var RequestValidator = /** @class */ (function () {
|
|
|
3668
3668
|
return RequestValidator;
|
|
3669
3669
|
}());
|
|
3670
3670
|
|
|
3671
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
3671
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
3672
3672
|
|
|
3673
3673
|
/*
|
|
3674
3674
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4014,7 +4014,7 @@ var RequestParameterBuilder = /** @class */ (function () {
|
|
|
4014
4014
|
return RequestParameterBuilder;
|
|
4015
4015
|
}());
|
|
4016
4016
|
|
|
4017
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
4017
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
4018
4018
|
|
|
4019
4019
|
/*
|
|
4020
4020
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4079,7 +4079,7 @@ var IdTokenEntity = /** @class */ (function (_super) {
|
|
|
4079
4079
|
return IdTokenEntity;
|
|
4080
4080
|
}(CredentialEntity));
|
|
4081
4081
|
|
|
4082
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
4082
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
4083
4083
|
/*
|
|
4084
4084
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4085
4085
|
* Licensed under the MIT License.
|
|
@@ -4129,7 +4129,7 @@ var TimeUtils = /** @class */ (function () {
|
|
|
4129
4129
|
return TimeUtils;
|
|
4130
4130
|
}());
|
|
4131
4131
|
|
|
4132
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
4132
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
4133
4133
|
|
|
4134
4134
|
/*
|
|
4135
4135
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4243,7 +4243,7 @@ var AccessTokenEntity = /** @class */ (function (_super) {
|
|
|
4243
4243
|
return AccessTokenEntity;
|
|
4244
4244
|
}(CredentialEntity));
|
|
4245
4245
|
|
|
4246
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
4246
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
4247
4247
|
|
|
4248
4248
|
/*
|
|
4249
4249
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4310,7 +4310,7 @@ var RefreshTokenEntity = /** @class */ (function (_super) {
|
|
|
4310
4310
|
return RefreshTokenEntity;
|
|
4311
4311
|
}(CredentialEntity));
|
|
4312
4312
|
|
|
4313
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
4313
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
4314
4314
|
|
|
4315
4315
|
/*
|
|
4316
4316
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4374,7 +4374,7 @@ var InteractionRequiredAuthError = /** @class */ (function (_super) {
|
|
|
4374
4374
|
return InteractionRequiredAuthError;
|
|
4375
4375
|
}(AuthError));
|
|
4376
4376
|
|
|
4377
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
4377
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
4378
4378
|
/*
|
|
4379
4379
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4380
4380
|
* Licensed under the MIT License.
|
|
@@ -4390,7 +4390,7 @@ var CacheRecord = /** @class */ (function () {
|
|
|
4390
4390
|
return CacheRecord;
|
|
4391
4391
|
}());
|
|
4392
4392
|
|
|
4393
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
4393
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
4394
4394
|
|
|
4395
4395
|
/*
|
|
4396
4396
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4461,7 +4461,7 @@ var ProtocolUtils = /** @class */ (function () {
|
|
|
4461
4461
|
return ProtocolUtils;
|
|
4462
4462
|
}());
|
|
4463
4463
|
|
|
4464
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
4464
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
4465
4465
|
|
|
4466
4466
|
/*
|
|
4467
4467
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4662,7 +4662,7 @@ var UrlString = /** @class */ (function () {
|
|
|
4662
4662
|
return UrlString;
|
|
4663
4663
|
}());
|
|
4664
4664
|
|
|
4665
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
4665
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
4666
4666
|
|
|
4667
4667
|
/*
|
|
4668
4668
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4737,7 +4737,7 @@ var PopTokenGenerator = /** @class */ (function () {
|
|
|
4737
4737
|
return PopTokenGenerator;
|
|
4738
4738
|
}());
|
|
4739
4739
|
|
|
4740
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
4740
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
4741
4741
|
|
|
4742
4742
|
/*
|
|
4743
4743
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4807,7 +4807,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
4807
4807
|
return AppMetadataEntity;
|
|
4808
4808
|
}());
|
|
4809
4809
|
|
|
4810
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
4810
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
4811
4811
|
/*
|
|
4812
4812
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4813
4813
|
* Licensed under the MIT License.
|
|
@@ -4843,7 +4843,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
4843
4843
|
return TokenCacheContext;
|
|
4844
4844
|
}());
|
|
4845
4845
|
|
|
4846
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
4846
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
4847
4847
|
|
|
4848
4848
|
/*
|
|
4849
4849
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5108,7 +5108,7 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
5108
5108
|
return ResponseHandler;
|
|
5109
5109
|
}());
|
|
5110
5110
|
|
|
5111
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
5111
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
5112
5112
|
|
|
5113
5113
|
/*
|
|
5114
5114
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5519,7 +5519,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
|
|
|
5519
5519
|
return AuthorizationCodeClient;
|
|
5520
5520
|
}(BaseClient));
|
|
5521
5521
|
|
|
5522
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
5522
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
5523
5523
|
|
|
5524
5524
|
/*
|
|
5525
5525
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5730,7 +5730,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
|
|
|
5730
5730
|
return RefreshTokenClient;
|
|
5731
5731
|
}(BaseClient));
|
|
5732
5732
|
|
|
5733
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
5733
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
5734
5734
|
|
|
5735
5735
|
/*
|
|
5736
5736
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5846,7 +5846,7 @@ var SilentFlowClient = /** @class */ (function (_super) {
|
|
|
5846
5846
|
return SilentFlowClient;
|
|
5847
5847
|
}(BaseClient));
|
|
5848
5848
|
|
|
5849
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
5849
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
5850
5850
|
/*
|
|
5851
5851
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5852
5852
|
* Licensed under the MIT License.
|
|
@@ -5857,7 +5857,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
5857
5857
|
response.hasOwnProperty("issuer"));
|
|
5858
5858
|
}
|
|
5859
5859
|
|
|
5860
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
5860
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
5861
5861
|
/*
|
|
5862
5862
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5863
5863
|
* Licensed under the MIT License.
|
|
@@ -5871,7 +5871,7 @@ exports.ProtocolMode = void 0;
|
|
|
5871
5871
|
ProtocolMode["OIDC"] = "OIDC";
|
|
5872
5872
|
})(exports.ProtocolMode || (exports.ProtocolMode = {}));
|
|
5873
5873
|
|
|
5874
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
5874
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
5875
5875
|
|
|
5876
5876
|
/*
|
|
5877
5877
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5946,7 +5946,7 @@ var AuthorityMetadataEntity = /** @class */ (function () {
|
|
|
5946
5946
|
return AuthorityMetadataEntity;
|
|
5947
5947
|
}());
|
|
5948
5948
|
|
|
5949
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
5949
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
5950
5950
|
/*
|
|
5951
5951
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5952
5952
|
* Licensed under the MIT License.
|
|
@@ -5956,7 +5956,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
5956
5956
|
response.hasOwnProperty("metadata"));
|
|
5957
5957
|
}
|
|
5958
5958
|
|
|
5959
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
5959
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
5960
5960
|
|
|
5961
5961
|
/*
|
|
5962
5962
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6078,7 +6078,7 @@ var RegionDiscovery = /** @class */ (function () {
|
|
|
6078
6078
|
return RegionDiscovery;
|
|
6079
6079
|
}());
|
|
6080
6080
|
|
|
6081
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
6081
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
6082
6082
|
|
|
6083
6083
|
/*
|
|
6084
6084
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6668,7 +6668,7 @@ var Authority = /** @class */ (function () {
|
|
|
6668
6668
|
return Authority;
|
|
6669
6669
|
}());
|
|
6670
6670
|
|
|
6671
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
6671
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
6672
6672
|
|
|
6673
6673
|
/*
|
|
6674
6674
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6729,7 +6729,7 @@ var AuthorityFactory = /** @class */ (function () {
|
|
|
6729
6729
|
return AuthorityFactory;
|
|
6730
6730
|
}());
|
|
6731
6731
|
|
|
6732
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
6732
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
6733
6733
|
|
|
6734
6734
|
/*
|
|
6735
6735
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6760,7 +6760,7 @@ var ServerTelemetryEntity = /** @class */ (function () {
|
|
|
6760
6760
|
return ServerTelemetryEntity;
|
|
6761
6761
|
}());
|
|
6762
6762
|
|
|
6763
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
6763
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
6764
6764
|
|
|
6765
6765
|
/*
|
|
6766
6766
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6788,7 +6788,7 @@ var ThrottlingEntity = /** @class */ (function () {
|
|
|
6788
6788
|
return ThrottlingEntity;
|
|
6789
6789
|
}());
|
|
6790
6790
|
|
|
6791
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
6791
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
6792
6792
|
|
|
6793
6793
|
/*
|
|
6794
6794
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6805,7 +6805,7 @@ var StubbedNetworkModule = {
|
|
|
6805
6805
|
}
|
|
6806
6806
|
};
|
|
6807
6807
|
|
|
6808
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
6808
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
6809
6809
|
|
|
6810
6810
|
/*
|
|
6811
6811
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6864,7 +6864,7 @@ var AuthenticationHeaderParser = /** @class */ (function () {
|
|
|
6864
6864
|
return AuthenticationHeaderParser;
|
|
6865
6865
|
}());
|
|
6866
6866
|
|
|
6867
|
-
/*! @azure/msal-common v6.1.0 2022-
|
|
6867
|
+
/*! @azure/msal-common v6.1.0 2022-03-07 */
|
|
6868
6868
|
|
|
6869
6869
|
/*
|
|
6870
6870
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10488,7 +10488,7 @@ function buildConfiguration(_a, isBrowserEnvironment) {
|
|
|
10488
10488
|
|
|
10489
10489
|
/* eslint-disable header/header */
|
|
10490
10490
|
var name = "@azure/msal-browser";
|
|
10491
|
-
var version = "2.22.
|
|
10491
|
+
var version = "2.22.1";
|
|
10492
10492
|
|
|
10493
10493
|
/*
|
|
10494
10494
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10706,20 +10706,22 @@ var BaseInteractionClient = /** @class */ (function () {
|
|
|
10706
10706
|
*/
|
|
10707
10707
|
BaseInteractionClient.prototype.initializeBaseRequest = function (request) {
|
|
10708
10708
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
10709
|
-
var authority, scopes,
|
|
10709
|
+
var authority, scopes, validatedRequest, _a;
|
|
10710
10710
|
return __generator$1(this, function (_b) {
|
|
10711
10711
|
switch (_b.label) {
|
|
10712
10712
|
case 0:
|
|
10713
10713
|
this.logger.verbose("Initializing BaseAuthRequest");
|
|
10714
10714
|
authority = request.authority || this.config.auth.authority;
|
|
10715
10715
|
scopes = __spread(((request && request.scopes) || []));
|
|
10716
|
+
validatedRequest = __assign$1(__assign$1({}, request), { correlationId: this.correlationId, authority: authority,
|
|
10717
|
+
scopes: scopes });
|
|
10716
10718
|
// Set authenticationScheme to BEARER if not explicitly set in the request
|
|
10717
|
-
if (!
|
|
10718
|
-
|
|
10719
|
+
if (!validatedRequest.authenticationScheme) {
|
|
10720
|
+
validatedRequest.authenticationScheme = exports.AuthenticationScheme.BEARER;
|
|
10719
10721
|
this.logger.verbose("Authentication Scheme wasn't explicitly set in request, defaulting to \"Bearer\" request");
|
|
10720
10722
|
}
|
|
10721
10723
|
else {
|
|
10722
|
-
if (
|
|
10724
|
+
if (validatedRequest.authenticationScheme === exports.AuthenticationScheme.SSH) {
|
|
10723
10725
|
if (!request.sshJwk) {
|
|
10724
10726
|
throw ClientConfigurationError.createMissingSshJwkError();
|
|
10725
10727
|
}
|
|
@@ -10727,18 +10729,15 @@ var BaseInteractionClient = /** @class */ (function () {
|
|
|
10727
10729
|
throw ClientConfigurationError.createMissingSshKidError();
|
|
10728
10730
|
}
|
|
10729
10731
|
}
|
|
10730
|
-
this.logger.verbose("Authentication Scheme set to \"" +
|
|
10732
|
+
this.logger.verbose("Authentication Scheme set to \"" + validatedRequest.authenticationScheme + "\" as configured in Auth request");
|
|
10731
10733
|
}
|
|
10732
10734
|
if (!(request.claims && !StringUtils.isEmpty(request.claims))) return [3 /*break*/, 2];
|
|
10733
|
-
_a =
|
|
10735
|
+
_a = validatedRequest;
|
|
10734
10736
|
return [4 /*yield*/, this.browserCrypto.hashString(request.claims)];
|
|
10735
10737
|
case 1:
|
|
10736
10738
|
_a.requestedClaimsHash = _b.sent();
|
|
10737
10739
|
_b.label = 2;
|
|
10738
|
-
case 2:
|
|
10739
|
-
validatedRequest = __assign$1(__assign$1({}, request), { correlationId: this.correlationId, authority: authority,
|
|
10740
|
-
scopes: scopes });
|
|
10741
|
-
return [2 /*return*/, validatedRequest];
|
|
10740
|
+
case 2: return [2 /*return*/, validatedRequest];
|
|
10742
10741
|
}
|
|
10743
10742
|
});
|
|
10744
10743
|
});
|
|
@@ -11780,7 +11779,8 @@ var RedirectClient = /** @class */ (function (_super) {
|
|
|
11780
11779
|
*/
|
|
11781
11780
|
RedirectClient.prototype.acquireToken = function (request) {
|
|
11782
11781
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
11783
|
-
var validRequest, serverTelemetryManager, authCodeRequest, authClient, interactionHandler, navigateUrl, redirectStartPage, e_1;
|
|
11782
|
+
var validRequest, serverTelemetryManager, handleBackButton, authCodeRequest, authClient, interactionHandler, navigateUrl, redirectStartPage, e_1;
|
|
11783
|
+
var _this = this;
|
|
11784
11784
|
return __generator$1(this, function (_a) {
|
|
11785
11785
|
switch (_a.label) {
|
|
11786
11786
|
case 0: return [4 /*yield*/, this.initializeAuthorizationRequest(request, exports.InteractionType.Redirect)];
|
|
@@ -11788,6 +11788,13 @@ var RedirectClient = /** @class */ (function (_super) {
|
|
|
11788
11788
|
validRequest = _a.sent();
|
|
11789
11789
|
this.browserStorage.updateCacheEntries(validRequest.state, validRequest.nonce, validRequest.authority, validRequest.loginHint || "", validRequest.account || null);
|
|
11790
11790
|
serverTelemetryManager = this.initializeServerTelemetryManager(exports.ApiId.acquireTokenRedirect);
|
|
11791
|
+
handleBackButton = function (event) {
|
|
11792
|
+
// Clear temporary cache if the back button is clicked during the redirect flow.
|
|
11793
|
+
if (event.persisted) {
|
|
11794
|
+
_this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache.");
|
|
11795
|
+
_this.browserStorage.cleanRequestByState(validRequest.state);
|
|
11796
|
+
}
|
|
11797
|
+
};
|
|
11791
11798
|
_a.label = 2;
|
|
11792
11799
|
case 2:
|
|
11793
11800
|
_a.trys.push([2, 7, , 8]);
|
|
@@ -11804,6 +11811,8 @@ var RedirectClient = /** @class */ (function (_super) {
|
|
|
11804
11811
|
navigateUrl = _a.sent();
|
|
11805
11812
|
redirectStartPage = this.getRedirectStartPage(request.redirectStartPage);
|
|
11806
11813
|
this.logger.verbosePii("Redirect start page: " + redirectStartPage);
|
|
11814
|
+
// Clear temporary cache if the back button is clicked during the redirect flow.
|
|
11815
|
+
window.addEventListener("pageshow", handleBackButton);
|
|
11807
11816
|
return [4 /*yield*/, interactionHandler.initiateAuthRequest(navigateUrl, {
|
|
11808
11817
|
navigationClient: this.navigationClient,
|
|
11809
11818
|
redirectTimeout: this.config.system.redirectNavigationTimeout,
|
|
@@ -11818,6 +11827,7 @@ var RedirectClient = /** @class */ (function (_super) {
|
|
|
11818
11827
|
if (e_1 instanceof AuthError) {
|
|
11819
11828
|
e_1.setCorrelationId(this.correlationId);
|
|
11820
11829
|
}
|
|
11830
|
+
window.removeEventListener("pageshow", handleBackButton);
|
|
11821
11831
|
serverTelemetryManager.cacheFailedRequest(e_1);
|
|
11822
11832
|
this.browserStorage.cleanRequestByState(validRequest.state);
|
|
11823
11833
|
throw e_1;
|