@azure/msal-browser 5.17.1 → 5.17.3
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/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +2 -4
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.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/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +23 -26
- package/dist/controllers/StandardController.mjs.map +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/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom_auth/index.mjs +1 -1
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.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/PlatformAuthInteractionClient.mjs +123 -59
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +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/log-strings-mapping.json +1201 -1201
- 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 +39 -13
- 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/packageMetadata.mjs +2 -2
- package/dist/popup_relay/constants.mjs +1 -1
- package/dist/popup_relay/index.mjs +1 -1
- package/dist/popup_relay/relayClient.mjs +1 -1
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/redirect_bridge/index.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/BrowserPerformanceEvents.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.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/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +2 -2
- package/lib/custom-auth-path/msal-custom-auth.cjs +250 -165
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +250 -165
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +2 -2
- package/lib/msal-browser.cjs +253 -167
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +253 -167
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
- package/lib/popup-relay/msal-popup-relay.js +2 -2
- package/lib/popup-relay/msal-popup-relay.js.map +1 -1
- package/lib/popup-relay/msal-popup-relay.min.js +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
- package/package.json +2 -2
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +0 -4
- package/src/broker/nativeBroker/PlatformAuthRequest.ts +4 -7
- package/src/controllers/StandardController.ts +24 -29
- package/src/interaction_client/PlatformAuthInteractionClient.ts +160 -72
- package/src/network/FetchClient.ts +62 -14
- package/src/packageMetadata.ts +1 -1
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +3 -6
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts +3 -0
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts +13 -3
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/network/FetchClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
package/lib/msal-browser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.17.
|
|
1
|
+
/*! @azure/msal-browser v5.17.3 2026-07-29 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v16.11.
|
|
5
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -54,7 +54,7 @@ const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
|
54
54
|
const RESOURCE = "resource";
|
|
55
55
|
const CLI_DATA = "clidata";
|
|
56
56
|
|
|
57
|
-
/*! @azure/msal-common v16.11.
|
|
57
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
58
58
|
/*
|
|
59
59
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
60
60
|
* Licensed under the MIT License.
|
|
@@ -290,7 +290,7 @@ const JsonWebTokenTypes$1 = {
|
|
|
290
290
|
// Token renewal offset default in seconds
|
|
291
291
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
292
292
|
|
|
293
|
-
/*! @azure/msal-common v16.11.
|
|
293
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
294
294
|
/*
|
|
295
295
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
296
296
|
* Licensed under the MIT License.
|
|
@@ -319,7 +319,7 @@ function createAuthError(code, correlationId, additionalMessage) {
|
|
|
319
319
|
return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
/*! @azure/msal-common v16.11.
|
|
322
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
323
323
|
|
|
324
324
|
/*
|
|
325
325
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -342,7 +342,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
|
|
|
342
342
|
return new ClientAuthError(errorCode, correlationId, additionalMessage);
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
/*! @azure/msal-common v16.11.
|
|
345
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
346
346
|
/*
|
|
347
347
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
348
348
|
* Licensed under the MIT License.
|
|
@@ -426,7 +426,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
426
426
|
userCanceled: userCanceled
|
|
427
427
|
});
|
|
428
428
|
|
|
429
|
-
/*! @azure/msal-common v16.11.
|
|
429
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
430
430
|
|
|
431
431
|
/*
|
|
432
432
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -464,7 +464,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
464
464
|
};
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
-
/*! @azure/msal-common v16.11.
|
|
467
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
468
468
|
|
|
469
469
|
/*
|
|
470
470
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -530,7 +530,7 @@ function getJWSPayload(authToken, correlationId) {
|
|
|
530
530
|
return matches[2];
|
|
531
531
|
}
|
|
532
532
|
|
|
533
|
-
/*! @azure/msal-common v16.11.
|
|
533
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
534
534
|
|
|
535
535
|
/*
|
|
536
536
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -618,7 +618,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
618
618
|
return updatedAccountInfo;
|
|
619
619
|
}
|
|
620
620
|
|
|
621
|
-
/*! @azure/msal-common v16.11.
|
|
621
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
622
622
|
/*
|
|
623
623
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
624
624
|
* Licensed under the MIT License.
|
|
@@ -633,7 +633,7 @@ const AuthorityType = {
|
|
|
633
633
|
Ciam: 3,
|
|
634
634
|
};
|
|
635
635
|
|
|
636
|
-
/*! @azure/msal-common v16.11.
|
|
636
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
637
637
|
/*
|
|
638
638
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
639
639
|
* Licensed under the MIT License.
|
|
@@ -655,7 +655,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
655
655
|
return null;
|
|
656
656
|
}
|
|
657
657
|
|
|
658
|
-
/*! @azure/msal-common v16.11.
|
|
658
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
659
659
|
/*
|
|
660
660
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
661
661
|
* Licensed under the MIT License.
|
|
@@ -679,7 +679,7 @@ const ProtocolMode = {
|
|
|
679
679
|
EAR: "EAR",
|
|
680
680
|
};
|
|
681
681
|
|
|
682
|
-
/*! @azure/msal-common v16.11.
|
|
682
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
683
683
|
/**
|
|
684
684
|
* Returns the AccountInfo interface for this account.
|
|
685
685
|
* @internal
|
|
@@ -868,7 +868,7 @@ function isAccountEntity(entity) {
|
|
|
868
868
|
entity.hasOwnProperty("authorityType"));
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
/*! @azure/msal-common v16.11.
|
|
871
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
872
872
|
/*
|
|
873
873
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
874
874
|
* Licensed under the MIT License.
|
|
@@ -885,7 +885,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
885
885
|
unexpectedError: unexpectedError
|
|
886
886
|
});
|
|
887
887
|
|
|
888
|
-
/*! @azure/msal-common v16.11.
|
|
888
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
889
889
|
|
|
890
890
|
/*
|
|
891
891
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -905,7 +905,7 @@ function createClientConfigurationError(errorCode, correlationId) {
|
|
|
905
905
|
return new ClientConfigurationError(errorCode, correlationId);
|
|
906
906
|
}
|
|
907
907
|
|
|
908
|
-
/*! @azure/msal-common v16.11.
|
|
908
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
909
909
|
/*
|
|
910
910
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
911
911
|
* Licensed under the MIT License.
|
|
@@ -969,7 +969,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
969
969
|
urlParseError: urlParseError
|
|
970
970
|
});
|
|
971
971
|
|
|
972
|
-
/*! @azure/msal-common v16.11.
|
|
972
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
973
973
|
|
|
974
974
|
/*
|
|
975
975
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1027,7 +1027,7 @@ class AuthenticationHeaderParser {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
1029
|
|
|
1030
|
-
/*! @azure/msal-common v16.11.
|
|
1030
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1031
1031
|
/*
|
|
1032
1032
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1033
1033
|
* Licensed under the MIT License.
|
|
@@ -1039,7 +1039,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
1039
1039
|
response.hasOwnProperty("jwks_uri"));
|
|
1040
1040
|
}
|
|
1041
1041
|
|
|
1042
|
-
/*! @azure/msal-common v16.11.
|
|
1042
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1043
1043
|
/*
|
|
1044
1044
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1045
1045
|
* Licensed under the MIT License.
|
|
@@ -1119,7 +1119,7 @@ class StringUtils {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
1121
|
|
|
1122
|
-
/*! @azure/msal-common v16.11.
|
|
1122
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1123
1123
|
|
|
1124
1124
|
/*
|
|
1125
1125
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1277,7 +1277,7 @@ class UrlString {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
1279
|
|
|
1280
|
-
/*! @azure/msal-common v16.11.
|
|
1280
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1281
1281
|
|
|
1282
1282
|
/*
|
|
1283
1283
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1443,7 +1443,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1443
1443
|
return null;
|
|
1444
1444
|
}
|
|
1445
1445
|
|
|
1446
|
-
/*! @azure/msal-common v16.11.
|
|
1446
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1447
1447
|
/*
|
|
1448
1448
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1449
1449
|
* Licensed under the MIT License.
|
|
@@ -1463,7 +1463,7 @@ const AzureCloudInstance = {
|
|
|
1463
1463
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1464
1464
|
};
|
|
1465
1465
|
|
|
1466
|
-
/*! @azure/msal-common v16.11.
|
|
1466
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1467
1467
|
/*
|
|
1468
1468
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1469
1469
|
* Licensed under the MIT License.
|
|
@@ -1473,7 +1473,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
1473
1473
|
response.hasOwnProperty("metadata"));
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
|
-
/*! @azure/msal-common v16.11.
|
|
1476
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1477
1477
|
/*
|
|
1478
1478
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1479
1479
|
* Licensed under the MIT License.
|
|
@@ -1483,7 +1483,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
1483
1483
|
response.hasOwnProperty("error_description"));
|
|
1484
1484
|
}
|
|
1485
1485
|
|
|
1486
|
-
/*! @azure/msal-common v16.11.
|
|
1486
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1487
1487
|
/*
|
|
1488
1488
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1489
1489
|
* Licensed under the MIT License.
|
|
@@ -1554,7 +1554,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
1554
1554
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
1555
1555
|
const SetUserData = "setUserData";
|
|
1556
1556
|
|
|
1557
|
-
/*! @azure/msal-common v16.11.
|
|
1557
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1558
1558
|
/*
|
|
1559
1559
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1560
1560
|
* Licensed under the MIT License.
|
|
@@ -1647,7 +1647,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
1647
1647
|
};
|
|
1648
1648
|
};
|
|
1649
1649
|
|
|
1650
|
-
/*! @azure/msal-common v16.11.
|
|
1650
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1651
1651
|
|
|
1652
1652
|
/*
|
|
1653
1653
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1758,7 +1758,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
1758
1758
|
},
|
|
1759
1759
|
};
|
|
1760
1760
|
|
|
1761
|
-
/*! @azure/msal-common v16.11.
|
|
1761
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1762
1762
|
/*
|
|
1763
1763
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1764
1764
|
* Licensed under the MIT License.
|
|
@@ -1823,7 +1823,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
1823
1823
|
return cachedAtSec > nowSeconds();
|
|
1824
1824
|
}
|
|
1825
1825
|
|
|
1826
|
-
/*! @azure/msal-common v16.11.
|
|
1826
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1827
1827
|
|
|
1828
1828
|
/*
|
|
1829
1829
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2090,7 +2090,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
2090
2090
|
return metadata.expiresAt <= nowSeconds();
|
|
2091
2091
|
}
|
|
2092
2092
|
|
|
2093
|
-
/*! @azure/msal-common v16.11.
|
|
2093
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
2094
2094
|
|
|
2095
2095
|
/*
|
|
2096
2096
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3060,7 +3060,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
3060
3060
|
};
|
|
3061
3061
|
}
|
|
3062
3062
|
|
|
3063
|
-
/*! @azure/msal-common v16.11.
|
|
3063
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3064
3064
|
|
|
3065
3065
|
/*
|
|
3066
3066
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3094,7 +3094,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
3094
3094
|
}
|
|
3095
3095
|
}
|
|
3096
3096
|
|
|
3097
|
-
/*! @azure/msal-common v16.11.
|
|
3097
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3098
3098
|
|
|
3099
3099
|
/*
|
|
3100
3100
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3290,7 +3290,7 @@ class ScopeSet {
|
|
|
3290
3290
|
}
|
|
3291
3291
|
}
|
|
3292
3292
|
|
|
3293
|
-
/*! @azure/msal-common v16.11.
|
|
3293
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3294
3294
|
|
|
3295
3295
|
/*
|
|
3296
3296
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3705,7 +3705,7 @@ function addResource(parameters, resource) {
|
|
|
3705
3705
|
}
|
|
3706
3706
|
}
|
|
3707
3707
|
|
|
3708
|
-
/*! @azure/msal-common v16.11.
|
|
3708
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3709
3709
|
|
|
3710
3710
|
/*
|
|
3711
3711
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3827,7 +3827,7 @@ function validateUrl(url, logger, correlationId) {
|
|
|
3827
3827
|
}
|
|
3828
3828
|
}
|
|
3829
3829
|
|
|
3830
|
-
/*! @azure/msal-common v16.11.
|
|
3830
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3831
3831
|
|
|
3832
3832
|
/*
|
|
3833
3833
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3870,7 +3870,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
3870
3870
|
},
|
|
3871
3871
|
};
|
|
3872
3872
|
|
|
3873
|
-
/*! @azure/msal-common v16.11.
|
|
3873
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3874
3874
|
/*
|
|
3875
3875
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3876
3876
|
* Licensed under the MIT License.
|
|
@@ -4159,12 +4159,12 @@ class Logger {
|
|
|
4159
4159
|
}
|
|
4160
4160
|
}
|
|
4161
4161
|
|
|
4162
|
-
/*! @azure/msal-common v16.11.
|
|
4162
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
4163
4163
|
/* eslint-disable header/header */
|
|
4164
4164
|
const name$1 = "@azure/msal-common";
|
|
4165
|
-
const version$1 = "16.11.
|
|
4165
|
+
const version$1 = "16.11.3";
|
|
4166
4166
|
|
|
4167
|
-
/*! @azure/msal-common v16.11.
|
|
4167
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
4168
4168
|
/*
|
|
4169
4169
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4170
4170
|
* Licensed under the MIT License.
|
|
@@ -4172,7 +4172,7 @@ const version$1 = "16.11.2";
|
|
|
4172
4172
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
4173
4173
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
4174
4174
|
|
|
4175
|
-
/*! @azure/msal-common v16.11.
|
|
4175
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
4176
4176
|
|
|
4177
4177
|
/*
|
|
4178
4178
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4210,7 +4210,7 @@ function createCacheError(e) {
|
|
|
4210
4210
|
}
|
|
4211
4211
|
}
|
|
4212
4212
|
|
|
4213
|
-
/*! @azure/msal-common v16.11.
|
|
4213
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
4214
4214
|
|
|
4215
4215
|
/*
|
|
4216
4216
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5358,7 +5358,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5358
5358
|
}
|
|
5359
5359
|
}
|
|
5360
5360
|
|
|
5361
|
-
/*! @azure/msal-common v16.11.
|
|
5361
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5362
5362
|
/*
|
|
5363
5363
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5364
5364
|
* Licensed under the MIT License.
|
|
@@ -5420,9 +5420,10 @@ const IntFields = new Set([
|
|
|
5420
5420
|
"networkRtt",
|
|
5421
5421
|
"redirectBridgeTimeoutMs",
|
|
5422
5422
|
"redirectBridgeMessageVersion",
|
|
5423
|
+
"fetchRetryCount",
|
|
5423
5424
|
]);
|
|
5424
5425
|
|
|
5425
|
-
/*! @azure/msal-common v16.11.
|
|
5426
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5426
5427
|
|
|
5427
5428
|
/*
|
|
5428
5429
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5480,7 +5481,7 @@ class StubPerformanceClient {
|
|
|
5480
5481
|
}
|
|
5481
5482
|
}
|
|
5482
5483
|
|
|
5483
|
-
/*! @azure/msal-common v16.11.
|
|
5484
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5484
5485
|
|
|
5485
5486
|
/*
|
|
5486
5487
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5576,7 +5577,7 @@ function isOidcProtocolMode(config) {
|
|
|
5576
5577
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
5577
5578
|
}
|
|
5578
5579
|
|
|
5579
|
-
/*! @azure/msal-common v16.11.
|
|
5580
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5580
5581
|
/*
|
|
5581
5582
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5582
5583
|
* Licensed under the MIT License.
|
|
@@ -5603,7 +5604,7 @@ function isOidcProtocolMode(config) {
|
|
|
5603
5604
|
}
|
|
5604
5605
|
}
|
|
5605
5606
|
|
|
5606
|
-
/*! @azure/msal-common v16.11.
|
|
5607
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5607
5608
|
|
|
5608
5609
|
/*
|
|
5609
5610
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5683,7 +5684,7 @@ class PopTokenGenerator {
|
|
|
5683
5684
|
}
|
|
5684
5685
|
}
|
|
5685
5686
|
|
|
5686
|
-
/*! @azure/msal-common v16.11.
|
|
5687
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5687
5688
|
/*
|
|
5688
5689
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5689
5690
|
* Licensed under the MIT License.
|
|
@@ -5747,7 +5748,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
5747
5748
|
uiNotAllowed: uiNotAllowed
|
|
5748
5749
|
});
|
|
5749
5750
|
|
|
5750
|
-
/*! @azure/msal-common v16.11.
|
|
5751
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5751
5752
|
|
|
5752
5753
|
/*
|
|
5753
5754
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5814,7 +5815,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
|
|
|
5814
5815
|
return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
|
|
5815
5816
|
}
|
|
5816
5817
|
|
|
5817
|
-
/*! @azure/msal-common v16.11.
|
|
5818
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5818
5819
|
|
|
5819
5820
|
/*
|
|
5820
5821
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5833,7 +5834,7 @@ class ServerError extends AuthError {
|
|
|
5833
5834
|
}
|
|
5834
5835
|
}
|
|
5835
5836
|
|
|
5836
|
-
/*! @azure/msal-common v16.11.
|
|
5837
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5837
5838
|
|
|
5838
5839
|
/*
|
|
5839
5840
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5904,7 +5905,7 @@ function parseRequestState(base64Decode, state, correlationId) {
|
|
|
5904
5905
|
}
|
|
5905
5906
|
}
|
|
5906
5907
|
|
|
5907
|
-
/*! @azure/msal-common v16.11.
|
|
5908
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5908
5909
|
|
|
5909
5910
|
/*
|
|
5910
5911
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6255,7 +6256,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6255
6256
|
return baseAccount;
|
|
6256
6257
|
}
|
|
6257
6258
|
|
|
6258
|
-
/*! @azure/msal-common v16.11.
|
|
6259
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6259
6260
|
/*
|
|
6260
6261
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6261
6262
|
* Licensed under the MIT License.
|
|
@@ -6265,7 +6266,7 @@ const CcsCredentialType = {
|
|
|
6265
6266
|
UPN: "UPN",
|
|
6266
6267
|
};
|
|
6267
6268
|
|
|
6268
|
-
/*! @azure/msal-common v16.11.
|
|
6269
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6269
6270
|
/*
|
|
6270
6271
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6271
6272
|
* Licensed under the MIT License.
|
|
@@ -6284,7 +6285,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
|
|
|
6284
6285
|
}
|
|
6285
6286
|
}
|
|
6286
6287
|
|
|
6287
|
-
/*! @azure/msal-common v16.11.
|
|
6288
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6288
6289
|
/*
|
|
6289
6290
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6290
6291
|
* Licensed under the MIT License.
|
|
@@ -6306,7 +6307,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
6306
6307
|
};
|
|
6307
6308
|
}
|
|
6308
6309
|
|
|
6309
|
-
/*! @azure/msal-common v16.11.
|
|
6310
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6310
6311
|
|
|
6311
6312
|
/*
|
|
6312
6313
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6392,7 +6393,7 @@ class ThrottlingUtils {
|
|
|
6392
6393
|
}
|
|
6393
6394
|
}
|
|
6394
6395
|
|
|
6395
|
-
/*! @azure/msal-common v16.11.
|
|
6396
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6396
6397
|
|
|
6397
6398
|
/*
|
|
6398
6399
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6423,7 +6424,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
6423
6424
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6424
6425
|
}
|
|
6425
6426
|
|
|
6426
|
-
/*! @azure/msal-common v16.11.
|
|
6427
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6427
6428
|
|
|
6428
6429
|
/*
|
|
6429
6430
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6503,7 +6504,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
6503
6504
|
ThrottlingUtils.preProcess(cacheManager, thumbprint, correlationId);
|
|
6504
6505
|
let response;
|
|
6505
6506
|
try {
|
|
6506
|
-
response = await invokeAsync((networkClient.sendPostRequestAsync.bind(networkClient)), NetworkClientSendPostRequestAsync, logger, performanceClient, correlationId)(tokenEndpoint, options);
|
|
6507
|
+
response = await invokeAsync((networkClient.sendPostRequestAsync.bind(networkClient)), NetworkClientSendPostRequestAsync, logger, performanceClient, correlationId)(tokenEndpoint, { ...options, correlationId, performanceClient });
|
|
6507
6508
|
const responseHeaders = response.headers || {};
|
|
6508
6509
|
performanceClient?.addFields({
|
|
6509
6510
|
refreshTokenSize: response.body.refresh_token?.length || 0,
|
|
@@ -6539,7 +6540,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
6539
6540
|
return response;
|
|
6540
6541
|
}
|
|
6541
6542
|
|
|
6542
|
-
/*! @azure/msal-common v16.11.
|
|
6543
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6543
6544
|
|
|
6544
6545
|
/*
|
|
6545
6546
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6796,7 +6797,7 @@ class AuthorizationCodeClient {
|
|
|
6796
6797
|
}
|
|
6797
6798
|
}
|
|
6798
6799
|
|
|
6799
|
-
/*! @azure/msal-common v16.11.
|
|
6800
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6800
6801
|
|
|
6801
6802
|
/*
|
|
6802
6803
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7023,7 +7024,7 @@ function extractLoginHint(account) {
|
|
|
7023
7024
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7024
7025
|
}
|
|
7025
7026
|
|
|
7026
|
-
/*! @azure/msal-common v16.11.
|
|
7027
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7027
7028
|
|
|
7028
7029
|
/*
|
|
7029
7030
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7044,7 +7045,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
7044
7045
|
return new JoseHeaderError(code, correlationId);
|
|
7045
7046
|
}
|
|
7046
7047
|
|
|
7047
|
-
/*! @azure/msal-common v16.11.
|
|
7048
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7048
7049
|
/*
|
|
7049
7050
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7050
7051
|
* Licensed under the MIT License.
|
|
@@ -7052,7 +7053,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
7052
7053
|
const missingKidError = "missing_kid_error";
|
|
7053
7054
|
const missingAlgError = "missing_alg_error";
|
|
7054
7055
|
|
|
7055
|
-
/*! @azure/msal-common v16.11.
|
|
7056
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7056
7057
|
|
|
7057
7058
|
/*
|
|
7058
7059
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7092,7 +7093,7 @@ class JoseHeader {
|
|
|
7092
7093
|
}
|
|
7093
7094
|
}
|
|
7094
7095
|
|
|
7095
|
-
/*! @azure/msal-common v16.11.
|
|
7096
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7096
7097
|
|
|
7097
7098
|
/*
|
|
7098
7099
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7641,7 +7642,7 @@ class PerformanceClient {
|
|
|
7641
7642
|
}
|
|
7642
7643
|
}
|
|
7643
7644
|
|
|
7644
|
-
/*! @azure/msal-common v16.11.
|
|
7645
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7645
7646
|
|
|
7646
7647
|
/*
|
|
7647
7648
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7862,7 +7863,7 @@ class RefreshTokenClient {
|
|
|
7862
7863
|
}
|
|
7863
7864
|
}
|
|
7864
7865
|
|
|
7865
|
-
/*! @azure/msal-common v16.11.
|
|
7866
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7866
7867
|
|
|
7867
7868
|
/*
|
|
7868
7869
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8155,7 +8156,7 @@ class StubServerTelemetryManager extends ServerTelemetryManager {
|
|
|
8155
8156
|
clearNativeBrokerErrorCode() { }
|
|
8156
8157
|
}
|
|
8157
8158
|
|
|
8158
|
-
/*! @azure/msal-common v16.11.
|
|
8159
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
8159
8160
|
|
|
8160
8161
|
/*
|
|
8161
8162
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8263,7 +8264,7 @@ class SilentFlowClient {
|
|
|
8263
8264
|
}
|
|
8264
8265
|
}
|
|
8265
8266
|
|
|
8266
|
-
/*! @azure/msal-common v16.11.
|
|
8267
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
8267
8268
|
|
|
8268
8269
|
/*
|
|
8269
8270
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8279,7 +8280,7 @@ const StubbedNetworkModule = {
|
|
|
8279
8280
|
},
|
|
8280
8281
|
};
|
|
8281
8282
|
|
|
8282
|
-
/*! @azure/msal-common v16.11.
|
|
8283
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
8283
8284
|
|
|
8284
8285
|
/*
|
|
8285
8286
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10782,7 +10783,7 @@ const EventType = {
|
|
|
10782
10783
|
|
|
10783
10784
|
/* eslint-disable header/header */
|
|
10784
10785
|
const name = "@azure/msal-browser";
|
|
10785
|
-
const version = "5.17.
|
|
10786
|
+
const version = "5.17.3";
|
|
10786
10787
|
|
|
10787
10788
|
/*
|
|
10788
10789
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -13248,50 +13249,63 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13248
13249
|
const nativeATMeasurement = this.performanceClient.startMeasurement(NativeInteractionClientAcquireToken, this.correlationId);
|
|
13249
13250
|
const reqTimestamp = nowSeconds();
|
|
13250
13251
|
const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
|
|
13252
|
+
// initialize native request (statically builds the request; does not contact the broker)
|
|
13253
|
+
let nativeRequest;
|
|
13251
13254
|
try {
|
|
13252
|
-
|
|
13253
|
-
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
|
|
13257
|
-
|
|
13258
|
-
|
|
13255
|
+
nativeRequest = await this.initializePlatformRequest(request);
|
|
13256
|
+
}
|
|
13257
|
+
catch (e) {
|
|
13258
|
+
/*
|
|
13259
|
+
* Request initialization (e.g. PoP token generation or authority
|
|
13260
|
+
* resolution) failed before the broker was contacted, so end the
|
|
13261
|
+
* measurement here to avoid an orphaned sub-measurement.
|
|
13262
|
+
* Broker was never engaged, so this was not a native broker outcome.
|
|
13263
|
+
*/
|
|
13264
|
+
nativeATMeasurement.add({
|
|
13265
|
+
isNativeBroker: false,
|
|
13266
|
+
});
|
|
13267
|
+
nativeATMeasurement.end({
|
|
13268
|
+
success: false,
|
|
13269
|
+
}, e);
|
|
13270
|
+
throw e;
|
|
13271
|
+
}
|
|
13272
|
+
// check if the tokens can be retrieved from internal cache
|
|
13273
|
+
try {
|
|
13274
|
+
const result = await this.acquireTokensFromCache(this.accountId, nativeRequest);
|
|
13275
|
+
// Served from the native internal cache; token did not come directly from the broker
|
|
13276
|
+
nativeATMeasurement.add({
|
|
13277
|
+
isNativeBroker: false,
|
|
13278
|
+
});
|
|
13279
|
+
nativeATMeasurement.end({
|
|
13280
|
+
success: true,
|
|
13281
|
+
fromCache: true,
|
|
13282
|
+
});
|
|
13283
|
+
return result;
|
|
13284
|
+
}
|
|
13285
|
+
catch (e) {
|
|
13286
|
+
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
13287
|
+
this.logger.info("0eitbc", this.correlationId);
|
|
13288
|
+
nativeATMeasurement.add({
|
|
13259
13289
|
isNativeBroker: false,
|
|
13260
|
-
fromCache: true,
|
|
13261
13290
|
});
|
|
13262
|
-
return result;
|
|
13263
|
-
}
|
|
13264
|
-
catch (e) {
|
|
13265
|
-
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
13266
|
-
this.logger.info("0eitbc", this.correlationId);
|
|
13267
|
-
nativeATMeasurement.end({
|
|
13268
|
-
success: false,
|
|
13269
|
-
brokerErrorCode: "cache_request_failed",
|
|
13270
|
-
});
|
|
13271
|
-
throw e;
|
|
13272
|
-
}
|
|
13273
|
-
// continue with a native call for any and all errors
|
|
13274
|
-
this.logger.info("0957j1", this.correlationId);
|
|
13275
|
-
}
|
|
13276
|
-
const validatedResponse = await this.platformAuthProvider.sendMessage(nativeRequest);
|
|
13277
|
-
return await this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp)
|
|
13278
|
-
.then((result) => {
|
|
13279
|
-
nativeATMeasurement.end({
|
|
13280
|
-
success: true,
|
|
13281
|
-
isNativeBroker: true,
|
|
13282
|
-
requestId: result.requestId,
|
|
13283
|
-
});
|
|
13284
|
-
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
13285
|
-
return result;
|
|
13286
|
-
})
|
|
13287
|
-
.catch((error) => {
|
|
13288
13291
|
nativeATMeasurement.end({
|
|
13289
13292
|
success: false,
|
|
13290
|
-
errorCode: error.errorCode,
|
|
13291
|
-
subErrorCode: error.subError,
|
|
13292
13293
|
});
|
|
13293
|
-
throw
|
|
13294
|
+
throw e;
|
|
13295
|
+
}
|
|
13296
|
+
// continue with a native call for any and all errors
|
|
13297
|
+
this.logger.info("0957j1", this.correlationId);
|
|
13298
|
+
}
|
|
13299
|
+
// dispatch the request to the broker
|
|
13300
|
+
try {
|
|
13301
|
+
const validatedResponse = await this.platformAuthProvider.sendMessage(nativeRequest);
|
|
13302
|
+
const result = await this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp, request.storeInCache);
|
|
13303
|
+
nativeATMeasurement.end({
|
|
13304
|
+
success: true,
|
|
13305
|
+
requestId: result.requestId,
|
|
13294
13306
|
});
|
|
13307
|
+
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
13308
|
+
return result;
|
|
13295
13309
|
}
|
|
13296
13310
|
catch (e) {
|
|
13297
13311
|
if (e instanceof NativeAuthError) {
|
|
@@ -13299,10 +13313,29 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13299
13313
|
}
|
|
13300
13314
|
nativeATMeasurement.end({
|
|
13301
13315
|
success: false,
|
|
13302
|
-
});
|
|
13316
|
+
}, e);
|
|
13317
|
+
this.setBrokerErrorTelemetry(e);
|
|
13303
13318
|
throw e;
|
|
13304
13319
|
}
|
|
13305
13320
|
}
|
|
13321
|
+
/**
|
|
13322
|
+
* Records platform-broker error telemetry on the root event for the current
|
|
13323
|
+
* correlationId. `isNativeBroker` is set optimistically to true because the
|
|
13324
|
+
* broker was engaged; when the caller subsequently falls back to a web flow
|
|
13325
|
+
* that succeeds, the root success measurement overrides it to false via
|
|
13326
|
+
* `result.fromPlatformBroker`. Terminal broker errors (no fallback) retain
|
|
13327
|
+
* true. `brokerErrorName`/`brokerErrorCode` are recorded when the error is an `AuthError`.
|
|
13328
|
+
* @param error error thrown by the broker interaction
|
|
13329
|
+
*/
|
|
13330
|
+
setBrokerErrorTelemetry(error) {
|
|
13331
|
+
if (error instanceof AuthError) {
|
|
13332
|
+
this.performanceClient.addFields({
|
|
13333
|
+
isNativeBroker: true,
|
|
13334
|
+
brokerErrorName: error.name,
|
|
13335
|
+
brokerErrorCode: error.errorCode,
|
|
13336
|
+
}, this.correlationId);
|
|
13337
|
+
}
|
|
13338
|
+
}
|
|
13306
13339
|
/**
|
|
13307
13340
|
* Creates silent flow request
|
|
13308
13341
|
* @param request
|
|
@@ -13374,11 +13407,21 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13374
13407
|
const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
|
|
13375
13408
|
serverTelemetryManager.setNativeBrokerErrorCode(e.errorCode);
|
|
13376
13409
|
if (isFatalNativeAuthError(e)) {
|
|
13410
|
+
/*
|
|
13411
|
+
* Fatal error on redirect initiate always falls back to a
|
|
13412
|
+
* regular web redirect, so this request did not complete
|
|
13413
|
+
* natively. Token telemetry for the eventual outcome lands
|
|
13414
|
+
* in handleRedirectPromise (phase 2).
|
|
13415
|
+
*/
|
|
13416
|
+
this.setBrokerErrorTelemetry(e);
|
|
13377
13417
|
throw e;
|
|
13378
13418
|
}
|
|
13379
13419
|
}
|
|
13380
13420
|
}
|
|
13381
|
-
this.browserStorage.setTemporaryCache(TemporaryCacheKeys.NATIVE_REQUEST, JSON.stringify(
|
|
13421
|
+
this.browserStorage.setTemporaryCache(TemporaryCacheKeys.NATIVE_REQUEST, JSON.stringify({
|
|
13422
|
+
...nativeRequest,
|
|
13423
|
+
storeInCache: request.storeInCache,
|
|
13424
|
+
}), true);
|
|
13382
13425
|
const navigationOptions = {
|
|
13383
13426
|
apiId: ApiId.acquireTokenRedirect,
|
|
13384
13427
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
@@ -13408,7 +13451,11 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13408
13451
|
this.performanceClient?.addFields({ errorCode: "no_cached_request" }, this.correlationId);
|
|
13409
13452
|
return null;
|
|
13410
13453
|
}
|
|
13411
|
-
|
|
13454
|
+
/*
|
|
13455
|
+
* storeInCache is a client-side cache directive persisted alongside the cached
|
|
13456
|
+
* request (not a broker-contract parameter), so extract it here before resending.
|
|
13457
|
+
*/
|
|
13458
|
+
const { prompt, storeInCache, ...request } = cachedRequest;
|
|
13412
13459
|
if (prompt) {
|
|
13413
13460
|
this.logger.verbose("0ac34v", this.correlationId);
|
|
13414
13461
|
}
|
|
@@ -13417,13 +13464,13 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13417
13464
|
try {
|
|
13418
13465
|
this.logger.verbose("003x5a", this.correlationId);
|
|
13419
13466
|
const response = await this.platformAuthProvider.sendMessage(request);
|
|
13420
|
-
const authResult = await this.handleNativeResponse(response, request, reqTimestamp);
|
|
13467
|
+
const authResult = await this.handleNativeResponse(response, request, reqTimestamp, storeInCache);
|
|
13421
13468
|
const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
|
|
13422
13469
|
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
13423
|
-
this.performanceClient?.addFields({ isNativeBroker: true }, this.correlationId);
|
|
13424
13470
|
return authResult;
|
|
13425
13471
|
}
|
|
13426
13472
|
catch (e) {
|
|
13473
|
+
this.setBrokerErrorTelemetry(e);
|
|
13427
13474
|
throw e;
|
|
13428
13475
|
}
|
|
13429
13476
|
}
|
|
@@ -13441,7 +13488,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13441
13488
|
* @param request
|
|
13442
13489
|
* @param reqTimestamp
|
|
13443
13490
|
*/
|
|
13444
|
-
async handleNativeResponse(response, request, reqTimestamp) {
|
|
13491
|
+
async handleNativeResponse(response, request, reqTimestamp, storeInCache) {
|
|
13445
13492
|
this.logger.trace("1bojln", this.correlationId);
|
|
13446
13493
|
// generate identifiers
|
|
13447
13494
|
const idTokenClaims = extractTokenClaims(response.id_token, base64Decode, this.correlationId);
|
|
@@ -13470,8 +13517,8 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13470
13517
|
const result = await this.generateAuthenticationResult(response, request, idTokenClaims, baseAccount, authority.canonicalAuthority, reqTimestamp);
|
|
13471
13518
|
// cache accounts and tokens in the appropriate storage
|
|
13472
13519
|
await this.cacheAccount(baseAccount, isKmsi(idTokenClaims));
|
|
13473
|
-
await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache() // environment
|
|
13474
|
-
);
|
|
13520
|
+
await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache(), // environment
|
|
13521
|
+
storeInCache);
|
|
13475
13522
|
return result;
|
|
13476
13523
|
}
|
|
13477
13524
|
/**
|
|
@@ -13592,7 +13639,9 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13592
13639
|
correlationId: this.correlationId,
|
|
13593
13640
|
state: response.state,
|
|
13594
13641
|
fromPlatformBroker: true,
|
|
13595
|
-
...(request.resource && {
|
|
13642
|
+
...(request.extraParameters?.resource && {
|
|
13643
|
+
resource: request.extraParameters.resource,
|
|
13644
|
+
}),
|
|
13596
13645
|
};
|
|
13597
13646
|
return result;
|
|
13598
13647
|
}
|
|
@@ -13616,7 +13665,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13616
13665
|
* @param tenantId
|
|
13617
13666
|
* @param reqTimestamp
|
|
13618
13667
|
*/
|
|
13619
|
-
async cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, tenantId, reqTimestamp, environment) {
|
|
13668
|
+
async cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, tenantId, reqTimestamp, environment, storeInCache) {
|
|
13620
13669
|
const cachedIdToken = createIdTokenEntity(homeAccountIdentifier, environment, response.id_token || "", request.clientId, idTokenClaims.tid || "");
|
|
13621
13670
|
// cache accessToken in inmemory storage
|
|
13622
13671
|
const expiresIn = request.tokenType === AuthenticationScheme$1.POP
|
|
@@ -13628,14 +13677,14 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13628
13677
|
const responseScopes = this.generateScopes(response.scope, request.scope);
|
|
13629
13678
|
const cachedAccessToken = createAccessTokenEntity(homeAccountIdentifier, environment, response.access_token, request.clientId, idTokenClaims.tid || tenantId, responseScopes.printScopes(), tokenExpirationSeconds, 0, base64Decode, request.correlationId, undefined, request.tokenType, undefined, request.keyId);
|
|
13630
13679
|
// save idtoken credential in configured browser storage
|
|
13631
|
-
if (!!cachedIdToken &&
|
|
13680
|
+
if (!!cachedIdToken && storeInCache?.idToken !== false) {
|
|
13632
13681
|
await this.browserStorage.setIdTokenCredential(cachedIdToken, this.correlationId, isKmsi(idTokenClaims));
|
|
13633
13682
|
}
|
|
13634
13683
|
// save access token credential in memory storage
|
|
13635
13684
|
const nativeCacheRecord = {
|
|
13636
13685
|
accessToken: cachedAccessToken,
|
|
13637
13686
|
};
|
|
13638
|
-
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId,
|
|
13687
|
+
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId, storeInCache);
|
|
13639
13688
|
}
|
|
13640
13689
|
getExpiresInValue(tokenType, expiresIn) {
|
|
13641
13690
|
return tokenType === AuthenticationScheme$1.POP
|
|
@@ -13707,13 +13756,12 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13707
13756
|
const configClaims = request.skipBrokerClaims && !!request.embeddedClientId
|
|
13708
13757
|
? undefined
|
|
13709
13758
|
: this.config.auth.clientCapabilities;
|
|
13710
|
-
// scopes are expected to be received by the native broker as "scope" and will be added to the request below.
|
|
13711
|
-
const { scopes, claims
|
|
13759
|
+
// scopes are expected to be received by the native broker as "scope" and will be added to the request below. 'resource' is added in extraParameters for MCP scenarios.
|
|
13760
|
+
const { scopes, claims } = request;
|
|
13712
13761
|
const scopeSet = new ScopeSet(scopes || [], this.correlationId);
|
|
13713
13762
|
scopeSet.appendScopes(OIDC_DEFAULT_SCOPES$1);
|
|
13714
13763
|
const mergedClaims = buildMergedClaims$1(claims, configClaims?.length ? configClaims : undefined);
|
|
13715
13764
|
const validatedRequest = {
|
|
13716
|
-
...remainingProperties,
|
|
13717
13765
|
claims: mergedClaims,
|
|
13718
13766
|
accountId: this.accountId,
|
|
13719
13767
|
clientId: this.config.auth.clientId,
|
|
@@ -13722,19 +13770,28 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13722
13770
|
redirectUri: getRedirectUri(request.redirectUri, this.config.auth.redirectUri, this.logger, this.correlationId),
|
|
13723
13771
|
prompt: this.getPrompt(request.prompt),
|
|
13724
13772
|
correlationId: this.correlationId,
|
|
13773
|
+
isSts: false,
|
|
13725
13774
|
tokenType: request.authenticationScheme,
|
|
13726
13775
|
windowTitleSubstring: document.title,
|
|
13776
|
+
nonce: request.nonce,
|
|
13777
|
+
state: request.state,
|
|
13778
|
+
loginHint: request.loginHint,
|
|
13727
13779
|
extraParameters: {
|
|
13728
13780
|
...request.extraParameters,
|
|
13781
|
+
...(request.resource && { resource: request.resource }), // resource is set for MCP scenarios
|
|
13729
13782
|
},
|
|
13730
13783
|
extendedExpiryToken: false,
|
|
13731
13784
|
keyId: request.popKid,
|
|
13785
|
+
resourceRequestMethod: request.resourceRequestMethod,
|
|
13786
|
+
resourceRequestUri: request.resourceRequestUri,
|
|
13787
|
+
shrClaims: request.shrClaims,
|
|
13788
|
+
shrNonce: request.shrNonce,
|
|
13732
13789
|
};
|
|
13733
13790
|
// Check for PoP token requests: signPopToken should only be set to true if popKid is not set
|
|
13734
13791
|
if (validatedRequest.signPopToken && !!request.popKid) {
|
|
13735
13792
|
throw createBrowserAuthError(invalidPopTokenRequest, this.correlationId);
|
|
13736
13793
|
}
|
|
13737
|
-
this.handleExtraBrokerParams(validatedRequest);
|
|
13794
|
+
this.handleExtraBrokerParams(validatedRequest, request.embeddedClientId);
|
|
13738
13795
|
validatedRequest.extraParameters =
|
|
13739
13796
|
validatedRequest.extraParameters || {};
|
|
13740
13797
|
validatedRequest.extraParameters.telemetry =
|
|
@@ -13809,19 +13866,19 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13809
13866
|
* @param request {PlatformAuthRequest}
|
|
13810
13867
|
* @private
|
|
13811
13868
|
*/
|
|
13812
|
-
handleExtraBrokerParams(request) {
|
|
13869
|
+
handleExtraBrokerParams(request, embeddedClientId) {
|
|
13813
13870
|
const hasExtraBrokerParams = request.extraParameters &&
|
|
13814
13871
|
request.extraParameters.hasOwnProperty(BROKER_CLIENT_ID) &&
|
|
13815
13872
|
request.extraParameters.hasOwnProperty(BROKER_REDIRECT_URI) &&
|
|
13816
13873
|
request.extraParameters.hasOwnProperty(CLIENT_ID);
|
|
13817
|
-
if (!
|
|
13874
|
+
if (!embeddedClientId && !hasExtraBrokerParams) {
|
|
13818
13875
|
return;
|
|
13819
13876
|
}
|
|
13820
13877
|
let child_client_id = "";
|
|
13821
13878
|
const child_redirect_uri = request.redirectUri;
|
|
13822
|
-
if (
|
|
13879
|
+
if (embeddedClientId) {
|
|
13823
13880
|
request.redirectUri = this.config.auth.redirectUri;
|
|
13824
|
-
child_client_id =
|
|
13881
|
+
child_client_id = embeddedClientId;
|
|
13825
13882
|
}
|
|
13826
13883
|
else if (request.extraParameters) {
|
|
13827
13884
|
request.redirectUri =
|
|
@@ -13829,7 +13886,15 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13829
13886
|
child_client_id =
|
|
13830
13887
|
request.extraParameters[CLIENT_ID];
|
|
13831
13888
|
}
|
|
13889
|
+
const {
|
|
13890
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13891
|
+
[BROKER_CLIENT_ID]: _brkClientId,
|
|
13892
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13893
|
+
[BROKER_REDIRECT_URI]: _brkRedirectUri,
|
|
13894
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13895
|
+
[CLIENT_ID]: _clientId, ...remainingExtraParameters } = request.extraParameters || {};
|
|
13832
13896
|
request.extraParameters = {
|
|
13897
|
+
...remainingExtraParameters,
|
|
13833
13898
|
child_client_id,
|
|
13834
13899
|
child_redirect_uri,
|
|
13835
13900
|
};
|
|
@@ -14254,6 +14319,8 @@ class NavigationClient {
|
|
|
14254
14319
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
14255
14320
|
* Licensed under the MIT License.
|
|
14256
14321
|
*/
|
|
14322
|
+
const MAX_FETCH_POST_RETRIES = 1;
|
|
14323
|
+
const RETRY_DELAY_MS = 100;
|
|
14257
14324
|
/**
|
|
14258
14325
|
* This class implements the Fetch API for GET and POST requests. See more here: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
|
|
14259
14326
|
*/
|
|
@@ -14302,21 +14369,40 @@ class FetchClient {
|
|
|
14302
14369
|
async sendPostRequestAsync(url, options) {
|
|
14303
14370
|
const reqBody = (options && options.body) || "";
|
|
14304
14371
|
const reqHeaders = getFetchHeaders(options);
|
|
14372
|
+
const correlationId = options?.correlationId;
|
|
14373
|
+
const performanceClient = options?.performanceClient;
|
|
14305
14374
|
let response;
|
|
14306
|
-
let
|
|
14307
|
-
let
|
|
14308
|
-
|
|
14309
|
-
|
|
14310
|
-
|
|
14311
|
-
|
|
14312
|
-
|
|
14313
|
-
|
|
14375
|
+
let lastError;
|
|
14376
|
+
for (let attempt = 1; attempt <= MAX_FETCH_POST_RETRIES + 1; attempt++) {
|
|
14377
|
+
try {
|
|
14378
|
+
response = await fetch(url, {
|
|
14379
|
+
method: HTTP_REQUEST_TYPE.POST,
|
|
14380
|
+
headers: reqHeaders,
|
|
14381
|
+
body: reqBody,
|
|
14382
|
+
});
|
|
14383
|
+
break;
|
|
14384
|
+
}
|
|
14385
|
+
catch (e) {
|
|
14386
|
+
lastError = e;
|
|
14387
|
+
if (!shouldRetryPostFetchError(lastError, attempt)) {
|
|
14388
|
+
throw createNetworkError(createBrowserAuthError(window.navigator.onLine !== false
|
|
14389
|
+
? postRequestFailed
|
|
14390
|
+
: noNetworkConnectivity, correlationId || ""), undefined, undefined, lastError);
|
|
14391
|
+
}
|
|
14392
|
+
// Brief backoff before retry
|
|
14393
|
+
await new Promise((resolve) => setTimeout(resolve, RETRY_DELAY_MS));
|
|
14394
|
+
if (correlationId) {
|
|
14395
|
+
performanceClient?.incrementFields({ fetchRetryCount: 1 }, correlationId);
|
|
14396
|
+
}
|
|
14397
|
+
}
|
|
14314
14398
|
}
|
|
14315
|
-
|
|
14316
|
-
throw createNetworkError(createBrowserAuthError(window.navigator.onLine
|
|
14399
|
+
if (!response) {
|
|
14400
|
+
throw createNetworkError(createBrowserAuthError(window.navigator.onLine !== false
|
|
14317
14401
|
? postRequestFailed
|
|
14318
|
-
: noNetworkConnectivity, ""), undefined, undefined,
|
|
14402
|
+
: noNetworkConnectivity, correlationId || ""), undefined, undefined, lastError);
|
|
14319
14403
|
}
|
|
14404
|
+
let responseStatus = 0;
|
|
14405
|
+
let responseHeaders = {};
|
|
14320
14406
|
responseHeaders = getHeaderDict(response.headers);
|
|
14321
14407
|
try {
|
|
14322
14408
|
responseStatus = response.status;
|
|
@@ -14327,10 +14413,15 @@ class FetchClient {
|
|
|
14327
14413
|
};
|
|
14328
14414
|
}
|
|
14329
14415
|
catch (e) {
|
|
14330
|
-
throw createNetworkError(createBrowserAuthError(failedToParseResponse, ""), responseStatus, responseHeaders, e);
|
|
14416
|
+
throw createNetworkError(createBrowserAuthError(failedToParseResponse, correlationId || ""), responseStatus, responseHeaders, e);
|
|
14331
14417
|
}
|
|
14332
14418
|
}
|
|
14333
14419
|
}
|
|
14420
|
+
function shouldRetryPostFetchError(error, attempt) {
|
|
14421
|
+
return (attempt <= MAX_FETCH_POST_RETRIES &&
|
|
14422
|
+
window.navigator.onLine !== false &&
|
|
14423
|
+
error.name !== "AbortError");
|
|
14424
|
+
}
|
|
14334
14425
|
/**
|
|
14335
14426
|
* Get Fetch API Headers object from string map
|
|
14336
14427
|
* @param inputHeaders
|
|
@@ -14816,7 +14907,7 @@ class PlatformAuthDOMHandler {
|
|
|
14816
14907
|
}
|
|
14817
14908
|
initializePlatformDOMRequest(request) {
|
|
14818
14909
|
this.logger.trace(`15d6yv ${this.platformAuthType}`, request.correlationId);
|
|
14819
|
-
const { accountId, clientId, authority, scope, redirectUri, correlationId, state,
|
|
14910
|
+
const { accountId, clientId, authority, scope, redirectUri, correlationId, state, extraParameters, ...remainingProperties } = request;
|
|
14820
14911
|
const validExtraParameters = this.getDOMExtraParams(remainingProperties, correlationId);
|
|
14821
14912
|
const platformDOMRequest = {
|
|
14822
14913
|
accountId: accountId,
|
|
@@ -14832,8 +14923,6 @@ class PlatformAuthDOMHandler {
|
|
|
14832
14923
|
redirectUri: redirectUri,
|
|
14833
14924
|
scope: scope,
|
|
14834
14925
|
state: state,
|
|
14835
|
-
storeInCache: storeInCache,
|
|
14836
|
-
embeddedClientId: embeddedClientId,
|
|
14837
14926
|
};
|
|
14838
14927
|
return platformDOMRequest;
|
|
14839
14928
|
}
|
|
@@ -16617,6 +16706,7 @@ class StandardController {
|
|
|
16617
16706
|
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, exports.InteractionType.Redirect);
|
|
16618
16707
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
16619
16708
|
this.logger.trace("12v7is", correlationId);
|
|
16709
|
+
// Cached nativeAccountId routes directly to the broker (no /authorize call)
|
|
16620
16710
|
rootMeasurement.add({
|
|
16621
16711
|
isPlatformBrokerRequest: true,
|
|
16622
16712
|
});
|
|
@@ -16653,6 +16743,7 @@ class StandardController {
|
|
|
16653
16743
|
}
|
|
16654
16744
|
rootMeasurement.end({
|
|
16655
16745
|
success: true,
|
|
16746
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
16656
16747
|
}, undefined, result.account);
|
|
16657
16748
|
// Fire-and-forget SSO capability verification in background
|
|
16658
16749
|
this.verifySsoCapability(cachedRedirectRequest, exports.InteractionType.Redirect);
|
|
@@ -16662,8 +16753,8 @@ class StandardController {
|
|
|
16662
16753
|
* Instrument an event only if an error code is set. Otherwise, discard it when the redirect response
|
|
16663
16754
|
* is empty and the error code is missing.
|
|
16664
16755
|
*/
|
|
16665
|
-
if (rootMeasurement.event.errorCode) {
|
|
16666
|
-
rootMeasurement.end({ success: false }
|
|
16756
|
+
if (!!rootMeasurement.event.errorCode) {
|
|
16757
|
+
rootMeasurement.end({ success: false });
|
|
16667
16758
|
}
|
|
16668
16759
|
else {
|
|
16669
16760
|
rootMeasurement.discard();
|
|
@@ -16722,10 +16813,6 @@ class StandardController {
|
|
|
16722
16813
|
this.canUsePlatformBroker(request)) {
|
|
16723
16814
|
const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient, this.platformAuthProvider, this.getNativeAccountId(request), this.nativeInternalStorage, correlationId);
|
|
16724
16815
|
result = invokeAsync(nativeClient.acquireTokenRedirect.bind(nativeClient), NativeInteractionClientAcquireTokenRedirect, this.logger, this.performanceClient, correlationId)(request, atrMeasurement).catch((e) => {
|
|
16725
|
-
atrMeasurement.add({
|
|
16726
|
-
brokerErrorName: e.name,
|
|
16727
|
-
brokerErrorCode: e.errorCode,
|
|
16728
|
-
});
|
|
16729
16816
|
if (e instanceof NativeAuthError &&
|
|
16730
16817
|
isFatalNativeAuthError(e)) {
|
|
16731
16818
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
@@ -16794,6 +16881,7 @@ class StandardController {
|
|
|
16794
16881
|
let result;
|
|
16795
16882
|
const pkce = this.getPreGeneratedPkceCodes(correlationId);
|
|
16796
16883
|
if (this.canUsePlatformBroker(request)) {
|
|
16884
|
+
// Cached nativeAccountId routes directly to the broker (no /authorize call)
|
|
16797
16885
|
atPopupMeasurement.add({
|
|
16798
16886
|
isPlatformBrokerRequest: true,
|
|
16799
16887
|
});
|
|
@@ -16804,15 +16892,11 @@ class StandardController {
|
|
|
16804
16892
|
.then((response) => {
|
|
16805
16893
|
atPopupMeasurement.end({
|
|
16806
16894
|
success: true,
|
|
16807
|
-
isNativeBroker:
|
|
16895
|
+
isNativeBroker: response.fromPlatformBroker ?? false,
|
|
16808
16896
|
}, undefined, response.account);
|
|
16809
16897
|
return response;
|
|
16810
16898
|
})
|
|
16811
16899
|
.catch((e) => {
|
|
16812
|
-
atPopupMeasurement.add({
|
|
16813
|
-
brokerErrorName: e.name,
|
|
16814
|
-
brokerErrorCode: e.errorCode,
|
|
16815
|
-
});
|
|
16816
16900
|
if (e instanceof NativeAuthError &&
|
|
16817
16901
|
isFatalNativeAuthError(e)) {
|
|
16818
16902
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
@@ -16843,6 +16927,7 @@ class StandardController {
|
|
|
16843
16927
|
}
|
|
16844
16928
|
atPopupMeasurement.end({
|
|
16845
16929
|
success: true,
|
|
16930
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
16846
16931
|
accessTokenSize: result.accessToken.length,
|
|
16847
16932
|
idTokenSize: result.idToken.length,
|
|
16848
16933
|
}, undefined, result.account);
|
|
@@ -17036,14 +17121,11 @@ class StandardController {
|
|
|
17036
17121
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, validRequest);
|
|
17037
17122
|
let result;
|
|
17038
17123
|
if (this.canUsePlatformBroker(validRequest)) {
|
|
17124
|
+
// Cached nativeAccountId routes directly to the broker (no /authorize call)
|
|
17039
17125
|
this.ssoSilentMeasurement?.add({
|
|
17040
17126
|
isPlatformBrokerRequest: true,
|
|
17041
17127
|
});
|
|
17042
17128
|
result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch((e) => {
|
|
17043
|
-
this.ssoSilentMeasurement?.add({
|
|
17044
|
-
brokerErrorName: e.name,
|
|
17045
|
-
brokerErrorCode: e.errorCode,
|
|
17046
|
-
});
|
|
17047
17129
|
// If native token acquisition fails for availability reasons fallback to standard flow
|
|
17048
17130
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
17049
17131
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
@@ -17066,7 +17148,7 @@ class StandardController {
|
|
|
17066
17148
|
}
|
|
17067
17149
|
this.ssoSilentMeasurement?.end({
|
|
17068
17150
|
success: true,
|
|
17069
|
-
isNativeBroker: response.fromPlatformBroker,
|
|
17151
|
+
isNativeBroker: response.fromPlatformBroker ?? false,
|
|
17070
17152
|
accessTokenSize: response.accessToken.length,
|
|
17071
17153
|
idTokenSize: response.idToken.length,
|
|
17072
17154
|
}, undefined, response.account);
|
|
@@ -17119,6 +17201,7 @@ class StandardController {
|
|
|
17119
17201
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
17120
17202
|
atbcMeasurement.end({
|
|
17121
17203
|
success: true,
|
|
17204
|
+
isNativeBroker: false,
|
|
17122
17205
|
accessTokenSize: result.accessToken.length,
|
|
17123
17206
|
idTokenSize: result.idToken.length,
|
|
17124
17207
|
}, undefined, result.account);
|
|
@@ -17149,10 +17232,6 @@ class StandardController {
|
|
|
17149
17232
|
...request,
|
|
17150
17233
|
correlationId,
|
|
17151
17234
|
}, ApiId.acquireTokenByCode, request.nativeAccountId).catch((e) => {
|
|
17152
|
-
atbcMeasurement.add({
|
|
17153
|
-
brokerErrorName: e.name,
|
|
17154
|
-
brokerErrorCode: e.errorCode,
|
|
17155
|
-
});
|
|
17156
17235
|
// If native token acquisition fails for availability reasons fallback to standard flow
|
|
17157
17236
|
if (e instanceof NativeAuthError &&
|
|
17158
17237
|
isFatalNativeAuthError(e)) {
|
|
@@ -17162,6 +17241,7 @@ class StandardController {
|
|
|
17162
17241
|
});
|
|
17163
17242
|
atbcMeasurement.end({
|
|
17164
17243
|
success: true,
|
|
17244
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
17165
17245
|
}, undefined, result.account);
|
|
17166
17246
|
return result;
|
|
17167
17247
|
}
|
|
@@ -17202,6 +17282,7 @@ class StandardController {
|
|
|
17202
17282
|
.then((response) => {
|
|
17203
17283
|
this.acquireTokenByCodeAsyncMeasurement?.end({
|
|
17204
17284
|
success: true,
|
|
17285
|
+
isNativeBroker: false,
|
|
17205
17286
|
fromCache: response.fromCache,
|
|
17206
17287
|
});
|
|
17207
17288
|
return response;
|
|
@@ -17379,8 +17460,16 @@ class StandardController {
|
|
|
17379
17460
|
/**
|
|
17380
17461
|
* Acquire a token from native device (e.g. WAM)
|
|
17381
17462
|
* @param request
|
|
17463
|
+
* @param apiId
|
|
17464
|
+
* @param accountId
|
|
17465
|
+
* @param cacheLookupPolicy
|
|
17382
17466
|
*/
|
|
17383
17467
|
async acquireTokenNative(request, apiId, accountId, cacheLookupPolicy) {
|
|
17468
|
+
/*
|
|
17469
|
+
* Callers always normalize correlationId onto the request before delegating
|
|
17470
|
+
* here, so it is guaranteed defined and is the single id used to key this
|
|
17471
|
+
* flow's telemetry.
|
|
17472
|
+
*/
|
|
17384
17473
|
const correlationId = this.getRequestCorrelationId(request);
|
|
17385
17474
|
this.logger.trace("0b9y3p", correlationId);
|
|
17386
17475
|
if (!this.platformAuthProvider) {
|
|
@@ -17634,6 +17723,7 @@ class StandardController {
|
|
|
17634
17723
|
.then((result) => {
|
|
17635
17724
|
atsMeasurement.end({
|
|
17636
17725
|
success: true,
|
|
17726
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
17637
17727
|
fromCache: result.fromCache,
|
|
17638
17728
|
accessTokenSize: result.accessToken.length,
|
|
17639
17729
|
idTokenSize: result.idToken.length,
|
|
@@ -17770,7 +17860,7 @@ class StandardController {
|
|
|
17770
17860
|
if (request.correlationId) {
|
|
17771
17861
|
this.performanceClient.addFields({
|
|
17772
17862
|
fromCache: response.fromCache,
|
|
17773
|
-
isNativeBroker: response.fromPlatformBroker,
|
|
17863
|
+
isNativeBroker: response.fromPlatformBroker ?? false,
|
|
17774
17864
|
}, request.correlationId);
|
|
17775
17865
|
}
|
|
17776
17866
|
return response;
|
|
@@ -17796,10 +17886,6 @@ class StandardController {
|
|
|
17796
17886
|
this.logger.verbose("0sczo4", silentRequest.correlationId);
|
|
17797
17887
|
this.performanceClient.addFields({ isPlatformBrokerRequest: true }, silentRequest.correlationId);
|
|
17798
17888
|
return this.acquireTokenNative(silentRequest, ApiId.acquireTokenSilent_silentFlow, silentRequest.account.nativeAccountId, cacheLookupPolicy).catch(async (e) => {
|
|
17799
|
-
this.performanceClient.addFields({
|
|
17800
|
-
brokerErrorName: e.name,
|
|
17801
|
-
brokerErrorCode: e.errorCode,
|
|
17802
|
-
}, silentRequest.correlationId);
|
|
17803
17889
|
// If native token acquisition fails for availability reasons fallback to web flow
|
|
17804
17890
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
17805
17891
|
this.logger.verbose("07rkmb", silentRequest.correlationId);
|