@azure/msal-browser 3.27.0 → 3.28.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/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientNext.mjs +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.d.ts +2 -38
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +21 -115
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/BrowserStorage.d.ts +3 -1
- package/dist/cache/BrowserStorage.d.ts.map +1 -1
- package/dist/cache/BrowserStorage.mjs +13 -8
- package/dist/cache/BrowserStorage.mjs.map +1 -1
- package/dist/cache/CookieStorage.d.ts +14 -0
- package/dist/cache/CookieStorage.d.ts.map +1 -0
- package/dist/cache/CookieStorage.mjs +62 -0
- package/dist/cache/CookieStorage.mjs.map +1 -0
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/LocalStorage.d.ts +10 -0
- package/dist/cache/LocalStorage.d.ts.map +1 -0
- package/dist/cache/LocalStorage.mjs +34 -0
- package/dist/cache/LocalStorage.mjs.map +1 -0
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.d.ts +10 -0
- package/dist/cache/SessionStorage.d.ts.map +1 -0
- package/dist/cache/SessionStorage.mjs +34 -0
- package/dist/cache/SessionStorage.mjs.map +1 -0
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/NativeInteractionClient.mjs +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +5 -1
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/RedirectHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/lib/msal-browser.cjs +216 -192
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +216 -192
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +64 -64
- package/lib/types/cache/BrowserCacheManager.d.ts +2 -38
- package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/lib/types/cache/BrowserStorage.d.ts +3 -1
- package/lib/types/cache/BrowserStorage.d.ts.map +1 -1
- package/lib/types/cache/CookieStorage.d.ts +14 -0
- package/lib/types/cache/CookieStorage.d.ts.map +1 -0
- package/lib/types/cache/LocalStorage.d.ts +10 -0
- package/lib/types/cache/LocalStorage.d.ts.map +1 -0
- package/lib/types/cache/SessionStorage.d.ts +10 -0
- package/lib/types/cache/SessionStorage.d.ts.map +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/package.json +1 -1
- package/src/cache/BrowserCacheManager.ts +27 -141
- package/src/cache/BrowserStorage.ts +11 -11
- package/src/cache/CookieStorage.ts +80 -0
- package/src/cache/LocalStorage.ts +40 -0
- package/src/cache/SessionStorage.ts +40 -0
- package/src/index.ts +3 -0
- package/src/interaction_client/StandardInteractionClient.ts +5 -0
- package/src/packageMetadata.ts +1 -1
package/lib/msal-browser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.
|
|
1
|
+
/*! @azure/msal-browser v3.28.0 2024-12-12 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
5
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -312,7 +312,7 @@ const JsonWebTokenTypes = {
|
|
|
312
312
|
// Token renewal offset default in seconds
|
|
313
313
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
314
314
|
|
|
315
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
315
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
316
316
|
/*
|
|
317
317
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
318
318
|
* Licensed under the MIT License.
|
|
@@ -329,7 +329,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
329
329
|
unexpectedError: unexpectedError
|
|
330
330
|
});
|
|
331
331
|
|
|
332
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
332
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
333
333
|
|
|
334
334
|
/*
|
|
335
335
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -378,7 +378,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
378
378
|
: AuthErrorMessages[code]);
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
381
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
382
382
|
/*
|
|
383
383
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
384
384
|
* Licensed under the MIT License.
|
|
@@ -476,7 +476,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
476
476
|
userTimeoutReached: userTimeoutReached
|
|
477
477
|
});
|
|
478
478
|
|
|
479
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
479
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
480
480
|
|
|
481
481
|
/*
|
|
482
482
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -728,7 +728,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
728
728
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
729
729
|
}
|
|
730
730
|
|
|
731
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
731
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
732
732
|
|
|
733
733
|
/*
|
|
734
734
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -767,7 +767,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
767
767
|
},
|
|
768
768
|
};
|
|
769
769
|
|
|
770
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
770
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
771
771
|
|
|
772
772
|
/*
|
|
773
773
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -958,12 +958,12 @@ class Logger {
|
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
|
|
961
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
961
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
962
962
|
/* eslint-disable header/header */
|
|
963
963
|
const name$1 = "@azure/msal-common";
|
|
964
964
|
const version$1 = "14.16.0";
|
|
965
965
|
|
|
966
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
966
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
967
967
|
/*
|
|
968
968
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
969
969
|
* Licensed under the MIT License.
|
|
@@ -983,7 +983,7 @@ const AzureCloudInstance = {
|
|
|
983
983
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
984
984
|
};
|
|
985
985
|
|
|
986
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
986
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
987
987
|
|
|
988
988
|
/*
|
|
989
989
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1044,7 +1044,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
1047
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
1048
1048
|
/*
|
|
1049
1049
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1050
1050
|
* Licensed under the MIT License.
|
|
@@ -1081,7 +1081,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
1081
1081
|
return cachedAtSec > nowSeconds();
|
|
1082
1082
|
}
|
|
1083
1083
|
|
|
1084
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
1084
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
1085
1085
|
|
|
1086
1086
|
/*
|
|
1087
1087
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1408,7 +1408,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
1408
1408
|
return metadata.expiresAt <= nowSeconds();
|
|
1409
1409
|
}
|
|
1410
1410
|
|
|
1411
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
1411
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
1412
1412
|
/*
|
|
1413
1413
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1414
1414
|
* Licensed under the MIT License.
|
|
@@ -1462,7 +1462,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
1462
1462
|
urlParseError: urlParseError
|
|
1463
1463
|
});
|
|
1464
1464
|
|
|
1465
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
1465
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
1466
1466
|
|
|
1467
1467
|
/*
|
|
1468
1468
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1600,7 +1600,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
1600
1600
|
return new ClientConfigurationError(errorCode);
|
|
1601
1601
|
}
|
|
1602
1602
|
|
|
1603
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
1603
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
1604
1604
|
/*
|
|
1605
1605
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1606
1606
|
* Licensed under the MIT License.
|
|
@@ -1697,7 +1697,7 @@ class StringUtils {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
1699
|
|
|
1700
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
1700
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
1701
1701
|
|
|
1702
1702
|
/*
|
|
1703
1703
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1897,7 +1897,7 @@ class ScopeSet {
|
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
1900
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
1901
1901
|
|
|
1902
1902
|
/*
|
|
1903
1903
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1937,7 +1937,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
1939
|
|
|
1940
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
1940
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
1941
1941
|
/*
|
|
1942
1942
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1943
1943
|
* Licensed under the MIT License.
|
|
@@ -2016,7 +2016,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
2016
2016
|
return updatedAccountInfo;
|
|
2017
2017
|
}
|
|
2018
2018
|
|
|
2019
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
2019
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
2020
2020
|
/*
|
|
2021
2021
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2022
2022
|
* Licensed under the MIT License.
|
|
@@ -2031,7 +2031,7 @@ const AuthorityType = {
|
|
|
2031
2031
|
Ciam: 3,
|
|
2032
2032
|
};
|
|
2033
2033
|
|
|
2034
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
2034
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
2035
2035
|
/*
|
|
2036
2036
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2037
2037
|
* Licensed under the MIT License.
|
|
@@ -2053,7 +2053,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
2053
2053
|
return null;
|
|
2054
2054
|
}
|
|
2055
2055
|
|
|
2056
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
2056
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
2057
2057
|
/*
|
|
2058
2058
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2059
2059
|
* Licensed under the MIT License.
|
|
@@ -2066,7 +2066,7 @@ const ProtocolMode = {
|
|
|
2066
2066
|
OIDC: "OIDC",
|
|
2067
2067
|
};
|
|
2068
2068
|
|
|
2069
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
2069
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
2070
2070
|
|
|
2071
2071
|
/*
|
|
2072
2072
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2309,7 +2309,7 @@ class AccountEntity {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
}
|
|
2311
2311
|
|
|
2312
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
2312
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
2313
2313
|
|
|
2314
2314
|
/*
|
|
2315
2315
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2356,7 +2356,7 @@ function getDeserializedResponse(responseString) {
|
|
|
2356
2356
|
return null;
|
|
2357
2357
|
}
|
|
2358
2358
|
|
|
2359
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
2359
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
2360
2360
|
|
|
2361
2361
|
/*
|
|
2362
2362
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2520,7 +2520,7 @@ class UrlString {
|
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
2522
2522
|
|
|
2523
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
2523
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
2524
2524
|
|
|
2525
2525
|
/*
|
|
2526
2526
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2660,7 +2660,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2660
2660
|
return null;
|
|
2661
2661
|
}
|
|
2662
2662
|
|
|
2663
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
2663
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
2664
2664
|
/*
|
|
2665
2665
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2666
2666
|
* Licensed under the MIT License.
|
|
@@ -2668,7 +2668,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2668
2668
|
const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
|
|
2669
2669
|
const cacheUnknownErrorCode = "cache_error_unknown";
|
|
2670
2670
|
|
|
2671
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
2671
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
2672
2672
|
|
|
2673
2673
|
/*
|
|
2674
2674
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2695,7 +2695,7 @@ class CacheError extends Error {
|
|
|
2695
2695
|
}
|
|
2696
2696
|
}
|
|
2697
2697
|
|
|
2698
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
2698
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
2699
2699
|
|
|
2700
2700
|
/*
|
|
2701
2701
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3944,7 +3944,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3944
3944
|
}
|
|
3945
3945
|
}
|
|
3946
3946
|
|
|
3947
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
3947
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
3948
3948
|
|
|
3949
3949
|
/*
|
|
3950
3950
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4043,7 +4043,7 @@ function isOidcProtocolMode(config) {
|
|
|
4043
4043
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
4044
4044
|
}
|
|
4045
4045
|
|
|
4046
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
4046
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
4047
4047
|
/*
|
|
4048
4048
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4049
4049
|
* Licensed under the MIT License.
|
|
@@ -4053,7 +4053,7 @@ const CcsCredentialType = {
|
|
|
4053
4053
|
UPN: "UPN",
|
|
4054
4054
|
};
|
|
4055
4055
|
|
|
4056
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
4056
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
4057
4057
|
/*
|
|
4058
4058
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4059
4059
|
* Licensed under the MIT License.
|
|
@@ -4103,7 +4103,7 @@ const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku";
|
|
|
4103
4103
|
const BROKER_CLIENT_ID = "brk_client_id";
|
|
4104
4104
|
const BROKER_REDIRECT_URI = "brk_redirect_uri";
|
|
4105
4105
|
|
|
4106
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
4106
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
4107
4107
|
|
|
4108
4108
|
/*
|
|
4109
4109
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4170,7 +4170,7 @@ class RequestValidator {
|
|
|
4170
4170
|
}
|
|
4171
4171
|
}
|
|
4172
4172
|
|
|
4173
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
4173
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
4174
4174
|
|
|
4175
4175
|
/*
|
|
4176
4176
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4578,7 +4578,7 @@ class RequestParameterBuilder {
|
|
|
4578
4578
|
}
|
|
4579
4579
|
}
|
|
4580
4580
|
|
|
4581
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
4581
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
4582
4582
|
/*
|
|
4583
4583
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4584
4584
|
* Licensed under the MIT License.
|
|
@@ -4590,7 +4590,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
4590
4590
|
response.hasOwnProperty("jwks_uri"));
|
|
4591
4591
|
}
|
|
4592
4592
|
|
|
4593
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
4593
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
4594
4594
|
/*
|
|
4595
4595
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4596
4596
|
* Licensed under the MIT License.
|
|
@@ -4600,7 +4600,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
4600
4600
|
response.hasOwnProperty("metadata"));
|
|
4601
4601
|
}
|
|
4602
4602
|
|
|
4603
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
4603
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
4604
4604
|
/*
|
|
4605
4605
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4606
4606
|
* Licensed under the MIT License.
|
|
@@ -4610,7 +4610,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
4610
4610
|
response.hasOwnProperty("error_description"));
|
|
4611
4611
|
}
|
|
4612
4612
|
|
|
4613
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
4613
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
4614
4614
|
/*
|
|
4615
4615
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4616
4616
|
* Licensed under the MIT License.
|
|
@@ -5097,7 +5097,7 @@ const IntFields = new Set([
|
|
|
5097
5097
|
"multiMatchedRT",
|
|
5098
5098
|
]);
|
|
5099
5099
|
|
|
5100
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
5100
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
5101
5101
|
/*
|
|
5102
5102
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5103
5103
|
* Licensed under the MIT License.
|
|
@@ -5193,7 +5193,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
5193
5193
|
};
|
|
5194
5194
|
};
|
|
5195
5195
|
|
|
5196
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
5196
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
5197
5197
|
|
|
5198
5198
|
/*
|
|
5199
5199
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5302,7 +5302,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
5302
5302
|
},
|
|
5303
5303
|
};
|
|
5304
5304
|
|
|
5305
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
5305
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
5306
5306
|
|
|
5307
5307
|
/*
|
|
5308
5308
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6141,7 +6141,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
6141
6141
|
};
|
|
6142
6142
|
}
|
|
6143
6143
|
|
|
6144
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
6144
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
6145
6145
|
|
|
6146
6146
|
/*
|
|
6147
6147
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6172,7 +6172,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
6172
6172
|
}
|
|
6173
6173
|
}
|
|
6174
6174
|
|
|
6175
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
6175
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
6176
6176
|
|
|
6177
6177
|
/*
|
|
6178
6178
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6191,7 +6191,7 @@ class ServerError extends AuthError {
|
|
|
6191
6191
|
}
|
|
6192
6192
|
}
|
|
6193
6193
|
|
|
6194
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
6194
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
6195
6195
|
|
|
6196
6196
|
/*
|
|
6197
6197
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6289,7 +6289,7 @@ class ThrottlingUtils {
|
|
|
6289
6289
|
}
|
|
6290
6290
|
}
|
|
6291
6291
|
|
|
6292
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
6292
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
6293
6293
|
|
|
6294
6294
|
/*
|
|
6295
6295
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6319,7 +6319,7 @@ function createNetworkError(error, httpStatus, responseHeaders) {
|
|
|
6319
6319
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6320
6320
|
}
|
|
6321
6321
|
|
|
6322
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
6322
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
6323
6323
|
|
|
6324
6324
|
/*
|
|
6325
6325
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6469,7 +6469,7 @@ class BaseClient {
|
|
|
6469
6469
|
}
|
|
6470
6470
|
}
|
|
6471
6471
|
|
|
6472
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
6472
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
6473
6473
|
/*
|
|
6474
6474
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6475
6475
|
* Licensed under the MIT License.
|
|
@@ -6495,7 +6495,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6495
6495
|
refreshTokenExpired: refreshTokenExpired
|
|
6496
6496
|
});
|
|
6497
6497
|
|
|
6498
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
6498
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
6499
6499
|
|
|
6500
6500
|
/*
|
|
6501
6501
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6583,7 +6583,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
6583
6583
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6584
6584
|
}
|
|
6585
6585
|
|
|
6586
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
6586
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
6587
6587
|
|
|
6588
6588
|
/*
|
|
6589
6589
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6655,7 +6655,7 @@ class ProtocolUtils {
|
|
|
6655
6655
|
}
|
|
6656
6656
|
}
|
|
6657
6657
|
|
|
6658
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
6658
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
6659
6659
|
|
|
6660
6660
|
/*
|
|
6661
6661
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6739,7 +6739,7 @@ class PopTokenGenerator {
|
|
|
6739
6739
|
}
|
|
6740
6740
|
}
|
|
6741
6741
|
|
|
6742
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
6742
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
6743
6743
|
/*
|
|
6744
6744
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6745
6745
|
* Licensed under the MIT License.
|
|
@@ -6766,7 +6766,7 @@ class PopTokenGenerator {
|
|
|
6766
6766
|
}
|
|
6767
6767
|
}
|
|
6768
6768
|
|
|
6769
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
6769
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
6770
6770
|
|
|
6771
6771
|
/*
|
|
6772
6772
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7143,7 +7143,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
7143
7143
|
return baseAccount;
|
|
7144
7144
|
}
|
|
7145
7145
|
|
|
7146
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
7146
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
7147
7147
|
/*
|
|
7148
7148
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7149
7149
|
* Licensed under the MIT License.
|
|
@@ -7161,7 +7161,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
7161
7161
|
}
|
|
7162
7162
|
}
|
|
7163
7163
|
|
|
7164
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
7164
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
7165
7165
|
|
|
7166
7166
|
/*
|
|
7167
7167
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7603,7 +7603,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
7603
7603
|
}
|
|
7604
7604
|
}
|
|
7605
7605
|
|
|
7606
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
7606
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
7607
7607
|
|
|
7608
7608
|
/*
|
|
7609
7609
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7823,7 +7823,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7823
7823
|
}
|
|
7824
7824
|
}
|
|
7825
7825
|
|
|
7826
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
7826
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
7827
7827
|
|
|
7828
7828
|
/*
|
|
7829
7829
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7959,7 +7959,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
7959
7959
|
}
|
|
7960
7960
|
}
|
|
7961
7961
|
|
|
7962
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
7962
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
7963
7963
|
|
|
7964
7964
|
/*
|
|
7965
7965
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7974,7 +7974,7 @@ const StubbedNetworkModule = {
|
|
|
7974
7974
|
},
|
|
7975
7975
|
};
|
|
7976
7976
|
|
|
7977
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
7977
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
7978
7978
|
|
|
7979
7979
|
/*
|
|
7980
7980
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8032,7 +8032,7 @@ class AuthenticationHeaderParser {
|
|
|
8032
8032
|
}
|
|
8033
8033
|
}
|
|
8034
8034
|
|
|
8035
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
8035
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
8036
8036
|
|
|
8037
8037
|
/*
|
|
8038
8038
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8295,7 +8295,7 @@ class ServerTelemetryManager {
|
|
|
8295
8295
|
}
|
|
8296
8296
|
}
|
|
8297
8297
|
|
|
8298
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
8298
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
8299
8299
|
/*
|
|
8300
8300
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8301
8301
|
* Licensed under the MIT License.
|
|
@@ -8303,7 +8303,7 @@ class ServerTelemetryManager {
|
|
|
8303
8303
|
const missingKidError = "missing_kid_error";
|
|
8304
8304
|
const missingAlgError = "missing_alg_error";
|
|
8305
8305
|
|
|
8306
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
8306
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
8307
8307
|
|
|
8308
8308
|
/*
|
|
8309
8309
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8328,7 +8328,7 @@ function createJoseHeaderError(code) {
|
|
|
8328
8328
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
8329
8329
|
}
|
|
8330
8330
|
|
|
8331
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
8331
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
8332
8332
|
|
|
8333
8333
|
/*
|
|
8334
8334
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8368,7 +8368,7 @@ class JoseHeader {
|
|
|
8368
8368
|
}
|
|
8369
8369
|
}
|
|
8370
8370
|
|
|
8371
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
8371
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
8372
8372
|
|
|
8373
8373
|
/*
|
|
8374
8374
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8447,7 +8447,7 @@ class StubPerformanceClient {
|
|
|
8447
8447
|
}
|
|
8448
8448
|
}
|
|
8449
8449
|
|
|
8450
|
-
/*! @azure/msal-common v14.16.0 2024-
|
|
8450
|
+
/*! @azure/msal-common v14.16.0 2024-12-12 */
|
|
8451
8451
|
|
|
8452
8452
|
/*
|
|
8453
8453
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10366,7 +10366,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
10366
10366
|
|
|
10367
10367
|
/* eslint-disable header/header */
|
|
10368
10368
|
const name = "@azure/msal-browser";
|
|
10369
|
-
const version = "3.
|
|
10369
|
+
const version = "3.28.0";
|
|
10370
10370
|
|
|
10371
10371
|
/*
|
|
10372
10372
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11325,32 +11325,53 @@ function getSortedObjectString(obj) {
|
|
|
11325
11325
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11326
11326
|
* Licensed under the MIT License.
|
|
11327
11327
|
*/
|
|
11328
|
-
class
|
|
11329
|
-
constructor(
|
|
11330
|
-
|
|
11331
|
-
|
|
11328
|
+
class LocalStorage {
|
|
11329
|
+
constructor() {
|
|
11330
|
+
if (!window.localStorage) {
|
|
11331
|
+
throw createBrowserConfigurationAuthError(storageNotSupported);
|
|
11332
|
+
}
|
|
11333
|
+
}
|
|
11334
|
+
getItem(key) {
|
|
11335
|
+
return window.localStorage.getItem(key);
|
|
11336
|
+
}
|
|
11337
|
+
setItem(key, value) {
|
|
11338
|
+
window.localStorage.setItem(key, value);
|
|
11332
11339
|
}
|
|
11333
|
-
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
|
|
11340
|
+
removeItem(key) {
|
|
11341
|
+
window.localStorage.removeItem(key);
|
|
11342
|
+
}
|
|
11343
|
+
getKeys() {
|
|
11344
|
+
return Object.keys(window.localStorage);
|
|
11345
|
+
}
|
|
11346
|
+
containsKey(key) {
|
|
11347
|
+
return window.localStorage.hasOwnProperty(key);
|
|
11348
|
+
}
|
|
11349
|
+
}
|
|
11350
|
+
|
|
11351
|
+
/*
|
|
11352
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11353
|
+
* Licensed under the MIT License.
|
|
11354
|
+
*/
|
|
11355
|
+
class SessionStorage {
|
|
11356
|
+
constructor() {
|
|
11357
|
+
if (!window.sessionStorage) {
|
|
11337
11358
|
throw createBrowserConfigurationAuthError(storageNotSupported);
|
|
11338
11359
|
}
|
|
11339
11360
|
}
|
|
11340
11361
|
getItem(key) {
|
|
11341
|
-
return
|
|
11362
|
+
return window.sessionStorage.getItem(key);
|
|
11342
11363
|
}
|
|
11343
11364
|
setItem(key, value) {
|
|
11344
|
-
|
|
11365
|
+
window.sessionStorage.setItem(key, value);
|
|
11345
11366
|
}
|
|
11346
11367
|
removeItem(key) {
|
|
11347
|
-
|
|
11368
|
+
window.sessionStorage.removeItem(key);
|
|
11348
11369
|
}
|
|
11349
11370
|
getKeys() {
|
|
11350
|
-
return Object.keys(
|
|
11371
|
+
return Object.keys(window.sessionStorage);
|
|
11351
11372
|
}
|
|
11352
11373
|
containsKey(key) {
|
|
11353
|
-
return
|
|
11374
|
+
return window.sessionStorage.hasOwnProperty(key);
|
|
11354
11375
|
}
|
|
11355
11376
|
}
|
|
11356
11377
|
|
|
@@ -11376,6 +11397,64 @@ function extractBrowserRequestState(browserCrypto, state) {
|
|
|
11376
11397
|
}
|
|
11377
11398
|
}
|
|
11378
11399
|
|
|
11400
|
+
/*
|
|
11401
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11402
|
+
* Licensed under the MIT License.
|
|
11403
|
+
*/
|
|
11404
|
+
// Cookie life calculation (hours * minutes * seconds * ms)
|
|
11405
|
+
const COOKIE_LIFE_MULTIPLIER = 24 * 60 * 60 * 1000;
|
|
11406
|
+
class CookieStorage {
|
|
11407
|
+
getItem(key) {
|
|
11408
|
+
const name = `${encodeURIComponent(key)}`;
|
|
11409
|
+
const cookieList = document.cookie.split(";");
|
|
11410
|
+
for (let i = 0; i < cookieList.length; i++) {
|
|
11411
|
+
const cookie = cookieList[i];
|
|
11412
|
+
const [key, ...rest] = decodeURIComponent(cookie).trim().split("=");
|
|
11413
|
+
const value = rest.join("=");
|
|
11414
|
+
if (key === name) {
|
|
11415
|
+
return value;
|
|
11416
|
+
}
|
|
11417
|
+
}
|
|
11418
|
+
return "";
|
|
11419
|
+
}
|
|
11420
|
+
setItem(key, value, cookieLifeDays, secure = true) {
|
|
11421
|
+
let cookieStr = `${encodeURIComponent(key)}=${encodeURIComponent(value)};path=/;SameSite=Lax;`;
|
|
11422
|
+
if (cookieLifeDays) {
|
|
11423
|
+
const expireTime = getCookieExpirationTime(cookieLifeDays);
|
|
11424
|
+
cookieStr += `expires=${expireTime};`;
|
|
11425
|
+
}
|
|
11426
|
+
if (secure) {
|
|
11427
|
+
cookieStr += "Secure;";
|
|
11428
|
+
}
|
|
11429
|
+
document.cookie = cookieStr;
|
|
11430
|
+
}
|
|
11431
|
+
removeItem(key) {
|
|
11432
|
+
// Setting expiration to -1 removes it
|
|
11433
|
+
this.setItem(key, "", -1);
|
|
11434
|
+
}
|
|
11435
|
+
getKeys() {
|
|
11436
|
+
const cookieList = document.cookie.split(";");
|
|
11437
|
+
const keys = [];
|
|
11438
|
+
cookieList.forEach((cookie) => {
|
|
11439
|
+
const cookieParts = decodeURIComponent(cookie).trim().split("=");
|
|
11440
|
+
keys.push(cookieParts[0]);
|
|
11441
|
+
});
|
|
11442
|
+
return keys;
|
|
11443
|
+
}
|
|
11444
|
+
containsKey(key) {
|
|
11445
|
+
return this.getKeys().includes(key);
|
|
11446
|
+
}
|
|
11447
|
+
}
|
|
11448
|
+
/**
|
|
11449
|
+
* Get cookie expiration time
|
|
11450
|
+
* @param cookieLifeDays
|
|
11451
|
+
*/
|
|
11452
|
+
function getCookieExpirationTime(cookieLifeDays) {
|
|
11453
|
+
const today = new Date();
|
|
11454
|
+
const expr = new Date(today.getTime() + cookieLifeDays * COOKIE_LIFE_MULTIPLIER);
|
|
11455
|
+
return expr.toUTCString();
|
|
11456
|
+
}
|
|
11457
|
+
|
|
11379
11458
|
/*
|
|
11380
11459
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11381
11460
|
* Licensed under the MIT License.
|
|
@@ -11388,13 +11467,12 @@ function extractBrowserRequestState(browserCrypto, state) {
|
|
|
11388
11467
|
class BrowserCacheManager extends CacheManager {
|
|
11389
11468
|
constructor(clientId, cacheConfig, cryptoImpl, logger, staticAuthorityOptions, performanceClient) {
|
|
11390
11469
|
super(clientId, cryptoImpl, logger, staticAuthorityOptions);
|
|
11391
|
-
// Cookie life calculation (hours * minutes * seconds * ms)
|
|
11392
|
-
this.COOKIE_LIFE_MULTIPLIER = 24 * 60 * 60 * 1000;
|
|
11393
11470
|
this.cacheConfig = cacheConfig;
|
|
11394
11471
|
this.logger = logger;
|
|
11395
11472
|
this.internalStorage = new MemoryStorage();
|
|
11396
11473
|
this.browserStorage = this.setupBrowserStorage(this.cacheConfig.cacheLocation);
|
|
11397
|
-
this.temporaryCacheStorage = this.
|
|
11474
|
+
this.temporaryCacheStorage = this.setupBrowserStorage(this.cacheConfig.temporaryCacheLocation);
|
|
11475
|
+
this.cookieStorage = new CookieStorage();
|
|
11398
11476
|
// Migrate cache entries from older versions of MSAL.
|
|
11399
11477
|
if (cacheConfig.cacheMigrationEnabled) {
|
|
11400
11478
|
this.migrateCacheEntries();
|
|
@@ -11407,44 +11485,23 @@ class BrowserCacheManager extends CacheManager {
|
|
|
11407
11485
|
* @param cacheLocation
|
|
11408
11486
|
*/
|
|
11409
11487
|
setupBrowserStorage(cacheLocation) {
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11488
|
+
try {
|
|
11489
|
+
switch (cacheLocation) {
|
|
11490
|
+
case BrowserCacheLocation.LocalStorage:
|
|
11491
|
+
return new LocalStorage();
|
|
11492
|
+
case BrowserCacheLocation.SessionStorage:
|
|
11493
|
+
return new SessionStorage();
|
|
11494
|
+
case BrowserCacheLocation.MemoryStorage:
|
|
11495
|
+
default:
|
|
11418
11496
|
break;
|
|
11419
|
-
|
|
11420
|
-
|
|
11497
|
+
}
|
|
11498
|
+
}
|
|
11499
|
+
catch (e) {
|
|
11500
|
+
this.logger.error(e);
|
|
11421
11501
|
}
|
|
11422
11502
|
this.cacheConfig.cacheLocation = BrowserCacheLocation.MemoryStorage;
|
|
11423
11503
|
return new MemoryStorage();
|
|
11424
11504
|
}
|
|
11425
|
-
/**
|
|
11426
|
-
* Returns a window storage class implementing the IWindowStorage interface that corresponds to the configured temporaryCacheLocation.
|
|
11427
|
-
* @param temporaryCacheLocation
|
|
11428
|
-
* @param cacheLocation
|
|
11429
|
-
*/
|
|
11430
|
-
setupTemporaryCacheStorage(temporaryCacheLocation, cacheLocation) {
|
|
11431
|
-
switch (cacheLocation) {
|
|
11432
|
-
case BrowserCacheLocation.LocalStorage:
|
|
11433
|
-
case BrowserCacheLocation.SessionStorage:
|
|
11434
|
-
try {
|
|
11435
|
-
// Temporary cache items will always be stored in session storage to mitigate problems caused by multiple tabs
|
|
11436
|
-
return new BrowserStorage(temporaryCacheLocation ||
|
|
11437
|
-
BrowserCacheLocation.SessionStorage);
|
|
11438
|
-
}
|
|
11439
|
-
catch (e) {
|
|
11440
|
-
this.logger.verbose(e);
|
|
11441
|
-
return this.internalStorage;
|
|
11442
|
-
}
|
|
11443
|
-
case BrowserCacheLocation.MemoryStorage:
|
|
11444
|
-
default:
|
|
11445
|
-
return this.internalStorage;
|
|
11446
|
-
}
|
|
11447
|
-
}
|
|
11448
11505
|
/**
|
|
11449
11506
|
* Migrate all old cache entries to new schema. No rollback supported.
|
|
11450
11507
|
* @param storeAuthStateInCookie
|
|
@@ -12132,7 +12189,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12132
12189
|
getTemporaryCache(cacheKey, generateKey) {
|
|
12133
12190
|
const key = generateKey ? this.generateCacheKey(cacheKey) : cacheKey;
|
|
12134
12191
|
if (this.cacheConfig.storeAuthStateInCookie) {
|
|
12135
|
-
const itemCookie = this.
|
|
12192
|
+
const itemCookie = this.cookieStorage.getItem(key);
|
|
12136
12193
|
if (itemCookie) {
|
|
12137
12194
|
this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies");
|
|
12138
12195
|
return itemCookie;
|
|
@@ -12167,7 +12224,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12167
12224
|
this.temporaryCacheStorage.setItem(key, value);
|
|
12168
12225
|
if (this.cacheConfig.storeAuthStateInCookie) {
|
|
12169
12226
|
this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie");
|
|
12170
|
-
this.
|
|
12227
|
+
this.cookieStorage.setItem(key, value, undefined, this.cacheConfig.secureCookies);
|
|
12171
12228
|
}
|
|
12172
12229
|
}
|
|
12173
12230
|
/**
|
|
@@ -12186,7 +12243,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12186
12243
|
this.temporaryCacheStorage.removeItem(key);
|
|
12187
12244
|
if (this.cacheConfig.storeAuthStateInCookie) {
|
|
12188
12245
|
this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie");
|
|
12189
|
-
this.
|
|
12246
|
+
this.cookieStorage.removeItem(key);
|
|
12190
12247
|
}
|
|
12191
12248
|
}
|
|
12192
12249
|
/**
|
|
@@ -12242,79 +12299,6 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12242
12299
|
this.logger.warning(`${removedAccessTokens.length} access tokens with claims in the cache keys have been removed from the cache.`);
|
|
12243
12300
|
}
|
|
12244
12301
|
}
|
|
12245
|
-
/**
|
|
12246
|
-
* Add value to cookies
|
|
12247
|
-
* @param cookieName
|
|
12248
|
-
* @param cookieValue
|
|
12249
|
-
* @param expires
|
|
12250
|
-
* @deprecated
|
|
12251
|
-
*/
|
|
12252
|
-
setItemCookie(cookieName, cookieValue, expires) {
|
|
12253
|
-
let cookieStr = `${encodeURIComponent(cookieName)}=${encodeURIComponent(cookieValue)};path=/;SameSite=Lax;`;
|
|
12254
|
-
if (expires) {
|
|
12255
|
-
const expireTime = this.getCookieExpirationTime(expires);
|
|
12256
|
-
cookieStr += `expires=${expireTime};`;
|
|
12257
|
-
}
|
|
12258
|
-
if (this.cacheConfig.secureCookies) {
|
|
12259
|
-
cookieStr += "Secure;";
|
|
12260
|
-
}
|
|
12261
|
-
document.cookie = cookieStr;
|
|
12262
|
-
}
|
|
12263
|
-
/**
|
|
12264
|
-
* Get one item by key from cookies
|
|
12265
|
-
* @param cookieName
|
|
12266
|
-
* @deprecated
|
|
12267
|
-
*/
|
|
12268
|
-
getItemCookie(cookieName) {
|
|
12269
|
-
const name = `${encodeURIComponent(cookieName)}=`;
|
|
12270
|
-
const cookieList = document.cookie.split(";");
|
|
12271
|
-
for (let i = 0; i < cookieList.length; i++) {
|
|
12272
|
-
let cookie = cookieList[i];
|
|
12273
|
-
while (cookie.charAt(0) === " ") {
|
|
12274
|
-
cookie = cookie.substring(1);
|
|
12275
|
-
}
|
|
12276
|
-
if (cookie.indexOf(name) === 0) {
|
|
12277
|
-
return decodeURIComponent(cookie.substring(name.length, cookie.length));
|
|
12278
|
-
}
|
|
12279
|
-
}
|
|
12280
|
-
return Constants.EMPTY_STRING;
|
|
12281
|
-
}
|
|
12282
|
-
/**
|
|
12283
|
-
* Clear all msal-related cookies currently set in the browser. Should only be used to clear temporary cache items.
|
|
12284
|
-
* @deprecated
|
|
12285
|
-
*/
|
|
12286
|
-
clearMsalCookies() {
|
|
12287
|
-
const cookiePrefix = `${Constants.CACHE_PREFIX}.${this.clientId}`;
|
|
12288
|
-
const cookieList = document.cookie.split(";");
|
|
12289
|
-
cookieList.forEach((cookie) => {
|
|
12290
|
-
while (cookie.charAt(0) === " ") {
|
|
12291
|
-
// eslint-disable-next-line no-param-reassign
|
|
12292
|
-
cookie = cookie.substring(1);
|
|
12293
|
-
}
|
|
12294
|
-
if (cookie.indexOf(cookiePrefix) === 0) {
|
|
12295
|
-
const cookieKey = cookie.split("=")[0];
|
|
12296
|
-
this.clearItemCookie(cookieKey);
|
|
12297
|
-
}
|
|
12298
|
-
});
|
|
12299
|
-
}
|
|
12300
|
-
/**
|
|
12301
|
-
* Clear an item in the cookies by key
|
|
12302
|
-
* @param cookieName
|
|
12303
|
-
* @deprecated
|
|
12304
|
-
*/
|
|
12305
|
-
clearItemCookie(cookieName) {
|
|
12306
|
-
this.setItemCookie(cookieName, Constants.EMPTY_STRING, -1);
|
|
12307
|
-
}
|
|
12308
|
-
/**
|
|
12309
|
-
* Get cookie expiration time
|
|
12310
|
-
* @param cookieLifeDays
|
|
12311
|
-
* @deprecated
|
|
12312
|
-
*/
|
|
12313
|
-
getCookieExpirationTime(cookieLifeDays) {
|
|
12314
|
-
const today = new Date();
|
|
12315
|
-
const expr = new Date(today.getTime() + cookieLifeDays * this.COOKIE_LIFE_MULTIPLIER);
|
|
12316
|
-
return expr.toUTCString();
|
|
12317
|
-
}
|
|
12318
12302
|
/**
|
|
12319
12303
|
* Prepend msal.<client-id> to each key; Skip for any JSON object as Key (defined schemas do not need the key appended: AccessToken Keys or the upcoming schema)
|
|
12320
12304
|
* @param key
|
|
@@ -12438,7 +12422,6 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12438
12422
|
this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${cachedState}`);
|
|
12439
12423
|
this.resetRequestCache(cachedState || Constants.EMPTY_STRING);
|
|
12440
12424
|
}
|
|
12441
|
-
this.clearMsalCookies();
|
|
12442
12425
|
}
|
|
12443
12426
|
/**
|
|
12444
12427
|
* Looks in temporary cache for any state values with the provided interactionType and removes all temporary cache items for that state
|
|
@@ -12466,7 +12449,6 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12466
12449
|
this.resetRequestCache(stateValue);
|
|
12467
12450
|
}
|
|
12468
12451
|
});
|
|
12469
|
-
this.clearMsalCookies();
|
|
12470
12452
|
this.setInteractionInProgress(false);
|
|
12471
12453
|
}
|
|
12472
12454
|
cacheCodeRequest(authCodeRequest) {
|
|
@@ -13321,6 +13303,10 @@ class StandardInteractionClient extends BaseInteractionClient {
|
|
|
13321
13303
|
responseMode: this.config.auth.OIDCOptions
|
|
13322
13304
|
.serverResponseType,
|
|
13323
13305
|
};
|
|
13306
|
+
// Skip active account lookup if either login hint or session id is set
|
|
13307
|
+
if (request.loginHint || request.sid) {
|
|
13308
|
+
return validatedRequest;
|
|
13309
|
+
}
|
|
13324
13310
|
const account = request.account || this.browserStorage.getActiveAccount();
|
|
13325
13311
|
if (account) {
|
|
13326
13312
|
this.logger.verbose("Setting validated request account", this.correlationId);
|
|
@@ -19228,6 +19214,42 @@ const stubbedPublicClientApplication = {
|
|
|
19228
19214
|
},
|
|
19229
19215
|
};
|
|
19230
19216
|
|
|
19217
|
+
/*
|
|
19218
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19219
|
+
* Licensed under the MIT License.
|
|
19220
|
+
*/
|
|
19221
|
+
/**
|
|
19222
|
+
* @deprecated This class will be removed in a future major version
|
|
19223
|
+
*/
|
|
19224
|
+
class BrowserStorage {
|
|
19225
|
+
constructor(cacheLocation) {
|
|
19226
|
+
if (cacheLocation === BrowserCacheLocation.LocalStorage) {
|
|
19227
|
+
this.windowStorage = new LocalStorage();
|
|
19228
|
+
}
|
|
19229
|
+
else if (cacheLocation === BrowserCacheLocation.SessionStorage) {
|
|
19230
|
+
this.windowStorage = new SessionStorage();
|
|
19231
|
+
}
|
|
19232
|
+
else {
|
|
19233
|
+
throw createBrowserConfigurationAuthError(storageNotSupported);
|
|
19234
|
+
}
|
|
19235
|
+
}
|
|
19236
|
+
getItem(key) {
|
|
19237
|
+
return this.windowStorage.getItem(key);
|
|
19238
|
+
}
|
|
19239
|
+
setItem(key, value) {
|
|
19240
|
+
this.windowStorage.setItem(key, value);
|
|
19241
|
+
}
|
|
19242
|
+
removeItem(key) {
|
|
19243
|
+
this.windowStorage.removeItem(key);
|
|
19244
|
+
}
|
|
19245
|
+
getKeys() {
|
|
19246
|
+
return Object.keys(this.windowStorage);
|
|
19247
|
+
}
|
|
19248
|
+
containsKey(key) {
|
|
19249
|
+
return this.windowStorage.hasOwnProperty(key);
|
|
19250
|
+
}
|
|
19251
|
+
}
|
|
19252
|
+
|
|
19231
19253
|
/*
|
|
19232
19254
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19233
19255
|
* Licensed under the MIT License.
|
|
@@ -19633,6 +19655,7 @@ exports.InteractionRequiredAuthErrorCodes = InteractionRequiredAuthErrorCodes;
|
|
|
19633
19655
|
exports.InteractionRequiredAuthErrorMessage = InteractionRequiredAuthErrorMessage;
|
|
19634
19656
|
exports.InteractionStatus = InteractionStatus;
|
|
19635
19657
|
exports.JsonWebTokenTypes = JsonWebTokenTypes;
|
|
19658
|
+
exports.LocalStorage = LocalStorage;
|
|
19636
19659
|
exports.Logger = Logger;
|
|
19637
19660
|
exports.MemoryStorage = MemoryStorage;
|
|
19638
19661
|
exports.NavigationClient = NavigationClient;
|
|
@@ -19644,6 +19667,7 @@ exports.PublicClientApplication = PublicClientApplication;
|
|
|
19644
19667
|
exports.PublicClientNext = PublicClientNext;
|
|
19645
19668
|
exports.ServerError = ServerError;
|
|
19646
19669
|
exports.ServerResponseType = ServerResponseType;
|
|
19670
|
+
exports.SessionStorage = SessionStorage;
|
|
19647
19671
|
exports.SignedHttpRequest = SignedHttpRequest;
|
|
19648
19672
|
exports.StringUtils = StringUtils;
|
|
19649
19673
|
exports.StubPerformanceClient = StubPerformanceClient;
|