@azure/msal-browser 2.35.0 → 2.37.0
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/LICENSE +21 -21
- package/README.md +213 -213
- package/dist/_virtual/_tslib.js +1 -1
- package/dist/app/ClientApplication.d.ts.map +1 -1
- package/dist/app/ClientApplication.js +2 -1
- package/dist/app/ClientApplication.js.map +1 -1
- package/dist/app/IPublicClientApplication.js +1 -1
- package/dist/app/IPublicClientApplication.js.map +1 -1
- package/dist/app/PublicClientApplication.js +1 -1
- package/dist/app/PublicClientApplication.js.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js.map +1 -1
- package/dist/cache/AsyncMemoryStorage.js +1 -1
- package/dist/cache/AsyncMemoryStorage.js.map +1 -1
- package/dist/cache/BrowserCacheManager.d.ts +3 -2
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.js +13 -9
- package/dist/cache/BrowserCacheManager.js.map +1 -1
- package/dist/cache/BrowserStorage.js +1 -1
- package/dist/cache/BrowserStorage.js.map +1 -1
- package/dist/cache/CryptoKeyStore.js +1 -1
- package/dist/cache/CryptoKeyStore.js.map +1 -1
- package/dist/cache/DatabaseStorage.js +1 -1
- package/dist/cache/DatabaseStorage.js.map +1 -1
- package/dist/cache/MemoryStorage.js +1 -1
- package/dist/cache/MemoryStorage.js.map +1 -1
- package/dist/cache/TokenCache.js +1 -1
- package/dist/cache/TokenCache.js.map +1 -1
- package/dist/config/Configuration.d.ts +5 -1
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.js +2 -1
- package/dist/config/Configuration.js.map +1 -1
- package/dist/crypto/BrowserCrypto.js +1 -1
- package/dist/crypto/BrowserCrypto.js.map +1 -1
- package/dist/crypto/CryptoOps.js +1 -1
- package/dist/crypto/CryptoOps.js.map +1 -1
- package/dist/crypto/GuidGenerator.js +1 -1
- package/dist/crypto/GuidGenerator.js.map +1 -1
- package/dist/crypto/ModernBrowserCrypto.js +1 -1
- package/dist/crypto/ModernBrowserCrypto.js.map +1 -1
- package/dist/crypto/MsBrowserCrypto.js +1 -1
- package/dist/crypto/MsBrowserCrypto.js.map +1 -1
- package/dist/crypto/MsrBrowserCrypto.js +1 -1
- package/dist/crypto/MsrBrowserCrypto.js.map +1 -1
- package/dist/crypto/PkceGenerator.js +1 -1
- package/dist/crypto/PkceGenerator.js.map +1 -1
- package/dist/crypto/SignedHttpRequest.js +1 -1
- package/dist/crypto/SignedHttpRequest.js.map +1 -1
- package/dist/encode/Base64Decode.js +1 -1
- package/dist/encode/Base64Decode.js.map +1 -1
- package/dist/encode/Base64Encode.js +1 -1
- package/dist/encode/Base64Encode.js.map +1 -1
- package/dist/error/BrowserAuthError.js +1 -1
- package/dist/error/BrowserAuthError.js.map +1 -1
- package/dist/error/BrowserConfigurationAuthError.js +1 -1
- package/dist/error/BrowserConfigurationAuthError.js.map +1 -1
- package/dist/error/NativeAuthError.js +1 -1
- package/dist/error/NativeAuthError.js.map +1 -1
- package/dist/event/EventHandler.js +1 -1
- package/dist/event/EventHandler.js.map +1 -1
- package/dist/event/EventMessage.js +1 -1
- package/dist/event/EventMessage.js.map +1 -1
- package/dist/event/EventType.js +1 -1
- package/dist/event/EventType.js.map +1 -1
- package/dist/index.cjs.js +116 -75
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/interaction_client/BaseInteractionClient.js +1 -1
- package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.js +1 -1
- package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
- package/dist/interaction_client/PopupClient.js +1 -1
- package/dist/interaction_client/PopupClient.js.map +1 -1
- package/dist/interaction_client/RedirectClient.js +1 -1
- package/dist/interaction_client/RedirectClient.js.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.js.map +1 -1
- package/dist/interaction_client/SilentCacheClient.js +1 -1
- package/dist/interaction_client/SilentCacheClient.js.map +1 -1
- package/dist/interaction_client/SilentIframeClient.js +1 -1
- package/dist/interaction_client/SilentIframeClient.js.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.js +1 -1
- package/dist/interaction_client/SilentRefreshClient.js.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.js +1 -1
- package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
- package/dist/interaction_handler/InteractionHandler.js +1 -1
- package/dist/interaction_handler/InteractionHandler.js.map +1 -1
- package/dist/interaction_handler/RedirectHandler.js +1 -1
- package/dist/interaction_handler/RedirectHandler.js.map +1 -1
- package/dist/interaction_handler/SilentHandler.js +1 -1
- package/dist/interaction_handler/SilentHandler.js.map +1 -1
- package/dist/internals.js +1 -1
- package/dist/internals.js.map +1 -1
- package/dist/navigation/NavigationClient.js +1 -1
- package/dist/navigation/NavigationClient.js.map +1 -1
- package/dist/network/FetchClient.js +1 -1
- package/dist/network/FetchClient.js.map +1 -1
- package/dist/network/XhrClient.js +1 -1
- package/dist/network/XhrClient.js.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.js +2 -2
- package/dist/packageMetadata.js.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.js +1 -1
- package/dist/telemetry/BrowserPerformanceClient.js.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.js.map +1 -1
- package/dist/utils/BrowserConstants.js +1 -1
- package/dist/utils/BrowserConstants.js.map +1 -1
- package/dist/utils/BrowserProtocolUtils.js +1 -1
- package/dist/utils/BrowserProtocolUtils.js.map +1 -1
- package/dist/utils/BrowserStringUtils.js +1 -1
- package/dist/utils/BrowserStringUtils.js.map +1 -1
- package/dist/utils/BrowserUtils.js +1 -1
- package/dist/utils/BrowserUtils.js.map +1 -1
- package/dist/utils/MathUtils.js +1 -1
- package/dist/utils/MathUtils.js.map +1 -1
- package/lib/msal-browser.js +116 -75
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +30 -30
- package/package.json +95 -95
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v2.
|
|
1
|
+
/*! @azure/msal-browser v2.37.0 2023-05-01 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -117,7 +117,7 @@ function __spread() {
|
|
|
117
117
|
return ar;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
/*! @azure/msal-common
|
|
120
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
121
121
|
/*! *****************************************************************************
|
|
122
122
|
Copyright (c) Microsoft Corporation.
|
|
123
123
|
|
|
@@ -204,7 +204,7 @@ function __spreadArrays() {
|
|
|
204
204
|
return r;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
/*! @azure/msal-common
|
|
207
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
208
208
|
|
|
209
209
|
/*
|
|
210
210
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -224,6 +224,9 @@ var Constants = {
|
|
|
224
224
|
DSTS: "dstsv2",
|
|
225
225
|
// Default AAD Instance Discovery Endpoint
|
|
226
226
|
AAD_INSTANCE_DISCOVERY_ENDPT: "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",
|
|
227
|
+
// CIAM URL
|
|
228
|
+
CIAM_AUTH_URL: ".ciamlogin.com",
|
|
229
|
+
AAD_TENANT_DOMAIN_SUFFIX: ".onmicrosoft.com",
|
|
227
230
|
// Resource delimiter - used for certain cache entries
|
|
228
231
|
RESOURCE_DELIM: "|",
|
|
229
232
|
// Placeholder for non-existent account ids/objects
|
|
@@ -573,7 +576,7 @@ var JsonTypes;
|
|
|
573
576
|
JsonTypes["Pop"] = "pop";
|
|
574
577
|
})(JsonTypes || (JsonTypes = {}));
|
|
575
578
|
|
|
576
|
-
/*! @azure/msal-common
|
|
579
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
577
580
|
|
|
578
581
|
/*
|
|
579
582
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -629,7 +632,7 @@ var AuthError = /** @class */ (function (_super) {
|
|
|
629
632
|
return AuthError;
|
|
630
633
|
}(Error));
|
|
631
634
|
|
|
632
|
-
/*! @azure/msal-common
|
|
635
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
633
636
|
|
|
634
637
|
/*
|
|
635
638
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -704,7 +707,7 @@ var DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
704
707
|
}
|
|
705
708
|
};
|
|
706
709
|
|
|
707
|
-
/*! @azure/msal-common
|
|
710
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
708
711
|
|
|
709
712
|
/*
|
|
710
713
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1219,7 +1222,7 @@ var ClientAuthError = /** @class */ (function (_super) {
|
|
|
1219
1222
|
return ClientAuthError;
|
|
1220
1223
|
}(AuthError));
|
|
1221
1224
|
|
|
1222
|
-
/*! @azure/msal-common
|
|
1225
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
1223
1226
|
|
|
1224
1227
|
/*
|
|
1225
1228
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1344,7 +1347,7 @@ var StringUtils = /** @class */ (function () {
|
|
|
1344
1347
|
return StringUtils;
|
|
1345
1348
|
}());
|
|
1346
1349
|
|
|
1347
|
-
/*! @azure/msal-common
|
|
1350
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
1348
1351
|
|
|
1349
1352
|
/*
|
|
1350
1353
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1534,12 +1537,12 @@ var Logger = /** @class */ (function () {
|
|
|
1534
1537
|
return Logger;
|
|
1535
1538
|
}());
|
|
1536
1539
|
|
|
1537
|
-
/*! @azure/msal-common
|
|
1540
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
1538
1541
|
/* eslint-disable header/header */
|
|
1539
1542
|
var name$1 = "@azure/msal-common";
|
|
1540
|
-
var version$1 = "
|
|
1543
|
+
var version$1 = "13.0.0";
|
|
1541
1544
|
|
|
1542
|
-
/*! @azure/msal-common
|
|
1545
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
1543
1546
|
/*
|
|
1544
1547
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1545
1548
|
* Licensed under the MIT License.
|
|
@@ -1560,7 +1563,7 @@ exports.AzureCloudInstance = void 0;
|
|
|
1560
1563
|
AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
|
|
1561
1564
|
})(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
|
|
1562
1565
|
|
|
1563
|
-
/*! @azure/msal-common
|
|
1566
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
1564
1567
|
|
|
1565
1568
|
/*
|
|
1566
1569
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1815,7 +1818,7 @@ var ClientConfigurationError = /** @class */ (function (_super) {
|
|
|
1815
1818
|
return ClientConfigurationError;
|
|
1816
1819
|
}(ClientAuthError));
|
|
1817
1820
|
|
|
1818
|
-
/*! @azure/msal-common
|
|
1821
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
1819
1822
|
|
|
1820
1823
|
/*
|
|
1821
1824
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2014,7 +2017,7 @@ var ScopeSet = /** @class */ (function () {
|
|
|
2014
2017
|
return ScopeSet;
|
|
2015
2018
|
}());
|
|
2016
2019
|
|
|
2017
|
-
/*! @azure/msal-common
|
|
2020
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
2018
2021
|
|
|
2019
2022
|
/*
|
|
2020
2023
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2052,7 +2055,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2052
2055
|
};
|
|
2053
2056
|
}
|
|
2054
2057
|
|
|
2055
|
-
/*! @azure/msal-common
|
|
2058
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
2056
2059
|
/*
|
|
2057
2060
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2058
2061
|
* Licensed under the MIT License.
|
|
@@ -2065,9 +2068,10 @@ var AuthorityType;
|
|
|
2065
2068
|
AuthorityType[AuthorityType["Default"] = 0] = "Default";
|
|
2066
2069
|
AuthorityType[AuthorityType["Adfs"] = 1] = "Adfs";
|
|
2067
2070
|
AuthorityType[AuthorityType["Dsts"] = 2] = "Dsts";
|
|
2071
|
+
AuthorityType[AuthorityType["Ciam"] = 3] = "Ciam";
|
|
2068
2072
|
})(AuthorityType || (AuthorityType = {}));
|
|
2069
2073
|
|
|
2070
|
-
/*! @azure/msal-common
|
|
2074
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
2071
2075
|
|
|
2072
2076
|
/*
|
|
2073
2077
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2306,7 +2310,7 @@ var AccountEntity = /** @class */ (function () {
|
|
|
2306
2310
|
return AccountEntity;
|
|
2307
2311
|
}());
|
|
2308
2312
|
|
|
2309
|
-
/*! @azure/msal-common
|
|
2313
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
2310
2314
|
|
|
2311
2315
|
/*
|
|
2312
2316
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2358,7 +2362,7 @@ var AuthToken = /** @class */ (function () {
|
|
|
2358
2362
|
return AuthToken;
|
|
2359
2363
|
}());
|
|
2360
2364
|
|
|
2361
|
-
/*! @azure/msal-common
|
|
2365
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
2362
2366
|
|
|
2363
2367
|
/*
|
|
2364
2368
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3406,7 +3410,7 @@ var DefaultStorageClass = /** @class */ (function (_super) {
|
|
|
3406
3410
|
return DefaultStorageClass;
|
|
3407
3411
|
}(CacheManager));
|
|
3408
3412
|
|
|
3409
|
-
/*! @azure/msal-common
|
|
3413
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
3410
3414
|
|
|
3411
3415
|
/*
|
|
3412
3416
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3499,7 +3503,7 @@ function buildAuthOptions(authOptions) {
|
|
|
3499
3503
|
return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
|
|
3500
3504
|
}
|
|
3501
3505
|
|
|
3502
|
-
/*! @azure/msal-common
|
|
3506
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
3503
3507
|
|
|
3504
3508
|
/*
|
|
3505
3509
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3519,7 +3523,7 @@ var ServerError = /** @class */ (function (_super) {
|
|
|
3519
3523
|
return ServerError;
|
|
3520
3524
|
}(AuthError));
|
|
3521
3525
|
|
|
3522
|
-
/*! @azure/msal-common
|
|
3526
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
3523
3527
|
|
|
3524
3528
|
/*
|
|
3525
3529
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3615,7 +3619,7 @@ var ThrottlingUtils = /** @class */ (function () {
|
|
|
3615
3619
|
return ThrottlingUtils;
|
|
3616
3620
|
}());
|
|
3617
3621
|
|
|
3618
|
-
/*! @azure/msal-common
|
|
3622
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
3619
3623
|
|
|
3620
3624
|
/*
|
|
3621
3625
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3664,7 +3668,7 @@ var NetworkManager = /** @class */ (function () {
|
|
|
3664
3668
|
return NetworkManager;
|
|
3665
3669
|
}());
|
|
3666
3670
|
|
|
3667
|
-
/*! @azure/msal-common
|
|
3671
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
3668
3672
|
/*
|
|
3669
3673
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3670
3674
|
* Licensed under the MIT License.
|
|
@@ -3675,7 +3679,7 @@ var CcsCredentialType;
|
|
|
3675
3679
|
CcsCredentialType["UPN"] = "UPN";
|
|
3676
3680
|
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
3677
3681
|
|
|
3678
|
-
/*! @azure/msal-common
|
|
3682
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
3679
3683
|
|
|
3680
3684
|
/*
|
|
3681
3685
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3766,7 +3770,7 @@ var RequestValidator = /** @class */ (function () {
|
|
|
3766
3770
|
return RequestValidator;
|
|
3767
3771
|
}());
|
|
3768
3772
|
|
|
3769
|
-
/*! @azure/msal-common
|
|
3773
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
3770
3774
|
|
|
3771
3775
|
/*
|
|
3772
3776
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4144,7 +4148,7 @@ var RequestParameterBuilder = /** @class */ (function () {
|
|
|
4144
4148
|
return RequestParameterBuilder;
|
|
4145
4149
|
}());
|
|
4146
4150
|
|
|
4147
|
-
/*! @azure/msal-common
|
|
4151
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
4148
4152
|
|
|
4149
4153
|
/*
|
|
4150
4154
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4246,7 +4250,7 @@ var BaseClient = /** @class */ (function () {
|
|
|
4246
4250
|
return BaseClient;
|
|
4247
4251
|
}());
|
|
4248
4252
|
|
|
4249
|
-
/*! @azure/msal-common
|
|
4253
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
4250
4254
|
|
|
4251
4255
|
/*
|
|
4252
4256
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4384,7 +4388,7 @@ var CredentialEntity = /** @class */ (function () {
|
|
|
4384
4388
|
return CredentialEntity;
|
|
4385
4389
|
}());
|
|
4386
4390
|
|
|
4387
|
-
/*! @azure/msal-common
|
|
4391
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
4388
4392
|
|
|
4389
4393
|
/*
|
|
4390
4394
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4448,7 +4452,7 @@ var IdTokenEntity = /** @class */ (function (_super) {
|
|
|
4448
4452
|
return IdTokenEntity;
|
|
4449
4453
|
}(CredentialEntity));
|
|
4450
4454
|
|
|
4451
|
-
/*! @azure/msal-common
|
|
4455
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
4452
4456
|
/*
|
|
4453
4457
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4454
4458
|
* Licensed under the MIT License.
|
|
@@ -4498,7 +4502,7 @@ var TimeUtils = /** @class */ (function () {
|
|
|
4498
4502
|
return TimeUtils;
|
|
4499
4503
|
}());
|
|
4500
4504
|
|
|
4501
|
-
/*! @azure/msal-common
|
|
4505
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
4502
4506
|
|
|
4503
4507
|
/*
|
|
4504
4508
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4612,7 +4616,7 @@ var AccessTokenEntity = /** @class */ (function (_super) {
|
|
|
4612
4616
|
return AccessTokenEntity;
|
|
4613
4617
|
}(CredentialEntity));
|
|
4614
4618
|
|
|
4615
|
-
/*! @azure/msal-common
|
|
4619
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
4616
4620
|
|
|
4617
4621
|
/*
|
|
4618
4622
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4679,7 +4683,7 @@ var RefreshTokenEntity = /** @class */ (function (_super) {
|
|
|
4679
4683
|
return RefreshTokenEntity;
|
|
4680
4684
|
}(CredentialEntity));
|
|
4681
4685
|
|
|
4682
|
-
/*! @azure/msal-common
|
|
4686
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
4683
4687
|
|
|
4684
4688
|
/*
|
|
4685
4689
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4758,7 +4762,7 @@ var InteractionRequiredAuthError = /** @class */ (function (_super) {
|
|
|
4758
4762
|
return InteractionRequiredAuthError;
|
|
4759
4763
|
}(AuthError));
|
|
4760
4764
|
|
|
4761
|
-
/*! @azure/msal-common
|
|
4765
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
4762
4766
|
/*
|
|
4763
4767
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4764
4768
|
* Licensed under the MIT License.
|
|
@@ -4774,7 +4778,7 @@ var CacheRecord = /** @class */ (function () {
|
|
|
4774
4778
|
return CacheRecord;
|
|
4775
4779
|
}());
|
|
4776
4780
|
|
|
4777
|
-
/*! @azure/msal-common
|
|
4781
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
4778
4782
|
|
|
4779
4783
|
/*
|
|
4780
4784
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4845,7 +4849,7 @@ var ProtocolUtils = /** @class */ (function () {
|
|
|
4845
4849
|
return ProtocolUtils;
|
|
4846
4850
|
}());
|
|
4847
4851
|
|
|
4848
|
-
/*! @azure/msal-common
|
|
4852
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
4849
4853
|
|
|
4850
4854
|
/*
|
|
4851
4855
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5079,7 +5083,7 @@ var UrlString = /** @class */ (function () {
|
|
|
5079
5083
|
return UrlString;
|
|
5080
5084
|
}());
|
|
5081
5085
|
|
|
5082
|
-
/*! @azure/msal-common
|
|
5086
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
5083
5087
|
/*
|
|
5084
5088
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5085
5089
|
* Licensed under the MIT License.
|
|
@@ -5308,7 +5312,7 @@ var IntFields = new Set([
|
|
|
5308
5312
|
"status",
|
|
5309
5313
|
]);
|
|
5310
5314
|
|
|
5311
|
-
/*! @azure/msal-common
|
|
5315
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
5312
5316
|
|
|
5313
5317
|
/*
|
|
5314
5318
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5417,7 +5421,7 @@ var PopTokenGenerator = /** @class */ (function () {
|
|
|
5417
5421
|
return PopTokenGenerator;
|
|
5418
5422
|
}());
|
|
5419
5423
|
|
|
5420
|
-
/*! @azure/msal-common
|
|
5424
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
5421
5425
|
|
|
5422
5426
|
/*
|
|
5423
5427
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5487,7 +5491,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
5487
5491
|
return AppMetadataEntity;
|
|
5488
5492
|
}());
|
|
5489
5493
|
|
|
5490
|
-
/*! @azure/msal-common
|
|
5494
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
5491
5495
|
/*
|
|
5492
5496
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5493
5497
|
* Licensed under the MIT License.
|
|
@@ -5523,7 +5527,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
5523
5527
|
return TokenCacheContext;
|
|
5524
5528
|
}());
|
|
5525
5529
|
|
|
5526
|
-
/*! @azure/msal-common
|
|
5530
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
5527
5531
|
|
|
5528
5532
|
/*
|
|
5529
5533
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5810,7 +5814,7 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
5810
5814
|
return ResponseHandler;
|
|
5811
5815
|
}());
|
|
5812
5816
|
|
|
5813
|
-
/*! @azure/msal-common
|
|
5817
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
5814
5818
|
|
|
5815
5819
|
/*
|
|
5816
5820
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6288,7 +6292,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
|
|
|
6288
6292
|
return AuthorizationCodeClient;
|
|
6289
6293
|
}(BaseClient));
|
|
6290
6294
|
|
|
6291
|
-
/*! @azure/msal-common
|
|
6295
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
6292
6296
|
|
|
6293
6297
|
/*
|
|
6294
6298
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6562,7 +6566,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
|
|
|
6562
6566
|
return RefreshTokenClient;
|
|
6563
6567
|
}(BaseClient));
|
|
6564
6568
|
|
|
6565
|
-
/*! @azure/msal-common
|
|
6569
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
6566
6570
|
|
|
6567
6571
|
/*
|
|
6568
6572
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6686,7 +6690,7 @@ var SilentFlowClient = /** @class */ (function (_super) {
|
|
|
6686
6690
|
return SilentFlowClient;
|
|
6687
6691
|
}(BaseClient));
|
|
6688
6692
|
|
|
6689
|
-
/*! @azure/msal-common
|
|
6693
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
6690
6694
|
/*
|
|
6691
6695
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6692
6696
|
* Licensed under the MIT License.
|
|
@@ -6698,7 +6702,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
6698
6702
|
response.hasOwnProperty("jwks_uri"));
|
|
6699
6703
|
}
|
|
6700
6704
|
|
|
6701
|
-
/*! @azure/msal-common
|
|
6705
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
6702
6706
|
/*
|
|
6703
6707
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6704
6708
|
* Licensed under the MIT License.
|
|
@@ -6707,7 +6711,7 @@ var rawMetdataJSON = { "endpointMetadata": { "https://login.microsoftonline.com/
|
|
|
6707
6711
|
var EndpointMetadata = rawMetdataJSON.endpointMetadata;
|
|
6708
6712
|
var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
|
|
6709
6713
|
|
|
6710
|
-
/*! @azure/msal-common
|
|
6714
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
6711
6715
|
/*
|
|
6712
6716
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6713
6717
|
* Licensed under the MIT License.
|
|
@@ -6721,7 +6725,7 @@ exports.ProtocolMode = void 0;
|
|
|
6721
6725
|
ProtocolMode["OIDC"] = "OIDC";
|
|
6722
6726
|
})(exports.ProtocolMode || (exports.ProtocolMode = {}));
|
|
6723
6727
|
|
|
6724
|
-
/*! @azure/msal-common
|
|
6728
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
6725
6729
|
|
|
6726
6730
|
/*
|
|
6727
6731
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6798,7 +6802,7 @@ var AuthorityMetadataEntity = /** @class */ (function () {
|
|
|
6798
6802
|
return AuthorityMetadataEntity;
|
|
6799
6803
|
}());
|
|
6800
6804
|
|
|
6801
|
-
/*! @azure/msal-common
|
|
6805
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
6802
6806
|
/*
|
|
6803
6807
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6804
6808
|
* Licensed under the MIT License.
|
|
@@ -6808,7 +6812,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
6808
6812
|
response.hasOwnProperty("metadata"));
|
|
6809
6813
|
}
|
|
6810
6814
|
|
|
6811
|
-
/*! @azure/msal-common
|
|
6815
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
6812
6816
|
/*
|
|
6813
6817
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6814
6818
|
* Licensed under the MIT License.
|
|
@@ -6818,7 +6822,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
6818
6822
|
response.hasOwnProperty("error_description"));
|
|
6819
6823
|
}
|
|
6820
6824
|
|
|
6821
|
-
/*! @azure/msal-common
|
|
6825
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
6822
6826
|
|
|
6823
6827
|
/*
|
|
6824
6828
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6950,7 +6954,7 @@ var RegionDiscovery = /** @class */ (function () {
|
|
|
6950
6954
|
return RegionDiscovery;
|
|
6951
6955
|
}());
|
|
6952
6956
|
|
|
6953
|
-
/*! @azure/msal-common
|
|
6957
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
6954
6958
|
|
|
6955
6959
|
/*
|
|
6956
6960
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6976,6 +6980,10 @@ var Authority = /** @class */ (function () {
|
|
|
6976
6980
|
Object.defineProperty(Authority.prototype, "authorityType", {
|
|
6977
6981
|
// See above for AuthorityType
|
|
6978
6982
|
get: function () {
|
|
6983
|
+
// CIAM auth url pattern is being standardized as: <tenant>.ciamlogin.com
|
|
6984
|
+
if (this.canonicalAuthorityUrlComponents.HostNameAndPort.endsWith(Constants.CIAM_AUTH_URL)) {
|
|
6985
|
+
return AuthorityType.Ciam;
|
|
6986
|
+
}
|
|
6979
6987
|
var pathSegments = this.canonicalAuthorityUrlComponents.PathSegments;
|
|
6980
6988
|
if (pathSegments.length) {
|
|
6981
6989
|
switch (pathSegments[0].toLowerCase()) {
|
|
@@ -7263,7 +7271,6 @@ var Authority = /** @class */ (function () {
|
|
|
7263
7271
|
// No need to update
|
|
7264
7272
|
return [2 /*return*/, AuthorityMetadataSource.CACHE];
|
|
7265
7273
|
}
|
|
7266
|
-
harcodedMetadata = this.getEndpointMetadataFromHardcodedValues();
|
|
7267
7274
|
(_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(exports.PerformanceEvents.AuthorityGetEndpointMetadataFromNetwork, this.correlationId);
|
|
7268
7275
|
return [4 /*yield*/, this.getEndpointMetadataFromNetwork()];
|
|
7269
7276
|
case 1:
|
|
@@ -7279,6 +7286,7 @@ var Authority = /** @class */ (function () {
|
|
|
7279
7286
|
metadataEntity.updateEndpointMetadata(metadata, true);
|
|
7280
7287
|
return [2 /*return*/, AuthorityMetadataSource.NETWORK];
|
|
7281
7288
|
case 4:
|
|
7289
|
+
harcodedMetadata = this.getEndpointMetadataFromHardcodedValues();
|
|
7282
7290
|
if (!(harcodedMetadata && !this.authorityOptions.skipAuthorityMetadataCache)) return [3 /*break*/, 7];
|
|
7283
7291
|
if (!((_e = this.authorityOptions.azureRegionConfiguration) === null || _e === void 0 ? void 0 : _e.azureRegion)) return [3 /*break*/, 6];
|
|
7284
7292
|
(_f = this.performanceClient) === null || _f === void 0 ? void 0 : _f.setPreQueueTime(exports.PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);
|
|
@@ -7403,8 +7411,8 @@ var Authority = /** @class */ (function () {
|
|
|
7403
7411
|
/**
|
|
7404
7412
|
* Updates the AuthorityMetadataEntity with new aliases, preferred_network and preferred_cache
|
|
7405
7413
|
* and returns where the information was retrieved from
|
|
7406
|
-
* @param
|
|
7407
|
-
* @
|
|
7414
|
+
* @param metadataEntity
|
|
7415
|
+
* @returns AuthorityMetadataSource
|
|
7408
7416
|
*/
|
|
7409
7417
|
Authority.prototype.updateCloudDiscoveryMetadata = function (metadataEntity) {
|
|
7410
7418
|
var _a, _b;
|
|
@@ -7414,6 +7422,7 @@ var Authority = /** @class */ (function () {
|
|
|
7414
7422
|
switch (_c.label) {
|
|
7415
7423
|
case 0:
|
|
7416
7424
|
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(exports.PerformanceEvents.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId);
|
|
7425
|
+
// attempt to read metadata from the config
|
|
7417
7426
|
this.logger.verbose("Attempting to get cloud discovery metadata in the config");
|
|
7418
7427
|
this.logger.verbosePii("Known Authorities: " + (this.authorityOptions.knownAuthorities || Constants.NOT_APPLICABLE));
|
|
7419
7428
|
this.logger.verbosePii("Authority Metadata: " + (this.authorityOptions.authorityMetadata || Constants.NOT_APPLICABLE));
|
|
@@ -7463,6 +7472,11 @@ var Authority = /** @class */ (function () {
|
|
|
7463
7472
|
* Parse cloudDiscoveryMetadata config or check knownAuthorities
|
|
7464
7473
|
*/
|
|
7465
7474
|
Authority.prototype.getCloudDiscoveryMetadataFromConfig = function () {
|
|
7475
|
+
// CIAM does not support cloud discovery metadata
|
|
7476
|
+
if (this.authorityType === AuthorityType.Ciam) {
|
|
7477
|
+
this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host.");
|
|
7478
|
+
return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
|
|
7479
|
+
}
|
|
7466
7480
|
// Check if network response was provided in config
|
|
7467
7481
|
if (this.authorityOptions.cloudDiscoveryMetadata) {
|
|
7468
7482
|
this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");
|
|
@@ -7682,10 +7696,30 @@ var Authority = /** @class */ (function () {
|
|
|
7682
7696
|
}
|
|
7683
7697
|
return metadata;
|
|
7684
7698
|
};
|
|
7699
|
+
/**
|
|
7700
|
+
* Transform CIAM_AUTHORIY as per the below rules:
|
|
7701
|
+
* If no path segments found and it is a CIAM authority (hostname ends with .ciamlogin.com), then transform it
|
|
7702
|
+
*
|
|
7703
|
+
* NOTE: The transformation path should go away once STS supports CIAM with the format: `tenantIdorDomain.ciamlogin.com`
|
|
7704
|
+
* `ciamlogin.com` can also change in the future and we should accommodate the same
|
|
7705
|
+
*
|
|
7706
|
+
* @param authority
|
|
7707
|
+
*/
|
|
7708
|
+
Authority.transformCIAMAuthority = function (authority) {
|
|
7709
|
+
var ciamAuthority = authority.endsWith(Constants.FORWARD_SLASH) ? authority : "" + authority + Constants.FORWARD_SLASH;
|
|
7710
|
+
var authorityUrl = new UrlString(authority);
|
|
7711
|
+
var authorityUrlComponents = authorityUrl.getUrlComponents();
|
|
7712
|
+
// check if transformation is needed
|
|
7713
|
+
if (authorityUrlComponents.PathSegments.length === 0 && (authorityUrlComponents.HostNameAndPort.endsWith(Constants.CIAM_AUTH_URL))) {
|
|
7714
|
+
var tenantIdOrDomain = authorityUrlComponents.HostNameAndPort.split(".")[0];
|
|
7715
|
+
ciamAuthority = "" + ciamAuthority + tenantIdOrDomain + Constants.AAD_TENANT_DOMAIN_SUFFIX;
|
|
7716
|
+
}
|
|
7717
|
+
return ciamAuthority;
|
|
7718
|
+
};
|
|
7685
7719
|
return Authority;
|
|
7686
7720
|
}());
|
|
7687
7721
|
|
|
7688
|
-
/*! @azure/msal-common
|
|
7722
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
7689
7723
|
|
|
7690
7724
|
/*
|
|
7691
7725
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7706,12 +7740,13 @@ var AuthorityFactory = /** @class */ (function () {
|
|
|
7706
7740
|
*/
|
|
7707
7741
|
AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, logger, performanceClient, correlationId) {
|
|
7708
7742
|
return __awaiter(this, void 0, void 0, function () {
|
|
7709
|
-
var acquireTokenAuthority, e_1;
|
|
7743
|
+
var authorityUriFinal, acquireTokenAuthority, e_1;
|
|
7710
7744
|
return __generator(this, function (_a) {
|
|
7711
7745
|
switch (_a.label) {
|
|
7712
7746
|
case 0:
|
|
7713
7747
|
performanceClient === null || performanceClient === void 0 ? void 0 : performanceClient.addQueueMeasurement(exports.PerformanceEvents.AuthorityFactoryCreateDiscoveredInstance, correlationId);
|
|
7714
|
-
|
|
7748
|
+
authorityUriFinal = Authority.transformCIAMAuthority(authorityUri);
|
|
7749
|
+
acquireTokenAuthority = AuthorityFactory.createInstance(authorityUriFinal, networkClient, cacheManager, authorityOptions, logger, performanceClient, correlationId);
|
|
7715
7750
|
_a.label = 1;
|
|
7716
7751
|
case 1:
|
|
7717
7752
|
_a.trys.push([1, 3, , 4]);
|
|
@@ -7748,7 +7783,7 @@ var AuthorityFactory = /** @class */ (function () {
|
|
|
7748
7783
|
return AuthorityFactory;
|
|
7749
7784
|
}());
|
|
7750
7785
|
|
|
7751
|
-
/*! @azure/msal-common
|
|
7786
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
7752
7787
|
|
|
7753
7788
|
/*
|
|
7754
7789
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7779,7 +7814,7 @@ var ServerTelemetryEntity = /** @class */ (function () {
|
|
|
7779
7814
|
return ServerTelemetryEntity;
|
|
7780
7815
|
}());
|
|
7781
7816
|
|
|
7782
|
-
/*! @azure/msal-common
|
|
7817
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
7783
7818
|
|
|
7784
7819
|
/*
|
|
7785
7820
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7807,7 +7842,7 @@ var ThrottlingEntity = /** @class */ (function () {
|
|
|
7807
7842
|
return ThrottlingEntity;
|
|
7808
7843
|
}());
|
|
7809
7844
|
|
|
7810
|
-
/*! @azure/msal-common
|
|
7845
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
7811
7846
|
|
|
7812
7847
|
/*
|
|
7813
7848
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7824,7 +7859,7 @@ var StubbedNetworkModule = {
|
|
|
7824
7859
|
}
|
|
7825
7860
|
};
|
|
7826
7861
|
|
|
7827
|
-
/*! @azure/msal-common
|
|
7862
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
7828
7863
|
|
|
7829
7864
|
/*
|
|
7830
7865
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7869,7 +7904,7 @@ var JoseHeaderError = /** @class */ (function (_super) {
|
|
|
7869
7904
|
return JoseHeaderError;
|
|
7870
7905
|
}(AuthError));
|
|
7871
7906
|
|
|
7872
|
-
/*! @azure/msal-common
|
|
7907
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
7873
7908
|
|
|
7874
7909
|
/*
|
|
7875
7910
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7909,7 +7944,7 @@ var JoseHeader = /** @class */ (function () {
|
|
|
7909
7944
|
return JoseHeader;
|
|
7910
7945
|
}());
|
|
7911
7946
|
|
|
7912
|
-
/*! @azure/msal-common
|
|
7947
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
7913
7948
|
|
|
7914
7949
|
/*
|
|
7915
7950
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7968,7 +8003,7 @@ var AuthenticationHeaderParser = /** @class */ (function () {
|
|
|
7968
8003
|
return AuthenticationHeaderParser;
|
|
7969
8004
|
}());
|
|
7970
8005
|
|
|
7971
|
-
/*! @azure/msal-common
|
|
8006
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
7972
8007
|
|
|
7973
8008
|
/*
|
|
7974
8009
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8130,7 +8165,7 @@ var ServerTelemetryManager = /** @class */ (function () {
|
|
|
8130
8165
|
return ServerTelemetryManager;
|
|
8131
8166
|
}());
|
|
8132
8167
|
|
|
8133
|
-
/*! @azure/msal-common
|
|
8168
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
8134
8169
|
|
|
8135
8170
|
/*
|
|
8136
8171
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8533,7 +8568,7 @@ var PerformanceClient = /** @class */ (function () {
|
|
|
8533
8568
|
return PerformanceClient;
|
|
8534
8569
|
}());
|
|
8535
8570
|
|
|
8536
|
-
/*! @azure/msal-common
|
|
8571
|
+
/*! @azure/msal-common v13.0.0 2023-05-01 */
|
|
8537
8572
|
|
|
8538
8573
|
/*
|
|
8539
8574
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9506,7 +9541,7 @@ var BrowserCacheManager = /** @class */ (function (_super) {
|
|
|
9506
9541
|
_this.logger = logger;
|
|
9507
9542
|
_this.internalStorage = new MemoryStorage();
|
|
9508
9543
|
_this.browserStorage = _this.setupBrowserStorage(_this.cacheConfig.cacheLocation);
|
|
9509
|
-
_this.temporaryCacheStorage = _this.setupTemporaryCacheStorage(_this.cacheConfig.cacheLocation);
|
|
9544
|
+
_this.temporaryCacheStorage = _this.setupTemporaryCacheStorage(_this.cacheConfig.temporaryCacheLocation, _this.cacheConfig.cacheLocation);
|
|
9510
9545
|
// Migrate cache entries from older versions of MSAL.
|
|
9511
9546
|
if (cacheConfig.cacheMigrationEnabled) {
|
|
9512
9547
|
_this.migrateCacheEntries();
|
|
@@ -9523,7 +9558,6 @@ var BrowserCacheManager = /** @class */ (function (_super) {
|
|
|
9523
9558
|
case exports.BrowserCacheLocation.LocalStorage:
|
|
9524
9559
|
case exports.BrowserCacheLocation.SessionStorage:
|
|
9525
9560
|
try {
|
|
9526
|
-
// Temporary cache items will always be stored in session storage to mitigate problems caused by multiple tabs
|
|
9527
9561
|
return new BrowserStorage(cacheLocation);
|
|
9528
9562
|
}
|
|
9529
9563
|
catch (e) {
|
|
@@ -9536,16 +9570,20 @@ var BrowserCacheManager = /** @class */ (function (_super) {
|
|
|
9536
9570
|
return new MemoryStorage();
|
|
9537
9571
|
};
|
|
9538
9572
|
/**
|
|
9539
|
-
*
|
|
9573
|
+
* Returns a window storage class implementing the IWindowStorage interface that corresponds to the configured temporaryCacheLocation.
|
|
9574
|
+
* @param temporaryCacheLocation
|
|
9540
9575
|
* @param cacheLocation
|
|
9541
9576
|
*/
|
|
9542
|
-
BrowserCacheManager.prototype.setupTemporaryCacheStorage = function (cacheLocation) {
|
|
9577
|
+
BrowserCacheManager.prototype.setupTemporaryCacheStorage = function (temporaryCacheLocation, cacheLocation) {
|
|
9543
9578
|
switch (cacheLocation) {
|
|
9544
9579
|
case exports.BrowserCacheLocation.LocalStorage:
|
|
9545
9580
|
case exports.BrowserCacheLocation.SessionStorage:
|
|
9546
9581
|
try {
|
|
9547
|
-
|
|
9548
|
-
|
|
9582
|
+
/*
|
|
9583
|
+
* When users do not explicitly choose their own temporaryCacheLocation,
|
|
9584
|
+
* temporary cache items will always be stored in session storage to mitigate problems caused by multiple tabs
|
|
9585
|
+
*/
|
|
9586
|
+
return new BrowserStorage(temporaryCacheLocation || exports.BrowserCacheLocation.SessionStorage);
|
|
9549
9587
|
}
|
|
9550
9588
|
catch (e) {
|
|
9551
9589
|
this.logger.verbose(e);
|
|
@@ -9910,7 +9948,7 @@ var BrowserCacheManager = /** @class */ (function (_super) {
|
|
|
9910
9948
|
var accessRemoval = tokenKeys.accessToken.indexOf(key);
|
|
9911
9949
|
if (accessRemoval > -1) {
|
|
9912
9950
|
this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map");
|
|
9913
|
-
tokenKeys.
|
|
9951
|
+
tokenKeys.accessToken.splice(accessRemoval, 1);
|
|
9914
9952
|
}
|
|
9915
9953
|
else {
|
|
9916
9954
|
this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");
|
|
@@ -9921,7 +9959,7 @@ var BrowserCacheManager = /** @class */ (function (_super) {
|
|
|
9921
9959
|
var refreshRemoval = tokenKeys.refreshToken.indexOf(key);
|
|
9922
9960
|
if (refreshRemoval > -1) {
|
|
9923
9961
|
this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map");
|
|
9924
|
-
tokenKeys.
|
|
9962
|
+
tokenKeys.refreshToken.splice(refreshRemoval, 1);
|
|
9925
9963
|
}
|
|
9926
9964
|
else {
|
|
9927
9965
|
this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");
|
|
@@ -10745,6 +10783,7 @@ var BrowserCacheManager = /** @class */ (function (_super) {
|
|
|
10745
10783
|
var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
|
|
10746
10784
|
var cacheOptions = {
|
|
10747
10785
|
cacheLocation: exports.BrowserCacheLocation.MemoryStorage,
|
|
10786
|
+
temporaryCacheLocation: exports.BrowserCacheLocation.MemoryStorage,
|
|
10748
10787
|
storeAuthStateInCookie: false,
|
|
10749
10788
|
secureCookies: false,
|
|
10750
10789
|
cacheMigrationEnabled: false
|
|
@@ -10754,7 +10793,7 @@ var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
|
|
|
10754
10793
|
|
|
10755
10794
|
/* eslint-disable header/header */
|
|
10756
10795
|
var name = "@azure/msal-browser";
|
|
10757
|
-
var version = "2.
|
|
10796
|
+
var version = "2.37.0";
|
|
10758
10797
|
|
|
10759
10798
|
/*
|
|
10760
10799
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -13878,6 +13917,7 @@ function buildConfiguration(_a, isBrowserEnvironment) {
|
|
|
13878
13917
|
// Default cache options for browser
|
|
13879
13918
|
var DEFAULT_CACHE_OPTIONS = {
|
|
13880
13919
|
cacheLocation: exports.BrowserCacheLocation.SessionStorage,
|
|
13920
|
+
temporaryCacheLocation: exports.BrowserCacheLocation.SessionStorage,
|
|
13881
13921
|
storeAuthStateInCookie: false,
|
|
13882
13922
|
secureCookies: false,
|
|
13883
13923
|
// Default cache migration to true if cache location is localStorage since entries are preserved across tabs/windows. Migration has little to no benefit in sessionStorage and memoryStorage
|
|
@@ -16563,6 +16603,7 @@ var ClientApplication = /** @class */ (function () {
|
|
|
16563
16603
|
// initialize in memory storage for native flows
|
|
16564
16604
|
var nativeCacheOptions = {
|
|
16565
16605
|
cacheLocation: exports.BrowserCacheLocation.MemoryStorage,
|
|
16606
|
+
temporaryCacheLocation: exports.BrowserCacheLocation.MemoryStorage,
|
|
16566
16607
|
storeAuthStateInCookie: false,
|
|
16567
16608
|
secureCookies: false,
|
|
16568
16609
|
cacheMigrationEnabled: false
|