@azure/msal-browser 5.17.1 → 5.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +2 -4
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +23 -26
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom_auth/index.mjs +1 -1
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +123 -59
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/log-strings-mapping.json +1201 -1201
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +39 -13
- package/dist/network/FetchClient.mjs.map +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/popup_relay/constants.mjs +1 -1
- package/dist/popup_relay/index.mjs +1 -1
- package/dist/popup_relay/relayClient.mjs +1 -1
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +2 -2
- package/lib/custom-auth-path/msal-custom-auth.cjs +250 -165
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +250 -165
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +2 -2
- package/lib/msal-browser.cjs +253 -167
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +253 -167
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
- package/lib/popup-relay/msal-popup-relay.js +2 -2
- package/lib/popup-relay/msal-popup-relay.js.map +1 -1
- package/lib/popup-relay/msal-popup-relay.min.js +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
- package/package.json +2 -2
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +0 -4
- package/src/broker/nativeBroker/PlatformAuthRequest.ts +4 -7
- package/src/controllers/StandardController.ts +24 -29
- package/src/interaction_client/PlatformAuthInteractionClient.ts +160 -72
- package/src/network/FetchClient.ts +62 -14
- package/src/packageMetadata.ts +1 -1
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +3 -6
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts +3 -0
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts +13 -3
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/network/FetchClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
package/lib/msal-browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.17.
|
|
1
|
+
/*! @azure/msal-browser v5.17.3 2026-07-29 */
|
|
2
2
|
'use strict';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
|
|
7
7
|
})(this, (function (exports) { 'use strict';
|
|
8
8
|
|
|
9
|
-
/*! @azure/msal-common v16.11.
|
|
9
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
10
10
|
/*
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
12
|
* Licensed under the MIT License.
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
const RESOURCE = "resource";
|
|
59
59
|
const CLI_DATA = "clidata";
|
|
60
60
|
|
|
61
|
-
/*! @azure/msal-common v16.11.
|
|
61
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
62
62
|
/*
|
|
63
63
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
64
64
|
* Licensed under the MIT License.
|
|
@@ -294,7 +294,7 @@
|
|
|
294
294
|
// Token renewal offset default in seconds
|
|
295
295
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
296
296
|
|
|
297
|
-
/*! @azure/msal-common v16.11.
|
|
297
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
298
298
|
/*
|
|
299
299
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
300
300
|
* Licensed under the MIT License.
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
/*! @azure/msal-common v16.11.
|
|
326
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
327
327
|
|
|
328
328
|
/*
|
|
329
329
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
return new ClientAuthError(errorCode, correlationId, additionalMessage);
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
/*! @azure/msal-common v16.11.
|
|
349
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
350
350
|
/*
|
|
351
351
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
352
352
|
* Licensed under the MIT License.
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
userCanceled: userCanceled
|
|
431
431
|
});
|
|
432
432
|
|
|
433
|
-
/*! @azure/msal-common v16.11.
|
|
433
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
434
434
|
|
|
435
435
|
/*
|
|
436
436
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
-
/*! @azure/msal-common v16.11.
|
|
471
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
472
472
|
|
|
473
473
|
/*
|
|
474
474
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
return matches[2];
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
/*! @azure/msal-common v16.11.
|
|
537
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
538
538
|
|
|
539
539
|
/*
|
|
540
540
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
return updatedAccountInfo;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
|
-
/*! @azure/msal-common v16.11.
|
|
625
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
626
626
|
/*
|
|
627
627
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
628
628
|
* Licensed under the MIT License.
|
|
@@ -637,7 +637,7 @@
|
|
|
637
637
|
Ciam: 3,
|
|
638
638
|
};
|
|
639
639
|
|
|
640
|
-
/*! @azure/msal-common v16.11.
|
|
640
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
641
641
|
/*
|
|
642
642
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
643
643
|
* Licensed under the MIT License.
|
|
@@ -659,7 +659,7 @@
|
|
|
659
659
|
return null;
|
|
660
660
|
}
|
|
661
661
|
|
|
662
|
-
/*! @azure/msal-common v16.11.
|
|
662
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
663
663
|
/*
|
|
664
664
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
665
665
|
* Licensed under the MIT License.
|
|
@@ -683,7 +683,7 @@
|
|
|
683
683
|
EAR: "EAR",
|
|
684
684
|
};
|
|
685
685
|
|
|
686
|
-
/*! @azure/msal-common v16.11.
|
|
686
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
687
687
|
/**
|
|
688
688
|
* Returns the AccountInfo interface for this account.
|
|
689
689
|
* @internal
|
|
@@ -872,7 +872,7 @@
|
|
|
872
872
|
entity.hasOwnProperty("authorityType"));
|
|
873
873
|
}
|
|
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.
|
|
@@ -889,7 +889,7 @@
|
|
|
889
889
|
unexpectedError: unexpectedError
|
|
890
890
|
});
|
|
891
891
|
|
|
892
|
-
/*! @azure/msal-common v16.11.
|
|
892
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
893
893
|
|
|
894
894
|
/*
|
|
895
895
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -909,7 +909,7 @@
|
|
|
909
909
|
return new ClientConfigurationError(errorCode, correlationId);
|
|
910
910
|
}
|
|
911
911
|
|
|
912
|
-
/*! @azure/msal-common v16.11.
|
|
912
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
913
913
|
/*
|
|
914
914
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
915
915
|
* Licensed under the MIT License.
|
|
@@ -973,7 +973,7 @@
|
|
|
973
973
|
urlParseError: urlParseError
|
|
974
974
|
});
|
|
975
975
|
|
|
976
|
-
/*! @azure/msal-common v16.11.
|
|
976
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
977
977
|
|
|
978
978
|
/*
|
|
979
979
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1031,7 +1031,7 @@
|
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
1033
|
|
|
1034
|
-
/*! @azure/msal-common v16.11.
|
|
1034
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1035
1035
|
/*
|
|
1036
1036
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1037
1037
|
* Licensed under the MIT License.
|
|
@@ -1043,7 +1043,7 @@
|
|
|
1043
1043
|
response.hasOwnProperty("jwks_uri"));
|
|
1044
1044
|
}
|
|
1045
1045
|
|
|
1046
|
-
/*! @azure/msal-common v16.11.
|
|
1046
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1047
1047
|
/*
|
|
1048
1048
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1049
1049
|
* Licensed under the MIT License.
|
|
@@ -1123,7 +1123,7 @@
|
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
1125
|
|
|
1126
|
-
/*! @azure/msal-common v16.11.
|
|
1126
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1127
1127
|
|
|
1128
1128
|
/*
|
|
1129
1129
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1281,7 +1281,7 @@
|
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
|
-
/*! @azure/msal-common v16.11.
|
|
1284
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1285
1285
|
|
|
1286
1286
|
/*
|
|
1287
1287
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1447,7 +1447,7 @@
|
|
|
1447
1447
|
return null;
|
|
1448
1448
|
}
|
|
1449
1449
|
|
|
1450
|
-
/*! @azure/msal-common v16.11.
|
|
1450
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1451
1451
|
/*
|
|
1452
1452
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1453
1453
|
* Licensed under the MIT License.
|
|
@@ -1467,7 +1467,7 @@
|
|
|
1467
1467
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1468
1468
|
};
|
|
1469
1469
|
|
|
1470
|
-
/*! @azure/msal-common v16.11.
|
|
1470
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1471
1471
|
/*
|
|
1472
1472
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1473
1473
|
* Licensed under the MIT License.
|
|
@@ -1477,7 +1477,7 @@
|
|
|
1477
1477
|
response.hasOwnProperty("metadata"));
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
|
-
/*! @azure/msal-common v16.11.
|
|
1480
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1481
1481
|
/*
|
|
1482
1482
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1483
1483
|
* Licensed under the MIT License.
|
|
@@ -1487,7 +1487,7 @@
|
|
|
1487
1487
|
response.hasOwnProperty("error_description"));
|
|
1488
1488
|
}
|
|
1489
1489
|
|
|
1490
|
-
/*! @azure/msal-common v16.11.
|
|
1490
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1491
1491
|
/*
|
|
1492
1492
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1493
1493
|
* Licensed under the MIT License.
|
|
@@ -1558,7 +1558,7 @@
|
|
|
1558
1558
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
1559
1559
|
const SetUserData = "setUserData";
|
|
1560
1560
|
|
|
1561
|
-
/*! @azure/msal-common v16.11.
|
|
1561
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1562
1562
|
/*
|
|
1563
1563
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1564
1564
|
* Licensed under the MIT License.
|
|
@@ -1651,7 +1651,7 @@
|
|
|
1651
1651
|
};
|
|
1652
1652
|
};
|
|
1653
1653
|
|
|
1654
|
-
/*! @azure/msal-common v16.11.
|
|
1654
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1655
1655
|
|
|
1656
1656
|
/*
|
|
1657
1657
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1762,7 +1762,7 @@
|
|
|
1762
1762
|
},
|
|
1763
1763
|
};
|
|
1764
1764
|
|
|
1765
|
-
/*! @azure/msal-common v16.11.
|
|
1765
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1766
1766
|
/*
|
|
1767
1767
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1768
1768
|
* Licensed under the MIT License.
|
|
@@ -1827,7 +1827,7 @@
|
|
|
1827
1827
|
return cachedAtSec > nowSeconds();
|
|
1828
1828
|
}
|
|
1829
1829
|
|
|
1830
|
-
/*! @azure/msal-common v16.11.
|
|
1830
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
1831
1831
|
|
|
1832
1832
|
/*
|
|
1833
1833
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2094,7 +2094,7 @@
|
|
|
2094
2094
|
return metadata.expiresAt <= nowSeconds();
|
|
2095
2095
|
}
|
|
2096
2096
|
|
|
2097
|
-
/*! @azure/msal-common v16.11.
|
|
2097
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
2098
2098
|
|
|
2099
2099
|
/*
|
|
2100
2100
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3064,7 +3064,7 @@
|
|
|
3064
3064
|
};
|
|
3065
3065
|
}
|
|
3066
3066
|
|
|
3067
|
-
/*! @azure/msal-common v16.11.
|
|
3067
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3068
3068
|
|
|
3069
3069
|
/*
|
|
3070
3070
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3098,7 +3098,7 @@
|
|
|
3098
3098
|
}
|
|
3099
3099
|
}
|
|
3100
3100
|
|
|
3101
|
-
/*! @azure/msal-common v16.11.
|
|
3101
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3102
3102
|
|
|
3103
3103
|
/*
|
|
3104
3104
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3294,7 +3294,7 @@
|
|
|
3294
3294
|
}
|
|
3295
3295
|
}
|
|
3296
3296
|
|
|
3297
|
-
/*! @azure/msal-common v16.11.
|
|
3297
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3298
3298
|
|
|
3299
3299
|
/*
|
|
3300
3300
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3709,7 +3709,7 @@
|
|
|
3709
3709
|
}
|
|
3710
3710
|
}
|
|
3711
3711
|
|
|
3712
|
-
/*! @azure/msal-common v16.11.
|
|
3712
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3713
3713
|
|
|
3714
3714
|
/*
|
|
3715
3715
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3831,7 +3831,7 @@
|
|
|
3831
3831
|
}
|
|
3832
3832
|
}
|
|
3833
3833
|
|
|
3834
|
-
/*! @azure/msal-common v16.11.
|
|
3834
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3835
3835
|
|
|
3836
3836
|
/*
|
|
3837
3837
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3874,7 +3874,7 @@
|
|
|
3874
3874
|
},
|
|
3875
3875
|
};
|
|
3876
3876
|
|
|
3877
|
-
/*! @azure/msal-common v16.11.
|
|
3877
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
3878
3878
|
/*
|
|
3879
3879
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3880
3880
|
* Licensed under the MIT License.
|
|
@@ -4163,12 +4163,12 @@
|
|
|
4163
4163
|
}
|
|
4164
4164
|
}
|
|
4165
4165
|
|
|
4166
|
-
/*! @azure/msal-common v16.11.
|
|
4166
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
4167
4167
|
/* eslint-disable header/header */
|
|
4168
4168
|
const name$1 = "@azure/msal-common";
|
|
4169
|
-
const version$1 = "16.11.
|
|
4169
|
+
const version$1 = "16.11.3";
|
|
4170
4170
|
|
|
4171
|
-
/*! @azure/msal-common v16.11.
|
|
4171
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
4172
4172
|
/*
|
|
4173
4173
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4174
4174
|
* Licensed under the MIT License.
|
|
@@ -4176,7 +4176,7 @@
|
|
|
4176
4176
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
4177
4177
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
4178
4178
|
|
|
4179
|
-
/*! @azure/msal-common v16.11.
|
|
4179
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
4180
4180
|
|
|
4181
4181
|
/*
|
|
4182
4182
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4214,7 +4214,7 @@
|
|
|
4214
4214
|
}
|
|
4215
4215
|
}
|
|
4216
4216
|
|
|
4217
|
-
/*! @azure/msal-common v16.11.
|
|
4217
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
4218
4218
|
|
|
4219
4219
|
/*
|
|
4220
4220
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5362,7 +5362,7 @@
|
|
|
5362
5362
|
}
|
|
5363
5363
|
}
|
|
5364
5364
|
|
|
5365
|
-
/*! @azure/msal-common v16.11.
|
|
5365
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5366
5366
|
/*
|
|
5367
5367
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5368
5368
|
* Licensed under the MIT License.
|
|
@@ -5424,9 +5424,10 @@
|
|
|
5424
5424
|
"networkRtt",
|
|
5425
5425
|
"redirectBridgeTimeoutMs",
|
|
5426
5426
|
"redirectBridgeMessageVersion",
|
|
5427
|
+
"fetchRetryCount",
|
|
5427
5428
|
]);
|
|
5428
5429
|
|
|
5429
|
-
/*! @azure/msal-common v16.11.
|
|
5430
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5430
5431
|
|
|
5431
5432
|
/*
|
|
5432
5433
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5484,7 +5485,7 @@
|
|
|
5484
5485
|
}
|
|
5485
5486
|
}
|
|
5486
5487
|
|
|
5487
|
-
/*! @azure/msal-common v16.11.
|
|
5488
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5488
5489
|
|
|
5489
5490
|
/*
|
|
5490
5491
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5580,7 +5581,7 @@
|
|
|
5580
5581
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
5581
5582
|
}
|
|
5582
5583
|
|
|
5583
|
-
/*! @azure/msal-common v16.11.
|
|
5584
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5584
5585
|
/*
|
|
5585
5586
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5586
5587
|
* Licensed under the MIT License.
|
|
@@ -5607,7 +5608,7 @@
|
|
|
5607
5608
|
}
|
|
5608
5609
|
}
|
|
5609
5610
|
|
|
5610
|
-
/*! @azure/msal-common v16.11.
|
|
5611
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5611
5612
|
|
|
5612
5613
|
/*
|
|
5613
5614
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5687,7 +5688,7 @@
|
|
|
5687
5688
|
}
|
|
5688
5689
|
}
|
|
5689
5690
|
|
|
5690
|
-
/*! @azure/msal-common v16.11.
|
|
5691
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5691
5692
|
/*
|
|
5692
5693
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5693
5694
|
* Licensed under the MIT License.
|
|
@@ -5751,7 +5752,7 @@
|
|
|
5751
5752
|
uiNotAllowed: uiNotAllowed
|
|
5752
5753
|
});
|
|
5753
5754
|
|
|
5754
|
-
/*! @azure/msal-common v16.11.
|
|
5755
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5755
5756
|
|
|
5756
5757
|
/*
|
|
5757
5758
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5818,7 +5819,7 @@
|
|
|
5818
5819
|
return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
|
|
5819
5820
|
}
|
|
5820
5821
|
|
|
5821
|
-
/*! @azure/msal-common v16.11.
|
|
5822
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5822
5823
|
|
|
5823
5824
|
/*
|
|
5824
5825
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5837,7 +5838,7 @@
|
|
|
5837
5838
|
}
|
|
5838
5839
|
}
|
|
5839
5840
|
|
|
5840
|
-
/*! @azure/msal-common v16.11.
|
|
5841
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5841
5842
|
|
|
5842
5843
|
/*
|
|
5843
5844
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5908,7 +5909,7 @@
|
|
|
5908
5909
|
}
|
|
5909
5910
|
}
|
|
5910
5911
|
|
|
5911
|
-
/*! @azure/msal-common v16.11.
|
|
5912
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
5912
5913
|
|
|
5913
5914
|
/*
|
|
5914
5915
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6259,7 +6260,7 @@
|
|
|
6259
6260
|
return baseAccount;
|
|
6260
6261
|
}
|
|
6261
6262
|
|
|
6262
|
-
/*! @azure/msal-common v16.11.
|
|
6263
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6263
6264
|
/*
|
|
6264
6265
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6265
6266
|
* Licensed under the MIT License.
|
|
@@ -6269,7 +6270,7 @@
|
|
|
6269
6270
|
UPN: "UPN",
|
|
6270
6271
|
};
|
|
6271
6272
|
|
|
6272
|
-
/*! @azure/msal-common v16.11.
|
|
6273
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6273
6274
|
/*
|
|
6274
6275
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6275
6276
|
* Licensed under the MIT License.
|
|
@@ -6288,7 +6289,7 @@
|
|
|
6288
6289
|
}
|
|
6289
6290
|
}
|
|
6290
6291
|
|
|
6291
|
-
/*! @azure/msal-common v16.11.
|
|
6292
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6292
6293
|
/*
|
|
6293
6294
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6294
6295
|
* Licensed under the MIT License.
|
|
@@ -6310,7 +6311,7 @@
|
|
|
6310
6311
|
};
|
|
6311
6312
|
}
|
|
6312
6313
|
|
|
6313
|
-
/*! @azure/msal-common v16.11.
|
|
6314
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6314
6315
|
|
|
6315
6316
|
/*
|
|
6316
6317
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6396,7 +6397,7 @@
|
|
|
6396
6397
|
}
|
|
6397
6398
|
}
|
|
6398
6399
|
|
|
6399
|
-
/*! @azure/msal-common v16.11.
|
|
6400
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6400
6401
|
|
|
6401
6402
|
/*
|
|
6402
6403
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6427,7 +6428,7 @@
|
|
|
6427
6428
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6428
6429
|
}
|
|
6429
6430
|
|
|
6430
|
-
/*! @azure/msal-common v16.11.
|
|
6431
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6431
6432
|
|
|
6432
6433
|
/*
|
|
6433
6434
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6507,7 +6508,7 @@
|
|
|
6507
6508
|
ThrottlingUtils.preProcess(cacheManager, thumbprint, correlationId);
|
|
6508
6509
|
let response;
|
|
6509
6510
|
try {
|
|
6510
|
-
response = await invokeAsync((networkClient.sendPostRequestAsync.bind(networkClient)), NetworkClientSendPostRequestAsync, logger, performanceClient, correlationId)(tokenEndpoint, options);
|
|
6511
|
+
response = await invokeAsync((networkClient.sendPostRequestAsync.bind(networkClient)), NetworkClientSendPostRequestAsync, logger, performanceClient, correlationId)(tokenEndpoint, { ...options, correlationId, performanceClient });
|
|
6511
6512
|
const responseHeaders = response.headers || {};
|
|
6512
6513
|
performanceClient?.addFields({
|
|
6513
6514
|
refreshTokenSize: response.body.refresh_token?.length || 0,
|
|
@@ -6543,7 +6544,7 @@
|
|
|
6543
6544
|
return response;
|
|
6544
6545
|
}
|
|
6545
6546
|
|
|
6546
|
-
/*! @azure/msal-common v16.11.
|
|
6547
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6547
6548
|
|
|
6548
6549
|
/*
|
|
6549
6550
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6800,7 +6801,7 @@
|
|
|
6800
6801
|
}
|
|
6801
6802
|
}
|
|
6802
6803
|
|
|
6803
|
-
/*! @azure/msal-common v16.11.
|
|
6804
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
6804
6805
|
|
|
6805
6806
|
/*
|
|
6806
6807
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7027,7 +7028,7 @@
|
|
|
7027
7028
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7028
7029
|
}
|
|
7029
7030
|
|
|
7030
|
-
/*! @azure/msal-common v16.11.
|
|
7031
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7031
7032
|
|
|
7032
7033
|
/*
|
|
7033
7034
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7048,7 +7049,7 @@
|
|
|
7048
7049
|
return new JoseHeaderError(code, correlationId);
|
|
7049
7050
|
}
|
|
7050
7051
|
|
|
7051
|
-
/*! @azure/msal-common v16.11.
|
|
7052
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7052
7053
|
/*
|
|
7053
7054
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7054
7055
|
* Licensed under the MIT License.
|
|
@@ -7056,7 +7057,7 @@
|
|
|
7056
7057
|
const missingKidError = "missing_kid_error";
|
|
7057
7058
|
const missingAlgError = "missing_alg_error";
|
|
7058
7059
|
|
|
7059
|
-
/*! @azure/msal-common v16.11.
|
|
7060
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7060
7061
|
|
|
7061
7062
|
/*
|
|
7062
7063
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7096,7 +7097,7 @@
|
|
|
7096
7097
|
}
|
|
7097
7098
|
}
|
|
7098
7099
|
|
|
7099
|
-
/*! @azure/msal-common v16.11.
|
|
7100
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7100
7101
|
|
|
7101
7102
|
/*
|
|
7102
7103
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7645,7 +7646,7 @@
|
|
|
7645
7646
|
}
|
|
7646
7647
|
}
|
|
7647
7648
|
|
|
7648
|
-
/*! @azure/msal-common v16.11.
|
|
7649
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7649
7650
|
|
|
7650
7651
|
/*
|
|
7651
7652
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7866,7 +7867,7 @@
|
|
|
7866
7867
|
}
|
|
7867
7868
|
}
|
|
7868
7869
|
|
|
7869
|
-
/*! @azure/msal-common v16.11.
|
|
7870
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
7870
7871
|
|
|
7871
7872
|
/*
|
|
7872
7873
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8159,7 +8160,7 @@
|
|
|
8159
8160
|
clearNativeBrokerErrorCode() { }
|
|
8160
8161
|
}
|
|
8161
8162
|
|
|
8162
|
-
/*! @azure/msal-common v16.11.
|
|
8163
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
8163
8164
|
|
|
8164
8165
|
/*
|
|
8165
8166
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8267,7 +8268,7 @@
|
|
|
8267
8268
|
}
|
|
8268
8269
|
}
|
|
8269
8270
|
|
|
8270
|
-
/*! @azure/msal-common v16.11.
|
|
8271
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
8271
8272
|
|
|
8272
8273
|
/*
|
|
8273
8274
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8283,7 +8284,7 @@
|
|
|
8283
8284
|
},
|
|
8284
8285
|
};
|
|
8285
8286
|
|
|
8286
|
-
/*! @azure/msal-common v16.11.
|
|
8287
|
+
/*! @azure/msal-common v16.11.3 2026-07-29 */
|
|
8287
8288
|
|
|
8288
8289
|
/*
|
|
8289
8290
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10786,7 +10787,7 @@
|
|
|
10786
10787
|
|
|
10787
10788
|
/* eslint-disable header/header */
|
|
10788
10789
|
const name = "@azure/msal-browser";
|
|
10789
|
-
const version = "5.17.
|
|
10790
|
+
const version = "5.17.3";
|
|
10790
10791
|
|
|
10791
10792
|
/*
|
|
10792
10793
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -13252,50 +13253,63 @@
|
|
|
13252
13253
|
const nativeATMeasurement = this.performanceClient.startMeasurement(NativeInteractionClientAcquireToken, this.correlationId);
|
|
13253
13254
|
const reqTimestamp = nowSeconds();
|
|
13254
13255
|
const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
|
|
13256
|
+
// initialize native request (statically builds the request; does not contact the broker)
|
|
13257
|
+
let nativeRequest;
|
|
13255
13258
|
try {
|
|
13256
|
-
|
|
13257
|
-
|
|
13258
|
-
|
|
13259
|
-
|
|
13260
|
-
|
|
13261
|
-
|
|
13262
|
-
|
|
13259
|
+
nativeRequest = await this.initializePlatformRequest(request);
|
|
13260
|
+
}
|
|
13261
|
+
catch (e) {
|
|
13262
|
+
/*
|
|
13263
|
+
* Request initialization (e.g. PoP token generation or authority
|
|
13264
|
+
* resolution) failed before the broker was contacted, so end the
|
|
13265
|
+
* measurement here to avoid an orphaned sub-measurement.
|
|
13266
|
+
* Broker was never engaged, so this was not a native broker outcome.
|
|
13267
|
+
*/
|
|
13268
|
+
nativeATMeasurement.add({
|
|
13269
|
+
isNativeBroker: false,
|
|
13270
|
+
});
|
|
13271
|
+
nativeATMeasurement.end({
|
|
13272
|
+
success: false,
|
|
13273
|
+
}, e);
|
|
13274
|
+
throw e;
|
|
13275
|
+
}
|
|
13276
|
+
// check if the tokens can be retrieved from internal cache
|
|
13277
|
+
try {
|
|
13278
|
+
const result = await this.acquireTokensFromCache(this.accountId, nativeRequest);
|
|
13279
|
+
// Served from the native internal cache; token did not come directly from the broker
|
|
13280
|
+
nativeATMeasurement.add({
|
|
13281
|
+
isNativeBroker: false,
|
|
13282
|
+
});
|
|
13283
|
+
nativeATMeasurement.end({
|
|
13284
|
+
success: true,
|
|
13285
|
+
fromCache: true,
|
|
13286
|
+
});
|
|
13287
|
+
return result;
|
|
13288
|
+
}
|
|
13289
|
+
catch (e) {
|
|
13290
|
+
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
13291
|
+
this.logger.info("0eitbc", this.correlationId);
|
|
13292
|
+
nativeATMeasurement.add({
|
|
13263
13293
|
isNativeBroker: false,
|
|
13264
|
-
fromCache: true,
|
|
13265
13294
|
});
|
|
13266
|
-
return result;
|
|
13267
|
-
}
|
|
13268
|
-
catch (e) {
|
|
13269
|
-
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
13270
|
-
this.logger.info("0eitbc", this.correlationId);
|
|
13271
|
-
nativeATMeasurement.end({
|
|
13272
|
-
success: false,
|
|
13273
|
-
brokerErrorCode: "cache_request_failed",
|
|
13274
|
-
});
|
|
13275
|
-
throw e;
|
|
13276
|
-
}
|
|
13277
|
-
// continue with a native call for any and all errors
|
|
13278
|
-
this.logger.info("0957j1", this.correlationId);
|
|
13279
|
-
}
|
|
13280
|
-
const validatedResponse = await this.platformAuthProvider.sendMessage(nativeRequest);
|
|
13281
|
-
return await this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp)
|
|
13282
|
-
.then((result) => {
|
|
13283
|
-
nativeATMeasurement.end({
|
|
13284
|
-
success: true,
|
|
13285
|
-
isNativeBroker: true,
|
|
13286
|
-
requestId: result.requestId,
|
|
13287
|
-
});
|
|
13288
|
-
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
13289
|
-
return result;
|
|
13290
|
-
})
|
|
13291
|
-
.catch((error) => {
|
|
13292
13295
|
nativeATMeasurement.end({
|
|
13293
13296
|
success: false,
|
|
13294
|
-
errorCode: error.errorCode,
|
|
13295
|
-
subErrorCode: error.subError,
|
|
13296
13297
|
});
|
|
13297
|
-
throw
|
|
13298
|
+
throw e;
|
|
13299
|
+
}
|
|
13300
|
+
// continue with a native call for any and all errors
|
|
13301
|
+
this.logger.info("0957j1", this.correlationId);
|
|
13302
|
+
}
|
|
13303
|
+
// dispatch the request to the broker
|
|
13304
|
+
try {
|
|
13305
|
+
const validatedResponse = await this.platformAuthProvider.sendMessage(nativeRequest);
|
|
13306
|
+
const result = await this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp, request.storeInCache);
|
|
13307
|
+
nativeATMeasurement.end({
|
|
13308
|
+
success: true,
|
|
13309
|
+
requestId: result.requestId,
|
|
13298
13310
|
});
|
|
13311
|
+
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
13312
|
+
return result;
|
|
13299
13313
|
}
|
|
13300
13314
|
catch (e) {
|
|
13301
13315
|
if (e instanceof NativeAuthError) {
|
|
@@ -13303,10 +13317,29 @@
|
|
|
13303
13317
|
}
|
|
13304
13318
|
nativeATMeasurement.end({
|
|
13305
13319
|
success: false,
|
|
13306
|
-
});
|
|
13320
|
+
}, e);
|
|
13321
|
+
this.setBrokerErrorTelemetry(e);
|
|
13307
13322
|
throw e;
|
|
13308
13323
|
}
|
|
13309
13324
|
}
|
|
13325
|
+
/**
|
|
13326
|
+
* Records platform-broker error telemetry on the root event for the current
|
|
13327
|
+
* correlationId. `isNativeBroker` is set optimistically to true because the
|
|
13328
|
+
* broker was engaged; when the caller subsequently falls back to a web flow
|
|
13329
|
+
* that succeeds, the root success measurement overrides it to false via
|
|
13330
|
+
* `result.fromPlatformBroker`. Terminal broker errors (no fallback) retain
|
|
13331
|
+
* true. `brokerErrorName`/`brokerErrorCode` are recorded when the error is an `AuthError`.
|
|
13332
|
+
* @param error error thrown by the broker interaction
|
|
13333
|
+
*/
|
|
13334
|
+
setBrokerErrorTelemetry(error) {
|
|
13335
|
+
if (error instanceof AuthError) {
|
|
13336
|
+
this.performanceClient.addFields({
|
|
13337
|
+
isNativeBroker: true,
|
|
13338
|
+
brokerErrorName: error.name,
|
|
13339
|
+
brokerErrorCode: error.errorCode,
|
|
13340
|
+
}, this.correlationId);
|
|
13341
|
+
}
|
|
13342
|
+
}
|
|
13310
13343
|
/**
|
|
13311
13344
|
* Creates silent flow request
|
|
13312
13345
|
* @param request
|
|
@@ -13378,11 +13411,21 @@
|
|
|
13378
13411
|
const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
|
|
13379
13412
|
serverTelemetryManager.setNativeBrokerErrorCode(e.errorCode);
|
|
13380
13413
|
if (isFatalNativeAuthError(e)) {
|
|
13414
|
+
/*
|
|
13415
|
+
* Fatal error on redirect initiate always falls back to a
|
|
13416
|
+
* regular web redirect, so this request did not complete
|
|
13417
|
+
* natively. Token telemetry for the eventual outcome lands
|
|
13418
|
+
* in handleRedirectPromise (phase 2).
|
|
13419
|
+
*/
|
|
13420
|
+
this.setBrokerErrorTelemetry(e);
|
|
13381
13421
|
throw e;
|
|
13382
13422
|
}
|
|
13383
13423
|
}
|
|
13384
13424
|
}
|
|
13385
|
-
this.browserStorage.setTemporaryCache(TemporaryCacheKeys.NATIVE_REQUEST, JSON.stringify(
|
|
13425
|
+
this.browserStorage.setTemporaryCache(TemporaryCacheKeys.NATIVE_REQUEST, JSON.stringify({
|
|
13426
|
+
...nativeRequest,
|
|
13427
|
+
storeInCache: request.storeInCache,
|
|
13428
|
+
}), true);
|
|
13386
13429
|
const navigationOptions = {
|
|
13387
13430
|
apiId: ApiId.acquireTokenRedirect,
|
|
13388
13431
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
@@ -13412,7 +13455,11 @@
|
|
|
13412
13455
|
this.performanceClient?.addFields({ errorCode: "no_cached_request" }, this.correlationId);
|
|
13413
13456
|
return null;
|
|
13414
13457
|
}
|
|
13415
|
-
|
|
13458
|
+
/*
|
|
13459
|
+
* storeInCache is a client-side cache directive persisted alongside the cached
|
|
13460
|
+
* request (not a broker-contract parameter), so extract it here before resending.
|
|
13461
|
+
*/
|
|
13462
|
+
const { prompt, storeInCache, ...request } = cachedRequest;
|
|
13416
13463
|
if (prompt) {
|
|
13417
13464
|
this.logger.verbose("0ac34v", this.correlationId);
|
|
13418
13465
|
}
|
|
@@ -13421,13 +13468,13 @@
|
|
|
13421
13468
|
try {
|
|
13422
13469
|
this.logger.verbose("003x5a", this.correlationId);
|
|
13423
13470
|
const response = await this.platformAuthProvider.sendMessage(request);
|
|
13424
|
-
const authResult = await this.handleNativeResponse(response, request, reqTimestamp);
|
|
13471
|
+
const authResult = await this.handleNativeResponse(response, request, reqTimestamp, storeInCache);
|
|
13425
13472
|
const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
|
|
13426
13473
|
serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
13427
|
-
this.performanceClient?.addFields({ isNativeBroker: true }, this.correlationId);
|
|
13428
13474
|
return authResult;
|
|
13429
13475
|
}
|
|
13430
13476
|
catch (e) {
|
|
13477
|
+
this.setBrokerErrorTelemetry(e);
|
|
13431
13478
|
throw e;
|
|
13432
13479
|
}
|
|
13433
13480
|
}
|
|
@@ -13445,7 +13492,7 @@
|
|
|
13445
13492
|
* @param request
|
|
13446
13493
|
* @param reqTimestamp
|
|
13447
13494
|
*/
|
|
13448
|
-
async handleNativeResponse(response, request, reqTimestamp) {
|
|
13495
|
+
async handleNativeResponse(response, request, reqTimestamp, storeInCache) {
|
|
13449
13496
|
this.logger.trace("1bojln", this.correlationId);
|
|
13450
13497
|
// generate identifiers
|
|
13451
13498
|
const idTokenClaims = extractTokenClaims(response.id_token, base64Decode, this.correlationId);
|
|
@@ -13474,8 +13521,8 @@
|
|
|
13474
13521
|
const result = await this.generateAuthenticationResult(response, request, idTokenClaims, baseAccount, authority.canonicalAuthority, reqTimestamp);
|
|
13475
13522
|
// cache accounts and tokens in the appropriate storage
|
|
13476
13523
|
await this.cacheAccount(baseAccount, isKmsi(idTokenClaims));
|
|
13477
|
-
await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache() // environment
|
|
13478
|
-
);
|
|
13524
|
+
await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache(), // environment
|
|
13525
|
+
storeInCache);
|
|
13479
13526
|
return result;
|
|
13480
13527
|
}
|
|
13481
13528
|
/**
|
|
@@ -13596,7 +13643,9 @@
|
|
|
13596
13643
|
correlationId: this.correlationId,
|
|
13597
13644
|
state: response.state,
|
|
13598
13645
|
fromPlatformBroker: true,
|
|
13599
|
-
...(request.resource && {
|
|
13646
|
+
...(request.extraParameters?.resource && {
|
|
13647
|
+
resource: request.extraParameters.resource,
|
|
13648
|
+
}),
|
|
13600
13649
|
};
|
|
13601
13650
|
return result;
|
|
13602
13651
|
}
|
|
@@ -13620,7 +13669,7 @@
|
|
|
13620
13669
|
* @param tenantId
|
|
13621
13670
|
* @param reqTimestamp
|
|
13622
13671
|
*/
|
|
13623
|
-
async cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, tenantId, reqTimestamp, environment) {
|
|
13672
|
+
async cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, tenantId, reqTimestamp, environment, storeInCache) {
|
|
13624
13673
|
const cachedIdToken = createIdTokenEntity(homeAccountIdentifier, environment, response.id_token || "", request.clientId, idTokenClaims.tid || "");
|
|
13625
13674
|
// cache accessToken in inmemory storage
|
|
13626
13675
|
const expiresIn = request.tokenType === AuthenticationScheme$1.POP
|
|
@@ -13632,14 +13681,14 @@
|
|
|
13632
13681
|
const responseScopes = this.generateScopes(response.scope, request.scope);
|
|
13633
13682
|
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);
|
|
13634
13683
|
// save idtoken credential in configured browser storage
|
|
13635
|
-
if (!!cachedIdToken &&
|
|
13684
|
+
if (!!cachedIdToken && storeInCache?.idToken !== false) {
|
|
13636
13685
|
await this.browserStorage.setIdTokenCredential(cachedIdToken, this.correlationId, isKmsi(idTokenClaims));
|
|
13637
13686
|
}
|
|
13638
13687
|
// save access token credential in memory storage
|
|
13639
13688
|
const nativeCacheRecord = {
|
|
13640
13689
|
accessToken: cachedAccessToken,
|
|
13641
13690
|
};
|
|
13642
|
-
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId,
|
|
13691
|
+
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId, storeInCache);
|
|
13643
13692
|
}
|
|
13644
13693
|
getExpiresInValue(tokenType, expiresIn) {
|
|
13645
13694
|
return tokenType === AuthenticationScheme$1.POP
|
|
@@ -13711,13 +13760,12 @@
|
|
|
13711
13760
|
const configClaims = request.skipBrokerClaims && !!request.embeddedClientId
|
|
13712
13761
|
? undefined
|
|
13713
13762
|
: this.config.auth.clientCapabilities;
|
|
13714
|
-
// scopes are expected to be received by the native broker as "scope" and will be added to the request below.
|
|
13715
|
-
const { scopes, claims
|
|
13763
|
+
// 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.
|
|
13764
|
+
const { scopes, claims } = request;
|
|
13716
13765
|
const scopeSet = new ScopeSet(scopes || [], this.correlationId);
|
|
13717
13766
|
scopeSet.appendScopes(OIDC_DEFAULT_SCOPES$1);
|
|
13718
13767
|
const mergedClaims = buildMergedClaims$1(claims, configClaims?.length ? configClaims : undefined);
|
|
13719
13768
|
const validatedRequest = {
|
|
13720
|
-
...remainingProperties,
|
|
13721
13769
|
claims: mergedClaims,
|
|
13722
13770
|
accountId: this.accountId,
|
|
13723
13771
|
clientId: this.config.auth.clientId,
|
|
@@ -13726,19 +13774,28 @@
|
|
|
13726
13774
|
redirectUri: getRedirectUri(request.redirectUri, this.config.auth.redirectUri, this.logger, this.correlationId),
|
|
13727
13775
|
prompt: this.getPrompt(request.prompt),
|
|
13728
13776
|
correlationId: this.correlationId,
|
|
13777
|
+
isSts: false,
|
|
13729
13778
|
tokenType: request.authenticationScheme,
|
|
13730
13779
|
windowTitleSubstring: document.title,
|
|
13780
|
+
nonce: request.nonce,
|
|
13781
|
+
state: request.state,
|
|
13782
|
+
loginHint: request.loginHint,
|
|
13731
13783
|
extraParameters: {
|
|
13732
13784
|
...request.extraParameters,
|
|
13785
|
+
...(request.resource && { resource: request.resource }), // resource is set for MCP scenarios
|
|
13733
13786
|
},
|
|
13734
13787
|
extendedExpiryToken: false,
|
|
13735
13788
|
keyId: request.popKid,
|
|
13789
|
+
resourceRequestMethod: request.resourceRequestMethod,
|
|
13790
|
+
resourceRequestUri: request.resourceRequestUri,
|
|
13791
|
+
shrClaims: request.shrClaims,
|
|
13792
|
+
shrNonce: request.shrNonce,
|
|
13736
13793
|
};
|
|
13737
13794
|
// Check for PoP token requests: signPopToken should only be set to true if popKid is not set
|
|
13738
13795
|
if (validatedRequest.signPopToken && !!request.popKid) {
|
|
13739
13796
|
throw createBrowserAuthError(invalidPopTokenRequest, this.correlationId);
|
|
13740
13797
|
}
|
|
13741
|
-
this.handleExtraBrokerParams(validatedRequest);
|
|
13798
|
+
this.handleExtraBrokerParams(validatedRequest, request.embeddedClientId);
|
|
13742
13799
|
validatedRequest.extraParameters =
|
|
13743
13800
|
validatedRequest.extraParameters || {};
|
|
13744
13801
|
validatedRequest.extraParameters.telemetry =
|
|
@@ -13813,19 +13870,19 @@
|
|
|
13813
13870
|
* @param request {PlatformAuthRequest}
|
|
13814
13871
|
* @private
|
|
13815
13872
|
*/
|
|
13816
|
-
handleExtraBrokerParams(request) {
|
|
13873
|
+
handleExtraBrokerParams(request, embeddedClientId) {
|
|
13817
13874
|
const hasExtraBrokerParams = request.extraParameters &&
|
|
13818
13875
|
request.extraParameters.hasOwnProperty(BROKER_CLIENT_ID) &&
|
|
13819
13876
|
request.extraParameters.hasOwnProperty(BROKER_REDIRECT_URI) &&
|
|
13820
13877
|
request.extraParameters.hasOwnProperty(CLIENT_ID);
|
|
13821
|
-
if (!
|
|
13878
|
+
if (!embeddedClientId && !hasExtraBrokerParams) {
|
|
13822
13879
|
return;
|
|
13823
13880
|
}
|
|
13824
13881
|
let child_client_id = "";
|
|
13825
13882
|
const child_redirect_uri = request.redirectUri;
|
|
13826
|
-
if (
|
|
13883
|
+
if (embeddedClientId) {
|
|
13827
13884
|
request.redirectUri = this.config.auth.redirectUri;
|
|
13828
|
-
child_client_id =
|
|
13885
|
+
child_client_id = embeddedClientId;
|
|
13829
13886
|
}
|
|
13830
13887
|
else if (request.extraParameters) {
|
|
13831
13888
|
request.redirectUri =
|
|
@@ -13833,7 +13890,15 @@
|
|
|
13833
13890
|
child_client_id =
|
|
13834
13891
|
request.extraParameters[CLIENT_ID];
|
|
13835
13892
|
}
|
|
13893
|
+
const {
|
|
13894
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13895
|
+
[BROKER_CLIENT_ID]: _brkClientId,
|
|
13896
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13897
|
+
[BROKER_REDIRECT_URI]: _brkRedirectUri,
|
|
13898
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13899
|
+
[CLIENT_ID]: _clientId, ...remainingExtraParameters } = request.extraParameters || {};
|
|
13836
13900
|
request.extraParameters = {
|
|
13901
|
+
...remainingExtraParameters,
|
|
13837
13902
|
child_client_id,
|
|
13838
13903
|
child_redirect_uri,
|
|
13839
13904
|
};
|
|
@@ -14258,6 +14323,8 @@
|
|
|
14258
14323
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
14259
14324
|
* Licensed under the MIT License.
|
|
14260
14325
|
*/
|
|
14326
|
+
const MAX_FETCH_POST_RETRIES = 1;
|
|
14327
|
+
const RETRY_DELAY_MS = 100;
|
|
14261
14328
|
/**
|
|
14262
14329
|
* 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
|
|
14263
14330
|
*/
|
|
@@ -14306,21 +14373,40 @@
|
|
|
14306
14373
|
async sendPostRequestAsync(url, options) {
|
|
14307
14374
|
const reqBody = (options && options.body) || "";
|
|
14308
14375
|
const reqHeaders = getFetchHeaders(options);
|
|
14376
|
+
const correlationId = options?.correlationId;
|
|
14377
|
+
const performanceClient = options?.performanceClient;
|
|
14309
14378
|
let response;
|
|
14310
|
-
let
|
|
14311
|
-
let
|
|
14312
|
-
|
|
14313
|
-
|
|
14314
|
-
|
|
14315
|
-
|
|
14316
|
-
|
|
14317
|
-
|
|
14379
|
+
let lastError;
|
|
14380
|
+
for (let attempt = 1; attempt <= MAX_FETCH_POST_RETRIES + 1; attempt++) {
|
|
14381
|
+
try {
|
|
14382
|
+
response = await fetch(url, {
|
|
14383
|
+
method: HTTP_REQUEST_TYPE.POST,
|
|
14384
|
+
headers: reqHeaders,
|
|
14385
|
+
body: reqBody,
|
|
14386
|
+
});
|
|
14387
|
+
break;
|
|
14388
|
+
}
|
|
14389
|
+
catch (e) {
|
|
14390
|
+
lastError = e;
|
|
14391
|
+
if (!shouldRetryPostFetchError(lastError, attempt)) {
|
|
14392
|
+
throw createNetworkError(createBrowserAuthError(window.navigator.onLine !== false
|
|
14393
|
+
? postRequestFailed
|
|
14394
|
+
: noNetworkConnectivity, correlationId || ""), undefined, undefined, lastError);
|
|
14395
|
+
}
|
|
14396
|
+
// Brief backoff before retry
|
|
14397
|
+
await new Promise((resolve) => setTimeout(resolve, RETRY_DELAY_MS));
|
|
14398
|
+
if (correlationId) {
|
|
14399
|
+
performanceClient?.incrementFields({ fetchRetryCount: 1 }, correlationId);
|
|
14400
|
+
}
|
|
14401
|
+
}
|
|
14318
14402
|
}
|
|
14319
|
-
|
|
14320
|
-
throw createNetworkError(createBrowserAuthError(window.navigator.onLine
|
|
14403
|
+
if (!response) {
|
|
14404
|
+
throw createNetworkError(createBrowserAuthError(window.navigator.onLine !== false
|
|
14321
14405
|
? postRequestFailed
|
|
14322
|
-
: noNetworkConnectivity, ""), undefined, undefined,
|
|
14406
|
+
: noNetworkConnectivity, correlationId || ""), undefined, undefined, lastError);
|
|
14323
14407
|
}
|
|
14408
|
+
let responseStatus = 0;
|
|
14409
|
+
let responseHeaders = {};
|
|
14324
14410
|
responseHeaders = getHeaderDict(response.headers);
|
|
14325
14411
|
try {
|
|
14326
14412
|
responseStatus = response.status;
|
|
@@ -14331,10 +14417,15 @@
|
|
|
14331
14417
|
};
|
|
14332
14418
|
}
|
|
14333
14419
|
catch (e) {
|
|
14334
|
-
throw createNetworkError(createBrowserAuthError(failedToParseResponse, ""), responseStatus, responseHeaders, e);
|
|
14420
|
+
throw createNetworkError(createBrowserAuthError(failedToParseResponse, correlationId || ""), responseStatus, responseHeaders, e);
|
|
14335
14421
|
}
|
|
14336
14422
|
}
|
|
14337
14423
|
}
|
|
14424
|
+
function shouldRetryPostFetchError(error, attempt) {
|
|
14425
|
+
return (attempt <= MAX_FETCH_POST_RETRIES &&
|
|
14426
|
+
window.navigator.onLine !== false &&
|
|
14427
|
+
error.name !== "AbortError");
|
|
14428
|
+
}
|
|
14338
14429
|
/**
|
|
14339
14430
|
* Get Fetch API Headers object from string map
|
|
14340
14431
|
* @param inputHeaders
|
|
@@ -14820,7 +14911,7 @@
|
|
|
14820
14911
|
}
|
|
14821
14912
|
initializePlatformDOMRequest(request) {
|
|
14822
14913
|
this.logger.trace(`15d6yv ${this.platformAuthType}`, request.correlationId);
|
|
14823
|
-
const { accountId, clientId, authority, scope, redirectUri, correlationId, state,
|
|
14914
|
+
const { accountId, clientId, authority, scope, redirectUri, correlationId, state, extraParameters, ...remainingProperties } = request;
|
|
14824
14915
|
const validExtraParameters = this.getDOMExtraParams(remainingProperties, correlationId);
|
|
14825
14916
|
const platformDOMRequest = {
|
|
14826
14917
|
accountId: accountId,
|
|
@@ -14836,8 +14927,6 @@
|
|
|
14836
14927
|
redirectUri: redirectUri,
|
|
14837
14928
|
scope: scope,
|
|
14838
14929
|
state: state,
|
|
14839
|
-
storeInCache: storeInCache,
|
|
14840
|
-
embeddedClientId: embeddedClientId,
|
|
14841
14930
|
};
|
|
14842
14931
|
return platformDOMRequest;
|
|
14843
14932
|
}
|
|
@@ -16621,6 +16710,7 @@
|
|
|
16621
16710
|
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, exports.InteractionType.Redirect);
|
|
16622
16711
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
16623
16712
|
this.logger.trace("12v7is", correlationId);
|
|
16713
|
+
// Cached nativeAccountId routes directly to the broker (no /authorize call)
|
|
16624
16714
|
rootMeasurement.add({
|
|
16625
16715
|
isPlatformBrokerRequest: true,
|
|
16626
16716
|
});
|
|
@@ -16657,6 +16747,7 @@
|
|
|
16657
16747
|
}
|
|
16658
16748
|
rootMeasurement.end({
|
|
16659
16749
|
success: true,
|
|
16750
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
16660
16751
|
}, undefined, result.account);
|
|
16661
16752
|
// Fire-and-forget SSO capability verification in background
|
|
16662
16753
|
this.verifySsoCapability(cachedRedirectRequest, exports.InteractionType.Redirect);
|
|
@@ -16666,8 +16757,8 @@
|
|
|
16666
16757
|
* Instrument an event only if an error code is set. Otherwise, discard it when the redirect response
|
|
16667
16758
|
* is empty and the error code is missing.
|
|
16668
16759
|
*/
|
|
16669
|
-
if (rootMeasurement.event.errorCode) {
|
|
16670
|
-
rootMeasurement.end({ success: false }
|
|
16760
|
+
if (!!rootMeasurement.event.errorCode) {
|
|
16761
|
+
rootMeasurement.end({ success: false });
|
|
16671
16762
|
}
|
|
16672
16763
|
else {
|
|
16673
16764
|
rootMeasurement.discard();
|
|
@@ -16726,10 +16817,6 @@
|
|
|
16726
16817
|
this.canUsePlatformBroker(request)) {
|
|
16727
16818
|
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);
|
|
16728
16819
|
result = invokeAsync(nativeClient.acquireTokenRedirect.bind(nativeClient), NativeInteractionClientAcquireTokenRedirect, this.logger, this.performanceClient, correlationId)(request, atrMeasurement).catch((e) => {
|
|
16729
|
-
atrMeasurement.add({
|
|
16730
|
-
brokerErrorName: e.name,
|
|
16731
|
-
brokerErrorCode: e.errorCode,
|
|
16732
|
-
});
|
|
16733
16820
|
if (e instanceof NativeAuthError &&
|
|
16734
16821
|
isFatalNativeAuthError(e)) {
|
|
16735
16822
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
@@ -16798,6 +16885,7 @@
|
|
|
16798
16885
|
let result;
|
|
16799
16886
|
const pkce = this.getPreGeneratedPkceCodes(correlationId);
|
|
16800
16887
|
if (this.canUsePlatformBroker(request)) {
|
|
16888
|
+
// Cached nativeAccountId routes directly to the broker (no /authorize call)
|
|
16801
16889
|
atPopupMeasurement.add({
|
|
16802
16890
|
isPlatformBrokerRequest: true,
|
|
16803
16891
|
});
|
|
@@ -16808,15 +16896,11 @@
|
|
|
16808
16896
|
.then((response) => {
|
|
16809
16897
|
atPopupMeasurement.end({
|
|
16810
16898
|
success: true,
|
|
16811
|
-
isNativeBroker:
|
|
16899
|
+
isNativeBroker: response.fromPlatformBroker ?? false,
|
|
16812
16900
|
}, undefined, response.account);
|
|
16813
16901
|
return response;
|
|
16814
16902
|
})
|
|
16815
16903
|
.catch((e) => {
|
|
16816
|
-
atPopupMeasurement.add({
|
|
16817
|
-
brokerErrorName: e.name,
|
|
16818
|
-
brokerErrorCode: e.errorCode,
|
|
16819
|
-
});
|
|
16820
16904
|
if (e instanceof NativeAuthError &&
|
|
16821
16905
|
isFatalNativeAuthError(e)) {
|
|
16822
16906
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
@@ -16847,6 +16931,7 @@
|
|
|
16847
16931
|
}
|
|
16848
16932
|
atPopupMeasurement.end({
|
|
16849
16933
|
success: true,
|
|
16934
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
16850
16935
|
accessTokenSize: result.accessToken.length,
|
|
16851
16936
|
idTokenSize: result.idToken.length,
|
|
16852
16937
|
}, undefined, result.account);
|
|
@@ -17040,14 +17125,11 @@
|
|
|
17040
17125
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, validRequest);
|
|
17041
17126
|
let result;
|
|
17042
17127
|
if (this.canUsePlatformBroker(validRequest)) {
|
|
17128
|
+
// Cached nativeAccountId routes directly to the broker (no /authorize call)
|
|
17043
17129
|
this.ssoSilentMeasurement?.add({
|
|
17044
17130
|
isPlatformBrokerRequest: true,
|
|
17045
17131
|
});
|
|
17046
17132
|
result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch((e) => {
|
|
17047
|
-
this.ssoSilentMeasurement?.add({
|
|
17048
|
-
brokerErrorName: e.name,
|
|
17049
|
-
brokerErrorCode: e.errorCode,
|
|
17050
|
-
});
|
|
17051
17133
|
// If native token acquisition fails for availability reasons fallback to standard flow
|
|
17052
17134
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
17053
17135
|
this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
|
|
@@ -17070,7 +17152,7 @@
|
|
|
17070
17152
|
}
|
|
17071
17153
|
this.ssoSilentMeasurement?.end({
|
|
17072
17154
|
success: true,
|
|
17073
|
-
isNativeBroker: response.fromPlatformBroker,
|
|
17155
|
+
isNativeBroker: response.fromPlatformBroker ?? false,
|
|
17074
17156
|
accessTokenSize: response.accessToken.length,
|
|
17075
17157
|
idTokenSize: response.idToken.length,
|
|
17076
17158
|
}, undefined, response.account);
|
|
@@ -17123,6 +17205,7 @@
|
|
|
17123
17205
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
17124
17206
|
atbcMeasurement.end({
|
|
17125
17207
|
success: true,
|
|
17208
|
+
isNativeBroker: false,
|
|
17126
17209
|
accessTokenSize: result.accessToken.length,
|
|
17127
17210
|
idTokenSize: result.idToken.length,
|
|
17128
17211
|
}, undefined, result.account);
|
|
@@ -17153,10 +17236,6 @@
|
|
|
17153
17236
|
...request,
|
|
17154
17237
|
correlationId,
|
|
17155
17238
|
}, ApiId.acquireTokenByCode, request.nativeAccountId).catch((e) => {
|
|
17156
|
-
atbcMeasurement.add({
|
|
17157
|
-
brokerErrorName: e.name,
|
|
17158
|
-
brokerErrorCode: e.errorCode,
|
|
17159
|
-
});
|
|
17160
17239
|
// If native token acquisition fails for availability reasons fallback to standard flow
|
|
17161
17240
|
if (e instanceof NativeAuthError &&
|
|
17162
17241
|
isFatalNativeAuthError(e)) {
|
|
@@ -17166,6 +17245,7 @@
|
|
|
17166
17245
|
});
|
|
17167
17246
|
atbcMeasurement.end({
|
|
17168
17247
|
success: true,
|
|
17248
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
17169
17249
|
}, undefined, result.account);
|
|
17170
17250
|
return result;
|
|
17171
17251
|
}
|
|
@@ -17206,6 +17286,7 @@
|
|
|
17206
17286
|
.then((response) => {
|
|
17207
17287
|
this.acquireTokenByCodeAsyncMeasurement?.end({
|
|
17208
17288
|
success: true,
|
|
17289
|
+
isNativeBroker: false,
|
|
17209
17290
|
fromCache: response.fromCache,
|
|
17210
17291
|
});
|
|
17211
17292
|
return response;
|
|
@@ -17383,8 +17464,16 @@
|
|
|
17383
17464
|
/**
|
|
17384
17465
|
* Acquire a token from native device (e.g. WAM)
|
|
17385
17466
|
* @param request
|
|
17467
|
+
* @param apiId
|
|
17468
|
+
* @param accountId
|
|
17469
|
+
* @param cacheLookupPolicy
|
|
17386
17470
|
*/
|
|
17387
17471
|
async acquireTokenNative(request, apiId, accountId, cacheLookupPolicy) {
|
|
17472
|
+
/*
|
|
17473
|
+
* Callers always normalize correlationId onto the request before delegating
|
|
17474
|
+
* here, so it is guaranteed defined and is the single id used to key this
|
|
17475
|
+
* flow's telemetry.
|
|
17476
|
+
*/
|
|
17388
17477
|
const correlationId = this.getRequestCorrelationId(request);
|
|
17389
17478
|
this.logger.trace("0b9y3p", correlationId);
|
|
17390
17479
|
if (!this.platformAuthProvider) {
|
|
@@ -17638,6 +17727,7 @@
|
|
|
17638
17727
|
.then((result) => {
|
|
17639
17728
|
atsMeasurement.end({
|
|
17640
17729
|
success: true,
|
|
17730
|
+
isNativeBroker: result.fromPlatformBroker ?? false,
|
|
17641
17731
|
fromCache: result.fromCache,
|
|
17642
17732
|
accessTokenSize: result.accessToken.length,
|
|
17643
17733
|
idTokenSize: result.idToken.length,
|
|
@@ -17774,7 +17864,7 @@
|
|
|
17774
17864
|
if (request.correlationId) {
|
|
17775
17865
|
this.performanceClient.addFields({
|
|
17776
17866
|
fromCache: response.fromCache,
|
|
17777
|
-
isNativeBroker: response.fromPlatformBroker,
|
|
17867
|
+
isNativeBroker: response.fromPlatformBroker ?? false,
|
|
17778
17868
|
}, request.correlationId);
|
|
17779
17869
|
}
|
|
17780
17870
|
return response;
|
|
@@ -17800,10 +17890,6 @@
|
|
|
17800
17890
|
this.logger.verbose("0sczo4", silentRequest.correlationId);
|
|
17801
17891
|
this.performanceClient.addFields({ isPlatformBrokerRequest: true }, silentRequest.correlationId);
|
|
17802
17892
|
return this.acquireTokenNative(silentRequest, ApiId.acquireTokenSilent_silentFlow, silentRequest.account.nativeAccountId, cacheLookupPolicy).catch(async (e) => {
|
|
17803
|
-
this.performanceClient.addFields({
|
|
17804
|
-
brokerErrorName: e.name,
|
|
17805
|
-
brokerErrorCode: e.errorCode,
|
|
17806
|
-
}, silentRequest.correlationId);
|
|
17807
17893
|
// If native token acquisition fails for availability reasons fallback to web flow
|
|
17808
17894
|
if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
|
|
17809
17895
|
this.logger.verbose("07rkmb", silentRequest.correlationId);
|