@azure/msal-browser 5.26.0 → 5.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +54 -14
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthRequest.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 +32 -4
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +36 -5
- 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/crypto/TokenBindingKeyManager.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/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.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/interaction_client/v2/FlowInteractionClientV2.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.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/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.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/FlowApiIdHelperV2.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/auth_flow/v2/state/NewPasswordRequiredStateV2.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/auth_flow/v2/state/PasswordRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.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/auth_flow/v2/state/AttributesRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.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 +1 -1
- package/dist/interaction_client/PopupClient.mjs +28 -1
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +2 -3
- package/dist/interaction_client/RedirectClient.mjs.map +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 +7 -1
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/log-strings-mapping.json +23 -3
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/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 +23 -13
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/request/SilentRequestHelpers.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/BrowserDetection.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +7 -2
- package/dist/utils/BrowserUtils.mjs.map +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/IframeMonitor.mjs +81 -0
- package/dist/utils/IframeMonitor.mjs.map +1 -0
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/utils/PopupMonitor.mjs +119 -0
- package/dist/utils/PopupMonitor.mjs.map +1 -0
- package/dist/utils/PopupOriginCheck.mjs +88 -0
- package/dist/utils/PopupOriginCheck.mjs.map +1 -0
- package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
- package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
- package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
- package/dist/webBrokerBridge/index.mjs +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +23 -3
- package/lib/custom-auth-path/msal-custom-auth.cjs +617 -122
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +617 -122
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +23 -3
- package/lib/msal-browser.cjs +614 -128
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +614 -128
- 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/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
- package/package.json +2 -2
- package/src/app/PublicClientApplication.ts +108 -8
- package/src/config/Configuration.ts +63 -6
- package/src/controllers/StandardController.ts +46 -3
- package/src/interaction_client/PopupClient.ts +36 -0
- package/src/interaction_client/RedirectClient.ts +0 -1
- package/src/interaction_client/StandardInteractionClient.ts +6 -0
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +34 -28
- package/src/utils/BrowserUtils.ts +8 -1
- package/src/utils/IframeMonitor.ts +98 -0
- package/src/utils/PopupMonitor.ts +158 -0
- package/src/utils/PopupOriginCheck.ts +94 -0
- package/types/app/PublicClientApplication.d.ts +6 -4
- package/types/app/PublicClientApplication.d.ts.map +1 -1
- package/types/config/Configuration.d.ts +16 -0
- package/types/config/Configuration.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/interaction_client/PopupClient.d.ts +12 -0
- package/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/protocol/Authorize.d.ts.map +1 -1
- package/types/utils/BrowserUtils.d.ts +2 -1
- package/types/utils/BrowserUtils.d.ts.map +1 -1
- package/types/utils/IframeMonitor.d.ts +17 -0
- package/types/utils/IframeMonitor.d.ts.map +1 -0
- package/types/utils/PopupMonitor.d.ts +37 -0
- package/types/utils/PopupMonitor.d.ts.map +1 -0
- package/types/utils/PopupOriginCheck.d.ts +27 -0
- package/types/utils/PopupOriginCheck.d.ts.map +1 -0
package/README.md
CHANGED
|
@@ -98,6 +98,8 @@ Select the guide that matches your current MSAL version:
|
|
|
98
98
|
|
|
99
99
|
The [`msal-browser-samples` folder](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-browser-samples) contains sample applications for our libraries.
|
|
100
100
|
|
|
101
|
+
- [Popup origin check (POCD)](../../samples/msal-browser-samples/PocdSample/README.md): direct popup authentication with trusted/untrusted openers and COOP enforcement.
|
|
102
|
+
|
|
101
103
|
More advanced samples backed with a tutorial can be found in the [Azure Samples](https://github.com/Azure-Samples) space on GitHub:
|
|
102
104
|
|
|
103
105
|
- [JavaScript SPA calling Express.js web API](https://github.com/Azure-Samples/ms-identity-javascript-tutorial/tree/main/3-Authorization-II/1-call-api)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { createBrowserConfigurationAuthError } from '../error/BrowserConfigurationAuthError.mjs';
|
|
4
4
|
import { stubbedPublicClientApplicationCalled } from '../error/BrowserConfigurationAuthErrorCodes.mjs';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
2
|
'use strict';
|
|
3
|
+
import { Constants } from '@azure/msal-common/browser';
|
|
3
4
|
import { StandardController } from '../controllers/StandardController.mjs';
|
|
4
5
|
import { StandardOperatingContext } from '../operatingcontext/StandardOperatingContext.mjs';
|
|
5
6
|
import { NestedAppAuthController } from '../controllers/NestedAppAuthController.mjs';
|
|
6
7
|
import { NestedAppOperatingContext } from '../operatingcontext/NestedAppOperatingContext.mjs';
|
|
7
8
|
import { createNewGuid } from '../crypto/BrowserCrypto.mjs';
|
|
8
9
|
import { waitForBridgeResponse } from '../utils/BrowserUtils.mjs';
|
|
10
|
+
import { monitorPopupForHash } from '../utils/PopupMonitor.mjs';
|
|
11
|
+
import { monitorIframeForHash } from '../utils/IframeMonitor.mjs';
|
|
9
12
|
|
|
10
13
|
/*
|
|
11
14
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -49,27 +52,29 @@ class PublicClientApplication {
|
|
|
49
52
|
/**
|
|
50
53
|
* Waits for the auth response from a popup window opened by MSAL.
|
|
51
54
|
*
|
|
52
|
-
* The default implementation delegates to MSAL's `BroadcastChannel`-based bridge
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
+
* The default implementation delegates to MSAL's `BroadcastChannel`-based bridge,
|
|
56
|
+
* or to the v4-style same-origin location poller when
|
|
57
|
+
* `system.enableLegacyPolling` is set. Subclasses must return the raw response
|
|
58
|
+
* string (hash/query/fragment), or reject with an `AuthError` on failure.
|
|
55
59
|
*
|
|
56
60
|
* @internal
|
|
57
61
|
* @param request The in-flight authorization or end-session request.
|
|
58
62
|
* @param popupWindow The popup window opened by MSAL.
|
|
59
63
|
* @param popupWindowParent The parent window that opened the popup.
|
|
60
64
|
*/
|
|
61
|
-
async waitForPopupResponse(request,
|
|
62
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
63
|
-
popupWindow,
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
65
|
-
popupWindowParent) {
|
|
65
|
+
async waitForPopupResponse(request, popupWindow, popupWindowParent) {
|
|
66
66
|
const controller = this.controller;
|
|
67
|
-
|
|
67
|
+
const config = controller.getConfiguration();
|
|
68
|
+
if (config.system.enableLegacyPolling) {
|
|
69
|
+
return waitForPopupPollingResponse(config, controller.getLogger(), controller.getPerformanceClient(), request, popupWindow, popupWindowParent);
|
|
70
|
+
}
|
|
71
|
+
return waitForBridgeResponse(config.system.popupBridgeTimeout, controller.getLogger(), request, controller.getPerformanceClient());
|
|
68
72
|
}
|
|
69
73
|
/**
|
|
70
74
|
* Waits for the auth response from a hidden iframe used by MSAL silent flows.
|
|
71
75
|
*
|
|
72
|
-
* The default implementation delegates to MSAL's `BroadcastChannel`-based bridge
|
|
76
|
+
* The default implementation delegates to MSAL's `BroadcastChannel`-based bridge,
|
|
77
|
+
* or to the v4-style location poller when `system.enableLegacyPolling` is set.
|
|
73
78
|
* Subclasses must return the raw response string (hash/query/fragment), or reject
|
|
74
79
|
* with an `AuthError` on failure.
|
|
75
80
|
*
|
|
@@ -77,11 +82,12 @@ class PublicClientApplication {
|
|
|
77
82
|
* @param iframe The hidden iframe MSAL attached to the document.
|
|
78
83
|
* @param request The in-flight authorization request.
|
|
79
84
|
*/
|
|
80
|
-
async waitForIframeResponse(
|
|
81
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
82
|
-
iframe, request) {
|
|
85
|
+
async waitForIframeResponse(iframe, request) {
|
|
83
86
|
const controller = this.controller;
|
|
84
87
|
const config = controller.getConfiguration();
|
|
88
|
+
if (config.system.enableLegacyPolling) {
|
|
89
|
+
return waitForIframePollingResponse(config, controller.getLogger(), controller.getPerformanceClient(), iframe, request);
|
|
90
|
+
}
|
|
85
91
|
return waitForBridgeResponse(config.system.iframeBridgeTimeout, controller.getLogger(), request, controller.getPerformanceClient(), config.experimental);
|
|
86
92
|
}
|
|
87
93
|
/**
|
|
@@ -350,6 +356,40 @@ async function createStandardPublicClientApplication(configuration) {
|
|
|
350
356
|
const pca = new PublicClientApplication(configuration);
|
|
351
357
|
await pca.initialize();
|
|
352
358
|
return pca;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Collects a popup auth response using the v4-style same-origin location
|
|
362
|
+
* poller instead of the `BroadcastChannel` redirect bridge.
|
|
363
|
+
*/
|
|
364
|
+
async function waitForPopupPollingResponse(config, logger, performanceClient, request, popupWindow, popupWindowParent) {
|
|
365
|
+
const responseMode = config.auth.OIDCOptions?.responseMode === Constants.ResponseMode.QUERY
|
|
366
|
+
? Constants.ResponseMode.QUERY
|
|
367
|
+
: Constants.ResponseMode.FRAGMENT;
|
|
368
|
+
performanceClient.addFields({ usesLegacyPolling: true }, request.correlationId);
|
|
369
|
+
const unloadHandler = () => {
|
|
370
|
+
try {
|
|
371
|
+
if (popupWindow && !popupWindow.closed) {
|
|
372
|
+
popupWindow.close();
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
catch {
|
|
376
|
+
/* ignore */
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
popupWindowParent.addEventListener("beforeunload", unloadHandler);
|
|
380
|
+
return monitorPopupForHash(popupWindow, popupWindowParent, responseMode, logger, unloadHandler, request.correlationId);
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Collects a silent-iframe auth response using the v4-style location poller
|
|
384
|
+
* instead of the `BroadcastChannel` redirect bridge.
|
|
385
|
+
*/
|
|
386
|
+
async function waitForIframePollingResponse(config, logger, performanceClient, iframe, request) {
|
|
387
|
+
const responseMode = config.auth.OIDCOptions?.responseMode === Constants.ResponseMode.QUERY
|
|
388
|
+
? Constants.ResponseMode.QUERY
|
|
389
|
+
: Constants.ResponseMode.FRAGMENT;
|
|
390
|
+
const iframePollTimeout = config.system.iframeBridgeTimeout;
|
|
391
|
+
performanceClient.addFields({ usesLegacyPolling: true, iframePollTimeout }, request.correlationId);
|
|
392
|
+
return monitorIframeForHash(iframe, iframePollTimeout, logger, request.correlationId, responseMode);
|
|
353
393
|
}
|
|
354
394
|
|
|
355
395
|
export { PublicClientApplication, createNestablePublicClientApplication, createStandardPublicClientApplication };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicClientApplication.mjs","sources":["../../src/app/PublicClientApplication.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PublicClientApplication.mjs","sources":["../../src/app/PublicClientApplication.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;AAGG;AAyDH;;;AAGG;MACU,uBAAuB,CAAA;AAGhC;;;;;;;;;;;;;;;;;;;;;AAqBG;IACH,WAAA,CAAmB,aAA4B,EAAE,UAAwB,EAAA;AACrE,QAAA,IAAI,CAAC,UAAU;YACX,UAAU;AACV,gBAAA,IAAI,kBAAkB,CAClB,IAAI,wBAAwB,CAAC,aAAa,EAAE;oBACxC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC;oBAC1D,qBAAqB,EACjB,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC;AAC5C,iBAAA,CAAC,CACL,CAAC;IACV,CAAC;AAED;;;;;;;;;;;;AAYG;AACO,IAAA,MAAM,oBAAoB,CAChC,OAAgE,EAChE,WAAmB,EACnB,iBAAyB,EAAA;AAEzB,QAAA,MAAM,UAAU,GAAG,IAAI,CAAC,UAEvB,CAAC;AACF,QAAA,MAAM,MAAM,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAC;AAE7C,QAAA,IAAI,MAAM,CAAC,MAAM,CAAC,mBAAmB,EAAE;YACnC,OAAO,2BAA2B,CAC9B,MAAM,EACN,UAAU,CAAC,SAAS,EAAE,EACtB,UAAU,CAAC,oBAAoB,EAAE,EACjC,OAAO,EACP,WAAW,EACX,iBAAiB,CACpB,CAAC;AACL,QAAA,CAAA;QAED,OAAO,qBAAqB,CACxB,MAAM,CAAC,MAAM,CAAC,kBAAkB,EAChC,UAAU,CAAC,SAAS,EAAE,EACtB,OAAO,EACP,UAAU,CAAC,oBAAoB,EAAE,CACpC,CAAC;IACN,CAAC;AAED;;;;;;;;;;;AAWG;AACO,IAAA,MAAM,qBAA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AM,CAAC,mBAAmB,CAAC;AAE5D,IAAA,iBAAiB,CAAC,SAAS,CACvB,EAAE,iBAAiB,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAC9C,OAAO,CAAC,aAAa,CACxB,CAAC;AAEF,IAAA,OAAO,oBAAoB,CACvB,MAAM,EACN,iBAAiB,EACjB,MAAM,EACN,OAAO,CAAC,aAAa,EACrB,YAAY,CACf,CAAC;AACN;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { invokeAsync, invoke, createAuthError, AuthErrorCodes } from '@azure/msal-common/browser';
|
|
4
4
|
import { PlatformAuthConstants } from '../../utils/BrowserConstants.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { PlatformAuthConstants, NativeExtensionMethod } from '../../utils/BrowserConstants.mjs';
|
|
4
4
|
import { createAuthError, AuthErrorCodes, AuthError } from '@azure/msal-common/browser';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { Logger, StubPerformanceClient, createClientConfigurationError, ClientConfigurationErrorCodes, Constants } from '@azure/msal-common/browser';
|
|
4
4
|
import { name, version } from '../../packageMetadata.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { CacheManager, DEFAULT_TOKEN_BINDING_KEY_MANAGER, TimeUtils, CacheHelpers, Constants, AuthToken, getTenantIdFromIdTokenClaims, buildTenantProfile, AccountEntityUtils, createCacheError, CacheErrorCodes, invokeAsync, PerformanceEvents, StringUtils, CacheError, DEFAULT_CRYPTO_IMPLEMENTATION } from '@azure/msal-common/browser';
|
|
4
4
|
import { createBrowserAuthError } from '../error/BrowserAuthError.mjs';
|
package/dist/cache/CacheKeys.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { invoke, invokeAsync, Constants } from '@azure/msal-common/browser';
|
|
4
4
|
import { Base64Decode, GenerateHKDF, GenerateBaseKey, UrlEncodeArr, ImportExistingCache, Decrypt, Encrypt } from '../telemetry/BrowserPerformanceEvents.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { createBrowserConfigurationAuthError } from '../error/BrowserConfigurationAuthError.mjs';
|
|
4
4
|
import { storageNotSupported } from '../error/BrowserConfigurationAuthErrorCodes.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { StubPerformanceClient, AuthToken, Logger, buildStaticAuthorityOptions, AuthorityFactory, Authority, invokeAsync, AccountEntityUtils, buildAccountToCache, CacheHelpers, ScopeSet, TimeUtils } from '@azure/msal-common/browser';
|
|
4
4
|
import { buildConfiguration } from '../config/Configuration.mjs';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
2
|
'use strict';
|
|
3
|
-
import { StubPerformanceClient, ProtocolMode,
|
|
3
|
+
import { StubPerformanceClient, ProtocolMode, createClientConfigurationError, ClientConfigurationErrorCodes, LogLevel, DEFAULT_SYSTEM_OPTIONS, Constants, AzureCloudInstance, StubbedNetworkModule, Logger } from '@azure/msal-common/browser';
|
|
4
4
|
import { BrowserCacheLocation } from '../utils/BrowserConstants.mjs';
|
|
5
|
+
import { topOpenerIsSameOriginOrAbsent } from '../utils/PopupOriginCheck.mjs';
|
|
5
6
|
import { NavigationClient } from '../navigation/NavigationClient.mjs';
|
|
6
7
|
import { FetchClient } from '../network/FetchClient.mjs';
|
|
7
8
|
import { name, version } from '../packageMetadata.mjs';
|
|
@@ -53,6 +54,8 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
53
54
|
instanceAware: false,
|
|
54
55
|
isMcp: false,
|
|
55
56
|
verifySSO: false,
|
|
57
|
+
// Legacy polling needs COOP omitted, so it implies asserting pocd=1.
|
|
58
|
+
originCheck: !userInputSystem?.enableLegacyPolling,
|
|
56
59
|
};
|
|
57
60
|
// Default cache options for browser
|
|
58
61
|
const DEFAULT_CACHE_OPTIONS = {
|
|
@@ -86,6 +89,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
86
89
|
DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS,
|
|
87
90
|
protocolMode: ProtocolMode.AAD,
|
|
88
91
|
serverTelemetryEnabled: false,
|
|
92
|
+
enableLegacyPolling: false,
|
|
89
93
|
};
|
|
90
94
|
const providedSystemOptions = {
|
|
91
95
|
...DEFAULT_BROWSER_SYSTEM_OPTIONS,
|
|
@@ -103,11 +107,17 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
103
107
|
iframeTimeoutTelemetry: false,
|
|
104
108
|
allowPlatformBrokerWithDOM: false,
|
|
105
109
|
};
|
|
110
|
+
let logger;
|
|
111
|
+
const getLogger = () => {
|
|
112
|
+
if (!logger) {
|
|
113
|
+
logger = new Logger(providedSystemOptions.loggerOptions, name, version);
|
|
114
|
+
}
|
|
115
|
+
return logger;
|
|
116
|
+
};
|
|
106
117
|
// Throw an error if user has set OIDCOptions without being in OIDC protocol mode
|
|
107
118
|
if (userInputSystem?.protocolMode !== ProtocolMode.OIDC &&
|
|
108
119
|
userInputAuth?.OIDCOptions) {
|
|
109
|
-
|
|
110
|
-
logger.warning(JSON.stringify(createClientConfigurationError(ClientConfigurationErrorCodes.cannotSetOIDCOptions, "")), "");
|
|
120
|
+
getLogger().warning(JSON.stringify(createClientConfigurationError(ClientConfigurationErrorCodes.cannotSetOIDCOptions, "")), "");
|
|
111
121
|
}
|
|
112
122
|
// Throw an error if user has set allowPlatformBroker to true with OIDC protocol mode
|
|
113
123
|
if (userInputSystem?.protocolMode &&
|
|
@@ -115,6 +125,24 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
115
125
|
providedSystemOptions?.allowPlatformBroker) {
|
|
116
126
|
throw createClientConfigurationError(ClientConfigurationErrorCodes.cannotAllowPlatformBroker, "");
|
|
117
127
|
}
|
|
128
|
+
/*
|
|
129
|
+
* The origin check computes 0 in the embedded contexts legacy polling
|
|
130
|
+
* serves, so re-enabling it there breaks the flow. Honor it, but warn.
|
|
131
|
+
*/
|
|
132
|
+
if (userInputSystem?.enableLegacyPolling &&
|
|
133
|
+
userInputAuth?.originCheck === true) {
|
|
134
|
+
getLogger().warning("buildConfiguration: system.enableLegacyPolling is true and auth.originCheck is explicitly true. Legacy polling requires pocd=1, which the origin check will not produce in an embedded context. Unset auth.originCheck to let legacy polling assert it.", "");
|
|
135
|
+
}
|
|
136
|
+
/*
|
|
137
|
+
* Opting out is a deliberate risk transfer, not an error — but the app
|
|
138
|
+
* cannot know at config time that the risky topology is actually present.
|
|
139
|
+
*/
|
|
140
|
+
if ((userInputAuth?.originCheck ?? DEFAULT_AUTH_OPTIONS.originCheck) ===
|
|
141
|
+
false &&
|
|
142
|
+
typeof window !== "undefined" &&
|
|
143
|
+
!topOpenerIsSameOriginOrAbsent(window)) {
|
|
144
|
+
getLogger().warning("buildConfiguration: auth.originCheck is disabled and the top-level window has a cross-origin opener. MSAL will assert pocd=1, so the STS omits Cross-Origin-Opener-Policy and that opener can reach the auth popup. The application is responsible for this risk.", "");
|
|
145
|
+
}
|
|
118
146
|
const overlayedConfig = {
|
|
119
147
|
auth: {
|
|
120
148
|
...DEFAULT_AUTH_OPTIONS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Configuration.mjs","sources":["../../src/config/Configuration.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Configuration.mjs","sources":["../../src/config/Configuration.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;AAGG;AA4BH;AACO,MAAM,wBAAwB,GAAG,MAAM;AACvC,MAAM,yBAAyB,GAAG,MAAM;AACxC,MAAM,2BAA2B,GAAG,MAAM;AAC1C,MAAM,0CAA0C,GAAG,KAAK;AAiP/D;;;;;;;;AAQG;AACG,SAAU,kBAAkB,CAC9B,EACI,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,eAAe,EACvB,YAAY,EAAE,qBAAqB,EACnC,SAAS,EAAE,kBAAkB,GACjB,EAChB,oBAA6B,EAAA;;AAG7B,IAAA,MAAM,oBAAoB,GAAwB;AAC9C,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,SAAS,EAAE,CAAA,EAAG,SAAS,CAAC,iBAAiB,CAAA,CAAE;AAC3C,QAAA,gBAAgB,EAAE,EAAE;AACpB,QAAA,sBAAsB,EAAE,EAAE;AAC1B,QAAA,iBAAiB,EAAE,EAAE;QACrB,WAAW,EACP,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,QAAQ;cAC1C,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAClD,cAAE,EAAE;AAC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ser v5.27.0 2026-10-27 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { DEFAULT_CRYPTO_IMPLEMENTATION, DEFAULT_TOKEN_BINDING_KEY_MANAGER, buildStaticAuthorityOptions, enforceResourceParameter, TimeUtils, AuthError, Constants, AccountEntityUtils, AuthToken } from '@azure/msal-common/browser';
|
|
4
4
|
import { AcquireTokenPopup, SsoSilent, AcquireTokenSilent } from '../telemetry/BrowserRootPerformanceEvents.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { CryptoOps } from '../crypto/CryptoOps.mjs';
|
|
4
4
|
import { DEFAULT_CRYPTO_IMPLEMENTATION, DEFAULT_TOKEN_BINDING_KEY_MANAGER, buildStaticAuthorityOptions, invokeAsync, enforceResourceParameter, InteractionRequiredAuthError, createClientAuthError, ClientAuthErrorCodes, AccountEntityUtils, AuthToken, CacheHelpers, TimeUtils, Constants, AuthError, InteractionRequiredAuthErrorCodes } from '@azure/msal-common/browser';
|
|
@@ -8,7 +8,8 @@ import { BrowserCacheManager, DEFAULT_BROWSER_CACHE_MANAGER } from '../cache/Bro
|
|
|
8
8
|
import { SSO_CAPABLE } from '../cache/CacheKeys.mjs';
|
|
9
9
|
import { getAllAccounts, getAccount, setActiveAccount, getActiveAccount } from '../cache/AccountManager.mjs';
|
|
10
10
|
import { BrowserCacheLocation, INTERACTION_TYPE, InteractionType, ApiId, CacheLookupPolicy, DEFAULT_REQUEST, BrowserConstants, iFrameRenewalPolicies } from '../utils/BrowserConstants.mjs';
|
|
11
|
-
import { blockAPICallsBeforeInitialize, redirectPreflightCheck, preflightCheck as preflightCheck$1, blockNonBrowserEnvironment } from '../utils/BrowserUtils.mjs';
|
|
11
|
+
import { blockAPICallsBeforeInitialize, isInPopup, isInIframe, clearHash, redirectPreflightCheck, preflightCheck as preflightCheck$1, blockNonBrowserEnvironment } from '../utils/BrowserUtils.mjs';
|
|
12
|
+
import { cancelPendingPopupPollingResponse } from '../utils/PopupMonitor.mjs';
|
|
12
13
|
import { EventType } from '../event/EventType.mjs';
|
|
13
14
|
import { EventHandler } from '../event/EventHandler.mjs';
|
|
14
15
|
import { base64Decode } from '../encode/Base64Decode.mjs';
|
|
@@ -223,7 +224,32 @@ class StandardController {
|
|
|
223
224
|
* @returns
|
|
224
225
|
*/
|
|
225
226
|
async handleRedirectPromiseInternal(options) {
|
|
226
|
-
|
|
227
|
+
// Preserve the response for RedirectClient before removing it from the URL.
|
|
228
|
+
const responseString = options?.hash ||
|
|
229
|
+
(this.config.auth.OIDCOptions.responseMode ===
|
|
230
|
+
Constants.ResponseMode.QUERY
|
|
231
|
+
? window.location.search
|
|
232
|
+
: window.location.hash);
|
|
233
|
+
const anyClientInteractionInProgress = this.browserStorage.isInteractionInProgress(false);
|
|
234
|
+
const currentClientInteraction = this.browserStorage.isInteractionInProgress(true);
|
|
235
|
+
const isBridgeCallback = isInPopup() ||
|
|
236
|
+
(isInIframe() &&
|
|
237
|
+
!this.config.system.allowRedirectInIframe);
|
|
238
|
+
/*
|
|
239
|
+
* Clear recognized response fragments for:
|
|
240
|
+
* - Stale callbacks with no pending interaction.
|
|
241
|
+
* - This client's login callback, even if request setup or response validation fails.
|
|
242
|
+
* - This client's logout callback containing state, before the SIGNOUT early return.
|
|
243
|
+
* Leave another client's callback untouched. clearHash preserves query strings
|
|
244
|
+
* and application routes, and does nothing when no response fragment is present.
|
|
245
|
+
* Skip popup and non-redirect iframe callbacks: legacy apps may call HRP
|
|
246
|
+
* before their redirect bridge reads and broadcasts the response.
|
|
247
|
+
*/
|
|
248
|
+
if (!isBridgeCallback &&
|
|
249
|
+
(!anyClientInteractionInProgress || currentClientInteraction)) {
|
|
250
|
+
clearHash(window);
|
|
251
|
+
}
|
|
252
|
+
if (!currentClientInteraction) {
|
|
227
253
|
this.logger.info("0le6uv", "");
|
|
228
254
|
return null;
|
|
229
255
|
}
|
|
@@ -231,7 +257,7 @@ class StandardController {
|
|
|
231
257
|
if (interactionType === INTERACTION_TYPE.SIGNOUT) {
|
|
232
258
|
this.logger.verbose("1ywcv2", "");
|
|
233
259
|
this.browserStorage.setInteractionInProgress(false);
|
|
234
|
-
return
|
|
260
|
+
return null;
|
|
235
261
|
}
|
|
236
262
|
const loggedInAccounts = this.getAllAccounts();
|
|
237
263
|
const platformBrokerRequest = this.browserStorage.getCachedNativeRequest();
|
|
@@ -261,7 +287,9 @@ class StandardController {
|
|
|
261
287
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
262
288
|
this.logger.trace("0znzs5", correlationId);
|
|
263
289
|
const redirectClient = this.createRedirectClient(correlationId);
|
|
264
|
-
redirectResponse = invokeAsync(redirectClient.handleRedirectPromise.bind(redirectClient), HandleRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(standardRequest, codeVerifier, rootMeasurement, options
|
|
290
|
+
redirectResponse = invokeAsync(redirectClient.handleRedirectPromise.bind(redirectClient), HandleRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(standardRequest, codeVerifier, rootMeasurement, options?.hash
|
|
291
|
+
? options
|
|
292
|
+
: { ...options, hash: responseString });
|
|
265
293
|
}
|
|
266
294
|
}
|
|
267
295
|
catch (e) {
|
|
@@ -409,6 +437,9 @@ class StandardController {
|
|
|
409
437
|
this.logger.verbose("0ch87b", correlationId);
|
|
410
438
|
preflightCheck(this.initialized, atPopupMeasurement, this.config, request);
|
|
411
439
|
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN, request.overrideInteractionInProgress, correlationId);
|
|
440
|
+
if (request.overrideInteractionInProgress) {
|
|
441
|
+
cancelPendingPopupPollingResponse(this.logger);
|
|
442
|
+
}
|
|
412
443
|
}
|
|
413
444
|
catch (e) {
|
|
414
445
|
// Since this function is syncronous we need to reject
|