@azure/msal-browser 4.9.0 → 4.10.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 +7 -3
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +8 -7
- 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/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +1 -10
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +2 -2
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +32 -20
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
- package/dist/crypto/BrowserCrypto.d.ts +6 -0
- package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +2 -2
- package/dist/crypto/BrowserCrypto.mjs.map +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.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +4 -4
- package/dist/interaction_client/RedirectClient.mjs.map +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.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.d.ts.map +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.d.ts +5 -0
- package/dist/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/utils/BrowserConstants.mjs +6 -2
- package/dist/utils/BrowserConstants.mjs.map +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/lib/msal-browser.cjs +112 -103
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +112 -103
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +64 -64
- package/lib/types/cache/BrowserCacheManager.d.ts +7 -3
- package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/lib/types/config/Configuration.d.ts.map +1 -1
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/crypto/BrowserCrypto.d.ts +6 -0
- package/lib/types/crypto/BrowserCrypto.d.ts.map +1 -1
- package/lib/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/packageMetadata.d.ts.map +1 -1
- package/lib/types/utils/BrowserConstants.d.ts +5 -0
- package/lib/types/utils/BrowserConstants.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/cache/BrowserCacheManager.ts +43 -31
- package/src/config/Configuration.ts +0 -12
- package/src/controllers/NestedAppAuthController.ts +1 -1
- package/src/controllers/StandardController.ts +82 -54
- package/src/crypto/BrowserCrypto.ts +1 -1
- package/src/interaction_client/RedirectClient.ts +9 -2
- package/src/packageMetadata.ts +1 -1
- package/src/utils/BrowserConstants.ts +7 -0
package/lib/msal-browser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.10.0 2025-04-08 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v15.
|
|
5
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -72,6 +72,7 @@ const HttpStatus = {
|
|
|
72
72
|
UNAUTHORIZED: 401,
|
|
73
73
|
NOT_FOUND: 404,
|
|
74
74
|
REQUEST_TIMEOUT: 408,
|
|
75
|
+
GONE: 410,
|
|
75
76
|
TOO_MANY_REQUESTS: 429,
|
|
76
77
|
CLIENT_ERROR_RANGE_END: 499,
|
|
77
78
|
SERVER_ERROR: 500,
|
|
@@ -304,7 +305,7 @@ const JsonWebTokenTypes = {
|
|
|
304
305
|
// Token renewal offset default in seconds
|
|
305
306
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
306
307
|
|
|
307
|
-
/*! @azure/msal-common v15.
|
|
308
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
308
309
|
/*
|
|
309
310
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
310
311
|
* Licensed under the MIT License.
|
|
@@ -321,7 +322,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
321
322
|
unexpectedError: unexpectedError
|
|
322
323
|
});
|
|
323
324
|
|
|
324
|
-
/*! @azure/msal-common v15.
|
|
325
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
325
326
|
|
|
326
327
|
/*
|
|
327
328
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -370,7 +371,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
370
371
|
: AuthErrorMessages[code]);
|
|
371
372
|
}
|
|
372
373
|
|
|
373
|
-
/*! @azure/msal-common v15.
|
|
374
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
374
375
|
/*
|
|
375
376
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
376
377
|
* Licensed under the MIT License.
|
|
@@ -468,7 +469,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
468
469
|
userTimeoutReached: userTimeoutReached
|
|
469
470
|
});
|
|
470
471
|
|
|
471
|
-
/*! @azure/msal-common v15.
|
|
472
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
472
473
|
|
|
473
474
|
/*
|
|
474
475
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -720,7 +721,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
720
721
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
721
722
|
}
|
|
722
723
|
|
|
723
|
-
/*! @azure/msal-common v15.
|
|
724
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
724
725
|
|
|
725
726
|
/*
|
|
726
727
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -759,7 +760,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
759
760
|
},
|
|
760
761
|
};
|
|
761
762
|
|
|
762
|
-
/*! @azure/msal-common v15.
|
|
763
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
763
764
|
|
|
764
765
|
/*
|
|
765
766
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -950,12 +951,12 @@ class Logger {
|
|
|
950
951
|
}
|
|
951
952
|
}
|
|
952
953
|
|
|
953
|
-
/*! @azure/msal-common v15.
|
|
954
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
954
955
|
/* eslint-disable header/header */
|
|
955
956
|
const name$1 = "@azure/msal-common";
|
|
956
|
-
const version$1 = "15.
|
|
957
|
+
const version$1 = "15.5.0";
|
|
957
958
|
|
|
958
|
-
/*! @azure/msal-common v15.
|
|
959
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
959
960
|
/*
|
|
960
961
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
961
962
|
* Licensed under the MIT License.
|
|
@@ -975,7 +976,7 @@ const AzureCloudInstance = {
|
|
|
975
976
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
976
977
|
};
|
|
977
978
|
|
|
978
|
-
/*! @azure/msal-common v15.
|
|
979
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
979
980
|
|
|
980
981
|
/*
|
|
981
982
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1036,7 +1037,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1036
1037
|
}
|
|
1037
1038
|
}
|
|
1038
1039
|
|
|
1039
|
-
/*! @azure/msal-common v15.
|
|
1040
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1040
1041
|
/*
|
|
1041
1042
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1042
1043
|
* Licensed under the MIT License.
|
|
@@ -1091,7 +1092,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
1091
1092
|
return cachedAtSec > nowSeconds();
|
|
1092
1093
|
}
|
|
1093
1094
|
|
|
1094
|
-
/*! @azure/msal-common v15.
|
|
1095
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1095
1096
|
|
|
1096
1097
|
/*
|
|
1097
1098
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1418,7 +1419,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
1418
1419
|
return metadata.expiresAt <= nowSeconds();
|
|
1419
1420
|
}
|
|
1420
1421
|
|
|
1421
|
-
/*! @azure/msal-common v15.
|
|
1422
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1422
1423
|
/*
|
|
1423
1424
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1424
1425
|
* Licensed under the MIT License.
|
|
@@ -1472,7 +1473,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
1472
1473
|
urlParseError: urlParseError
|
|
1473
1474
|
});
|
|
1474
1475
|
|
|
1475
|
-
/*! @azure/msal-common v15.
|
|
1476
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1476
1477
|
|
|
1477
1478
|
/*
|
|
1478
1479
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1610,7 +1611,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
1610
1611
|
return new ClientConfigurationError(errorCode);
|
|
1611
1612
|
}
|
|
1612
1613
|
|
|
1613
|
-
/*! @azure/msal-common v15.
|
|
1614
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1614
1615
|
/*
|
|
1615
1616
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1616
1617
|
* Licensed under the MIT License.
|
|
@@ -1707,7 +1708,7 @@ class StringUtils {
|
|
|
1707
1708
|
}
|
|
1708
1709
|
}
|
|
1709
1710
|
|
|
1710
|
-
/*! @azure/msal-common v15.
|
|
1711
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1711
1712
|
|
|
1712
1713
|
/*
|
|
1713
1714
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1898,7 +1899,7 @@ class ScopeSet {
|
|
|
1898
1899
|
}
|
|
1899
1900
|
}
|
|
1900
1901
|
|
|
1901
|
-
/*! @azure/msal-common v15.
|
|
1902
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1902
1903
|
|
|
1903
1904
|
/*
|
|
1904
1905
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1938,7 +1939,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
1938
1939
|
};
|
|
1939
1940
|
}
|
|
1940
1941
|
|
|
1941
|
-
/*! @azure/msal-common v15.
|
|
1942
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
1942
1943
|
/*
|
|
1943
1944
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1944
1945
|
* Licensed under the MIT License.
|
|
@@ -2017,7 +2018,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
2017
2018
|
return updatedAccountInfo;
|
|
2018
2019
|
}
|
|
2019
2020
|
|
|
2020
|
-
/*! @azure/msal-common v15.
|
|
2021
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2021
2022
|
/*
|
|
2022
2023
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2023
2024
|
* Licensed under the MIT License.
|
|
@@ -2032,7 +2033,7 @@ const AuthorityType = {
|
|
|
2032
2033
|
Ciam: 3,
|
|
2033
2034
|
};
|
|
2034
2035
|
|
|
2035
|
-
/*! @azure/msal-common v15.
|
|
2036
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2036
2037
|
/*
|
|
2037
2038
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2038
2039
|
* Licensed under the MIT License.
|
|
@@ -2054,7 +2055,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
2054
2055
|
return null;
|
|
2055
2056
|
}
|
|
2056
2057
|
|
|
2057
|
-
/*! @azure/msal-common v15.
|
|
2058
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2058
2059
|
/*
|
|
2059
2060
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2060
2061
|
* Licensed under the MIT License.
|
|
@@ -2078,7 +2079,7 @@ const ProtocolMode = {
|
|
|
2078
2079
|
EAR: "EAR",
|
|
2079
2080
|
};
|
|
2080
2081
|
|
|
2081
|
-
/*! @azure/msal-common v15.
|
|
2082
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2082
2083
|
|
|
2083
2084
|
/*
|
|
2084
2085
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2321,7 +2322,7 @@ class AccountEntity {
|
|
|
2321
2322
|
}
|
|
2322
2323
|
}
|
|
2323
2324
|
|
|
2324
|
-
/*! @azure/msal-common v15.
|
|
2325
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2325
2326
|
|
|
2326
2327
|
/*
|
|
2327
2328
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2379,7 +2380,7 @@ function mapToQueryString(parameters) {
|
|
|
2379
2380
|
return queryParameterArray.join("&");
|
|
2380
2381
|
}
|
|
2381
2382
|
|
|
2382
|
-
/*! @azure/msal-common v15.
|
|
2383
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2383
2384
|
|
|
2384
2385
|
/*
|
|
2385
2386
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2543,7 +2544,7 @@ class UrlString {
|
|
|
2543
2544
|
}
|
|
2544
2545
|
}
|
|
2545
2546
|
|
|
2546
|
-
/*! @azure/msal-common v15.
|
|
2547
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2547
2548
|
|
|
2548
2549
|
/*
|
|
2549
2550
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2683,7 +2684,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2683
2684
|
return null;
|
|
2684
2685
|
}
|
|
2685
2686
|
|
|
2686
|
-
/*! @azure/msal-common v15.
|
|
2687
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2687
2688
|
/*
|
|
2688
2689
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2689
2690
|
* Licensed under the MIT License.
|
|
@@ -2691,7 +2692,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2691
2692
|
const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
|
|
2692
2693
|
const cacheUnknownErrorCode = "cache_error_unknown";
|
|
2693
2694
|
|
|
2694
|
-
/*! @azure/msal-common v15.
|
|
2695
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2695
2696
|
|
|
2696
2697
|
/*
|
|
2697
2698
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2718,7 +2719,7 @@ class CacheError extends Error {
|
|
|
2718
2719
|
}
|
|
2719
2720
|
}
|
|
2720
2721
|
|
|
2721
|
-
/*! @azure/msal-common v15.
|
|
2722
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
2722
2723
|
|
|
2723
2724
|
/*
|
|
2724
2725
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3903,7 +3904,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3903
3904
|
}
|
|
3904
3905
|
}
|
|
3905
3906
|
|
|
3906
|
-
/*! @azure/msal-common v15.
|
|
3907
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
3907
3908
|
|
|
3908
3909
|
/*
|
|
3909
3910
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4002,7 +4003,7 @@ function isOidcProtocolMode(config) {
|
|
|
4002
4003
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
4003
4004
|
}
|
|
4004
4005
|
|
|
4005
|
-
/*! @azure/msal-common v15.
|
|
4006
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4006
4007
|
/*
|
|
4007
4008
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4008
4009
|
* Licensed under the MIT License.
|
|
@@ -4012,7 +4013,7 @@ const CcsCredentialType = {
|
|
|
4012
4013
|
UPN: "UPN",
|
|
4013
4014
|
};
|
|
4014
4015
|
|
|
4015
|
-
/*! @azure/msal-common v15.
|
|
4016
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4016
4017
|
/*
|
|
4017
4018
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4018
4019
|
* Licensed under the MIT License.
|
|
@@ -4062,7 +4063,7 @@ const INSTANCE_AWARE = "instance_aware";
|
|
|
4062
4063
|
const EAR_JWK = "ear_jwk";
|
|
4063
4064
|
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
4064
4065
|
|
|
4065
|
-
/*! @azure/msal-common v15.
|
|
4066
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4066
4067
|
|
|
4067
4068
|
/*
|
|
4068
4069
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4430,7 +4431,7 @@ function addEARParameters(parameters, jwk) {
|
|
|
4430
4431
|
parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
|
|
4431
4432
|
}
|
|
4432
4433
|
|
|
4433
|
-
/*! @azure/msal-common v15.
|
|
4434
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4434
4435
|
/*
|
|
4435
4436
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4436
4437
|
* Licensed under the MIT License.
|
|
@@ -4442,7 +4443,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
4442
4443
|
response.hasOwnProperty("jwks_uri"));
|
|
4443
4444
|
}
|
|
4444
4445
|
|
|
4445
|
-
/*! @azure/msal-common v15.
|
|
4446
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4446
4447
|
/*
|
|
4447
4448
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4448
4449
|
* Licensed under the MIT License.
|
|
@@ -4452,7 +4453,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
4452
4453
|
response.hasOwnProperty("metadata"));
|
|
4453
4454
|
}
|
|
4454
4455
|
|
|
4455
|
-
/*! @azure/msal-common v15.
|
|
4456
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4456
4457
|
/*
|
|
4457
4458
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4458
4459
|
* Licensed under the MIT License.
|
|
@@ -4462,7 +4463,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
4462
4463
|
response.hasOwnProperty("error_description"));
|
|
4463
4464
|
}
|
|
4464
4465
|
|
|
4465
|
-
/*! @azure/msal-common v15.
|
|
4466
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4466
4467
|
/*
|
|
4467
4468
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4468
4469
|
* Licensed under the MIT License.
|
|
@@ -4975,7 +4976,7 @@ const IntFields = new Set([
|
|
|
4975
4976
|
"encryptedCacheExpiredCount",
|
|
4976
4977
|
]);
|
|
4977
4978
|
|
|
4978
|
-
/*! @azure/msal-common v15.
|
|
4979
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
4979
4980
|
/*
|
|
4980
4981
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4981
4982
|
* Licensed under the MIT License.
|
|
@@ -5071,7 +5072,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
5071
5072
|
};
|
|
5072
5073
|
};
|
|
5073
5074
|
|
|
5074
|
-
/*! @azure/msal-common v15.
|
|
5075
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
5075
5076
|
|
|
5076
5077
|
/*
|
|
5077
5078
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5180,7 +5181,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
5180
5181
|
},
|
|
5181
5182
|
};
|
|
5182
5183
|
|
|
5183
|
-
/*! @azure/msal-common v15.
|
|
5184
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
5184
5185
|
|
|
5185
5186
|
/*
|
|
5186
5187
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6019,7 +6020,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
6019
6020
|
};
|
|
6020
6021
|
}
|
|
6021
6022
|
|
|
6022
|
-
/*! @azure/msal-common v15.
|
|
6023
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6023
6024
|
|
|
6024
6025
|
/*
|
|
6025
6026
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6050,7 +6051,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
6050
6051
|
}
|
|
6051
6052
|
}
|
|
6052
6053
|
|
|
6053
|
-
/*! @azure/msal-common v15.
|
|
6054
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6054
6055
|
|
|
6055
6056
|
/*
|
|
6056
6057
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6069,7 +6070,7 @@ class ServerError extends AuthError {
|
|
|
6069
6070
|
}
|
|
6070
6071
|
}
|
|
6071
6072
|
|
|
6072
|
-
/*! @azure/msal-common v15.
|
|
6073
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6073
6074
|
/*
|
|
6074
6075
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6075
6076
|
* Licensed under the MIT License.
|
|
@@ -6090,7 +6091,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
6090
6091
|
};
|
|
6091
6092
|
}
|
|
6092
6093
|
|
|
6093
|
-
/*! @azure/msal-common v15.
|
|
6094
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6094
6095
|
|
|
6095
6096
|
/*
|
|
6096
6097
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6177,7 +6178,7 @@ class ThrottlingUtils {
|
|
|
6177
6178
|
}
|
|
6178
6179
|
}
|
|
6179
6180
|
|
|
6180
|
-
/*! @azure/msal-common v15.
|
|
6181
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6181
6182
|
|
|
6182
6183
|
/*
|
|
6183
6184
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6207,7 +6208,7 @@ function createNetworkError(error, httpStatus, responseHeaders) {
|
|
|
6207
6208
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6208
6209
|
}
|
|
6209
6210
|
|
|
6210
|
-
/*! @azure/msal-common v15.
|
|
6211
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6211
6212
|
|
|
6212
6213
|
/*
|
|
6213
6214
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6355,7 +6356,7 @@ class BaseClient {
|
|
|
6355
6356
|
}
|
|
6356
6357
|
}
|
|
6357
6358
|
|
|
6358
|
-
/*! @azure/msal-common v15.
|
|
6359
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6359
6360
|
/*
|
|
6360
6361
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6361
6362
|
* Licensed under the MIT License.
|
|
@@ -6381,7 +6382,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6381
6382
|
refreshTokenExpired: refreshTokenExpired
|
|
6382
6383
|
});
|
|
6383
6384
|
|
|
6384
|
-
/*! @azure/msal-common v15.
|
|
6385
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6385
6386
|
|
|
6386
6387
|
/*
|
|
6387
6388
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6469,7 +6470,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
6469
6470
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6470
6471
|
}
|
|
6471
6472
|
|
|
6472
|
-
/*! @azure/msal-common v15.
|
|
6473
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6473
6474
|
|
|
6474
6475
|
/*
|
|
6475
6476
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6541,7 +6542,7 @@ class ProtocolUtils {
|
|
|
6541
6542
|
}
|
|
6542
6543
|
}
|
|
6543
6544
|
|
|
6544
|
-
/*! @azure/msal-common v15.
|
|
6545
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6545
6546
|
|
|
6546
6547
|
/*
|
|
6547
6548
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6625,7 +6626,7 @@ class PopTokenGenerator {
|
|
|
6625
6626
|
}
|
|
6626
6627
|
}
|
|
6627
6628
|
|
|
6628
|
-
/*! @azure/msal-common v15.
|
|
6629
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6629
6630
|
/*
|
|
6630
6631
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6631
6632
|
* Licensed under the MIT License.
|
|
@@ -6652,7 +6653,7 @@ class PopTokenGenerator {
|
|
|
6652
6653
|
}
|
|
6653
6654
|
}
|
|
6654
6655
|
|
|
6655
|
-
/*! @azure/msal-common v15.
|
|
6656
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6656
6657
|
|
|
6657
6658
|
/*
|
|
6658
6659
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6983,7 +6984,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6983
6984
|
return baseAccount;
|
|
6984
6985
|
}
|
|
6985
6986
|
|
|
6986
|
-
/*! @azure/msal-common v15.
|
|
6987
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
6987
6988
|
|
|
6988
6989
|
/*
|
|
6989
6990
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7050,7 +7051,7 @@ class RequestValidator {
|
|
|
7050
7051
|
}
|
|
7051
7052
|
}
|
|
7052
7053
|
|
|
7053
|
-
/*! @azure/msal-common v15.
|
|
7054
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7054
7055
|
/*
|
|
7055
7056
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7056
7057
|
* Licensed under the MIT License.
|
|
@@ -7068,7 +7069,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
7068
7069
|
}
|
|
7069
7070
|
}
|
|
7070
7071
|
|
|
7071
|
-
/*! @azure/msal-common v15.
|
|
7072
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7072
7073
|
|
|
7073
7074
|
/*
|
|
7074
7075
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7301,7 +7302,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
7301
7302
|
}
|
|
7302
7303
|
}
|
|
7303
7304
|
|
|
7304
|
-
/*! @azure/msal-common v15.
|
|
7305
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7305
7306
|
|
|
7306
7307
|
/*
|
|
7307
7308
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7510,7 +7511,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7510
7511
|
}
|
|
7511
7512
|
}
|
|
7512
7513
|
|
|
7513
|
-
/*! @azure/msal-common v15.
|
|
7514
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7514
7515
|
|
|
7515
7516
|
/*
|
|
7516
7517
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7608,7 +7609,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
7608
7609
|
}
|
|
7609
7610
|
}
|
|
7610
7611
|
|
|
7611
|
-
/*! @azure/msal-common v15.
|
|
7612
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7612
7613
|
|
|
7613
7614
|
/*
|
|
7614
7615
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7623,7 +7624,7 @@ const StubbedNetworkModule = {
|
|
|
7623
7624
|
},
|
|
7624
7625
|
};
|
|
7625
7626
|
|
|
7626
|
-
/*! @azure/msal-common v15.
|
|
7627
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7627
7628
|
|
|
7628
7629
|
/*
|
|
7629
7630
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7847,7 +7848,7 @@ function extractLoginHint(account) {
|
|
|
7847
7848
|
return account.idTokenClaims?.login_hint || null;
|
|
7848
7849
|
}
|
|
7849
7850
|
|
|
7850
|
-
/*! @azure/msal-common v15.
|
|
7851
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7851
7852
|
|
|
7852
7853
|
/*
|
|
7853
7854
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7905,7 +7906,7 @@ class AuthenticationHeaderParser {
|
|
|
7905
7906
|
}
|
|
7906
7907
|
}
|
|
7907
7908
|
|
|
7908
|
-
/*! @azure/msal-common v15.
|
|
7909
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
7909
7910
|
|
|
7910
7911
|
/*
|
|
7911
7912
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8168,7 +8169,7 @@ class ServerTelemetryManager {
|
|
|
8168
8169
|
}
|
|
8169
8170
|
}
|
|
8170
8171
|
|
|
8171
|
-
/*! @azure/msal-common v15.
|
|
8172
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
8172
8173
|
/*
|
|
8173
8174
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8174
8175
|
* Licensed under the MIT License.
|
|
@@ -8176,7 +8177,7 @@ class ServerTelemetryManager {
|
|
|
8176
8177
|
const missingKidError = "missing_kid_error";
|
|
8177
8178
|
const missingAlgError = "missing_alg_error";
|
|
8178
8179
|
|
|
8179
|
-
/*! @azure/msal-common v15.
|
|
8180
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
8180
8181
|
|
|
8181
8182
|
/*
|
|
8182
8183
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8201,7 +8202,7 @@ function createJoseHeaderError(code) {
|
|
|
8201
8202
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
8202
8203
|
}
|
|
8203
8204
|
|
|
8204
|
-
/*! @azure/msal-common v15.
|
|
8205
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
8205
8206
|
|
|
8206
8207
|
/*
|
|
8207
8208
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8241,7 +8242,7 @@ class JoseHeader {
|
|
|
8241
8242
|
}
|
|
8242
8243
|
}
|
|
8243
8244
|
|
|
8244
|
-
/*! @azure/msal-common v15.
|
|
8245
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
8245
8246
|
|
|
8246
8247
|
/*
|
|
8247
8248
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8320,7 +8321,7 @@ class StubPerformanceClient {
|
|
|
8320
8321
|
}
|
|
8321
8322
|
}
|
|
8322
8323
|
|
|
8323
|
-
/*! @azure/msal-common v15.
|
|
8324
|
+
/*! @azure/msal-common v15.5.0 2025-04-08 */
|
|
8324
8325
|
|
|
8325
8326
|
/*
|
|
8326
8327
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9362,6 +9363,10 @@ const HTTP_REQUEST_TYPE = {
|
|
|
9362
9363
|
GET: "GET",
|
|
9363
9364
|
POST: "POST",
|
|
9364
9365
|
};
|
|
9366
|
+
const INTERACTION_TYPE = {
|
|
9367
|
+
SIGNIN: "signin",
|
|
9368
|
+
SIGNOUT: "signout",
|
|
9369
|
+
};
|
|
9365
9370
|
/**
|
|
9366
9371
|
* Temporary cache keys for MSAL, deleted after any request.
|
|
9367
9372
|
*/
|
|
@@ -10408,21 +10413,12 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
10408
10413
|
system: providedSystemOptions,
|
|
10409
10414
|
telemetry: { ...DEFAULT_TELEMETRY_OPTIONS, ...userInputTelemetry },
|
|
10410
10415
|
};
|
|
10411
|
-
/**
|
|
10412
|
-
* Temporarily disable EAR until implementation is complete
|
|
10413
|
-
* TODO: Remove this
|
|
10414
|
-
*/
|
|
10415
|
-
if (overlayedConfig.auth.protocolMode === ProtocolMode.EAR) {
|
|
10416
|
-
const logger = new Logger(providedSystemOptions.loggerOptions);
|
|
10417
|
-
logger.warning("EAR Protocol Mode is not yet supported. Overriding to use PKCE auth");
|
|
10418
|
-
overlayedConfig.auth.protocolMode = ProtocolMode.AAD;
|
|
10419
|
-
}
|
|
10420
10416
|
return overlayedConfig;
|
|
10421
10417
|
}
|
|
10422
10418
|
|
|
10423
10419
|
/* eslint-disable header/header */
|
|
10424
10420
|
const name = "@azure/msal-browser";
|
|
10425
|
-
const version = "4.
|
|
10421
|
+
const version = "4.10.0";
|
|
10426
10422
|
|
|
10427
10423
|
/*
|
|
10428
10424
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -12508,7 +12504,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12508
12504
|
return parsedRequest;
|
|
12509
12505
|
}
|
|
12510
12506
|
isInteractionInProgress(matchClientId) {
|
|
12511
|
-
const clientId = this.getInteractionInProgress();
|
|
12507
|
+
const clientId = this.getInteractionInProgress()?.clientId;
|
|
12512
12508
|
if (matchClientId) {
|
|
12513
12509
|
return clientId === this.clientId;
|
|
12514
12510
|
}
|
|
@@ -12518,9 +12514,10 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12518
12514
|
}
|
|
12519
12515
|
getInteractionInProgress() {
|
|
12520
12516
|
const key = `${Constants.CACHE_PREFIX}.${TemporaryCacheKeys.INTERACTION_STATUS_KEY}`;
|
|
12521
|
-
|
|
12517
|
+
const value = this.getTemporaryCache(key, false);
|
|
12518
|
+
return value ? JSON.parse(value) : null;
|
|
12522
12519
|
}
|
|
12523
|
-
setInteractionInProgress(inProgress) {
|
|
12520
|
+
setInteractionInProgress(inProgress, type = INTERACTION_TYPE.SIGNIN) {
|
|
12524
12521
|
// Ensure we don't overwrite interaction in progress for a different clientId
|
|
12525
12522
|
const key = `${Constants.CACHE_PREFIX}.${TemporaryCacheKeys.INTERACTION_STATUS_KEY}`;
|
|
12526
12523
|
if (inProgress) {
|
|
@@ -12529,11 +12526,11 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12529
12526
|
}
|
|
12530
12527
|
else {
|
|
12531
12528
|
// No interaction is in progress
|
|
12532
|
-
this.setTemporaryCache(key, this.clientId, false);
|
|
12529
|
+
this.setTemporaryCache(key, JSON.stringify({ clientId: this.clientId, type }), false);
|
|
12533
12530
|
}
|
|
12534
12531
|
}
|
|
12535
12532
|
else if (!inProgress &&
|
|
12536
|
-
this.getInteractionInProgress() === this.clientId) {
|
|
12533
|
+
this.getInteractionInProgress()?.clientId === this.clientId) {
|
|
12537
12534
|
this.removeTemporaryItem(key);
|
|
12538
12535
|
}
|
|
12539
12536
|
}
|
|
@@ -15489,7 +15486,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
15489
15486
|
this.logger.verbose("Logout onRedirectNavigate did not return false, navigating");
|
|
15490
15487
|
// Ensure interaction is in progress
|
|
15491
15488
|
if (!this.browserStorage.getInteractionInProgress()) {
|
|
15492
|
-
this.browserStorage.setInteractionInProgress(true);
|
|
15489
|
+
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNOUT);
|
|
15493
15490
|
}
|
|
15494
15491
|
await this.navigationClient.navigateExternal(logoutUri, navigationOptions);
|
|
15495
15492
|
return;
|
|
@@ -15503,7 +15500,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
15503
15500
|
else {
|
|
15504
15501
|
// Ensure interaction is in progress
|
|
15505
15502
|
if (!this.browserStorage.getInteractionInProgress()) {
|
|
15506
|
-
this.browserStorage.setInteractionInProgress(true);
|
|
15503
|
+
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNOUT);
|
|
15507
15504
|
}
|
|
15508
15505
|
await this.navigationClient.navigateExternal(logoutUri, navigationOptions);
|
|
15509
15506
|
return;
|
|
@@ -16341,29 +16338,41 @@ class StandardController {
|
|
|
16341
16338
|
this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null.");
|
|
16342
16339
|
return null;
|
|
16343
16340
|
}
|
|
16341
|
+
const interactionType = this.browserStorage.getInteractionInProgress()?.type;
|
|
16342
|
+
if (interactionType === INTERACTION_TYPE.SIGNOUT) {
|
|
16343
|
+
this.logger.verbose("handleRedirectPromise removing interaction_in_progress flag and returning null after sign-out");
|
|
16344
|
+
this.browserStorage.setInteractionInProgress(false);
|
|
16345
|
+
return Promise.resolve(null);
|
|
16346
|
+
}
|
|
16344
16347
|
const loggedInAccounts = this.getAllAccounts();
|
|
16345
16348
|
const platformBrokerRequest = this.browserStorage.getCachedNativeRequest();
|
|
16346
16349
|
const useNative = platformBrokerRequest &&
|
|
16347
16350
|
NativeMessageHandler.isPlatformBrokerAvailable(this.config, this.logger, this.nativeExtensionProvider) &&
|
|
16348
16351
|
this.nativeExtensionProvider &&
|
|
16349
16352
|
!hash;
|
|
16350
|
-
let rootMeasurement
|
|
16353
|
+
let rootMeasurement;
|
|
16351
16354
|
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, exports.InteractionType.Redirect);
|
|
16352
16355
|
let redirectResponse;
|
|
16353
|
-
|
|
16354
|
-
|
|
16355
|
-
|
|
16356
|
-
|
|
16356
|
+
try {
|
|
16357
|
+
if (useNative && this.nativeExtensionProvider) {
|
|
16358
|
+
rootMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenRedirect, platformBrokerRequest?.correlationId || "");
|
|
16359
|
+
this.logger.trace("handleRedirectPromise - acquiring token from native platform");
|
|
16360
|
+
const nativeClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, platformBrokerRequest.accountId, this.nativeInternalStorage, platformBrokerRequest.correlationId);
|
|
16361
|
+
redirectResponse = invokeAsync(nativeClient.handleRedirectPromise.bind(nativeClient), PerformanceEvents.HandleNativeRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(this.performanceClient, rootMeasurement.event.correlationId);
|
|
16362
|
+
}
|
|
16363
|
+
else {
|
|
16364
|
+
const [standardRequest, codeVerifier] = this.browserStorage.getCachedRequest();
|
|
16365
|
+
const correlationId = standardRequest.correlationId;
|
|
16366
|
+
// Reset rootMeasurement now that we have correlationId
|
|
16367
|
+
rootMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenRedirect, correlationId);
|
|
16368
|
+
this.logger.trace("handleRedirectPromise - acquiring token from web flow");
|
|
16369
|
+
const redirectClient = this.createRedirectClient(correlationId);
|
|
16370
|
+
redirectResponse = invokeAsync(redirectClient.handleRedirectPromise.bind(redirectClient), PerformanceEvents.HandleRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(hash, standardRequest, codeVerifier, rootMeasurement);
|
|
16371
|
+
}
|
|
16357
16372
|
}
|
|
16358
|
-
|
|
16359
|
-
|
|
16360
|
-
|
|
16361
|
-
// Reset rootMeasurement now that we have correlationId
|
|
16362
|
-
rootMeasurement.discard();
|
|
16363
|
-
rootMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenRedirect, correlationId);
|
|
16364
|
-
this.logger.trace("handleRedirectPromise - acquiring token from web flow");
|
|
16365
|
-
const redirectClient = this.createRedirectClient(correlationId);
|
|
16366
|
-
redirectResponse = invokeAsync(redirectClient.handleRedirectPromise.bind(redirectClient), PerformanceEvents.HandleRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(hash, standardRequest, codeVerifier, rootMeasurement);
|
|
16373
|
+
catch (e) {
|
|
16374
|
+
this.browserStorage.resetRequestCache();
|
|
16375
|
+
throw e;
|
|
16367
16376
|
}
|
|
16368
16377
|
return redirectResponse
|
|
16369
16378
|
.then((result) => {
|
|
@@ -16469,7 +16478,7 @@ class StandardController {
|
|
|
16469
16478
|
const isLoggedIn = this.getAllAccounts().length > 0;
|
|
16470
16479
|
try {
|
|
16471
16480
|
redirectPreflightCheck(this.initialized, this.config);
|
|
16472
|
-
this.browserStorage.setInteractionInProgress(true);
|
|
16481
|
+
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
|
|
16473
16482
|
if (isLoggedIn) {
|
|
16474
16483
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Redirect, request);
|
|
16475
16484
|
}
|
|
@@ -16534,7 +16543,7 @@ class StandardController {
|
|
|
16534
16543
|
try {
|
|
16535
16544
|
this.logger.verbose("acquireTokenPopup called", correlationId);
|
|
16536
16545
|
preflightCheck(this.initialized, atPopupMeasurement);
|
|
16537
|
-
this.browserStorage.setInteractionInProgress(true);
|
|
16546
|
+
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
|
|
16538
16547
|
}
|
|
16539
16548
|
catch (e) {
|
|
16540
16549
|
// Since this function is syncronous we need to reject
|
|
@@ -16909,7 +16918,7 @@ class StandardController {
|
|
|
16909
16918
|
async logoutRedirect(logoutRequest) {
|
|
16910
16919
|
const correlationId = this.getRequestCorrelationId(logoutRequest);
|
|
16911
16920
|
redirectPreflightCheck(this.initialized, this.config);
|
|
16912
|
-
this.browserStorage.setInteractionInProgress(true);
|
|
16921
|
+
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNOUT);
|
|
16913
16922
|
const redirectClient = this.createRedirectClient(correlationId);
|
|
16914
16923
|
return redirectClient.logout(logoutRequest);
|
|
16915
16924
|
}
|
|
@@ -16921,7 +16930,7 @@ class StandardController {
|
|
|
16921
16930
|
try {
|
|
16922
16931
|
const correlationId = this.getRequestCorrelationId(logoutRequest);
|
|
16923
16932
|
preflightCheck$1(this.initialized);
|
|
16924
|
-
this.browserStorage.setInteractionInProgress(true);
|
|
16933
|
+
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNOUT);
|
|
16925
16934
|
const popupClient = this.createPopupClient(correlationId);
|
|
16926
16935
|
return popupClient.logout(logoutRequest).finally(() => {
|
|
16927
16936
|
this.browserStorage.setInteractionInProgress(false);
|
|
@@ -17970,7 +17979,7 @@ class NestedAppAuthController {
|
|
|
17970
17979
|
});
|
|
17971
17980
|
return result;
|
|
17972
17981
|
}
|
|
17973
|
-
this.logger.
|
|
17982
|
+
this.logger.warning("Cached tokens are not found for the account, proceeding with silent token request.");
|
|
17974
17983
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null);
|
|
17975
17984
|
atsMeasurement?.end({
|
|
17976
17985
|
success: false,
|