@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
|
@@ -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.
|
|
@@ -285,7 +285,7 @@ const JsonWebTokenTypes = {
|
|
|
285
285
|
// Token renewal offset default in seconds
|
|
286
286
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
287
287
|
|
|
288
|
-
/*! @azure/msal-common v16.11.
|
|
288
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
289
289
|
/*
|
|
290
290
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
291
291
|
* Licensed under the MIT License.
|
|
@@ -314,7 +314,7 @@ function createAuthError(code, correlationId, additionalMessage) {
|
|
|
314
314
|
return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
/*! @azure/msal-common v16.11.
|
|
317
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
318
318
|
|
|
319
319
|
/*
|
|
320
320
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -337,7 +337,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
|
|
|
337
337
|
return new ClientAuthError(errorCode, correlationId, additionalMessage);
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
/*! @azure/msal-common v16.11.
|
|
340
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
341
341
|
/*
|
|
342
342
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
343
343
|
* Licensed under the MIT License.
|
|
@@ -374,7 +374,7 @@ const methodNotImplemented = "method_not_implemented";
|
|
|
374
374
|
const resourceParameterRequired = "resource_parameter_required";
|
|
375
375
|
const misplacedResourceParam = "misplaced_resource_parameter";
|
|
376
376
|
|
|
377
|
-
/*! @azure/msal-common v16.11.
|
|
377
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
378
378
|
|
|
379
379
|
/*
|
|
380
380
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -412,7 +412,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
/*! @azure/msal-common v16.11.
|
|
415
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
416
416
|
|
|
417
417
|
/*
|
|
418
418
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -478,7 +478,7 @@ function getJWSPayload(authToken, correlationId) {
|
|
|
478
478
|
return matches[2];
|
|
479
479
|
}
|
|
480
480
|
|
|
481
|
-
/*! @azure/msal-common v16.11.
|
|
481
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
482
482
|
|
|
483
483
|
/*
|
|
484
484
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -566,7 +566,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
566
566
|
return updatedAccountInfo;
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
/*! @azure/msal-common v16.11.
|
|
569
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
570
570
|
/*
|
|
571
571
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
572
572
|
* Licensed under the MIT License.
|
|
@@ -581,7 +581,7 @@ const AuthorityType = {
|
|
|
581
581
|
Ciam: 3,
|
|
582
582
|
};
|
|
583
583
|
|
|
584
|
-
/*! @azure/msal-common v16.11.
|
|
584
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
585
585
|
/*
|
|
586
586
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
587
587
|
* Licensed under the MIT License.
|
|
@@ -603,7 +603,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
603
603
|
return null;
|
|
604
604
|
}
|
|
605
605
|
|
|
606
|
-
/*! @azure/msal-common v16.11.
|
|
606
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
607
607
|
/*
|
|
608
608
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
609
609
|
* Licensed under the MIT License.
|
|
@@ -627,7 +627,7 @@ const ProtocolMode = {
|
|
|
627
627
|
EAR: "EAR",
|
|
628
628
|
};
|
|
629
629
|
|
|
630
|
-
/*! @azure/msal-common v16.11.
|
|
630
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
631
631
|
/**
|
|
632
632
|
* Returns the AccountInfo interface for this account.
|
|
633
633
|
* @internal
|
|
@@ -816,7 +816,7 @@ function isAccountEntity(entity) {
|
|
|
816
816
|
entity.hasOwnProperty("authorityType"));
|
|
817
817
|
}
|
|
818
818
|
|
|
819
|
-
/*! @azure/msal-common v16.11.
|
|
819
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
820
820
|
/*
|
|
821
821
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
822
822
|
* Licensed under the MIT License.
|
|
@@ -826,7 +826,7 @@ function isAccountEntity(entity) {
|
|
|
826
826
|
*/
|
|
827
827
|
const unexpectedError = "unexpected_error";
|
|
828
828
|
|
|
829
|
-
/*! @azure/msal-common v16.11.
|
|
829
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
830
830
|
|
|
831
831
|
/*
|
|
832
832
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -846,7 +846,7 @@ function createClientConfigurationError(errorCode, correlationId) {
|
|
|
846
846
|
return new ClientConfigurationError(errorCode, correlationId);
|
|
847
847
|
}
|
|
848
848
|
|
|
849
|
-
/*! @azure/msal-common v16.11.
|
|
849
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
850
850
|
/*
|
|
851
851
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
852
852
|
* Licensed under the MIT License.
|
|
@@ -872,7 +872,7 @@ const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
|
|
|
872
872
|
const invalidPlatformBrokerConfiguration = "invalid_platform_broker_configuration";
|
|
873
873
|
const issuerValidationFailed = "issuer_validation_failed";
|
|
874
874
|
|
|
875
|
-
/*! @azure/msal-common v16.11.
|
|
875
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
876
876
|
/*
|
|
877
877
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
878
878
|
* Licensed under the MIT License.
|
|
@@ -884,7 +884,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
884
884
|
response.hasOwnProperty("jwks_uri"));
|
|
885
885
|
}
|
|
886
886
|
|
|
887
|
-
/*! @azure/msal-common v16.11.
|
|
887
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
888
888
|
/*
|
|
889
889
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
890
890
|
* Licensed under the MIT License.
|
|
@@ -964,7 +964,7 @@ class StringUtils {
|
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
|
|
967
|
-
/*! @azure/msal-common v16.11.
|
|
967
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
968
968
|
|
|
969
969
|
/*
|
|
970
970
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1122,7 +1122,7 @@ class UrlString {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
1125
|
-
/*! @azure/msal-common v16.11.
|
|
1125
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1126
1126
|
|
|
1127
1127
|
/*
|
|
1128
1128
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1288,7 +1288,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1288
1288
|
return null;
|
|
1289
1289
|
}
|
|
1290
1290
|
|
|
1291
|
-
/*! @azure/msal-common v16.11.
|
|
1291
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1292
1292
|
/*
|
|
1293
1293
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1294
1294
|
* Licensed under the MIT License.
|
|
@@ -1297,7 +1297,7 @@ const AzureCloudInstance = {
|
|
|
1297
1297
|
// AzureCloudInstance is not specified.
|
|
1298
1298
|
None: "none"};
|
|
1299
1299
|
|
|
1300
|
-
/*! @azure/msal-common v16.11.
|
|
1300
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1301
1301
|
/*
|
|
1302
1302
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1303
1303
|
* Licensed under the MIT License.
|
|
@@ -1307,7 +1307,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
1307
1307
|
response.hasOwnProperty("metadata"));
|
|
1308
1308
|
}
|
|
1309
1309
|
|
|
1310
|
-
/*! @azure/msal-common v16.11.
|
|
1310
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1311
1311
|
/*
|
|
1312
1312
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1313
1313
|
* Licensed under the MIT License.
|
|
@@ -1317,7 +1317,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
1317
1317
|
response.hasOwnProperty("error_description"));
|
|
1318
1318
|
}
|
|
1319
1319
|
|
|
1320
|
-
/*! @azure/msal-common v16.11.
|
|
1320
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1321
1321
|
/*
|
|
1322
1322
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1323
1323
|
* Licensed under the MIT License.
|
|
@@ -1388,7 +1388,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
1388
1388
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
1389
1389
|
const SetUserData = "setUserData";
|
|
1390
1390
|
|
|
1391
|
-
/*! @azure/msal-common v16.11.
|
|
1391
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1392
1392
|
/*
|
|
1393
1393
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1394
1394
|
* Licensed under the MIT License.
|
|
@@ -1481,7 +1481,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
1481
1481
|
};
|
|
1482
1482
|
};
|
|
1483
1483
|
|
|
1484
|
-
/*! @azure/msal-common v16.11.
|
|
1484
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1485
1485
|
|
|
1486
1486
|
/*
|
|
1487
1487
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1592,7 +1592,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
1592
1592
|
},
|
|
1593
1593
|
};
|
|
1594
1594
|
|
|
1595
|
-
/*! @azure/msal-common v16.11.
|
|
1595
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1596
1596
|
/*
|
|
1597
1597
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1598
1598
|
* Licensed under the MIT License.
|
|
@@ -1657,7 +1657,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
1657
1657
|
return cachedAtSec > nowSeconds();
|
|
1658
1658
|
}
|
|
1659
1659
|
|
|
1660
|
-
/*! @azure/msal-common v16.11.
|
|
1660
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1661
1661
|
|
|
1662
1662
|
/*
|
|
1663
1663
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1924,7 +1924,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
1924
1924
|
return metadata.expiresAt <= nowSeconds();
|
|
1925
1925
|
}
|
|
1926
1926
|
|
|
1927
|
-
/*! @azure/msal-common v16.11.
|
|
1927
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1928
1928
|
|
|
1929
1929
|
/*
|
|
1930
1930
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2894,7 +2894,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
2894
2894
|
};
|
|
2895
2895
|
}
|
|
2896
2896
|
|
|
2897
|
-
/*! @azure/msal-common v16.11.
|
|
2897
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
2898
2898
|
|
|
2899
2899
|
/*
|
|
2900
2900
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2928,7 +2928,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
2928
2928
|
}
|
|
2929
2929
|
}
|
|
2930
2930
|
|
|
2931
|
-
/*! @azure/msal-common v16.11.
|
|
2931
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
2932
2932
|
|
|
2933
2933
|
/*
|
|
2934
2934
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3124,7 +3124,7 @@ class ScopeSet {
|
|
|
3124
3124
|
}
|
|
3125
3125
|
}
|
|
3126
3126
|
|
|
3127
|
-
/*! @azure/msal-common v16.11.
|
|
3127
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3128
3128
|
|
|
3129
3129
|
/*
|
|
3130
3130
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3539,7 +3539,7 @@ function addResource(parameters, resource) {
|
|
|
3539
3539
|
}
|
|
3540
3540
|
}
|
|
3541
3541
|
|
|
3542
|
-
/*! @azure/msal-common v16.11.
|
|
3542
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3543
3543
|
|
|
3544
3544
|
/*
|
|
3545
3545
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3661,7 +3661,7 @@ function validateUrl(url, logger, correlationId) {
|
|
|
3661
3661
|
}
|
|
3662
3662
|
}
|
|
3663
3663
|
|
|
3664
|
-
/*! @azure/msal-common v16.11.
|
|
3664
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3665
3665
|
|
|
3666
3666
|
/*
|
|
3667
3667
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3704,7 +3704,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
3704
3704
|
},
|
|
3705
3705
|
};
|
|
3706
3706
|
|
|
3707
|
-
/*! @azure/msal-common v16.11.
|
|
3707
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3708
3708
|
/*
|
|
3709
3709
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3710
3710
|
* Licensed under the MIT License.
|
|
@@ -3979,12 +3979,12 @@ class Logger {
|
|
|
3979
3979
|
}
|
|
3980
3980
|
}
|
|
3981
3981
|
|
|
3982
|
-
/*! @azure/msal-common v16.11.
|
|
3982
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3983
3983
|
/* eslint-disable header/header */
|
|
3984
3984
|
const name$1 = "@azure/msal-common";
|
|
3985
|
-
const version$1 = "16.11.
|
|
3985
|
+
const version$1 = "16.11.3";
|
|
3986
3986
|
|
|
3987
|
-
/*! @azure/msal-common v16.11.
|
|
3987
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3988
3988
|
/*
|
|
3989
3989
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3990
3990
|
* Licensed under the MIT License.
|
|
@@ -3992,7 +3992,7 @@ const version$1 = "16.11.2";
|
|
|
3992
3992
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
3993
3993
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
3994
3994
|
|
|
3995
|
-
/*! @azure/msal-common v16.11.
|
|
3995
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3996
3996
|
|
|
3997
3997
|
/*
|
|
3998
3998
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4030,7 +4030,7 @@ function createCacheError(e) {
|
|
|
4030
4030
|
}
|
|
4031
4031
|
}
|
|
4032
4032
|
|
|
4033
|
-
/*! @azure/msal-common v16.11.
|
|
4033
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
4034
4034
|
|
|
4035
4035
|
/*
|
|
4036
4036
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5177,7 +5177,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5177
5177
|
}
|
|
5178
5178
|
}
|
|
5179
5179
|
|
|
5180
|
-
/*! @azure/msal-common v16.11.
|
|
5180
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5181
5181
|
/*
|
|
5182
5182
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5183
5183
|
* Licensed under the MIT License.
|
|
@@ -5191,7 +5191,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5191
5191
|
const PerformanceEventStatus = {
|
|
5192
5192
|
InProgress: 1};
|
|
5193
5193
|
|
|
5194
|
-
/*! @azure/msal-common v16.11.
|
|
5194
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5195
5195
|
|
|
5196
5196
|
/*
|
|
5197
5197
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5249,7 +5249,7 @@ class StubPerformanceClient {
|
|
|
5249
5249
|
}
|
|
5250
5250
|
}
|
|
5251
5251
|
|
|
5252
|
-
/*! @azure/msal-common v16.11.
|
|
5252
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5253
5253
|
|
|
5254
5254
|
/*
|
|
5255
5255
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5345,7 +5345,7 @@ function isOidcProtocolMode(config) {
|
|
|
5345
5345
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
5346
5346
|
}
|
|
5347
5347
|
|
|
5348
|
-
/*! @azure/msal-common v16.11.
|
|
5348
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5349
5349
|
/*
|
|
5350
5350
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5351
5351
|
* Licensed under the MIT License.
|
|
@@ -5372,7 +5372,7 @@ function isOidcProtocolMode(config) {
|
|
|
5372
5372
|
}
|
|
5373
5373
|
}
|
|
5374
5374
|
|
|
5375
|
-
/*! @azure/msal-common v16.11.
|
|
5375
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5376
5376
|
|
|
5377
5377
|
/*
|
|
5378
5378
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5452,7 +5452,7 @@ class PopTokenGenerator {
|
|
|
5452
5452
|
}
|
|
5453
5453
|
}
|
|
5454
5454
|
|
|
5455
|
-
/*! @azure/msal-common v16.11.
|
|
5455
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5456
5456
|
/*
|
|
5457
5457
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5458
5458
|
* Licensed under the MIT License.
|
|
@@ -5503,7 +5503,7 @@ const badToken = "bad_token";
|
|
|
5503
5503
|
*/
|
|
5504
5504
|
const interruptedUser = "interrupted_user";
|
|
5505
5505
|
|
|
5506
|
-
/*! @azure/msal-common v16.11.
|
|
5506
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5507
5507
|
|
|
5508
5508
|
/*
|
|
5509
5509
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5570,7 +5570,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
|
|
|
5570
5570
|
return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
|
|
5571
5571
|
}
|
|
5572
5572
|
|
|
5573
|
-
/*! @azure/msal-common v16.11.
|
|
5573
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5574
5574
|
|
|
5575
5575
|
/*
|
|
5576
5576
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5589,7 +5589,7 @@ class ServerError extends AuthError {
|
|
|
5589
5589
|
}
|
|
5590
5590
|
}
|
|
5591
5591
|
|
|
5592
|
-
/*! @azure/msal-common v16.11.
|
|
5592
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5593
5593
|
|
|
5594
5594
|
/*
|
|
5595
5595
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5660,7 +5660,7 @@ function parseRequestState(base64Decode, state, correlationId) {
|
|
|
5660
5660
|
}
|
|
5661
5661
|
}
|
|
5662
5662
|
|
|
5663
|
-
/*! @azure/msal-common v16.11.
|
|
5663
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5664
5664
|
|
|
5665
5665
|
/*
|
|
5666
5666
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6011,7 +6011,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6011
6011
|
return baseAccount;
|
|
6012
6012
|
}
|
|
6013
6013
|
|
|
6014
|
-
/*! @azure/msal-common v16.11.
|
|
6014
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6015
6015
|
/*
|
|
6016
6016
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6017
6017
|
* Licensed under the MIT License.
|
|
@@ -6021,7 +6021,7 @@ const CcsCredentialType = {
|
|
|
6021
6021
|
UPN: "UPN",
|
|
6022
6022
|
};
|
|
6023
6023
|
|
|
6024
|
-
/*! @azure/msal-common v16.11.
|
|
6024
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6025
6025
|
/*
|
|
6026
6026
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6027
6027
|
* Licensed under the MIT License.
|
|
@@ -6040,7 +6040,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
|
|
|
6040
6040
|
}
|
|
6041
6041
|
}
|
|
6042
6042
|
|
|
6043
|
-
/*! @azure/msal-common v16.11.
|
|
6043
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6044
6044
|
/*
|
|
6045
6045
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6046
6046
|
* Licensed under the MIT License.
|
|
@@ -6062,7 +6062,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
6062
6062
|
};
|
|
6063
6063
|
}
|
|
6064
6064
|
|
|
6065
|
-
/*! @azure/msal-common v16.11.
|
|
6065
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6066
6066
|
|
|
6067
6067
|
/*
|
|
6068
6068
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6148,7 +6148,7 @@ class ThrottlingUtils {
|
|
|
6148
6148
|
}
|
|
6149
6149
|
}
|
|
6150
6150
|
|
|
6151
|
-
/*! @azure/msal-common v16.11.
|
|
6151
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6152
6152
|
|
|
6153
6153
|
/*
|
|
6154
6154
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6179,7 +6179,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
6179
6179
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6180
6180
|
}
|
|
6181
6181
|
|
|
6182
|
-
/*! @azure/msal-common v16.11.
|
|
6182
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6183
6183
|
|
|
6184
6184
|
/*
|
|
6185
6185
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6259,7 +6259,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
6259
6259
|
ThrottlingUtils.preProcess(cacheManager, thumbprint, correlationId);
|
|
6260
6260
|
let response;
|
|
6261
6261
|
try {
|
|
6262
|
-
response = await invokeAsync((networkClient.sendPostRequestAsync.bind(networkClient)), NetworkClientSendPostRequestAsync, logger, performanceClient, correlationId)(tokenEndpoint, options);
|
|
6262
|
+
response = await invokeAsync((networkClient.sendPostRequestAsync.bind(networkClient)), NetworkClientSendPostRequestAsync, logger, performanceClient, correlationId)(tokenEndpoint, { ...options, correlationId, performanceClient });
|
|
6263
6263
|
const responseHeaders = response.headers || {};
|
|
6264
6264
|
performanceClient?.addFields({
|
|
6265
6265
|
refreshTokenSize: response.body.refresh_token?.length || 0,
|
|
@@ -6295,7 +6295,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
6295
6295
|
return response;
|
|
6296
6296
|
}
|
|
6297
6297
|
|
|
6298
|
-
/*! @azure/msal-common v16.11.
|
|
6298
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6299
6299
|
|
|
6300
6300
|
/*
|
|
6301
6301
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6552,7 +6552,7 @@ class AuthorizationCodeClient {
|
|
|
6552
6552
|
}
|
|
6553
6553
|
}
|
|
6554
6554
|
|
|
6555
|
-
/*! @azure/msal-common v16.11.
|
|
6555
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6556
6556
|
|
|
6557
6557
|
/*
|
|
6558
6558
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6779,7 +6779,7 @@ function extractLoginHint(account) {
|
|
|
6779
6779
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
6780
6780
|
}
|
|
6781
6781
|
|
|
6782
|
-
/*! @azure/msal-common v16.11.
|
|
6782
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6783
6783
|
|
|
6784
6784
|
/*
|
|
6785
6785
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6800,7 +6800,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
6800
6800
|
return new JoseHeaderError(code, correlationId);
|
|
6801
6801
|
}
|
|
6802
6802
|
|
|
6803
|
-
/*! @azure/msal-common v16.11.
|
|
6803
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6804
6804
|
/*
|
|
6805
6805
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6806
6806
|
* Licensed under the MIT License.
|
|
@@ -6808,7 +6808,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
6808
6808
|
const missingKidError = "missing_kid_error";
|
|
6809
6809
|
const missingAlgError = "missing_alg_error";
|
|
6810
6810
|
|
|
6811
|
-
/*! @azure/msal-common v16.11.
|
|
6811
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6812
6812
|
|
|
6813
6813
|
/*
|
|
6814
6814
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6848,7 +6848,7 @@ class JoseHeader {
|
|
|
6848
6848
|
}
|
|
6849
6849
|
}
|
|
6850
6850
|
|
|
6851
|
-
/*! @azure/msal-common v16.11.
|
|
6851
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6852
6852
|
|
|
6853
6853
|
/*
|
|
6854
6854
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7069,7 +7069,7 @@ class RefreshTokenClient {
|
|
|
7069
7069
|
}
|
|
7070
7070
|
}
|
|
7071
7071
|
|
|
7072
|
-
/*! @azure/msal-common v16.11.
|
|
7072
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7073
7073
|
|
|
7074
7074
|
/*
|
|
7075
7075
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7362,7 +7362,7 @@ class StubServerTelemetryManager extends ServerTelemetryManager {
|
|
|
7362
7362
|
clearNativeBrokerErrorCode() { }
|
|
7363
7363
|
}
|
|
7364
7364
|
|
|
7365
|
-
/*! @azure/msal-common v16.11.
|
|
7365
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7366
7366
|
|
|
7367
7367
|
/*
|
|
7368
7368
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7470,7 +7470,7 @@ class SilentFlowClient {
|
|
|
7470
7470
|
}
|
|
7471
7471
|
}
|
|
7472
7472
|
|
|
7473
|
-
/*! @azure/msal-common v16.11.
|
|
7473
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7474
7474
|
|
|
7475
7475
|
/*
|
|
7476
7476
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7486,7 +7486,7 @@ const StubbedNetworkModule = {
|
|
|
7486
7486
|
},
|
|
7487
7487
|
};
|
|
7488
7488
|
|
|
7489
|
-
/*! @azure/msal-common v16.11.
|
|
7489
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7490
7490
|
|
|
7491
7491
|
/*
|
|
7492
7492
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7914,7 +7914,7 @@ function ensureArgumentIsJSONString(argName, argValue, correlationId) {
|
|
|
7914
7914
|
|
|
7915
7915
|
/* eslint-disable header/header */
|
|
7916
7916
|
const name = "@azure/msal-browser";
|
|
7917
|
-
const version = "5.17.
|
|
7917
|
+
const version = "5.17.3";
|
|
7918
7918
|
|
|
7919
7919
|
/*
|
|
7920
7920
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -17225,50 +17225,63 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17225
17225
|
const nativeATMeasurement = this.performanceClient.startMeasurement(NativeInteractionClientAcquireToken, this.correlationId);
|
|
17226
17226
|
const reqTimestamp = nowSeconds();
|
|
17227
17227
|
const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
|
|
17228
|
+
// initialize native request (statically builds the request; does not contact the broker)
|
|
17229
|
+
let nativeRequest;
|
|
17228
17230
|
try {
|
|
17229
|
-
|
|
17230
|
-
|
|
17231
|
-
|
|
17232
|
-
|
|
17233
|
-
|
|
17234
|
-
|
|
17235
|
-
|
|
17231
|
+
nativeRequest = await this.initializePlatformRequest(request);
|
|
17232
|
+
}
|
|
17233
|
+
catch (e) {
|
|
17234
|
+
/*
|
|
17235
|
+
* Request initialization (e.g. PoP token generation or authority
|
|
17236
|
+
* resolution) failed before the broker was contacted, so end the
|
|
17237
|
+
* measurement here to avoid an orphaned sub-measurement.
|
|
17238
|
+
* Broker was never engaged, so this was not a native broker outcome.
|
|
17239
|
+
*/
|
|
17240
|
+
nativeATMeasurement.add({
|
|
17241
|
+
isNativeBroker: false,
|
|
17242
|
+
});
|
|
17243
|
+
nativeATMeasurement.end({
|
|
17244
|
+
success: false,
|
|
17245
|
+
}, e);
|
|
17246
|
+
throw e;
|
|
17247
|
+
}
|
|
17248
|
+
// check if the tokens can be retrieved from internal cache
|
|
17249
|
+
try {
|
|
17250
|
+
const result = await this.acquireTokensFromCache(this.accountId, nativeRequest);
|
|
17251
|
+
// Served from the native internal cache; token did not come directly from the broker
|
|
17252
|
+
nativeATMeasurement.add({
|
|
17253
|
+
isNativeBroker: false,
|
|
17254
|
+
});
|
|
17255
|
+
nativeATMeasurement.end({
|
|
17256
|
+
success: true,
|
|
17257
|
+
fromCache: true,
|
|
17258
|
+
});
|
|
17259
|
+
return result;
|
|
17260
|
+
}
|
|
17261
|
+
catch (e) {
|
|
17262
|
+
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
17263
|
+
this.logger.info("0eitbc", this.correlationId);
|
|
17264
|
+
nativeATMeasurement.add({
|
|
17236
17265
|
isNativeBroker: false,
|
|
17237
|
-
fromCache: true,
|
|
17238
17266
|
});
|
|
17239
|
-
return result;
|
|
17240
|
-
}
|
|
17241
|
-
catch (e) {
|
|
17242
|
-
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
17243
|
-
this.logger.info("0eitbc", this.correlationId);
|
|
17244
|
-
nativeATMeasurement.end({
|
|
17245
|
-
success: false,
|
|
17246
|
-
brokerErrorCode: "cache_request_failed",
|
|
17247
|
-
});
|
|
17248
|
-
throw e;
|
|
17249
|
-
}
|
|
17250
|
-
// continue with a native call for any and all errors
|
|
17251
|
-
this.logger.info("0957j1", this.correlationId);
|
|
17252
|
-
}
|
|
17253
|
-
const validatedResponse = await this.platformAuthProvider.sendMessage(nativeRequest);
|
|
17254
|
-
return await this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp)
|
|
17255
|
-
.then((result) => {
|
|
17256
|
-
nativeATMeasurement.end({
|
|
17257
|
-
success: true,
|
|
17258
|
-
isNativeBroker: true,
|
|
17259
|
-
requestId: result.requestId,
|
|
17260
|
-
});
|
|
17261
|
-
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
17262
|
-
return result;
|
|
17263
|
-
})
|
|
17264
|
-
.catch((error) => {
|
|
17265
17267
|
nativeATMeasurement.end({
|
|
17266
17268
|
success: false,
|
|
17267
|
-
errorCode: error.errorCode,
|
|
17268
|
-
subErrorCode: error.subError,
|
|
17269
17269
|
});
|
|
17270
|
-
throw
|
|
17270
|
+
throw e;
|
|
17271
|
+
}
|
|
17272
|
+
// continue with a native call for any and all errors
|
|
17273
|
+
this.logger.info("0957j1", this.correlationId);
|
|
17274
|
+
}
|
|
17275
|
+
// dispatch the request to the broker
|
|
17276
|
+
try {
|
|
17277
|
+
const validatedResponse = await this.platformAuthProvider.sendMessage(nativeRequest);
|
|
17278
|
+
const result = await this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp, request.storeInCache);
|
|
17279
|
+
nativeATMeasurement.end({
|
|
17280
|
+
success: true,
|
|
17281
|
+
requestId: result.requestId,
|
|
17271
17282
|
});
|
|
17283
|
+
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
17284
|
+
return result;
|
|
17272
17285
|
}
|
|
17273
17286
|
catch (e) {
|
|
17274
17287
|
if (e instanceof NativeAuthError) {
|
|
@@ -17276,10 +17289,29 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17276
17289
|
}
|
|
17277
17290
|
nativeATMeasurement.end({
|
|
17278
17291
|
success: false,
|
|
17279
|
-
});
|
|
17292
|
+
}, e);
|
|
17293
|
+
this.setBrokerErrorTelemetry(e);
|
|
17280
17294
|
throw e;
|
|
17281
17295
|
}
|
|
17282
17296
|
}
|
|
17297
|
+
/**
|
|
17298
|
+
* Records platform-broker error telemetry on the root event for the current
|
|
17299
|
+
* correlationId. `isNativeBroker` is set optimistically to true because the
|
|
17300
|
+
* broker was engaged; when the caller subsequently falls back to a web flow
|
|
17301
|
+
* that succeeds, the root success measurement overrides it to false via
|
|
17302
|
+
* `result.fromPlatformBroker`. Terminal broker errors (no fallback) retain
|
|
17303
|
+
* true. `brokerErrorName`/`brokerErrorCode` are recorded when the error is an `AuthError`.
|
|
17304
|
+
* @param error error thrown by the broker interaction
|
|
17305
|
+
*/
|
|
17306
|
+
setBrokerErrorTelemetry(error) {
|
|
17307
|
+
if (error instanceof AuthError) {
|
|
17308
|
+
this.performanceClient.addFields({
|
|
17309
|
+
isNativeBroker: true,
|
|
17310
|
+
brokerErrorName: error.name,
|
|
17311
|
+
brokerErrorCode: error.errorCode,
|
|
17312
|
+
}, this.correlationId);
|
|
17313
|
+
}
|
|
17314
|
+
}
|
|
17283
17315
|
/**
|
|
17284
17316
|
* Creates silent flow request
|
|
17285
17317
|
* @param request
|
|
@@ -17351,11 +17383,21 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17351
17383
|
const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
|
|
17352
17384
|
serverTelemetryManager.setNativeBrokerErrorCode(e.errorCode);
|
|
17353
17385
|
if (isFatalNativeAuthError(e)) {
|
|
17386
|
+
/*
|
|
17387
|
+
* Fatal error on redirect initiate always falls back to a
|
|
17388
|
+
* regular web redirect, so this request did not complete
|
|
17389
|
+
* natively. Token telemetry for the eventual outcome lands
|
|
17390
|
+
* in handleRedirectPromise (phase 2).
|
|
17391
|
+
*/
|
|
17392
|
+
this.setBrokerErrorTelemetry(e);
|
|
17354
17393
|
throw e;
|
|
17355
17394
|
}
|
|
17356
17395
|
}
|
|
17357
17396
|
}
|
|
17358
|
-
this.browserStorage.setTemporaryCache(TemporaryCacheKeys.NATIVE_REQUEST, JSON.stringify(
|
|
17397
|
+
this.browserStorage.setTemporaryCache(TemporaryCacheKeys.NATIVE_REQUEST, JSON.stringify({
|
|
17398
|
+
...nativeRequest,
|
|
17399
|
+
storeInCache: request.storeInCache,
|
|
17400
|
+
}), true);
|
|
17359
17401
|
const navigationOptions = {
|
|
17360
17402
|
apiId: ApiId.acquireTokenRedirect,
|
|
17361
17403
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
@@ -17385,7 +17427,11 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17385
17427
|
this.performanceClient?.addFields({ errorCode: "no_cached_request" }, this.correlationId);
|
|
17386
17428
|
return null;
|
|
17387
17429
|
}
|
|
17388
|
-
|
|
17430
|
+
/*
|
|
17431
|
+
* storeInCache is a client-side cache directive persisted alongside the cached
|
|
17432
|
+
* request (not a broker-contract parameter), so extract it here before resending.
|
|
17433
|
+
*/
|
|
17434
|
+
const { prompt, storeInCache, ...request } = cachedRequest;
|
|
17389
17435
|
if (prompt) {
|
|
17390
17436
|
this.logger.verbose("0ac34v", this.correlationId);
|
|
17391
17437
|
}
|
|
@@ -17394,13 +17440,13 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17394
17440
|
try {
|
|
17395
17441
|
this.logger.verbose("003x5a", this.correlationId);
|
|
17396
17442
|
const response = await this.platformAuthProvider.sendMessage(request);
|
|
17397
|
-
const authResult = await this.handleNativeResponse(response, request, reqTimestamp);
|
|
17443
|
+
const authResult = await this.handleNativeResponse(response, request, reqTimestamp, storeInCache);
|
|
17398
17444
|
const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
|
|
17399
17445
|
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
17400
|
-
this.performanceClient?.addFields({ isNativeBroker: true }, this.correlationId);
|
|
17401
17446
|
return authResult;
|
|
17402
17447
|
}
|
|
17403
17448
|
catch (e) {
|
|
17449
|
+
this.setBrokerErrorTelemetry(e);
|
|
17404
17450
|
throw e;
|
|
17405
17451
|
}
|
|
17406
17452
|
}
|
|
@@ -17418,7 +17464,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17418
17464
|
* @param request
|
|
17419
17465
|
* @param reqTimestamp
|
|
17420
17466
|
*/
|
|
17421
|
-
async handleNativeResponse(response, request, reqTimestamp) {
|
|
17467
|
+
async handleNativeResponse(response, request, reqTimestamp, storeInCache) {
|
|
17422
17468
|
this.logger.trace("1bojln", this.correlationId);
|
|
17423
17469
|
// generate identifiers
|
|
17424
17470
|
const idTokenClaims = extractTokenClaims(response.id_token, base64Decode, this.correlationId);
|
|
@@ -17447,8 +17493,8 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17447
17493
|
const result = await this.generateAuthenticationResult(response, request, idTokenClaims, baseAccount, authority.canonicalAuthority, reqTimestamp);
|
|
17448
17494
|
// cache accounts and tokens in the appropriate storage
|
|
17449
17495
|
await this.cacheAccount(baseAccount, isKmsi(idTokenClaims));
|
|
17450
|
-
await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache() // environment
|
|
17451
|
-
);
|
|
17496
|
+
await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache(), // environment
|
|
17497
|
+
storeInCache);
|
|
17452
17498
|
return result;
|
|
17453
17499
|
}
|
|
17454
17500
|
/**
|
|
@@ -17569,7 +17615,9 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17569
17615
|
correlationId: this.correlationId,
|
|
17570
17616
|
state: response.state,
|
|
17571
17617
|
fromPlatformBroker: true,
|
|
17572
|
-
...(request.resource && {
|
|
17618
|
+
...(request.extraParameters?.resource && {
|
|
17619
|
+
resource: request.extraParameters.resource,
|
|
17620
|
+
}),
|
|
17573
17621
|
};
|
|
17574
17622
|
return result;
|
|
17575
17623
|
}
|
|
@@ -17593,7 +17641,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17593
17641
|
* @param tenantId
|
|
17594
17642
|
* @param reqTimestamp
|
|
17595
17643
|
*/
|
|
17596
|
-
async cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, tenantId, reqTimestamp, environment) {
|
|
17644
|
+
async cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, tenantId, reqTimestamp, environment, storeInCache) {
|
|
17597
17645
|
const cachedIdToken = createIdTokenEntity(homeAccountIdentifier, environment, response.id_token || "", request.clientId, idTokenClaims.tid || "");
|
|
17598
17646
|
// cache accessToken in inmemory storage
|
|
17599
17647
|
const expiresIn = request.tokenType === AuthenticationScheme.POP
|
|
@@ -17605,14 +17653,14 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17605
17653
|
const responseScopes = this.generateScopes(response.scope, request.scope);
|
|
17606
17654
|
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);
|
|
17607
17655
|
// save idtoken credential in configured browser storage
|
|
17608
|
-
if (!!cachedIdToken &&
|
|
17656
|
+
if (!!cachedIdToken && storeInCache?.idToken !== false) {
|
|
17609
17657
|
await this.browserStorage.setIdTokenCredential(cachedIdToken, this.correlationId, isKmsi(idTokenClaims));
|
|
17610
17658
|
}
|
|
17611
17659
|
// save access token credential in memory storage
|
|
17612
17660
|
const nativeCacheRecord = {
|
|
17613
17661
|
accessToken: cachedAccessToken,
|
|
17614
17662
|
};
|
|
17615
|
-
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId,
|
|
17663
|
+
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId, storeInCache);
|
|
17616
17664
|
}
|
|
17617
17665
|
getExpiresInValue(tokenType, expiresIn) {
|
|
17618
17666
|
return tokenType === AuthenticationScheme.POP
|
|
@@ -17684,13 +17732,12 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17684
17732
|
const configClaims = request.skipBrokerClaims && !!request.embeddedClientId
|
|
17685
17733
|
? undefined
|
|
17686
17734
|
: this.config.auth.clientCapabilities;
|
|
17687
|
-
// scopes are expected to be received by the native broker as "scope" and will be added to the request below.
|
|
17688
|
-
const { scopes, claims
|
|
17735
|
+
// 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.
|
|
17736
|
+
const { scopes, claims } = request;
|
|
17689
17737
|
const scopeSet = new ScopeSet(scopes || [], this.correlationId);
|
|
17690
17738
|
scopeSet.appendScopes(OIDC_DEFAULT_SCOPES);
|
|
17691
17739
|
const mergedClaims = buildMergedClaims(claims, configClaims?.length ? configClaims : undefined);
|
|
17692
17740
|
const validatedRequest = {
|
|
17693
|
-
...remainingProperties,
|
|
17694
17741
|
claims: mergedClaims,
|
|
17695
17742
|
accountId: this.accountId,
|
|
17696
17743
|
clientId: this.config.auth.clientId,
|
|
@@ -17699,19 +17746,28 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17699
17746
|
redirectUri: getRedirectUri(request.redirectUri, this.config.auth.redirectUri, this.logger, this.correlationId),
|
|
17700
17747
|
prompt: this.getPrompt(request.prompt),
|
|
17701
17748
|
correlationId: this.correlationId,
|
|
17749
|
+
isSts: false,
|
|
17702
17750
|
tokenType: request.authenticationScheme,
|
|
17703
17751
|
windowTitleSubstring: document.title,
|
|
17752
|
+
nonce: request.nonce,
|
|
17753
|
+
state: request.state,
|
|
17754
|
+
loginHint: request.loginHint,
|
|
17704
17755
|
extraParameters: {
|
|
17705
17756
|
...request.extraParameters,
|
|
17757
|
+
...(request.resource && { resource: request.resource }), // resource is set for MCP scenarios
|
|
17706
17758
|
},
|
|
17707
17759
|
extendedExpiryToken: false,
|
|
17708
17760
|
keyId: request.popKid,
|
|
17761
|
+
resourceRequestMethod: request.resourceRequestMethod,
|
|
17762
|
+
resourceRequestUri: request.resourceRequestUri,
|
|
17763
|
+
shrClaims: request.shrClaims,
|
|
17764
|
+
shrNonce: request.shrNonce,
|
|
17709
17765
|
};
|
|
17710
17766
|
// Check for PoP token requests: signPopToken should only be set to true if popKid is not set
|
|
17711
17767
|
if (validatedRequest.signPopToken && !!request.popKid) {
|
|
17712
17768
|
throw createBrowserAuthError(invalidPopTokenRequest, this.correlationId);
|
|
17713
17769
|
}
|
|
17714
|
-
this.handleExtraBrokerParams(validatedRequest);
|
|
17770
|
+
this.handleExtraBrokerParams(validatedRequest, request.embeddedClientId);
|
|
17715
17771
|
validatedRequest.extraParameters =
|
|
17716
17772
|
validatedRequest.extraParameters || {};
|
|
17717
17773
|
validatedRequest.extraParameters.telemetry =
|
|
@@ -17786,19 +17842,19 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17786
17842
|
* @param request {PlatformAuthRequest}
|
|
17787
17843
|
* @private
|
|
17788
17844
|
*/
|
|
17789
|
-
handleExtraBrokerParams(request) {
|
|
17845
|
+
handleExtraBrokerParams(request, embeddedClientId) {
|
|
17790
17846
|
const hasExtraBrokerParams = request.extraParameters &&
|
|
17791
17847
|
request.extraParameters.hasOwnProperty(BROKER_CLIENT_ID) &&
|
|
17792
17848
|
request.extraParameters.hasOwnProperty(BROKER_REDIRECT_URI) &&
|
|
17793
17849
|
request.extraParameters.hasOwnProperty(CLIENT_ID);
|
|
17794
|
-
if (!
|
|
17850
|
+
if (!embeddedClientId && !hasExtraBrokerParams) {
|
|
17795
17851
|
return;
|
|
17796
17852
|
}
|
|
17797
17853
|
let child_client_id = "";
|
|
17798
17854
|
const child_redirect_uri = request.redirectUri;
|
|
17799
|
-
if (
|
|
17855
|
+
if (embeddedClientId) {
|
|
17800
17856
|
request.redirectUri = this.config.auth.redirectUri;
|
|
17801
|
-
child_client_id =
|
|
17857
|
+
child_client_id = embeddedClientId;
|
|
17802
17858
|
}
|
|
17803
17859
|
else if (request.extraParameters) {
|
|
17804
17860
|
request.redirectUri =
|
|
@@ -17806,7 +17862,15 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17806
17862
|
child_client_id =
|
|
17807
17863
|
request.extraParameters[CLIENT_ID];
|
|
17808
17864
|
}
|
|
17865
|
+
const {
|
|
17866
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17867
|
+
[BROKER_CLIENT_ID]: _brkClientId,
|
|
17868
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17869
|
+
[BROKER_REDIRECT_URI]: _brkRedirectUri,
|
|
17870
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17871
|
+
[CLIENT_ID]: _clientId, ...remainingExtraParameters } = request.extraParameters || {};
|
|
17809
17872
|
request.extraParameters = {
|
|
17873
|
+
...remainingExtraParameters,
|
|
17810
17874
|
child_client_id,
|
|
17811
17875
|
child_redirect_uri,
|
|
17812
17876
|
};
|
|
@@ -18231,6 +18295,8 @@ class NavigationClient {
|
|
|
18231
18295
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
18232
18296
|
* Licensed under the MIT License.
|
|
18233
18297
|
*/
|
|
18298
|
+
const MAX_FETCH_POST_RETRIES = 1;
|
|
18299
|
+
const RETRY_DELAY_MS = 100;
|
|
18234
18300
|
/**
|
|
18235
18301
|
* 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
|
|
18236
18302
|
*/
|
|
@@ -18279,21 +18345,40 @@ class FetchClient {
|
|
|
18279
18345
|
async sendPostRequestAsync(url, options) {
|
|
18280
18346
|
const reqBody = (options && options.body) || "";
|
|
18281
18347
|
const reqHeaders = getFetchHeaders(options);
|
|
18348
|
+
const correlationId = options?.correlationId;
|
|
18349
|
+
const performanceClient = options?.performanceClient;
|
|
18282
18350
|
let response;
|
|
18283
|
-
let
|
|
18284
|
-
let
|
|
18285
|
-
|
|
18286
|
-
|
|
18287
|
-
|
|
18288
|
-
|
|
18289
|
-
|
|
18290
|
-
|
|
18351
|
+
let lastError;
|
|
18352
|
+
for (let attempt = 1; attempt <= MAX_FETCH_POST_RETRIES + 1; attempt++) {
|
|
18353
|
+
try {
|
|
18354
|
+
response = await fetch(url, {
|
|
18355
|
+
method: HTTP_REQUEST_TYPE.POST,
|
|
18356
|
+
headers: reqHeaders,
|
|
18357
|
+
body: reqBody,
|
|
18358
|
+
});
|
|
18359
|
+
break;
|
|
18360
|
+
}
|
|
18361
|
+
catch (e) {
|
|
18362
|
+
lastError = e;
|
|
18363
|
+
if (!shouldRetryPostFetchError(lastError, attempt)) {
|
|
18364
|
+
throw createNetworkError(createBrowserAuthError(window.navigator.onLine !== false
|
|
18365
|
+
? postRequestFailed
|
|
18366
|
+
: noNetworkConnectivity, correlationId || ""), undefined, undefined, lastError);
|
|
18367
|
+
}
|
|
18368
|
+
// Brief backoff before retry
|
|
18369
|
+
await new Promise((resolve) => setTimeout(resolve, RETRY_DELAY_MS));
|
|
18370
|
+
if (correlationId) {
|
|
18371
|
+
performanceClient?.incrementFields({ fetchRetryCount: 1 }, correlationId);
|
|
18372
|
+
}
|
|
18373
|
+
}
|
|
18291
18374
|
}
|
|
18292
|
-
|
|
18293
|
-
throw createNetworkError(createBrowserAuthError(window.navigator.onLine
|
|
18375
|
+
if (!response) {
|
|
18376
|
+
throw createNetworkError(createBrowserAuthError(window.navigator.onLine !== false
|
|
18294
18377
|
? postRequestFailed
|
|
18295
|
-
: noNetworkConnectivity, ""), undefined, undefined,
|
|
18378
|
+
: noNetworkConnectivity, correlationId || ""), undefined, undefined, lastError);
|
|
18296
18379
|
}
|
|
18380
|
+
let responseStatus = 0;
|
|
18381
|
+
let responseHeaders = {};
|
|
18297
18382
|
responseHeaders = getHeaderDict(response.headers);
|
|
18298
18383
|
try {
|
|
18299
18384
|
responseStatus = response.status;
|
|
@@ -18304,10 +18389,15 @@ class FetchClient {
|
|
|
18304
18389
|
};
|
|
18305
18390
|
}
|
|
18306
18391
|
catch (e) {
|
|
18307
|
-
throw createNetworkError(createBrowserAuthError(failedToParseResponse, ""), responseStatus, responseHeaders, e);
|
|
18392
|
+
throw createNetworkError(createBrowserAuthError(failedToParseResponse, correlationId || ""), responseStatus, responseHeaders, e);
|
|
18308
18393
|
}
|
|
18309
18394
|
}
|
|
18310
18395
|
}
|
|
18396
|
+
function shouldRetryPostFetchError(error, attempt) {
|
|
18397
|
+
return (attempt <= MAX_FETCH_POST_RETRIES &&
|
|
18398
|
+
window.navigator.onLine !== false &&
|
|
18399
|
+
error.name !== "AbortError");
|
|
18400
|
+
}
|
|
18311
18401
|
/**
|
|
18312
18402
|
* Get Fetch API Headers object from string map
|
|
18313
18403
|
* @param inputHeaders
|
|
@@ -18793,7 +18883,7 @@ class PlatformAuthDOMHandler {
|
|
|
18793
18883
|
}
|
|
18794
18884
|
initializePlatformDOMRequest(request) {
|
|
18795
18885
|
this.logger.trace(`15d6yv ${this.platformAuthType}`, request.correlationId);
|
|
18796
|
-
const { accountId, clientId, authority, scope, redirectUri, correlationId, state,
|
|
18886
|
+
const { accountId, clientId, authority, scope, redirectUri, correlationId, state, extraParameters, ...remainingProperties } = request;
|
|
18797
18887
|
const validExtraParameters = this.getDOMExtraParams(remainingProperties, correlationId);
|
|
18798
18888
|
const platformDOMRequest = {
|
|
18799
18889
|
accountId: accountId,
|
|
@@ -18809,8 +18899,6 @@ class PlatformAuthDOMHandler {
|
|
|
18809
18899
|
redirectUri: redirectUri,
|
|
18810
18900
|
scope: scope,
|
|
18811
18901
|
state: state,
|
|
18812
|
-
storeInCache: storeInCache,
|
|
18813
|
-
embeddedClientId: embeddedClientId,
|
|
18814
18902
|
};
|
|
18815
18903
|
return platformDOMRequest;
|
|
18816
18904
|
}
|
|
@@ -20565,6 +20653,7 @@ class StandardController {
|
|
|
20565
20653
|
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, InteractionType.Redirect);
|
|
20566
20654
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
20567
20655
|
this.logger.trace("12v7is", correlationId);
|
|
20656
|
+
// Cached nativeAccountId routes directly to the broker (no /authorize call)
|
|
20568
20657
|
rootMeasurement.add({
|
|
20569
20658
|
isPlatformBrokerRequest: true,
|
|
20570
20659
|
});
|
|
@@ -20601,6 +20690,7 @@ class StandardController {
|
|
|
20601
20690
|
}
|
|
20602
20691
|
rootMeasurement.end({
|
|
20603
20692
|
success: true,
|
|
20693
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
20604
20694
|
}, undefined, result.account);
|
|
20605
20695
|
// Fire-and-forget SSO capability verification in background
|
|
20606
20696
|
this.verifySsoCapability(cachedRedirectRequest, InteractionType.Redirect);
|
|
@@ -20610,8 +20700,8 @@ class StandardController {
|
|
|
20610
20700
|
* Instrument an event only if an error code is set. Otherwise, discard it when the redirect response
|
|
20611
20701
|
* is empty and the error code is missing.
|
|
20612
20702
|
*/
|
|
20613
|
-
if (rootMeasurement.event.errorCode) {
|
|
20614
|
-
rootMeasurement.end({ success: false }
|
|
20703
|
+
if (!!rootMeasurement.event.errorCode) {
|
|
20704
|
+
rootMeasurement.end({ success: false });
|
|
20615
20705
|
}
|
|
20616
20706
|
else {
|
|
20617
20707
|
rootMeasurement.discard();
|
|
@@ -20670,10 +20760,6 @@ class StandardController {
|
|
|
20670
20760
|
this.canUsePlatformBroker(request)) {
|
|
20671
20761
|
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);
|
|
20672
20762
|
result = invokeAsync(nativeClient.acquireTokenRedirect.bind(nativeClient), NativeInteractionClientAcquireTokenRedirect, this.logger, this.performanceClient, correlationId)(request, atrMeasurement).catch((e) => {
|
|
20673
|
-
atrMeasurement.add({
|
|
20674
|
-
brokerErrorName: e.name,
|
|
20675
|
-
brokerErrorCode: e.errorCode,
|
|
20676
|
-
});
|
|
20677
20763
|
if (e instanceof NativeAuthError &&
|
|
20678
20764
|
isFatalNativeAuthError(e)) {
|
|
20679
20765
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
@@ -20742,6 +20828,7 @@ class StandardController {
|
|
|
20742
20828
|
let result;
|
|
20743
20829
|
const pkce = this.getPreGeneratedPkceCodes(correlationId);
|
|
20744
20830
|
if (this.canUsePlatformBroker(request)) {
|
|
20831
|
+
// Cached nativeAccountId routes directly to the broker (no /authorize call)
|
|
20745
20832
|
atPopupMeasurement.add({
|
|
20746
20833
|
isPlatformBrokerRequest: true,
|
|
20747
20834
|
});
|
|
@@ -20752,15 +20839,11 @@ class StandardController {
|
|
|
20752
20839
|
.then((response) => {
|
|
20753
20840
|
atPopupMeasurement.end({
|
|
20754
20841
|
success: true,
|
|
20755
|
-
isNativeBroker:
|
|
20842
|
+
isNativeBroker: response.fromPlatformBroker ?? false,
|
|
20756
20843
|
}, undefined, response.account);
|
|
20757
20844
|
return response;
|
|
20758
20845
|
})
|
|
20759
20846
|
.catch((e) => {
|
|
20760
|
-
atPopupMeasurement.add({
|
|
20761
|
-
brokerErrorName: e.name,
|
|
20762
|
-
brokerErrorCode: e.errorCode,
|
|
20763
|
-
});
|
|
20764
20847
|
if (e instanceof NativeAuthError &&
|
|
20765
20848
|
isFatalNativeAuthError(e)) {
|
|
20766
20849
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
@@ -20791,6 +20874,7 @@ class StandardController {
|
|
|
20791
20874
|
}
|
|
20792
20875
|
atPopupMeasurement.end({
|
|
20793
20876
|
success: true,
|
|
20877
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
20794
20878
|
accessTokenSize: result.accessToken.length,
|
|
20795
20879
|
idTokenSize: result.idToken.length,
|
|
20796
20880
|
}, undefined, result.account);
|
|
@@ -20984,14 +21068,11 @@ class StandardController {
|
|
|
20984
21068
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Silent, validRequest);
|
|
20985
21069
|
let result;
|
|
20986
21070
|
if (this.canUsePlatformBroker(validRequest)) {
|
|
21071
|
+
// Cached nativeAccountId routes directly to the broker (no /authorize call)
|
|
20987
21072
|
this.ssoSilentMeasurement?.add({
|
|
20988
21073
|
isPlatformBrokerRequest: true,
|
|
20989
21074
|
});
|
|
20990
21075
|
result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch((e) => {
|
|
20991
|
-
this.ssoSilentMeasurement?.add({
|
|
20992
|
-
brokerErrorName: e.name,
|
|
20993
|
-
brokerErrorCode: e.errorCode,
|
|
20994
|
-
});
|
|
20995
21076
|
// If native token acquisition fails for availability reasons fallback to standard flow
|
|
20996
21077
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
20997
21078
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
@@ -21014,7 +21095,7 @@ class StandardController {
|
|
|
21014
21095
|
}
|
|
21015
21096
|
this.ssoSilentMeasurement?.end({
|
|
21016
21097
|
success: true,
|
|
21017
|
-
isNativeBroker: response.fromPlatformBroker,
|
|
21098
|
+
isNativeBroker: response.fromPlatformBroker ?? false,
|
|
21018
21099
|
accessTokenSize: response.accessToken.length,
|
|
21019
21100
|
idTokenSize: response.idToken.length,
|
|
21020
21101
|
}, undefined, response.account);
|
|
@@ -21067,6 +21148,7 @@ class StandardController {
|
|
|
21067
21148
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
21068
21149
|
atbcMeasurement.end({
|
|
21069
21150
|
success: true,
|
|
21151
|
+
isNativeBroker: false,
|
|
21070
21152
|
accessTokenSize: result.accessToken.length,
|
|
21071
21153
|
idTokenSize: result.idToken.length,
|
|
21072
21154
|
}, undefined, result.account);
|
|
@@ -21097,10 +21179,6 @@ class StandardController {
|
|
|
21097
21179
|
...request,
|
|
21098
21180
|
correlationId,
|
|
21099
21181
|
}, ApiId.acquireTokenByCode, request.nativeAccountId).catch((e) => {
|
|
21100
|
-
atbcMeasurement.add({
|
|
21101
|
-
brokerErrorName: e.name,
|
|
21102
|
-
brokerErrorCode: e.errorCode,
|
|
21103
|
-
});
|
|
21104
21182
|
// If native token acquisition fails for availability reasons fallback to standard flow
|
|
21105
21183
|
if (e instanceof NativeAuthError &&
|
|
21106
21184
|
isFatalNativeAuthError(e)) {
|
|
@@ -21110,6 +21188,7 @@ class StandardController {
|
|
|
21110
21188
|
});
|
|
21111
21189
|
atbcMeasurement.end({
|
|
21112
21190
|
success: true,
|
|
21191
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
21113
21192
|
}, undefined, result.account);
|
|
21114
21193
|
return result;
|
|
21115
21194
|
}
|
|
@@ -21150,6 +21229,7 @@ class StandardController {
|
|
|
21150
21229
|
.then((response) => {
|
|
21151
21230
|
this.acquireTokenByCodeAsyncMeasurement?.end({
|
|
21152
21231
|
success: true,
|
|
21232
|
+
isNativeBroker: false,
|
|
21153
21233
|
fromCache: response.fromCache,
|
|
21154
21234
|
});
|
|
21155
21235
|
return response;
|
|
@@ -21327,8 +21407,16 @@ class StandardController {
|
|
|
21327
21407
|
/**
|
|
21328
21408
|
* Acquire a token from native device (e.g. WAM)
|
|
21329
21409
|
* @param request
|
|
21410
|
+
* @param apiId
|
|
21411
|
+
* @param accountId
|
|
21412
|
+
* @param cacheLookupPolicy
|
|
21330
21413
|
*/
|
|
21331
21414
|
async acquireTokenNative(request, apiId, accountId, cacheLookupPolicy) {
|
|
21415
|
+
/*
|
|
21416
|
+
* Callers always normalize correlationId onto the request before delegating
|
|
21417
|
+
* here, so it is guaranteed defined and is the single id used to key this
|
|
21418
|
+
* flow's telemetry.
|
|
21419
|
+
*/
|
|
21332
21420
|
const correlationId = this.getRequestCorrelationId(request);
|
|
21333
21421
|
this.logger.trace("0b9y3p", correlationId);
|
|
21334
21422
|
if (!this.platformAuthProvider) {
|
|
@@ -21582,6 +21670,7 @@ class StandardController {
|
|
|
21582
21670
|
.then((result) => {
|
|
21583
21671
|
atsMeasurement.end({
|
|
21584
21672
|
success: true,
|
|
21673
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
21585
21674
|
fromCache: result.fromCache,
|
|
21586
21675
|
accessTokenSize: result.accessToken.length,
|
|
21587
21676
|
idTokenSize: result.idToken.length,
|
|
@@ -21718,7 +21807,7 @@ class StandardController {
|
|
|
21718
21807
|
if (request.correlationId) {
|
|
21719
21808
|
this.performanceClient.addFields({
|
|
21720
21809
|
fromCache: response.fromCache,
|
|
21721
|
-
isNativeBroker: response.fromPlatformBroker,
|
|
21810
|
+
isNativeBroker: response.fromPlatformBroker ?? false,
|
|
21722
21811
|
}, request.correlationId);
|
|
21723
21812
|
}
|
|
21724
21813
|
return response;
|
|
@@ -21744,10 +21833,6 @@ class StandardController {
|
|
|
21744
21833
|
this.logger.verbose("0sczo4", silentRequest.correlationId);
|
|
21745
21834
|
this.performanceClient.addFields({ isPlatformBrokerRequest: true }, silentRequest.correlationId);
|
|
21746
21835
|
return this.acquireTokenNative(silentRequest, ApiId.acquireTokenSilent_silentFlow, silentRequest.account.nativeAccountId, cacheLookupPolicy).catch(async (e) => {
|
|
21747
|
-
this.performanceClient.addFields({
|
|
21748
|
-
brokerErrorName: e.name,
|
|
21749
|
-
brokerErrorCode: e.errorCode,
|
|
21750
|
-
}, silentRequest.correlationId);
|
|
21751
21836
|
// If native token acquisition fails for availability reasons fallback to web flow
|
|
21752
21837
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
21753
21838
|
this.logger.verbose("07rkmb", silentRequest.correlationId);
|