@azure/msal-browser 4.11.0 → 4.12.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.d.ts +1 -0
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.mjs +3 -2
- package/dist/app/PublicClientApplication.mjs.map +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.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +13 -2
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/ITokenCache.d.ts +4 -4
- package/dist/cache/ITokenCache.d.ts.map +1 -1
- package/dist/cache/LocalStorage.mjs +2 -2
- package/dist/cache/LocalStorage.mjs.map +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.d.ts +3 -3
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.d.ts +5 -1
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/IController.d.ts +1 -1
- package/dist/controllers/IController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +4 -2
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.d.ts +2 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +27 -2
- package/dist/controllers/StandardController.mjs.map +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.mjs +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.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.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.d.ts.map +1 -1
- package/dist/network/FetchClient.mjs +8 -8
- package/dist/network/FetchClient.mjs.map +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/protocol/Authorize.mjs +1 -1
- 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.d.ts +1 -1
- package/dist/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.d.ts +3 -0
- package/dist/utils/MsalFrameStatsUtils.d.ts.map +1 -0
- package/dist/utils/MsalFrameStatsUtils.mjs +23 -0
- package/dist/utils/MsalFrameStatsUtils.mjs.map +1 -0
- package/lib/msal-browser.cjs +138 -81
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +138 -81
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +61 -61
- package/lib/types/app/PublicClientApplication.d.ts +1 -0
- package/lib/types/app/PublicClientApplication.d.ts.map +1 -1
- package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/lib/types/cache/ITokenCache.d.ts +4 -4
- package/lib/types/cache/ITokenCache.d.ts.map +1 -1
- package/lib/types/cache/TokenCache.d.ts +3 -3
- package/lib/types/cache/TokenCache.d.ts.map +1 -1
- package/lib/types/config/Configuration.d.ts +5 -1
- package/lib/types/config/Configuration.d.ts.map +1 -1
- package/lib/types/controllers/IController.d.ts +1 -1
- package/lib/types/controllers/IController.d.ts.map +1 -1
- package/lib/types/controllers/NestedAppAuthController.d.ts +1 -1
- package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/types/controllers/StandardController.d.ts +2 -1
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/network/FetchClient.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/utils/BrowserUtils.d.ts +1 -1
- package/lib/types/utils/BrowserUtils.d.ts.map +1 -1
- package/lib/types/utils/MsalFrameStatsUtils.d.ts +3 -0
- package/lib/types/utils/MsalFrameStatsUtils.d.ts.map +1 -0
- package/package.json +3 -2
- package/src/app/PublicClientApplication.ts +2 -1
- package/src/cache/BrowserCacheManager.ts +13 -1
- package/src/cache/ITokenCache.ts +4 -4
- package/src/cache/LocalStorage.ts +2 -2
- package/src/cache/TokenCache.ts +3 -3
- package/src/config/Configuration.ts +5 -1
- package/src/controllers/IController.ts +4 -1
- package/src/controllers/NestedAppAuthController.ts +5 -1
- package/src/controllers/StandardController.ts +36 -1
- package/src/network/FetchClient.ts +27 -12
- package/src/packageMetadata.ts +1 -1
- package/src/utils/BrowserUtils.ts +1 -1
- package/src/utils/MsalFrameStatsUtils.ts +32 -0
package/lib/msal-browser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.12.0 2025-05-06 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v15.
|
|
5
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -305,7 +305,7 @@ const JsonWebTokenTypes = {
|
|
|
305
305
|
// Token renewal offset default in seconds
|
|
306
306
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
307
307
|
|
|
308
|
-
/*! @azure/msal-common v15.
|
|
308
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
309
309
|
/*
|
|
310
310
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
311
311
|
* Licensed under the MIT License.
|
|
@@ -322,7 +322,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
322
322
|
unexpectedError: unexpectedError
|
|
323
323
|
});
|
|
324
324
|
|
|
325
|
-
/*! @azure/msal-common v15.
|
|
325
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
326
326
|
|
|
327
327
|
/*
|
|
328
328
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -371,7 +371,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
371
371
|
: AuthErrorMessages[code]);
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
/*! @azure/msal-common v15.
|
|
374
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
375
375
|
/*
|
|
376
376
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
377
377
|
* Licensed under the MIT License.
|
|
@@ -469,7 +469,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
469
469
|
userTimeoutReached: userTimeoutReached
|
|
470
470
|
});
|
|
471
471
|
|
|
472
|
-
/*! @azure/msal-common v15.
|
|
472
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
473
473
|
|
|
474
474
|
/*
|
|
475
475
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -721,7 +721,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
721
721
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
722
722
|
}
|
|
723
723
|
|
|
724
|
-
/*! @azure/msal-common v15.
|
|
724
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
725
725
|
|
|
726
726
|
/*
|
|
727
727
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -760,7 +760,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
760
760
|
},
|
|
761
761
|
};
|
|
762
762
|
|
|
763
|
-
/*! @azure/msal-common v15.
|
|
763
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
764
764
|
|
|
765
765
|
/*
|
|
766
766
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -951,12 +951,12 @@ class Logger {
|
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
953
|
|
|
954
|
-
/*! @azure/msal-common v15.
|
|
954
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
955
955
|
/* eslint-disable header/header */
|
|
956
956
|
const name$1 = "@azure/msal-common";
|
|
957
|
-
const version$1 = "15.
|
|
957
|
+
const version$1 = "15.6.0";
|
|
958
958
|
|
|
959
|
-
/*! @azure/msal-common v15.
|
|
959
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
960
960
|
/*
|
|
961
961
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
962
962
|
* Licensed under the MIT License.
|
|
@@ -976,7 +976,7 @@ const AzureCloudInstance = {
|
|
|
976
976
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
977
977
|
};
|
|
978
978
|
|
|
979
|
-
/*! @azure/msal-common v15.
|
|
979
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
980
980
|
|
|
981
981
|
/*
|
|
982
982
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1037,7 +1037,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
|
-
/*! @azure/msal-common v15.
|
|
1040
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1041
1041
|
/*
|
|
1042
1042
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1043
1043
|
* Licensed under the MIT License.
|
|
@@ -1092,7 +1092,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
1092
1092
|
return cachedAtSec > nowSeconds();
|
|
1093
1093
|
}
|
|
1094
1094
|
|
|
1095
|
-
/*! @azure/msal-common v15.
|
|
1095
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1096
1096
|
|
|
1097
1097
|
/*
|
|
1098
1098
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1419,7 +1419,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
1419
1419
|
return metadata.expiresAt <= nowSeconds();
|
|
1420
1420
|
}
|
|
1421
1421
|
|
|
1422
|
-
/*! @azure/msal-common v15.
|
|
1422
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1423
1423
|
/*
|
|
1424
1424
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1425
1425
|
* Licensed under the MIT License.
|
|
@@ -1473,7 +1473,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
1473
1473
|
urlParseError: urlParseError
|
|
1474
1474
|
});
|
|
1475
1475
|
|
|
1476
|
-
/*! @azure/msal-common v15.
|
|
1476
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1477
1477
|
|
|
1478
1478
|
/*
|
|
1479
1479
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1611,7 +1611,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
1611
1611
|
return new ClientConfigurationError(errorCode);
|
|
1612
1612
|
}
|
|
1613
1613
|
|
|
1614
|
-
/*! @azure/msal-common v15.
|
|
1614
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1615
1615
|
/*
|
|
1616
1616
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1617
1617
|
* Licensed under the MIT License.
|
|
@@ -1708,7 +1708,7 @@ class StringUtils {
|
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
1710
1710
|
|
|
1711
|
-
/*! @azure/msal-common v15.
|
|
1711
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1712
1712
|
|
|
1713
1713
|
/*
|
|
1714
1714
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1899,7 +1899,7 @@ class ScopeSet {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
}
|
|
1901
1901
|
|
|
1902
|
-
/*! @azure/msal-common v15.
|
|
1902
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1903
1903
|
|
|
1904
1904
|
/*
|
|
1905
1905
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1939,7 +1939,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
1939
1939
|
};
|
|
1940
1940
|
}
|
|
1941
1941
|
|
|
1942
|
-
/*! @azure/msal-common v15.
|
|
1942
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1943
1943
|
/*
|
|
1944
1944
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1945
1945
|
* Licensed under the MIT License.
|
|
@@ -2018,7 +2018,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
2018
2018
|
return updatedAccountInfo;
|
|
2019
2019
|
}
|
|
2020
2020
|
|
|
2021
|
-
/*! @azure/msal-common v15.
|
|
2021
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2022
2022
|
/*
|
|
2023
2023
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2024
2024
|
* Licensed under the MIT License.
|
|
@@ -2033,7 +2033,7 @@ const AuthorityType = {
|
|
|
2033
2033
|
Ciam: 3,
|
|
2034
2034
|
};
|
|
2035
2035
|
|
|
2036
|
-
/*! @azure/msal-common v15.
|
|
2036
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2037
2037
|
/*
|
|
2038
2038
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2039
2039
|
* Licensed under the MIT License.
|
|
@@ -2055,7 +2055,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
2055
2055
|
return null;
|
|
2056
2056
|
}
|
|
2057
2057
|
|
|
2058
|
-
/*! @azure/msal-common v15.
|
|
2058
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2059
2059
|
/*
|
|
2060
2060
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2061
2061
|
* Licensed under the MIT License.
|
|
@@ -2079,7 +2079,7 @@ const ProtocolMode = {
|
|
|
2079
2079
|
EAR: "EAR",
|
|
2080
2080
|
};
|
|
2081
2081
|
|
|
2082
|
-
/*! @azure/msal-common v15.
|
|
2082
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2083
2083
|
|
|
2084
2084
|
/*
|
|
2085
2085
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2322,7 +2322,7 @@ class AccountEntity {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
}
|
|
2324
2324
|
|
|
2325
|
-
/*! @azure/msal-common v15.
|
|
2325
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2326
2326
|
|
|
2327
2327
|
/*
|
|
2328
2328
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2387,7 +2387,7 @@ function mapToQueryString(parameters, encodeExtraParams = true, extraQueryParame
|
|
|
2387
2387
|
return queryParameterArray.join("&");
|
|
2388
2388
|
}
|
|
2389
2389
|
|
|
2390
|
-
/*! @azure/msal-common v15.
|
|
2390
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2391
2391
|
|
|
2392
2392
|
/*
|
|
2393
2393
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2551,7 +2551,7 @@ class UrlString {
|
|
|
2551
2551
|
}
|
|
2552
2552
|
}
|
|
2553
2553
|
|
|
2554
|
-
/*! @azure/msal-common v15.
|
|
2554
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2555
2555
|
|
|
2556
2556
|
/*
|
|
2557
2557
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2691,7 +2691,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2691
2691
|
return null;
|
|
2692
2692
|
}
|
|
2693
2693
|
|
|
2694
|
-
/*! @azure/msal-common v15.
|
|
2694
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2695
2695
|
/*
|
|
2696
2696
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2697
2697
|
* Licensed under the MIT License.
|
|
@@ -2699,7 +2699,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2699
2699
|
const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
|
|
2700
2700
|
const cacheUnknownErrorCode = "cache_error_unknown";
|
|
2701
2701
|
|
|
2702
|
-
/*! @azure/msal-common v15.
|
|
2702
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2703
2703
|
|
|
2704
2704
|
/*
|
|
2705
2705
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2726,7 +2726,7 @@ class CacheError extends Error {
|
|
|
2726
2726
|
}
|
|
2727
2727
|
}
|
|
2728
2728
|
|
|
2729
|
-
/*! @azure/msal-common v15.
|
|
2729
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2730
2730
|
|
|
2731
2731
|
/*
|
|
2732
2732
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3911,7 +3911,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3911
3911
|
}
|
|
3912
3912
|
}
|
|
3913
3913
|
|
|
3914
|
-
/*! @azure/msal-common v15.
|
|
3914
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
3915
3915
|
|
|
3916
3916
|
/*
|
|
3917
3917
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4011,7 +4011,7 @@ function isOidcProtocolMode(config) {
|
|
|
4011
4011
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
4012
4012
|
}
|
|
4013
4013
|
|
|
4014
|
-
/*! @azure/msal-common v15.
|
|
4014
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4015
4015
|
/*
|
|
4016
4016
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4017
4017
|
* Licensed under the MIT License.
|
|
@@ -4021,7 +4021,7 @@ const CcsCredentialType = {
|
|
|
4021
4021
|
UPN: "UPN",
|
|
4022
4022
|
};
|
|
4023
4023
|
|
|
4024
|
-
/*! @azure/msal-common v15.
|
|
4024
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4025
4025
|
/*
|
|
4026
4026
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4027
4027
|
* Licensed under the MIT License.
|
|
@@ -4071,7 +4071,7 @@ const INSTANCE_AWARE = "instance_aware";
|
|
|
4071
4071
|
const EAR_JWK = "ear_jwk";
|
|
4072
4072
|
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
4073
4073
|
|
|
4074
|
-
/*! @azure/msal-common v15.
|
|
4074
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4075
4075
|
|
|
4076
4076
|
/*
|
|
4077
4077
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4439,7 +4439,7 @@ function addEARParameters(parameters, jwk) {
|
|
|
4439
4439
|
parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
|
|
4440
4440
|
}
|
|
4441
4441
|
|
|
4442
|
-
/*! @azure/msal-common v15.
|
|
4442
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4443
4443
|
/*
|
|
4444
4444
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4445
4445
|
* Licensed under the MIT License.
|
|
@@ -4451,7 +4451,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
4451
4451
|
response.hasOwnProperty("jwks_uri"));
|
|
4452
4452
|
}
|
|
4453
4453
|
|
|
4454
|
-
/*! @azure/msal-common v15.
|
|
4454
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4455
4455
|
/*
|
|
4456
4456
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4457
4457
|
* Licensed under the MIT License.
|
|
@@ -4461,7 +4461,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
4461
4461
|
response.hasOwnProperty("metadata"));
|
|
4462
4462
|
}
|
|
4463
4463
|
|
|
4464
|
-
/*! @azure/msal-common v15.
|
|
4464
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4465
4465
|
/*
|
|
4466
4466
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4467
4467
|
* Licensed under the MIT License.
|
|
@@ -4471,7 +4471,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
4471
4471
|
response.hasOwnProperty("error_description"));
|
|
4472
4472
|
}
|
|
4473
4473
|
|
|
4474
|
-
/*! @azure/msal-common v15.
|
|
4474
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4475
4475
|
/*
|
|
4476
4476
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4477
4477
|
* Licensed under the MIT License.
|
|
@@ -4984,7 +4984,7 @@ const IntFields = new Set([
|
|
|
4984
4984
|
"encryptedCacheExpiredCount",
|
|
4985
4985
|
]);
|
|
4986
4986
|
|
|
4987
|
-
/*! @azure/msal-common v15.
|
|
4987
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4988
4988
|
/*
|
|
4989
4989
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4990
4990
|
* Licensed under the MIT License.
|
|
@@ -5080,7 +5080,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
5080
5080
|
};
|
|
5081
5081
|
};
|
|
5082
5082
|
|
|
5083
|
-
/*! @azure/msal-common v15.
|
|
5083
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
5084
5084
|
|
|
5085
5085
|
/*
|
|
5086
5086
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5189,7 +5189,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
5189
5189
|
},
|
|
5190
5190
|
};
|
|
5191
5191
|
|
|
5192
|
-
/*! @azure/msal-common v15.
|
|
5192
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
5193
5193
|
|
|
5194
5194
|
/*
|
|
5195
5195
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6028,7 +6028,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
6028
6028
|
};
|
|
6029
6029
|
}
|
|
6030
6030
|
|
|
6031
|
-
/*! @azure/msal-common v15.
|
|
6031
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6032
6032
|
|
|
6033
6033
|
/*
|
|
6034
6034
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6059,7 +6059,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
6059
6059
|
}
|
|
6060
6060
|
}
|
|
6061
6061
|
|
|
6062
|
-
/*! @azure/msal-common v15.
|
|
6062
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6063
6063
|
|
|
6064
6064
|
/*
|
|
6065
6065
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6078,7 +6078,7 @@ class ServerError extends AuthError {
|
|
|
6078
6078
|
}
|
|
6079
6079
|
}
|
|
6080
6080
|
|
|
6081
|
-
/*! @azure/msal-common v15.
|
|
6081
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6082
6082
|
/*
|
|
6083
6083
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6084
6084
|
* Licensed under the MIT License.
|
|
@@ -6099,7 +6099,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
6099
6099
|
};
|
|
6100
6100
|
}
|
|
6101
6101
|
|
|
6102
|
-
/*! @azure/msal-common v15.
|
|
6102
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6103
6103
|
|
|
6104
6104
|
/*
|
|
6105
6105
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6186,7 +6186,7 @@ class ThrottlingUtils {
|
|
|
6186
6186
|
}
|
|
6187
6187
|
}
|
|
6188
6188
|
|
|
6189
|
-
/*! @azure/msal-common v15.
|
|
6189
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6190
6190
|
|
|
6191
6191
|
/*
|
|
6192
6192
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6212,11 +6212,12 @@ class NetworkError extends AuthError {
|
|
|
6212
6212
|
* @param responseHeaders - Response headers of the network request, when available
|
|
6213
6213
|
* @returns NetworkError object
|
|
6214
6214
|
*/
|
|
6215
|
-
function createNetworkError(error, httpStatus, responseHeaders) {
|
|
6215
|
+
function createNetworkError(error, httpStatus, responseHeaders, additionalError) {
|
|
6216
|
+
error.errorMessage = `${error.errorMessage}, additionalErrorInfo: error.name:${additionalError?.name}, error.message:${additionalError?.message}`;
|
|
6216
6217
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6217
6218
|
}
|
|
6218
6219
|
|
|
6219
|
-
/*! @azure/msal-common v15.
|
|
6220
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6220
6221
|
|
|
6221
6222
|
/*
|
|
6222
6223
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6364,7 +6365,7 @@ class BaseClient {
|
|
|
6364
6365
|
}
|
|
6365
6366
|
}
|
|
6366
6367
|
|
|
6367
|
-
/*! @azure/msal-common v15.
|
|
6368
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6368
6369
|
/*
|
|
6369
6370
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6370
6371
|
* Licensed under the MIT License.
|
|
@@ -6390,7 +6391,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6390
6391
|
refreshTokenExpired: refreshTokenExpired
|
|
6391
6392
|
});
|
|
6392
6393
|
|
|
6393
|
-
/*! @azure/msal-common v15.
|
|
6394
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6394
6395
|
|
|
6395
6396
|
/*
|
|
6396
6397
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6478,7 +6479,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
6478
6479
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6479
6480
|
}
|
|
6480
6481
|
|
|
6481
|
-
/*! @azure/msal-common v15.
|
|
6482
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6482
6483
|
|
|
6483
6484
|
/*
|
|
6484
6485
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6550,7 +6551,7 @@ class ProtocolUtils {
|
|
|
6550
6551
|
}
|
|
6551
6552
|
}
|
|
6552
6553
|
|
|
6553
|
-
/*! @azure/msal-common v15.
|
|
6554
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6554
6555
|
|
|
6555
6556
|
/*
|
|
6556
6557
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6634,7 +6635,7 @@ class PopTokenGenerator {
|
|
|
6634
6635
|
}
|
|
6635
6636
|
}
|
|
6636
6637
|
|
|
6637
|
-
/*! @azure/msal-common v15.
|
|
6638
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6638
6639
|
/*
|
|
6639
6640
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6640
6641
|
* Licensed under the MIT License.
|
|
@@ -6661,7 +6662,7 @@ class PopTokenGenerator {
|
|
|
6661
6662
|
}
|
|
6662
6663
|
}
|
|
6663
6664
|
|
|
6664
|
-
/*! @azure/msal-common v15.
|
|
6665
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6665
6666
|
|
|
6666
6667
|
/*
|
|
6667
6668
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6992,7 +6993,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6992
6993
|
return baseAccount;
|
|
6993
6994
|
}
|
|
6994
6995
|
|
|
6995
|
-
/*! @azure/msal-common v15.
|
|
6996
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6996
6997
|
|
|
6997
6998
|
/*
|
|
6998
6999
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7059,7 +7060,7 @@ class RequestValidator {
|
|
|
7059
7060
|
}
|
|
7060
7061
|
}
|
|
7061
7062
|
|
|
7062
|
-
/*! @azure/msal-common v15.
|
|
7063
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7063
7064
|
/*
|
|
7064
7065
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7065
7066
|
* Licensed under the MIT License.
|
|
@@ -7077,7 +7078,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
7077
7078
|
}
|
|
7078
7079
|
}
|
|
7079
7080
|
|
|
7080
|
-
/*! @azure/msal-common v15.
|
|
7081
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7081
7082
|
|
|
7082
7083
|
/*
|
|
7083
7084
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7310,7 +7311,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
7310
7311
|
}
|
|
7311
7312
|
}
|
|
7312
7313
|
|
|
7313
|
-
/*! @azure/msal-common v15.
|
|
7314
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7314
7315
|
|
|
7315
7316
|
/*
|
|
7316
7317
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7519,7 +7520,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7519
7520
|
}
|
|
7520
7521
|
}
|
|
7521
7522
|
|
|
7522
|
-
/*! @azure/msal-common v15.
|
|
7523
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7523
7524
|
|
|
7524
7525
|
/*
|
|
7525
7526
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7617,7 +7618,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
7617
7618
|
}
|
|
7618
7619
|
}
|
|
7619
7620
|
|
|
7620
|
-
/*! @azure/msal-common v15.
|
|
7621
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7621
7622
|
|
|
7622
7623
|
/*
|
|
7623
7624
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7632,7 +7633,7 @@ const StubbedNetworkModule = {
|
|
|
7632
7633
|
},
|
|
7633
7634
|
};
|
|
7634
7635
|
|
|
7635
|
-
/*! @azure/msal-common v15.
|
|
7636
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7636
7637
|
|
|
7637
7638
|
/*
|
|
7638
7639
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7856,7 +7857,7 @@ function extractLoginHint(account) {
|
|
|
7856
7857
|
return account.idTokenClaims?.login_hint || null;
|
|
7857
7858
|
}
|
|
7858
7859
|
|
|
7859
|
-
/*! @azure/msal-common v15.
|
|
7860
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7860
7861
|
|
|
7861
7862
|
/*
|
|
7862
7863
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7914,7 +7915,7 @@ class AuthenticationHeaderParser {
|
|
|
7914
7915
|
}
|
|
7915
7916
|
}
|
|
7916
7917
|
|
|
7917
|
-
/*! @azure/msal-common v15.
|
|
7918
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7918
7919
|
|
|
7919
7920
|
/*
|
|
7920
7921
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8177,7 +8178,7 @@ class ServerTelemetryManager {
|
|
|
8177
8178
|
}
|
|
8178
8179
|
}
|
|
8179
8180
|
|
|
8180
|
-
/*! @azure/msal-common v15.
|
|
8181
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8181
8182
|
/*
|
|
8182
8183
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8183
8184
|
* Licensed under the MIT License.
|
|
@@ -8185,7 +8186,7 @@ class ServerTelemetryManager {
|
|
|
8185
8186
|
const missingKidError = "missing_kid_error";
|
|
8186
8187
|
const missingAlgError = "missing_alg_error";
|
|
8187
8188
|
|
|
8188
|
-
/*! @azure/msal-common v15.
|
|
8189
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8189
8190
|
|
|
8190
8191
|
/*
|
|
8191
8192
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8210,7 +8211,7 @@ function createJoseHeaderError(code) {
|
|
|
8210
8211
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
8211
8212
|
}
|
|
8212
8213
|
|
|
8213
|
-
/*! @azure/msal-common v15.
|
|
8214
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8214
8215
|
|
|
8215
8216
|
/*
|
|
8216
8217
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8250,7 +8251,7 @@ class JoseHeader {
|
|
|
8250
8251
|
}
|
|
8251
8252
|
}
|
|
8252
8253
|
|
|
8253
|
-
/*! @azure/msal-common v15.
|
|
8254
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8254
8255
|
|
|
8255
8256
|
/*
|
|
8256
8257
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8329,7 +8330,7 @@ class StubPerformanceClient {
|
|
|
8329
8330
|
}
|
|
8330
8331
|
}
|
|
8331
8332
|
|
|
8332
|
-
/*! @azure/msal-common v15.
|
|
8333
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8333
8334
|
|
|
8334
8335
|
/*
|
|
8335
8336
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10201,9 +10202,9 @@ class FetchClient {
|
|
|
10201
10202
|
});
|
|
10202
10203
|
}
|
|
10203
10204
|
catch (e) {
|
|
10204
|
-
throw createBrowserAuthError(window.navigator.onLine
|
|
10205
|
+
throw createNetworkError(createBrowserAuthError(window.navigator.onLine
|
|
10205
10206
|
? getRequestFailed
|
|
10206
|
-
: noNetworkConnectivity);
|
|
10207
|
+
: noNetworkConnectivity), undefined, undefined, e);
|
|
10207
10208
|
}
|
|
10208
10209
|
responseHeaders = getHeaderDict(response.headers);
|
|
10209
10210
|
try {
|
|
@@ -10215,7 +10216,7 @@ class FetchClient {
|
|
|
10215
10216
|
};
|
|
10216
10217
|
}
|
|
10217
10218
|
catch (e) {
|
|
10218
|
-
throw createNetworkError(createBrowserAuthError(failedToParseResponse), responseStatus, responseHeaders);
|
|
10219
|
+
throw createNetworkError(createBrowserAuthError(failedToParseResponse), responseStatus, responseHeaders, e);
|
|
10219
10220
|
}
|
|
10220
10221
|
}
|
|
10221
10222
|
/**
|
|
@@ -10238,9 +10239,9 @@ class FetchClient {
|
|
|
10238
10239
|
});
|
|
10239
10240
|
}
|
|
10240
10241
|
catch (e) {
|
|
10241
|
-
throw createBrowserAuthError(window.navigator.onLine
|
|
10242
|
+
throw createNetworkError(createBrowserAuthError(window.navigator.onLine
|
|
10242
10243
|
? postRequestFailed
|
|
10243
|
-
: noNetworkConnectivity);
|
|
10244
|
+
: noNetworkConnectivity), undefined, undefined, e);
|
|
10244
10245
|
}
|
|
10245
10246
|
responseHeaders = getHeaderDict(response.headers);
|
|
10246
10247
|
try {
|
|
@@ -10252,7 +10253,7 @@ class FetchClient {
|
|
|
10252
10253
|
};
|
|
10253
10254
|
}
|
|
10254
10255
|
catch (e) {
|
|
10255
|
-
throw createNetworkError(createBrowserAuthError(failedToParseResponse), responseStatus, responseHeaders);
|
|
10256
|
+
throw createNetworkError(createBrowserAuthError(failedToParseResponse), responseStatus, responseHeaders, e);
|
|
10256
10257
|
}
|
|
10257
10258
|
}
|
|
10258
10259
|
}
|
|
@@ -10273,7 +10274,7 @@ function getFetchHeaders(options) {
|
|
|
10273
10274
|
return headers;
|
|
10274
10275
|
}
|
|
10275
10276
|
catch (e) {
|
|
10276
|
-
throw createBrowserAuthError(failedToBuildHeaders);
|
|
10277
|
+
throw createNetworkError(createBrowserAuthError(failedToBuildHeaders), undefined, undefined, e);
|
|
10277
10278
|
}
|
|
10278
10279
|
}
|
|
10279
10280
|
/**
|
|
@@ -10427,7 +10428,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
10427
10428
|
|
|
10428
10429
|
/* eslint-disable header/header */
|
|
10429
10430
|
const name = "@azure/msal-browser";
|
|
10430
|
-
const version = "4.
|
|
10431
|
+
const version = "4.12.0";
|
|
10431
10432
|
|
|
10432
10433
|
/*
|
|
10433
10434
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11485,7 +11486,6 @@ class LocalStorage {
|
|
|
11485
11486
|
this.broadcast = new BroadcastChannel(BROADCAST_CHANNEL_NAME$1);
|
|
11486
11487
|
}
|
|
11487
11488
|
async initialize(correlationId) {
|
|
11488
|
-
this.initialized = true;
|
|
11489
11489
|
const cookies = new CookieStorage();
|
|
11490
11490
|
const cookieString = cookies.getItem(ENCRYPTION_KEY);
|
|
11491
11491
|
let parsedCookie = { key: "", id: "" };
|
|
@@ -11525,6 +11525,7 @@ class LocalStorage {
|
|
|
11525
11525
|
}
|
|
11526
11526
|
// Register listener for cache updates in other tabs
|
|
11527
11527
|
this.broadcast.addEventListener("message", this.updateCache.bind(this));
|
|
11528
|
+
this.initialized = true;
|
|
11528
11529
|
}
|
|
11529
11530
|
getItem(key) {
|
|
11530
11531
|
return window.localStorage.getItem(key);
|
|
@@ -12524,7 +12525,17 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12524
12525
|
getInteractionInProgress() {
|
|
12525
12526
|
const key = `${Constants.CACHE_PREFIX}.${TemporaryCacheKeys.INTERACTION_STATUS_KEY}`;
|
|
12526
12527
|
const value = this.getTemporaryCache(key, false);
|
|
12527
|
-
|
|
12528
|
+
try {
|
|
12529
|
+
return value ? JSON.parse(value) : null;
|
|
12530
|
+
}
|
|
12531
|
+
catch (e) {
|
|
12532
|
+
// Remove interaction and other temp keys if interaction status can't be parsed
|
|
12533
|
+
this.logger.error(`Cannot parse interaction status. Removing temporary cache items and clearing url hash. Retrying interaction should fix the error`);
|
|
12534
|
+
this.removeTemporaryItem(key);
|
|
12535
|
+
this.resetRequestCache();
|
|
12536
|
+
clearHash(window);
|
|
12537
|
+
return null;
|
|
12538
|
+
}
|
|
12528
12539
|
}
|
|
12529
12540
|
setInteractionInProgress(inProgress, type = INTERACTION_TYPE.SIGNIN) {
|
|
12530
12541
|
// Ensure we don't overwrite interaction in progress for a different clientId
|
|
@@ -16154,6 +16165,25 @@ class SilentAuthCodeClient extends StandardInteractionClient {
|
|
|
16154
16165
|
}
|
|
16155
16166
|
}
|
|
16156
16167
|
|
|
16168
|
+
/*
|
|
16169
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
16170
|
+
* Licensed under the MIT License.
|
|
16171
|
+
*/
|
|
16172
|
+
function collectInstanceStats(currentClientId, performanceEvent, logger) {
|
|
16173
|
+
const frameInstances =
|
|
16174
|
+
// @ts-ignore
|
|
16175
|
+
window.msal?.clientIds || [];
|
|
16176
|
+
const msalInstanceCount = frameInstances.length;
|
|
16177
|
+
const sameClientIdInstanceCount = frameInstances.filter((i) => i === currentClientId).length;
|
|
16178
|
+
if (sameClientIdInstanceCount > 1) {
|
|
16179
|
+
logger.warning("There is already an instance of MSAL.js in the window with the same client id.");
|
|
16180
|
+
}
|
|
16181
|
+
performanceEvent.add({
|
|
16182
|
+
msalInstanceCount: msalInstanceCount,
|
|
16183
|
+
sameClientIdInstanceCount: sameClientIdInstanceCount,
|
|
16184
|
+
});
|
|
16185
|
+
}
|
|
16186
|
+
|
|
16157
16187
|
/*
|
|
16158
16188
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
16159
16189
|
* Licensed under the MIT License.
|
|
@@ -16265,7 +16295,7 @@ class StandardController {
|
|
|
16265
16295
|
* Initializer function to perform async startup tasks such as connecting to WAM extension
|
|
16266
16296
|
* @param request {?InitializeApplicationRequest} correlation id
|
|
16267
16297
|
*/
|
|
16268
|
-
async initialize(request) {
|
|
16298
|
+
async initialize(request, isBroker) {
|
|
16269
16299
|
this.logger.trace("initialize called");
|
|
16270
16300
|
if (this.initialized) {
|
|
16271
16301
|
this.logger.info("initialize has already been called, exiting early.");
|
|
@@ -16281,6 +16311,13 @@ class StandardController {
|
|
|
16281
16311
|
const allowPlatformBroker = this.config.system.allowPlatformBroker;
|
|
16282
16312
|
const initMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.InitializeClientApplication, initCorrelationId);
|
|
16283
16313
|
this.eventHandler.emitEvent(EventType.INITIALIZE_START);
|
|
16314
|
+
// Broker applications are initialized twice, so we avoid double-counting it
|
|
16315
|
+
if (!isBroker) {
|
|
16316
|
+
try {
|
|
16317
|
+
this.logMultipleInstances(initMeasurement);
|
|
16318
|
+
}
|
|
16319
|
+
catch { }
|
|
16320
|
+
}
|
|
16284
16321
|
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), PerformanceEvents.InitializeCache, this.logger, this.performanceClient, initCorrelationId)(initCorrelationId);
|
|
16285
16322
|
if (allowPlatformBroker) {
|
|
16286
16323
|
try {
|
|
@@ -17534,6 +17571,23 @@ class StandardController {
|
|
|
17534
17571
|
this.performanceClient.addFields({ usePreGeneratedPkce: !!res }, correlationId);
|
|
17535
17572
|
return res;
|
|
17536
17573
|
}
|
|
17574
|
+
logMultipleInstances(performanceEvent) {
|
|
17575
|
+
const clientId = this.config.auth.clientId;
|
|
17576
|
+
if (!window)
|
|
17577
|
+
return;
|
|
17578
|
+
// @ts-ignore
|
|
17579
|
+
window.msal = window.msal || {};
|
|
17580
|
+
// @ts-ignore
|
|
17581
|
+
window.msal.clientIds = window.msal.clientIds || [];
|
|
17582
|
+
// @ts-ignore
|
|
17583
|
+
const clientIds = window.msal.clientIds;
|
|
17584
|
+
if (clientIds.length > 0) {
|
|
17585
|
+
this.logger.verbose("There is already an instance of MSAL.js in the window.");
|
|
17586
|
+
}
|
|
17587
|
+
// @ts-ignore
|
|
17588
|
+
window.msal.clientIds.push(clientId);
|
|
17589
|
+
collectInstanceStats(clientId, performanceEvent, this.logger);
|
|
17590
|
+
}
|
|
17537
17591
|
}
|
|
17538
17592
|
/**
|
|
17539
17593
|
* Determines whether an error thrown by the refresh token endpoint can be resolved without interaction
|
|
@@ -17820,7 +17874,9 @@ class NestedAppAuthController {
|
|
|
17820
17874
|
* Specific implementation of initialize function for NestedAppAuthController
|
|
17821
17875
|
* @returns
|
|
17822
17876
|
*/
|
|
17823
|
-
async initialize(request
|
|
17877
|
+
async initialize(request,
|
|
17878
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17879
|
+
isBroker) {
|
|
17824
17880
|
const initCorrelationId = request?.correlationId || createNewGuid();
|
|
17825
17881
|
await this.browserStorage.initialize(initCorrelationId);
|
|
17826
17882
|
return Promise.resolve();
|
|
@@ -18342,6 +18398,7 @@ class PublicClientApplication {
|
|
|
18342
18398
|
* @param IController Optional parameter to explictly set the controller. (Will be removed when we remove public constructor)
|
|
18343
18399
|
*/
|
|
18344
18400
|
constructor(configuration, controller) {
|
|
18401
|
+
this.isBroker = false;
|
|
18345
18402
|
this.controller =
|
|
18346
18403
|
controller ||
|
|
18347
18404
|
new StandardController(new StandardOperatingContext(configuration));
|
|
@@ -18351,7 +18408,7 @@ class PublicClientApplication {
|
|
|
18351
18408
|
* @param request {?InitializeApplicationRequest}
|
|
18352
18409
|
*/
|
|
18353
18410
|
async initialize(request) {
|
|
18354
|
-
return this.controller.initialize(request);
|
|
18411
|
+
return this.controller.initialize(request, this.isBroker);
|
|
18355
18412
|
}
|
|
18356
18413
|
/**
|
|
18357
18414
|
* Use when you want to obtain an access_token for your API via opening a popup window in the user's browser
|