@azure/msal-browser 4.11.1 → 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/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.mjs +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.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/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.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 +128 -72
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +128 -72
- 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/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/packageMetadata.d.ts +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/controllers/IController.ts +4 -1
- package/src/controllers/NestedAppAuthController.ts +5 -1
- package/src/controllers/StandardController.ts +36 -1
- package/src/packageMetadata.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.
|
|
@@ -6217,7 +6217,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
6217
6217
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6218
6218
|
}
|
|
6219
6219
|
|
|
6220
|
-
/*! @azure/msal-common v15.
|
|
6220
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6221
6221
|
|
|
6222
6222
|
/*
|
|
6223
6223
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6365,7 +6365,7 @@ class BaseClient {
|
|
|
6365
6365
|
}
|
|
6366
6366
|
}
|
|
6367
6367
|
|
|
6368
|
-
/*! @azure/msal-common v15.
|
|
6368
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6369
6369
|
/*
|
|
6370
6370
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6371
6371
|
* Licensed under the MIT License.
|
|
@@ -6391,7 +6391,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6391
6391
|
refreshTokenExpired: refreshTokenExpired
|
|
6392
6392
|
});
|
|
6393
6393
|
|
|
6394
|
-
/*! @azure/msal-common v15.
|
|
6394
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6395
6395
|
|
|
6396
6396
|
/*
|
|
6397
6397
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6479,7 +6479,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
6479
6479
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6480
6480
|
}
|
|
6481
6481
|
|
|
6482
|
-
/*! @azure/msal-common v15.
|
|
6482
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6483
6483
|
|
|
6484
6484
|
/*
|
|
6485
6485
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6551,7 +6551,7 @@ class ProtocolUtils {
|
|
|
6551
6551
|
}
|
|
6552
6552
|
}
|
|
6553
6553
|
|
|
6554
|
-
/*! @azure/msal-common v15.
|
|
6554
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6555
6555
|
|
|
6556
6556
|
/*
|
|
6557
6557
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6635,7 +6635,7 @@ class PopTokenGenerator {
|
|
|
6635
6635
|
}
|
|
6636
6636
|
}
|
|
6637
6637
|
|
|
6638
|
-
/*! @azure/msal-common v15.
|
|
6638
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6639
6639
|
/*
|
|
6640
6640
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6641
6641
|
* Licensed under the MIT License.
|
|
@@ -6662,7 +6662,7 @@ class PopTokenGenerator {
|
|
|
6662
6662
|
}
|
|
6663
6663
|
}
|
|
6664
6664
|
|
|
6665
|
-
/*! @azure/msal-common v15.
|
|
6665
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6666
6666
|
|
|
6667
6667
|
/*
|
|
6668
6668
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6993,7 +6993,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6993
6993
|
return baseAccount;
|
|
6994
6994
|
}
|
|
6995
6995
|
|
|
6996
|
-
/*! @azure/msal-common v15.
|
|
6996
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6997
6997
|
|
|
6998
6998
|
/*
|
|
6999
6999
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7060,7 +7060,7 @@ class RequestValidator {
|
|
|
7060
7060
|
}
|
|
7061
7061
|
}
|
|
7062
7062
|
|
|
7063
|
-
/*! @azure/msal-common v15.
|
|
7063
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7064
7064
|
/*
|
|
7065
7065
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7066
7066
|
* Licensed under the MIT License.
|
|
@@ -7078,7 +7078,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
7078
7078
|
}
|
|
7079
7079
|
}
|
|
7080
7080
|
|
|
7081
|
-
/*! @azure/msal-common v15.
|
|
7081
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7082
7082
|
|
|
7083
7083
|
/*
|
|
7084
7084
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7311,7 +7311,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
7311
7311
|
}
|
|
7312
7312
|
}
|
|
7313
7313
|
|
|
7314
|
-
/*! @azure/msal-common v15.
|
|
7314
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7315
7315
|
|
|
7316
7316
|
/*
|
|
7317
7317
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7520,7 +7520,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7520
7520
|
}
|
|
7521
7521
|
}
|
|
7522
7522
|
|
|
7523
|
-
/*! @azure/msal-common v15.
|
|
7523
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7524
7524
|
|
|
7525
7525
|
/*
|
|
7526
7526
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7618,7 +7618,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
7618
7618
|
}
|
|
7619
7619
|
}
|
|
7620
7620
|
|
|
7621
|
-
/*! @azure/msal-common v15.
|
|
7621
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7622
7622
|
|
|
7623
7623
|
/*
|
|
7624
7624
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7633,7 +7633,7 @@ const StubbedNetworkModule = {
|
|
|
7633
7633
|
},
|
|
7634
7634
|
};
|
|
7635
7635
|
|
|
7636
|
-
/*! @azure/msal-common v15.
|
|
7636
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7637
7637
|
|
|
7638
7638
|
/*
|
|
7639
7639
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7857,7 +7857,7 @@ function extractLoginHint(account) {
|
|
|
7857
7857
|
return account.idTokenClaims?.login_hint || null;
|
|
7858
7858
|
}
|
|
7859
7859
|
|
|
7860
|
-
/*! @azure/msal-common v15.
|
|
7860
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7861
7861
|
|
|
7862
7862
|
/*
|
|
7863
7863
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7915,7 +7915,7 @@ class AuthenticationHeaderParser {
|
|
|
7915
7915
|
}
|
|
7916
7916
|
}
|
|
7917
7917
|
|
|
7918
|
-
/*! @azure/msal-common v15.
|
|
7918
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7919
7919
|
|
|
7920
7920
|
/*
|
|
7921
7921
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8178,7 +8178,7 @@ class ServerTelemetryManager {
|
|
|
8178
8178
|
}
|
|
8179
8179
|
}
|
|
8180
8180
|
|
|
8181
|
-
/*! @azure/msal-common v15.
|
|
8181
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8182
8182
|
/*
|
|
8183
8183
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8184
8184
|
* Licensed under the MIT License.
|
|
@@ -8186,7 +8186,7 @@ class ServerTelemetryManager {
|
|
|
8186
8186
|
const missingKidError = "missing_kid_error";
|
|
8187
8187
|
const missingAlgError = "missing_alg_error";
|
|
8188
8188
|
|
|
8189
|
-
/*! @azure/msal-common v15.
|
|
8189
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8190
8190
|
|
|
8191
8191
|
/*
|
|
8192
8192
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8211,7 +8211,7 @@ function createJoseHeaderError(code) {
|
|
|
8211
8211
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
8212
8212
|
}
|
|
8213
8213
|
|
|
8214
|
-
/*! @azure/msal-common v15.
|
|
8214
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8215
8215
|
|
|
8216
8216
|
/*
|
|
8217
8217
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8251,7 +8251,7 @@ class JoseHeader {
|
|
|
8251
8251
|
}
|
|
8252
8252
|
}
|
|
8253
8253
|
|
|
8254
|
-
/*! @azure/msal-common v15.
|
|
8254
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8255
8255
|
|
|
8256
8256
|
/*
|
|
8257
8257
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8330,7 +8330,7 @@ class StubPerformanceClient {
|
|
|
8330
8330
|
}
|
|
8331
8331
|
}
|
|
8332
8332
|
|
|
8333
|
-
/*! @azure/msal-common v15.
|
|
8333
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8334
8334
|
|
|
8335
8335
|
/*
|
|
8336
8336
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10428,7 +10428,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
10428
10428
|
|
|
10429
10429
|
/* eslint-disable header/header */
|
|
10430
10430
|
const name = "@azure/msal-browser";
|
|
10431
|
-
const version = "4.
|
|
10431
|
+
const version = "4.12.0";
|
|
10432
10432
|
|
|
10433
10433
|
/*
|
|
10434
10434
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -12525,7 +12525,17 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12525
12525
|
getInteractionInProgress() {
|
|
12526
12526
|
const key = `${Constants.CACHE_PREFIX}.${TemporaryCacheKeys.INTERACTION_STATUS_KEY}`;
|
|
12527
12527
|
const value = this.getTemporaryCache(key, false);
|
|
12528
|
-
|
|
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
|
+
}
|
|
12529
12539
|
}
|
|
12530
12540
|
setInteractionInProgress(inProgress, type = INTERACTION_TYPE.SIGNIN) {
|
|
12531
12541
|
// Ensure we don't overwrite interaction in progress for a different clientId
|
|
@@ -16155,6 +16165,25 @@ class SilentAuthCodeClient extends StandardInteractionClient {
|
|
|
16155
16165
|
}
|
|
16156
16166
|
}
|
|
16157
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
|
+
|
|
16158
16187
|
/*
|
|
16159
16188
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
16160
16189
|
* Licensed under the MIT License.
|
|
@@ -16266,7 +16295,7 @@ class StandardController {
|
|
|
16266
16295
|
* Initializer function to perform async startup tasks such as connecting to WAM extension
|
|
16267
16296
|
* @param request {?InitializeApplicationRequest} correlation id
|
|
16268
16297
|
*/
|
|
16269
|
-
async initialize(request) {
|
|
16298
|
+
async initialize(request, isBroker) {
|
|
16270
16299
|
this.logger.trace("initialize called");
|
|
16271
16300
|
if (this.initialized) {
|
|
16272
16301
|
this.logger.info("initialize has already been called, exiting early.");
|
|
@@ -16282,6 +16311,13 @@ class StandardController {
|
|
|
16282
16311
|
const allowPlatformBroker = this.config.system.allowPlatformBroker;
|
|
16283
16312
|
const initMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.InitializeClientApplication, initCorrelationId);
|
|
16284
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
|
+
}
|
|
16285
16321
|
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), PerformanceEvents.InitializeCache, this.logger, this.performanceClient, initCorrelationId)(initCorrelationId);
|
|
16286
16322
|
if (allowPlatformBroker) {
|
|
16287
16323
|
try {
|
|
@@ -17535,6 +17571,23 @@ class StandardController {
|
|
|
17535
17571
|
this.performanceClient.addFields({ usePreGeneratedPkce: !!res }, correlationId);
|
|
17536
17572
|
return res;
|
|
17537
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
|
+
}
|
|
17538
17591
|
}
|
|
17539
17592
|
/**
|
|
17540
17593
|
* Determines whether an error thrown by the refresh token endpoint can be resolved without interaction
|
|
@@ -17821,7 +17874,9 @@ class NestedAppAuthController {
|
|
|
17821
17874
|
* Specific implementation of initialize function for NestedAppAuthController
|
|
17822
17875
|
* @returns
|
|
17823
17876
|
*/
|
|
17824
|
-
async initialize(request
|
|
17877
|
+
async initialize(request,
|
|
17878
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17879
|
+
isBroker) {
|
|
17825
17880
|
const initCorrelationId = request?.correlationId || createNewGuid();
|
|
17826
17881
|
await this.browserStorage.initialize(initCorrelationId);
|
|
17827
17882
|
return Promise.resolve();
|
|
@@ -18343,6 +18398,7 @@ class PublicClientApplication {
|
|
|
18343
18398
|
* @param IController Optional parameter to explictly set the controller. (Will be removed when we remove public constructor)
|
|
18344
18399
|
*/
|
|
18345
18400
|
constructor(configuration, controller) {
|
|
18401
|
+
this.isBroker = false;
|
|
18346
18402
|
this.controller =
|
|
18347
18403
|
controller ||
|
|
18348
18404
|
new StandardController(new StandardOperatingContext(configuration));
|
|
@@ -18352,7 +18408,7 @@ class PublicClientApplication {
|
|
|
18352
18408
|
* @param request {?InitializeApplicationRequest}
|
|
18353
18409
|
*/
|
|
18354
18410
|
async initialize(request) {
|
|
18355
|
-
return this.controller.initialize(request);
|
|
18411
|
+
return this.controller.initialize(request, this.isBroker);
|
|
18356
18412
|
}
|
|
18357
18413
|
/**
|
|
18358
18414
|
* Use when you want to obtain an access_token for your API via opening a popup window in the user's browser
|