@azure/msal-browser 5.17.0 → 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 +61 -12
- package/dist/crypto/BrowserCrypto.mjs.map +1 -1
- package/dist/crypto/CryptoOps.mjs +6 -12
- package/dist/crypto/CryptoOps.mjs.map +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 +3 -2
- package/dist/error/BrowserAuthErrorCodes.mjs.map +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 +317 -184
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +317 -184
- 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 +326 -187
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +326 -187
- 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/crypto/BrowserCrypto.ts +104 -9
- package/src/crypto/CryptoOps.ts +13 -12
- package/src/error/BrowserAuthErrorCodes.ts +1 -0
- 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/crypto/BrowserCrypto.d.ts +19 -5
- package/types/crypto/BrowserCrypto.d.ts.map +1 -1
- package/types/crypto/CryptoOps.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/error/BrowserAuthErrorCodes.d.ts +1 -0
- package/types/error/BrowserAuthErrorCodes.d.ts.map +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,12 +3661,16 @@ 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.
|
|
3668
3668
|
* Licensed under the MIT License.
|
|
3669
3669
|
*/
|
|
3670
|
+
/**
|
|
3671
|
+
* Default crypto implementation used when a platform-specific implementation has
|
|
3672
|
+
* not been provided.
|
|
3673
|
+
*/
|
|
3670
3674
|
const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
3671
3675
|
createNewGuid: () => {
|
|
3672
3676
|
throw createClientAuthError(methodNotImplemented, "");
|
|
@@ -3700,7 +3704,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
3700
3704
|
},
|
|
3701
3705
|
};
|
|
3702
3706
|
|
|
3703
|
-
/*! @azure/msal-common v16.11.
|
|
3707
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3704
3708
|
/*
|
|
3705
3709
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3706
3710
|
* Licensed under the MIT License.
|
|
@@ -3975,12 +3979,12 @@ class Logger {
|
|
|
3975
3979
|
}
|
|
3976
3980
|
}
|
|
3977
3981
|
|
|
3978
|
-
/*! @azure/msal-common v16.11.
|
|
3982
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3979
3983
|
/* eslint-disable header/header */
|
|
3980
3984
|
const name$1 = "@azure/msal-common";
|
|
3981
|
-
const version$1 = "16.11.
|
|
3985
|
+
const version$1 = "16.11.3";
|
|
3982
3986
|
|
|
3983
|
-
/*! @azure/msal-common v16.11.
|
|
3987
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3984
3988
|
/*
|
|
3985
3989
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3986
3990
|
* Licensed under the MIT License.
|
|
@@ -3988,7 +3992,7 @@ const version$1 = "16.11.1";
|
|
|
3988
3992
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
3989
3993
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
3990
3994
|
|
|
3991
|
-
/*! @azure/msal-common v16.11.
|
|
3995
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3992
3996
|
|
|
3993
3997
|
/*
|
|
3994
3998
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4026,7 +4030,7 @@ function createCacheError(e) {
|
|
|
4026
4030
|
}
|
|
4027
4031
|
}
|
|
4028
4032
|
|
|
4029
|
-
/*! @azure/msal-common v16.11.
|
|
4033
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
4030
4034
|
|
|
4031
4035
|
/*
|
|
4032
4036
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5173,7 +5177,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5173
5177
|
}
|
|
5174
5178
|
}
|
|
5175
5179
|
|
|
5176
|
-
/*! @azure/msal-common v16.11.
|
|
5180
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5177
5181
|
/*
|
|
5178
5182
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5179
5183
|
* Licensed under the MIT License.
|
|
@@ -5187,7 +5191,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5187
5191
|
const PerformanceEventStatus = {
|
|
5188
5192
|
InProgress: 1};
|
|
5189
5193
|
|
|
5190
|
-
/*! @azure/msal-common v16.11.
|
|
5194
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5191
5195
|
|
|
5192
5196
|
/*
|
|
5193
5197
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5245,7 +5249,7 @@ class StubPerformanceClient {
|
|
|
5245
5249
|
}
|
|
5246
5250
|
}
|
|
5247
5251
|
|
|
5248
|
-
/*! @azure/msal-common v16.11.
|
|
5252
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5249
5253
|
|
|
5250
5254
|
/*
|
|
5251
5255
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5341,7 +5345,7 @@ function isOidcProtocolMode(config) {
|
|
|
5341
5345
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
5342
5346
|
}
|
|
5343
5347
|
|
|
5344
|
-
/*! @azure/msal-common v16.11.
|
|
5348
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5345
5349
|
/*
|
|
5346
5350
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5347
5351
|
* Licensed under the MIT License.
|
|
@@ -5368,7 +5372,7 @@ function isOidcProtocolMode(config) {
|
|
|
5368
5372
|
}
|
|
5369
5373
|
}
|
|
5370
5374
|
|
|
5371
|
-
/*! @azure/msal-common v16.11.
|
|
5375
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5372
5376
|
|
|
5373
5377
|
/*
|
|
5374
5378
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5448,7 +5452,7 @@ class PopTokenGenerator {
|
|
|
5448
5452
|
}
|
|
5449
5453
|
}
|
|
5450
5454
|
|
|
5451
|
-
/*! @azure/msal-common v16.11.
|
|
5455
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5452
5456
|
/*
|
|
5453
5457
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5454
5458
|
* Licensed under the MIT License.
|
|
@@ -5499,7 +5503,7 @@ const badToken = "bad_token";
|
|
|
5499
5503
|
*/
|
|
5500
5504
|
const interruptedUser = "interrupted_user";
|
|
5501
5505
|
|
|
5502
|
-
/*! @azure/msal-common v16.11.
|
|
5506
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5503
5507
|
|
|
5504
5508
|
/*
|
|
5505
5509
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5566,7 +5570,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
|
|
|
5566
5570
|
return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
|
|
5567
5571
|
}
|
|
5568
5572
|
|
|
5569
|
-
/*! @azure/msal-common v16.11.
|
|
5573
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5570
5574
|
|
|
5571
5575
|
/*
|
|
5572
5576
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5585,7 +5589,7 @@ class ServerError extends AuthError {
|
|
|
5585
5589
|
}
|
|
5586
5590
|
}
|
|
5587
5591
|
|
|
5588
|
-
/*! @azure/msal-common v16.11.
|
|
5592
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5589
5593
|
|
|
5590
5594
|
/*
|
|
5591
5595
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5656,7 +5660,7 @@ function parseRequestState(base64Decode, state, correlationId) {
|
|
|
5656
5660
|
}
|
|
5657
5661
|
}
|
|
5658
5662
|
|
|
5659
|
-
/*! @azure/msal-common v16.11.
|
|
5663
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5660
5664
|
|
|
5661
5665
|
/*
|
|
5662
5666
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6007,7 +6011,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6007
6011
|
return baseAccount;
|
|
6008
6012
|
}
|
|
6009
6013
|
|
|
6010
|
-
/*! @azure/msal-common v16.11.
|
|
6014
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6011
6015
|
/*
|
|
6012
6016
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6013
6017
|
* Licensed under the MIT License.
|
|
@@ -6017,7 +6021,7 @@ const CcsCredentialType = {
|
|
|
6017
6021
|
UPN: "UPN",
|
|
6018
6022
|
};
|
|
6019
6023
|
|
|
6020
|
-
/*! @azure/msal-common v16.11.
|
|
6024
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6021
6025
|
/*
|
|
6022
6026
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6023
6027
|
* Licensed under the MIT License.
|
|
@@ -6036,7 +6040,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
|
|
|
6036
6040
|
}
|
|
6037
6041
|
}
|
|
6038
6042
|
|
|
6039
|
-
/*! @azure/msal-common v16.11.
|
|
6043
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6040
6044
|
/*
|
|
6041
6045
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6042
6046
|
* Licensed under the MIT License.
|
|
@@ -6058,7 +6062,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
6058
6062
|
};
|
|
6059
6063
|
}
|
|
6060
6064
|
|
|
6061
|
-
/*! @azure/msal-common v16.11.
|
|
6065
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6062
6066
|
|
|
6063
6067
|
/*
|
|
6064
6068
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6144,7 +6148,7 @@ class ThrottlingUtils {
|
|
|
6144
6148
|
}
|
|
6145
6149
|
}
|
|
6146
6150
|
|
|
6147
|
-
/*! @azure/msal-common v16.11.
|
|
6151
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6148
6152
|
|
|
6149
6153
|
/*
|
|
6150
6154
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6175,7 +6179,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
6175
6179
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6176
6180
|
}
|
|
6177
6181
|
|
|
6178
|
-
/*! @azure/msal-common v16.11.
|
|
6182
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6179
6183
|
|
|
6180
6184
|
/*
|
|
6181
6185
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6255,7 +6259,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
6255
6259
|
ThrottlingUtils.preProcess(cacheManager, thumbprint, correlationId);
|
|
6256
6260
|
let response;
|
|
6257
6261
|
try {
|
|
6258
|
-
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 });
|
|
6259
6263
|
const responseHeaders = response.headers || {};
|
|
6260
6264
|
performanceClient?.addFields({
|
|
6261
6265
|
refreshTokenSize: response.body.refresh_token?.length || 0,
|
|
@@ -6291,7 +6295,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
6291
6295
|
return response;
|
|
6292
6296
|
}
|
|
6293
6297
|
|
|
6294
|
-
/*! @azure/msal-common v16.11.
|
|
6298
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6295
6299
|
|
|
6296
6300
|
/*
|
|
6297
6301
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6548,7 +6552,7 @@ class AuthorizationCodeClient {
|
|
|
6548
6552
|
}
|
|
6549
6553
|
}
|
|
6550
6554
|
|
|
6551
|
-
/*! @azure/msal-common v16.11.
|
|
6555
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6552
6556
|
|
|
6553
6557
|
/*
|
|
6554
6558
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6775,7 +6779,7 @@ function extractLoginHint(account) {
|
|
|
6775
6779
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
6776
6780
|
}
|
|
6777
6781
|
|
|
6778
|
-
/*! @azure/msal-common v16.11.
|
|
6782
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6779
6783
|
|
|
6780
6784
|
/*
|
|
6781
6785
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6796,7 +6800,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
6796
6800
|
return new JoseHeaderError(code, correlationId);
|
|
6797
6801
|
}
|
|
6798
6802
|
|
|
6799
|
-
/*! @azure/msal-common v16.11.
|
|
6803
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6800
6804
|
/*
|
|
6801
6805
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6802
6806
|
* Licensed under the MIT License.
|
|
@@ -6804,7 +6808,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
6804
6808
|
const missingKidError = "missing_kid_error";
|
|
6805
6809
|
const missingAlgError = "missing_alg_error";
|
|
6806
6810
|
|
|
6807
|
-
/*! @azure/msal-common v16.11.
|
|
6811
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6808
6812
|
|
|
6809
6813
|
/*
|
|
6810
6814
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6844,7 +6848,7 @@ class JoseHeader {
|
|
|
6844
6848
|
}
|
|
6845
6849
|
}
|
|
6846
6850
|
|
|
6847
|
-
/*! @azure/msal-common v16.11.
|
|
6851
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6848
6852
|
|
|
6849
6853
|
/*
|
|
6850
6854
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7065,7 +7069,7 @@ class RefreshTokenClient {
|
|
|
7065
7069
|
}
|
|
7066
7070
|
}
|
|
7067
7071
|
|
|
7068
|
-
/*! @azure/msal-common v16.11.
|
|
7072
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7069
7073
|
|
|
7070
7074
|
/*
|
|
7071
7075
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7358,7 +7362,7 @@ class StubServerTelemetryManager extends ServerTelemetryManager {
|
|
|
7358
7362
|
clearNativeBrokerErrorCode() { }
|
|
7359
7363
|
}
|
|
7360
7364
|
|
|
7361
|
-
/*! @azure/msal-common v16.11.
|
|
7365
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7362
7366
|
|
|
7363
7367
|
/*
|
|
7364
7368
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7466,7 +7470,7 @@ class SilentFlowClient {
|
|
|
7466
7470
|
}
|
|
7467
7471
|
}
|
|
7468
7472
|
|
|
7469
|
-
/*! @azure/msal-common v16.11.
|
|
7473
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7470
7474
|
|
|
7471
7475
|
/*
|
|
7472
7476
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7482,7 +7486,7 @@ const StubbedNetworkModule = {
|
|
|
7482
7486
|
},
|
|
7483
7487
|
};
|
|
7484
7488
|
|
|
7485
|
-
/*! @azure/msal-common v16.11.
|
|
7489
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7486
7490
|
|
|
7487
7491
|
/*
|
|
7488
7492
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7910,7 +7914,7 @@ function ensureArgumentIsJSONString(argName, argValue, correlationId) {
|
|
|
7910
7914
|
|
|
7911
7915
|
/* eslint-disable header/header */
|
|
7912
7916
|
const name = "@azure/msal-browser";
|
|
7913
|
-
const version = "5.17.
|
|
7917
|
+
const version = "5.17.3";
|
|
7914
7918
|
|
|
7915
7919
|
/*
|
|
7916
7920
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8581,6 +8585,7 @@ const postRequestFailed = "post_request_failed";
|
|
|
8581
8585
|
const getRequestFailed = "get_request_failed";
|
|
8582
8586
|
const failedToParseResponse = "failed_to_parse_response";
|
|
8583
8587
|
const cryptoKeyNotFound = "crypto_key_not_found";
|
|
8588
|
+
const invalidPublicJwk = "invalid_public_jwk";
|
|
8584
8589
|
const authCodeRequired = "auth_code_required";
|
|
8585
8590
|
const authCodeOrNativeAccountIdRequired = "auth_code_or_nativeAccountId_required";
|
|
8586
8591
|
const spaCodeAndNativeAccountIdPresent = "spa_code_and_nativeAccountId_present";
|
|
@@ -8902,6 +8907,12 @@ const AES_GCM = "AES-GCM";
|
|
|
8902
8907
|
const HKDF = "HKDF";
|
|
8903
8908
|
// SHA-256 hashing algorithm
|
|
8904
8909
|
const S256_HASH_ALG = "SHA-256";
|
|
8910
|
+
const JSON_WEB_KEY_TYPE_EC = "EC";
|
|
8911
|
+
const JSON_WEB_KEY_TYPE_RSA = "RSA";
|
|
8912
|
+
const MISSING_JWK_KTY_SUBERROR = "missing_jwk_kty";
|
|
8913
|
+
const UNSUPPORTED_JWK_KTY_SUBERROR = "unsupported_jwk_kty";
|
|
8914
|
+
const MISSING_JWK_MEMBER_SUBERROR = "missing_jwk_member";
|
|
8915
|
+
const EMPTY_JWK_MEMBER_SUBERROR = "empty_jwk_member";
|
|
8905
8916
|
// MOD length for PoP tokens
|
|
8906
8917
|
const MODULUS_LENGTH = 2048;
|
|
8907
8918
|
// Public Exponent
|
|
@@ -8918,12 +8929,15 @@ const DECRYPT = "decrypt";
|
|
|
8918
8929
|
const DERIVE_KEY = "deriveKey";
|
|
8919
8930
|
// Suberror
|
|
8920
8931
|
const SUBTLE_SUBERROR = "crypto_subtle_undefined";
|
|
8921
|
-
const
|
|
8932
|
+
const RSA_KEYGEN_ALGORITHM_OPTIONS = {
|
|
8922
8933
|
name: PKCS1_V15_KEYGEN_ALG,
|
|
8923
8934
|
hash: S256_HASH_ALG,
|
|
8924
8935
|
modulusLength: MODULUS_LENGTH,
|
|
8925
8936
|
publicExponent: PUBLIC_EXPONENT,
|
|
8926
8937
|
};
|
|
8938
|
+
const RSA_SIGN_ALGORITHM_OPTIONS = {
|
|
8939
|
+
name: PKCS1_V15_KEYGEN_ALG,
|
|
8940
|
+
};
|
|
8927
8941
|
/**
|
|
8928
8942
|
* Check whether browser crypto is available.
|
|
8929
8943
|
*/
|
|
@@ -9007,12 +9021,13 @@ function createNewGuid() {
|
|
|
9007
9021
|
return text;
|
|
9008
9022
|
}
|
|
9009
9023
|
/**
|
|
9010
|
-
* Generates a keypair based on
|
|
9024
|
+
* Generates a keypair based on the provided algorithm config.
|
|
9011
9025
|
* @param extractable
|
|
9012
9026
|
* @param usages
|
|
9027
|
+
* @param algorithm
|
|
9013
9028
|
*/
|
|
9014
|
-
async function generateKeyPair(extractable, usages) {
|
|
9015
|
-
return window.crypto.subtle.generateKey(
|
|
9029
|
+
async function generateKeyPair(extractable, usages, algorithm) {
|
|
9030
|
+
return window.crypto.subtle.generateKey(algorithm, extractable, usages);
|
|
9016
9031
|
}
|
|
9017
9032
|
/**
|
|
9018
9033
|
* Export key as Json Web Key (JWK)
|
|
@@ -9026,17 +9041,19 @@ async function exportJwk(key) {
|
|
|
9026
9041
|
* @param key
|
|
9027
9042
|
* @param extractable
|
|
9028
9043
|
* @param usages
|
|
9044
|
+
* @param algorithm
|
|
9029
9045
|
*/
|
|
9030
|
-
async function importJwk(key, extractable, usages) {
|
|
9031
|
-
return window.crypto.subtle.importKey(KEY_FORMAT_JWK, key,
|
|
9046
|
+
async function importJwk(key, extractable, usages, algorithm) {
|
|
9047
|
+
return window.crypto.subtle.importKey(KEY_FORMAT_JWK, key, algorithm, extractable, usages);
|
|
9032
9048
|
}
|
|
9033
9049
|
/**
|
|
9034
|
-
* Signs given data with given key
|
|
9050
|
+
* Signs given data with given key.
|
|
9035
9051
|
* @param key
|
|
9036
9052
|
* @param data
|
|
9053
|
+
* @param algorithm
|
|
9037
9054
|
*/
|
|
9038
|
-
async function sign(key, data) {
|
|
9039
|
-
return window.crypto.subtle.sign(
|
|
9055
|
+
async function sign(key, data, algorithm) {
|
|
9056
|
+
return window.crypto.subtle.sign(algorithm, key, data);
|
|
9040
9057
|
}
|
|
9041
9058
|
/**
|
|
9042
9059
|
* Generates Base64 encoded jwk used in the Encrypted Authorize Response (EAR) flow
|
|
@@ -9179,6 +9196,43 @@ async function hashString(plainText) {
|
|
|
9179
9196
|
const hashBuffer = await sha256Digest(plainText);
|
|
9180
9197
|
const hashBytes = new Uint8Array(hashBuffer);
|
|
9181
9198
|
return urlEncodeArr(hashBytes);
|
|
9199
|
+
}
|
|
9200
|
+
const JWK_THUMBPRINT_REQUIRED_MEMBERS = {
|
|
9201
|
+
[JSON_WEB_KEY_TYPE_EC]: ["crv", "kty", "x", "y"],
|
|
9202
|
+
[JSON_WEB_KEY_TYPE_RSA]: ["e", "kty", "n"],
|
|
9203
|
+
};
|
|
9204
|
+
function getJwkThumbprintMembers(publicJwk) {
|
|
9205
|
+
const kty = publicJwk.kty;
|
|
9206
|
+
if (typeof kty !== "string" || kty.length === 0) {
|
|
9207
|
+
throw createBrowserAuthError(invalidPublicJwk, "", MISSING_JWK_KTY_SUBERROR);
|
|
9208
|
+
}
|
|
9209
|
+
const requiredMembers = JWK_THUMBPRINT_REQUIRED_MEMBERS[kty];
|
|
9210
|
+
if (!requiredMembers) {
|
|
9211
|
+
throw createBrowserAuthError(invalidPublicJwk, "", UNSUPPORTED_JWK_KTY_SUBERROR);
|
|
9212
|
+
}
|
|
9213
|
+
return requiredMembers.reduce((thumbprintMembers, memberName) => {
|
|
9214
|
+
const memberValue = publicJwk[memberName];
|
|
9215
|
+
if (typeof memberValue !== "string") {
|
|
9216
|
+
throw createBrowserAuthError(invalidPublicJwk, "", MISSING_JWK_MEMBER_SUBERROR);
|
|
9217
|
+
}
|
|
9218
|
+
if (memberValue.length === 0) {
|
|
9219
|
+
throw createBrowserAuthError(invalidPublicJwk, "", EMPTY_JWK_MEMBER_SUBERROR);
|
|
9220
|
+
}
|
|
9221
|
+
thumbprintMembers[memberName] = memberValue;
|
|
9222
|
+
return thumbprintMembers;
|
|
9223
|
+
}, {});
|
|
9224
|
+
}
|
|
9225
|
+
/**
|
|
9226
|
+
* Computes an RFC 7638 JWK thumbprint for a public key.
|
|
9227
|
+
* The required members for the JWK key type are serialised in lexicographic order
|
|
9228
|
+
* and the SHA-256 digest is returned as a base64url string.
|
|
9229
|
+
* @internal
|
|
9230
|
+
*/
|
|
9231
|
+
async function computeJwkThumbprint(publicJwk) {
|
|
9232
|
+
const thumbprintMembers = getJwkThumbprintMembers(publicJwk);
|
|
9233
|
+
// RFC 7638 §3.3: use only required members, sorted lexicographically
|
|
9234
|
+
const thumbprintJson = JSON.stringify(thumbprintMembers, Object.keys(thumbprintMembers).sort());
|
|
9235
|
+
return hashString(thumbprintJson);
|
|
9182
9236
|
}
|
|
9183
9237
|
|
|
9184
9238
|
/*
|
|
@@ -14440,20 +14494,14 @@ class CryptoOps {
|
|
|
14440
14494
|
async getPublicKeyThumbprint(request) {
|
|
14441
14495
|
const publicKeyThumbMeasurement = this.performanceClient?.startMeasurement(CryptoOptsGetPublicKeyThumbprint, request.correlationId);
|
|
14442
14496
|
// Generate Keypair
|
|
14443
|
-
const keyPair = await generateKeyPair(CryptoOps.EXTRACTABLE, CryptoOps.POP_KEY_USAGES);
|
|
14497
|
+
const keyPair = await generateKeyPair(CryptoOps.EXTRACTABLE, CryptoOps.POP_KEY_USAGES, RSA_KEYGEN_ALGORITHM_OPTIONS);
|
|
14444
14498
|
// Generate Thumbprint for Public Key
|
|
14445
14499
|
const publicKeyJwk = await exportJwk(keyPair.publicKey);
|
|
14446
|
-
const
|
|
14447
|
-
e: publicKeyJwk.e,
|
|
14448
|
-
kty: publicKeyJwk.kty,
|
|
14449
|
-
n: publicKeyJwk.n,
|
|
14450
|
-
};
|
|
14451
|
-
const publicJwkString = getSortedObjectString(pubKeyThumprintObj);
|
|
14452
|
-
const publicJwkHash = await this.hashString(publicJwkString);
|
|
14500
|
+
const publicJwkHash = await computeJwkThumbprint(publicKeyJwk);
|
|
14453
14501
|
// Generate Thumbprint for Private Key
|
|
14454
14502
|
const privateKeyJwk = await exportJwk(keyPair.privateKey);
|
|
14455
14503
|
// Re-import private key to make it unextractable
|
|
14456
|
-
const unextractablePrivateKey = await importJwk(privateKeyJwk, false, ["sign"]);
|
|
14504
|
+
const unextractablePrivateKey = await importJwk(privateKeyJwk, false, ["sign"], RSA_KEYGEN_ALGORITHM_OPTIONS);
|
|
14457
14505
|
// Store Keypair data in keystore
|
|
14458
14506
|
await this.cache.setItem(publicJwkHash, {
|
|
14459
14507
|
privateKey: unextractablePrivateKey,
|
|
@@ -14538,7 +14586,7 @@ class CryptoOps {
|
|
|
14538
14586
|
// Sign token
|
|
14539
14587
|
const encoder = new TextEncoder();
|
|
14540
14588
|
const tokenBuffer = encoder.encode(tokenString);
|
|
14541
|
-
const signatureBuffer = await sign(cachedKeyPair.privateKey, tokenBuffer);
|
|
14589
|
+
const signatureBuffer = await sign(cachedKeyPair.privateKey, tokenBuffer, RSA_SIGN_ALGORITHM_OPTIONS);
|
|
14542
14590
|
const encodedSignature = urlEncodeArr(new Uint8Array(signatureBuffer));
|
|
14543
14591
|
const signedJwt = `${tokenString}.${encodedSignature}`;
|
|
14544
14592
|
if (signJwtMeasurement) {
|
|
@@ -17177,50 +17225,63 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17177
17225
|
const nativeATMeasurement = this.performanceClient.startMeasurement(NativeInteractionClientAcquireToken, this.correlationId);
|
|
17178
17226
|
const reqTimestamp = nowSeconds();
|
|
17179
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;
|
|
17180
17230
|
try {
|
|
17181
|
-
|
|
17182
|
-
|
|
17183
|
-
|
|
17184
|
-
|
|
17185
|
-
|
|
17186
|
-
|
|
17187
|
-
|
|
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({
|
|
17188
17265
|
isNativeBroker: false,
|
|
17189
|
-
fromCache: true,
|
|
17190
17266
|
});
|
|
17191
|
-
return result;
|
|
17192
|
-
}
|
|
17193
|
-
catch (e) {
|
|
17194
|
-
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
17195
|
-
this.logger.info("0eitbc", this.correlationId);
|
|
17196
|
-
nativeATMeasurement.end({
|
|
17197
|
-
success: false,
|
|
17198
|
-
brokerErrorCode: "cache_request_failed",
|
|
17199
|
-
});
|
|
17200
|
-
throw e;
|
|
17201
|
-
}
|
|
17202
|
-
// continue with a native call for any and all errors
|
|
17203
|
-
this.logger.info("0957j1", this.correlationId);
|
|
17204
|
-
}
|
|
17205
|
-
const validatedResponse = await this.platformAuthProvider.sendMessage(nativeRequest);
|
|
17206
|
-
return await this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp)
|
|
17207
|
-
.then((result) => {
|
|
17208
|
-
nativeATMeasurement.end({
|
|
17209
|
-
success: true,
|
|
17210
|
-
isNativeBroker: true,
|
|
17211
|
-
requestId: result.requestId,
|
|
17212
|
-
});
|
|
17213
|
-
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
17214
|
-
return result;
|
|
17215
|
-
})
|
|
17216
|
-
.catch((error) => {
|
|
17217
17267
|
nativeATMeasurement.end({
|
|
17218
17268
|
success: false,
|
|
17219
|
-
errorCode: error.errorCode,
|
|
17220
|
-
subErrorCode: error.subError,
|
|
17221
17269
|
});
|
|
17222
|
-
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,
|
|
17223
17282
|
});
|
|
17283
|
+
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
17284
|
+
return result;
|
|
17224
17285
|
}
|
|
17225
17286
|
catch (e) {
|
|
17226
17287
|
if (e instanceof NativeAuthError) {
|
|
@@ -17228,10 +17289,29 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17228
17289
|
}
|
|
17229
17290
|
nativeATMeasurement.end({
|
|
17230
17291
|
success: false,
|
|
17231
|
-
});
|
|
17292
|
+
}, e);
|
|
17293
|
+
this.setBrokerErrorTelemetry(e);
|
|
17232
17294
|
throw e;
|
|
17233
17295
|
}
|
|
17234
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
|
+
}
|
|
17235
17315
|
/**
|
|
17236
17316
|
* Creates silent flow request
|
|
17237
17317
|
* @param request
|
|
@@ -17303,11 +17383,21 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17303
17383
|
const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
|
|
17304
17384
|
serverTelemetryManager.setNativeBrokerErrorCode(e.errorCode);
|
|
17305
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);
|
|
17306
17393
|
throw e;
|
|
17307
17394
|
}
|
|
17308
17395
|
}
|
|
17309
17396
|
}
|
|
17310
|
-
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);
|
|
17311
17401
|
const navigationOptions = {
|
|
17312
17402
|
apiId: ApiId.acquireTokenRedirect,
|
|
17313
17403
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
@@ -17337,7 +17427,11 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17337
17427
|
this.performanceClient?.addFields({ errorCode: "no_cached_request" }, this.correlationId);
|
|
17338
17428
|
return null;
|
|
17339
17429
|
}
|
|
17340
|
-
|
|
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;
|
|
17341
17435
|
if (prompt) {
|
|
17342
17436
|
this.logger.verbose("0ac34v", this.correlationId);
|
|
17343
17437
|
}
|
|
@@ -17346,13 +17440,13 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17346
17440
|
try {
|
|
17347
17441
|
this.logger.verbose("003x5a", this.correlationId);
|
|
17348
17442
|
const response = await this.platformAuthProvider.sendMessage(request);
|
|
17349
|
-
const authResult = await this.handleNativeResponse(response, request, reqTimestamp);
|
|
17443
|
+
const authResult = await this.handleNativeResponse(response, request, reqTimestamp, storeInCache);
|
|
17350
17444
|
const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
|
|
17351
17445
|
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
17352
|
-
this.performanceClient?.addFields({ isNativeBroker: true }, this.correlationId);
|
|
17353
17446
|
return authResult;
|
|
17354
17447
|
}
|
|
17355
17448
|
catch (e) {
|
|
17449
|
+
this.setBrokerErrorTelemetry(e);
|
|
17356
17450
|
throw e;
|
|
17357
17451
|
}
|
|
17358
17452
|
}
|
|
@@ -17370,7 +17464,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17370
17464
|
* @param request
|
|
17371
17465
|
* @param reqTimestamp
|
|
17372
17466
|
*/
|
|
17373
|
-
async handleNativeResponse(response, request, reqTimestamp) {
|
|
17467
|
+
async handleNativeResponse(response, request, reqTimestamp, storeInCache) {
|
|
17374
17468
|
this.logger.trace("1bojln", this.correlationId);
|
|
17375
17469
|
// generate identifiers
|
|
17376
17470
|
const idTokenClaims = extractTokenClaims(response.id_token, base64Decode, this.correlationId);
|
|
@@ -17399,8 +17493,8 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17399
17493
|
const result = await this.generateAuthenticationResult(response, request, idTokenClaims, baseAccount, authority.canonicalAuthority, reqTimestamp);
|
|
17400
17494
|
// cache accounts and tokens in the appropriate storage
|
|
17401
17495
|
await this.cacheAccount(baseAccount, isKmsi(idTokenClaims));
|
|
17402
|
-
await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache() // environment
|
|
17403
|
-
);
|
|
17496
|
+
await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache(), // environment
|
|
17497
|
+
storeInCache);
|
|
17404
17498
|
return result;
|
|
17405
17499
|
}
|
|
17406
17500
|
/**
|
|
@@ -17521,7 +17615,9 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17521
17615
|
correlationId: this.correlationId,
|
|
17522
17616
|
state: response.state,
|
|
17523
17617
|
fromPlatformBroker: true,
|
|
17524
|
-
...(request.resource && {
|
|
17618
|
+
...(request.extraParameters?.resource && {
|
|
17619
|
+
resource: request.extraParameters.resource,
|
|
17620
|
+
}),
|
|
17525
17621
|
};
|
|
17526
17622
|
return result;
|
|
17527
17623
|
}
|
|
@@ -17545,7 +17641,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17545
17641
|
* @param tenantId
|
|
17546
17642
|
* @param reqTimestamp
|
|
17547
17643
|
*/
|
|
17548
|
-
async cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, tenantId, reqTimestamp, environment) {
|
|
17644
|
+
async cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, tenantId, reqTimestamp, environment, storeInCache) {
|
|
17549
17645
|
const cachedIdToken = createIdTokenEntity(homeAccountIdentifier, environment, response.id_token || "", request.clientId, idTokenClaims.tid || "");
|
|
17550
17646
|
// cache accessToken in inmemory storage
|
|
17551
17647
|
const expiresIn = request.tokenType === AuthenticationScheme.POP
|
|
@@ -17557,14 +17653,14 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17557
17653
|
const responseScopes = this.generateScopes(response.scope, request.scope);
|
|
17558
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);
|
|
17559
17655
|
// save idtoken credential in configured browser storage
|
|
17560
|
-
if (!!cachedIdToken &&
|
|
17656
|
+
if (!!cachedIdToken && storeInCache?.idToken !== false) {
|
|
17561
17657
|
await this.browserStorage.setIdTokenCredential(cachedIdToken, this.correlationId, isKmsi(idTokenClaims));
|
|
17562
17658
|
}
|
|
17563
17659
|
// save access token credential in memory storage
|
|
17564
17660
|
const nativeCacheRecord = {
|
|
17565
17661
|
accessToken: cachedAccessToken,
|
|
17566
17662
|
};
|
|
17567
|
-
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId,
|
|
17663
|
+
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId, storeInCache);
|
|
17568
17664
|
}
|
|
17569
17665
|
getExpiresInValue(tokenType, expiresIn) {
|
|
17570
17666
|
return tokenType === AuthenticationScheme.POP
|
|
@@ -17636,13 +17732,12 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17636
17732
|
const configClaims = request.skipBrokerClaims && !!request.embeddedClientId
|
|
17637
17733
|
? undefined
|
|
17638
17734
|
: this.config.auth.clientCapabilities;
|
|
17639
|
-
// scopes are expected to be received by the native broker as "scope" and will be added to the request below.
|
|
17640
|
-
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;
|
|
17641
17737
|
const scopeSet = new ScopeSet(scopes || [], this.correlationId);
|
|
17642
17738
|
scopeSet.appendScopes(OIDC_DEFAULT_SCOPES);
|
|
17643
17739
|
const mergedClaims = buildMergedClaims(claims, configClaims?.length ? configClaims : undefined);
|
|
17644
17740
|
const validatedRequest = {
|
|
17645
|
-
...remainingProperties,
|
|
17646
17741
|
claims: mergedClaims,
|
|
17647
17742
|
accountId: this.accountId,
|
|
17648
17743
|
clientId: this.config.auth.clientId,
|
|
@@ -17651,19 +17746,28 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17651
17746
|
redirectUri: getRedirectUri(request.redirectUri, this.config.auth.redirectUri, this.logger, this.correlationId),
|
|
17652
17747
|
prompt: this.getPrompt(request.prompt),
|
|
17653
17748
|
correlationId: this.correlationId,
|
|
17749
|
+
isSts: false,
|
|
17654
17750
|
tokenType: request.authenticationScheme,
|
|
17655
17751
|
windowTitleSubstring: document.title,
|
|
17752
|
+
nonce: request.nonce,
|
|
17753
|
+
state: request.state,
|
|
17754
|
+
loginHint: request.loginHint,
|
|
17656
17755
|
extraParameters: {
|
|
17657
17756
|
...request.extraParameters,
|
|
17757
|
+
...(request.resource && { resource: request.resource }), // resource is set for MCP scenarios
|
|
17658
17758
|
},
|
|
17659
17759
|
extendedExpiryToken: false,
|
|
17660
17760
|
keyId: request.popKid,
|
|
17761
|
+
resourceRequestMethod: request.resourceRequestMethod,
|
|
17762
|
+
resourceRequestUri: request.resourceRequestUri,
|
|
17763
|
+
shrClaims: request.shrClaims,
|
|
17764
|
+
shrNonce: request.shrNonce,
|
|
17661
17765
|
};
|
|
17662
17766
|
// Check for PoP token requests: signPopToken should only be set to true if popKid is not set
|
|
17663
17767
|
if (validatedRequest.signPopToken && !!request.popKid) {
|
|
17664
17768
|
throw createBrowserAuthError(invalidPopTokenRequest, this.correlationId);
|
|
17665
17769
|
}
|
|
17666
|
-
this.handleExtraBrokerParams(validatedRequest);
|
|
17770
|
+
this.handleExtraBrokerParams(validatedRequest, request.embeddedClientId);
|
|
17667
17771
|
validatedRequest.extraParameters =
|
|
17668
17772
|
validatedRequest.extraParameters || {};
|
|
17669
17773
|
validatedRequest.extraParameters.telemetry =
|
|
@@ -17738,19 +17842,19 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17738
17842
|
* @param request {PlatformAuthRequest}
|
|
17739
17843
|
* @private
|
|
17740
17844
|
*/
|
|
17741
|
-
handleExtraBrokerParams(request) {
|
|
17845
|
+
handleExtraBrokerParams(request, embeddedClientId) {
|
|
17742
17846
|
const hasExtraBrokerParams = request.extraParameters &&
|
|
17743
17847
|
request.extraParameters.hasOwnProperty(BROKER_CLIENT_ID) &&
|
|
17744
17848
|
request.extraParameters.hasOwnProperty(BROKER_REDIRECT_URI) &&
|
|
17745
17849
|
request.extraParameters.hasOwnProperty(CLIENT_ID);
|
|
17746
|
-
if (!
|
|
17850
|
+
if (!embeddedClientId && !hasExtraBrokerParams) {
|
|
17747
17851
|
return;
|
|
17748
17852
|
}
|
|
17749
17853
|
let child_client_id = "";
|
|
17750
17854
|
const child_redirect_uri = request.redirectUri;
|
|
17751
|
-
if (
|
|
17855
|
+
if (embeddedClientId) {
|
|
17752
17856
|
request.redirectUri = this.config.auth.redirectUri;
|
|
17753
|
-
child_client_id =
|
|
17857
|
+
child_client_id = embeddedClientId;
|
|
17754
17858
|
}
|
|
17755
17859
|
else if (request.extraParameters) {
|
|
17756
17860
|
request.redirectUri =
|
|
@@ -17758,7 +17862,15 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
17758
17862
|
child_client_id =
|
|
17759
17863
|
request.extraParameters[CLIENT_ID];
|
|
17760
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 || {};
|
|
17761
17872
|
request.extraParameters = {
|
|
17873
|
+
...remainingExtraParameters,
|
|
17762
17874
|
child_client_id,
|
|
17763
17875
|
child_redirect_uri,
|
|
17764
17876
|
};
|
|
@@ -18183,6 +18295,8 @@ class NavigationClient {
|
|
|
18183
18295
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
18184
18296
|
* Licensed under the MIT License.
|
|
18185
18297
|
*/
|
|
18298
|
+
const MAX_FETCH_POST_RETRIES = 1;
|
|
18299
|
+
const RETRY_DELAY_MS = 100;
|
|
18186
18300
|
/**
|
|
18187
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
|
|
18188
18302
|
*/
|
|
@@ -18231,21 +18345,40 @@ class FetchClient {
|
|
|
18231
18345
|
async sendPostRequestAsync(url, options) {
|
|
18232
18346
|
const reqBody = (options && options.body) || "";
|
|
18233
18347
|
const reqHeaders = getFetchHeaders(options);
|
|
18348
|
+
const correlationId = options?.correlationId;
|
|
18349
|
+
const performanceClient = options?.performanceClient;
|
|
18234
18350
|
let response;
|
|
18235
|
-
let
|
|
18236
|
-
let
|
|
18237
|
-
|
|
18238
|
-
|
|
18239
|
-
|
|
18240
|
-
|
|
18241
|
-
|
|
18242
|
-
|
|
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
|
+
}
|
|
18243
18374
|
}
|
|
18244
|
-
|
|
18245
|
-
throw createNetworkError(createBrowserAuthError(window.navigator.onLine
|
|
18375
|
+
if (!response) {
|
|
18376
|
+
throw createNetworkError(createBrowserAuthError(window.navigator.onLine !== false
|
|
18246
18377
|
? postRequestFailed
|
|
18247
|
-
: noNetworkConnectivity, ""), undefined, undefined,
|
|
18378
|
+
: noNetworkConnectivity, correlationId || ""), undefined, undefined, lastError);
|
|
18248
18379
|
}
|
|
18380
|
+
let responseStatus = 0;
|
|
18381
|
+
let responseHeaders = {};
|
|
18249
18382
|
responseHeaders = getHeaderDict(response.headers);
|
|
18250
18383
|
try {
|
|
18251
18384
|
responseStatus = response.status;
|
|
@@ -18256,10 +18389,15 @@ class FetchClient {
|
|
|
18256
18389
|
};
|
|
18257
18390
|
}
|
|
18258
18391
|
catch (e) {
|
|
18259
|
-
throw createNetworkError(createBrowserAuthError(failedToParseResponse, ""), responseStatus, responseHeaders, e);
|
|
18392
|
+
throw createNetworkError(createBrowserAuthError(failedToParseResponse, correlationId || ""), responseStatus, responseHeaders, e);
|
|
18260
18393
|
}
|
|
18261
18394
|
}
|
|
18262
18395
|
}
|
|
18396
|
+
function shouldRetryPostFetchError(error, attempt) {
|
|
18397
|
+
return (attempt <= MAX_FETCH_POST_RETRIES &&
|
|
18398
|
+
window.navigator.onLine !== false &&
|
|
18399
|
+
error.name !== "AbortError");
|
|
18400
|
+
}
|
|
18263
18401
|
/**
|
|
18264
18402
|
* Get Fetch API Headers object from string map
|
|
18265
18403
|
* @param inputHeaders
|
|
@@ -18745,7 +18883,7 @@ class PlatformAuthDOMHandler {
|
|
|
18745
18883
|
}
|
|
18746
18884
|
initializePlatformDOMRequest(request) {
|
|
18747
18885
|
this.logger.trace(`15d6yv ${this.platformAuthType}`, request.correlationId);
|
|
18748
|
-
const { accountId, clientId, authority, scope, redirectUri, correlationId, state,
|
|
18886
|
+
const { accountId, clientId, authority, scope, redirectUri, correlationId, state, extraParameters, ...remainingProperties } = request;
|
|
18749
18887
|
const validExtraParameters = this.getDOMExtraParams(remainingProperties, correlationId);
|
|
18750
18888
|
const platformDOMRequest = {
|
|
18751
18889
|
accountId: accountId,
|
|
@@ -18761,8 +18899,6 @@ class PlatformAuthDOMHandler {
|
|
|
18761
18899
|
redirectUri: redirectUri,
|
|
18762
18900
|
scope: scope,
|
|
18763
18901
|
state: state,
|
|
18764
|
-
storeInCache: storeInCache,
|
|
18765
|
-
embeddedClientId: embeddedClientId,
|
|
18766
18902
|
};
|
|
18767
18903
|
return platformDOMRequest;
|
|
18768
18904
|
}
|
|
@@ -20517,6 +20653,7 @@ class StandardController {
|
|
|
20517
20653
|
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, InteractionType.Redirect);
|
|
20518
20654
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
20519
20655
|
this.logger.trace("12v7is", correlationId);
|
|
20656
|
+
// Cached nativeAccountId routes directly to the broker (no /authorize call)
|
|
20520
20657
|
rootMeasurement.add({
|
|
20521
20658
|
isPlatformBrokerRequest: true,
|
|
20522
20659
|
});
|
|
@@ -20553,6 +20690,7 @@ class StandardController {
|
|
|
20553
20690
|
}
|
|
20554
20691
|
rootMeasurement.end({
|
|
20555
20692
|
success: true,
|
|
20693
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
20556
20694
|
}, undefined, result.account);
|
|
20557
20695
|
// Fire-and-forget SSO capability verification in background
|
|
20558
20696
|
this.verifySsoCapability(cachedRedirectRequest, InteractionType.Redirect);
|
|
@@ -20562,8 +20700,8 @@ class StandardController {
|
|
|
20562
20700
|
* Instrument an event only if an error code is set. Otherwise, discard it when the redirect response
|
|
20563
20701
|
* is empty and the error code is missing.
|
|
20564
20702
|
*/
|
|
20565
|
-
if (rootMeasurement.event.errorCode) {
|
|
20566
|
-
rootMeasurement.end({ success: false }
|
|
20703
|
+
if (!!rootMeasurement.event.errorCode) {
|
|
20704
|
+
rootMeasurement.end({ success: false });
|
|
20567
20705
|
}
|
|
20568
20706
|
else {
|
|
20569
20707
|
rootMeasurement.discard();
|
|
@@ -20622,10 +20760,6 @@ class StandardController {
|
|
|
20622
20760
|
this.canUsePlatformBroker(request)) {
|
|
20623
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);
|
|
20624
20762
|
result = invokeAsync(nativeClient.acquireTokenRedirect.bind(nativeClient), NativeInteractionClientAcquireTokenRedirect, this.logger, this.performanceClient, correlationId)(request, atrMeasurement).catch((e) => {
|
|
20625
|
-
atrMeasurement.add({
|
|
20626
|
-
brokerErrorName: e.name,
|
|
20627
|
-
brokerErrorCode: e.errorCode,
|
|
20628
|
-
});
|
|
20629
20763
|
if (e instanceof NativeAuthError &&
|
|
20630
20764
|
isFatalNativeAuthError(e)) {
|
|
20631
20765
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
@@ -20694,6 +20828,7 @@ class StandardController {
|
|
|
20694
20828
|
let result;
|
|
20695
20829
|
const pkce = this.getPreGeneratedPkceCodes(correlationId);
|
|
20696
20830
|
if (this.canUsePlatformBroker(request)) {
|
|
20831
|
+
// Cached nativeAccountId routes directly to the broker (no /authorize call)
|
|
20697
20832
|
atPopupMeasurement.add({
|
|
20698
20833
|
isPlatformBrokerRequest: true,
|
|
20699
20834
|
});
|
|
@@ -20704,15 +20839,11 @@ class StandardController {
|
|
|
20704
20839
|
.then((response) => {
|
|
20705
20840
|
atPopupMeasurement.end({
|
|
20706
20841
|
success: true,
|
|
20707
|
-
isNativeBroker:
|
|
20842
|
+
isNativeBroker: response.fromPlatformBroker ?? false,
|
|
20708
20843
|
}, undefined, response.account);
|
|
20709
20844
|
return response;
|
|
20710
20845
|
})
|
|
20711
20846
|
.catch((e) => {
|
|
20712
|
-
atPopupMeasurement.add({
|
|
20713
|
-
brokerErrorName: e.name,
|
|
20714
|
-
brokerErrorCode: e.errorCode,
|
|
20715
|
-
});
|
|
20716
20847
|
if (e instanceof NativeAuthError &&
|
|
20717
20848
|
isFatalNativeAuthError(e)) {
|
|
20718
20849
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
@@ -20743,6 +20874,7 @@ class StandardController {
|
|
|
20743
20874
|
}
|
|
20744
20875
|
atPopupMeasurement.end({
|
|
20745
20876
|
success: true,
|
|
20877
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
20746
20878
|
accessTokenSize: result.accessToken.length,
|
|
20747
20879
|
idTokenSize: result.idToken.length,
|
|
20748
20880
|
}, undefined, result.account);
|
|
@@ -20936,14 +21068,11 @@ class StandardController {
|
|
|
20936
21068
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Silent, validRequest);
|
|
20937
21069
|
let result;
|
|
20938
21070
|
if (this.canUsePlatformBroker(validRequest)) {
|
|
21071
|
+
// Cached nativeAccountId routes directly to the broker (no /authorize call)
|
|
20939
21072
|
this.ssoSilentMeasurement?.add({
|
|
20940
21073
|
isPlatformBrokerRequest: true,
|
|
20941
21074
|
});
|
|
20942
21075
|
result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch((e) => {
|
|
20943
|
-
this.ssoSilentMeasurement?.add({
|
|
20944
|
-
brokerErrorName: e.name,
|
|
20945
|
-
brokerErrorCode: e.errorCode,
|
|
20946
|
-
});
|
|
20947
21076
|
// If native token acquisition fails for availability reasons fallback to standard flow
|
|
20948
21077
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
20949
21078
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
@@ -20966,7 +21095,7 @@ class StandardController {
|
|
|
20966
21095
|
}
|
|
20967
21096
|
this.ssoSilentMeasurement?.end({
|
|
20968
21097
|
success: true,
|
|
20969
|
-
isNativeBroker: response.fromPlatformBroker,
|
|
21098
|
+
isNativeBroker: response.fromPlatformBroker ?? false,
|
|
20970
21099
|
accessTokenSize: response.accessToken.length,
|
|
20971
21100
|
idTokenSize: response.idToken.length,
|
|
20972
21101
|
}, undefined, response.account);
|
|
@@ -21019,6 +21148,7 @@ class StandardController {
|
|
|
21019
21148
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
21020
21149
|
atbcMeasurement.end({
|
|
21021
21150
|
success: true,
|
|
21151
|
+
isNativeBroker: false,
|
|
21022
21152
|
accessTokenSize: result.accessToken.length,
|
|
21023
21153
|
idTokenSize: result.idToken.length,
|
|
21024
21154
|
}, undefined, result.account);
|
|
@@ -21049,10 +21179,6 @@ class StandardController {
|
|
|
21049
21179
|
...request,
|
|
21050
21180
|
correlationId,
|
|
21051
21181
|
}, ApiId.acquireTokenByCode, request.nativeAccountId).catch((e) => {
|
|
21052
|
-
atbcMeasurement.add({
|
|
21053
|
-
brokerErrorName: e.name,
|
|
21054
|
-
brokerErrorCode: e.errorCode,
|
|
21055
|
-
});
|
|
21056
21182
|
// If native token acquisition fails for availability reasons fallback to standard flow
|
|
21057
21183
|
if (e instanceof NativeAuthError &&
|
|
21058
21184
|
isFatalNativeAuthError(e)) {
|
|
@@ -21062,6 +21188,7 @@ class StandardController {
|
|
|
21062
21188
|
});
|
|
21063
21189
|
atbcMeasurement.end({
|
|
21064
21190
|
success: true,
|
|
21191
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
21065
21192
|
}, undefined, result.account);
|
|
21066
21193
|
return result;
|
|
21067
21194
|
}
|
|
@@ -21102,6 +21229,7 @@ class StandardController {
|
|
|
21102
21229
|
.then((response) => {
|
|
21103
21230
|
this.acquireTokenByCodeAsyncMeasurement?.end({
|
|
21104
21231
|
success: true,
|
|
21232
|
+
isNativeBroker: false,
|
|
21105
21233
|
fromCache: response.fromCache,
|
|
21106
21234
|
});
|
|
21107
21235
|
return response;
|
|
@@ -21279,8 +21407,16 @@ class StandardController {
|
|
|
21279
21407
|
/**
|
|
21280
21408
|
* Acquire a token from native device (e.g. WAM)
|
|
21281
21409
|
* @param request
|
|
21410
|
+
* @param apiId
|
|
21411
|
+
* @param accountId
|
|
21412
|
+
* @param cacheLookupPolicy
|
|
21282
21413
|
*/
|
|
21283
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
|
+
*/
|
|
21284
21420
|
const correlationId = this.getRequestCorrelationId(request);
|
|
21285
21421
|
this.logger.trace("0b9y3p", correlationId);
|
|
21286
21422
|
if (!this.platformAuthProvider) {
|
|
@@ -21534,6 +21670,7 @@ class StandardController {
|
|
|
21534
21670
|
.then((result) => {
|
|
21535
21671
|
atsMeasurement.end({
|
|
21536
21672
|
success: true,
|
|
21673
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
21537
21674
|
fromCache: result.fromCache,
|
|
21538
21675
|
accessTokenSize: result.accessToken.length,
|
|
21539
21676
|
idTokenSize: result.idToken.length,
|
|
@@ -21670,7 +21807,7 @@ class StandardController {
|
|
|
21670
21807
|
if (request.correlationId) {
|
|
21671
21808
|
this.performanceClient.addFields({
|
|
21672
21809
|
fromCache: response.fromCache,
|
|
21673
|
-
isNativeBroker: response.fromPlatformBroker,
|
|
21810
|
+
isNativeBroker: response.fromPlatformBroker ?? false,
|
|
21674
21811
|
}, request.correlationId);
|
|
21675
21812
|
}
|
|
21676
21813
|
return response;
|
|
@@ -21696,10 +21833,6 @@ class StandardController {
|
|
|
21696
21833
|
this.logger.verbose("0sczo4", silentRequest.correlationId);
|
|
21697
21834
|
this.performanceClient.addFields({ isPlatformBrokerRequest: true }, silentRequest.correlationId);
|
|
21698
21835
|
return this.acquireTokenNative(silentRequest, ApiId.acquireTokenSilent_silentFlow, silentRequest.account.nativeAccountId, cacheLookupPolicy).catch(async (e) => {
|
|
21699
|
-
this.performanceClient.addFields({
|
|
21700
|
-
brokerErrorName: e.name,
|
|
21701
|
-
brokerErrorCode: e.errorCode,
|
|
21702
|
-
}, silentRequest.correlationId);
|
|
21703
21836
|
// If native token acquisition fails for availability reasons fallback to web flow
|
|
21704
21837
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
21705
21838
|
this.logger.verbose("07rkmb", silentRequest.correlationId);
|