@azure/msal-browser 5.25.1 → 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 +7 -2
- package/dist/controllers/NestedAppAuthController.mjs.map +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 +49 -19
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +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 +8 -7
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +4 -3
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +174 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +67 -17
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +3 -4
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +7 -15
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +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 -5
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +3 -2
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs.map +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 +61 -52
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +6 -3
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +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 -2
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +12 -10
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +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 +3 -3
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs.map +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 +3 -7
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +2 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs.map +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 +8 -2
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs.map +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 +2 -11
- package/dist/custom_auth/index.mjs.map +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 -3
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +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 +5 -5
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +5 -16
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs +35 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs.map +1 -0
- 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 -3
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +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 -3
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +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 +31 -3
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +5 -5
- 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 +4 -3
- package/dist/interaction_client/SilentIframeClient.mjs.map +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 +27 -7
- 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 +9 -3
- package/dist/request/SilentRequestHelpers.mjs.map +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 +53 -0
- package/dist/utils/BrowserDetection.mjs.map +1 -0
- 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 +27 -7
- package/lib/custom-auth-path/msal-custom-auth.cjs +1157 -718
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +1157 -718
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +27 -3
- package/lib/msal-browser.cjs +678 -134
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +678 -134
- 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/NestedAppAuthController.ts +6 -1
- package/src/controllers/StandardController.ts +46 -3
- package/src/custom_auth/CustomAuthActionInputs.ts +16 -6
- package/src/custom_auth/controller/CustomAuthStandardController.ts +78 -17
- package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +18 -30
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +1 -0
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +239 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +2 -5
- package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +13 -10
- package/src/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.ts +19 -0
- package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +3 -6
- package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +4 -6
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +114 -17
- package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +6 -3
- package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +17 -19
- package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +5 -5
- package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +0 -4
- package/src/custom_auth/core/error/CustomAuthApiError.ts +2 -1
- package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +3 -4
- package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +75 -68
- package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +6 -3
- package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +2 -4
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +0 -1
- package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +17 -15
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.ts +1 -1
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +3 -11
- package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +2 -3
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.ts +1 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +2 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +1 -1
- package/src/custom_auth/core/utils/ArgumentValidator.ts +13 -0
- package/src/custom_auth/index.ts +4 -14
- package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +6 -10
- package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +3 -6
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +2 -4
- package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +2 -4
- package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +5 -4
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +4 -23
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.ts +56 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +1 -5
- package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +2 -5
- package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +0 -2
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +0 -2
- package/src/interaction_client/PopupClient.ts +45 -1
- package/src/interaction_client/RedirectClient.ts +9 -5
- package/src/interaction_client/SilentIframeClient.ts +9 -2
- package/src/interaction_client/StandardInteractionClient.ts +6 -0
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +34 -28
- package/src/request/SilentRequestHelpers.ts +11 -2
- package/src/utils/BrowserDetection.ts +85 -0
- 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/NestedAppAuthController.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthActionInputs.d.ts +16 -5
- package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +9 -11
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +90 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +1 -2
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +1 -2
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +8 -7
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts +13 -0
- package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +2 -3
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +5 -6
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +9 -6
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +2 -2
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +5 -3
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/error/CustomAuthApiError.d.ts +2 -1
- package/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +1 -3
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +2 -2
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +2 -2
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +2 -4
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts +0 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +2 -2
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -2
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts +2 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
- package/types/custom_auth/core/utils/ArgumentValidator.d.ts +1 -0
- package/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
- package/types/custom_auth/index.d.ts +3 -12
- package/types/custom_auth/index.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +5 -7
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +4 -6
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +3 -4
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +3 -4
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +4 -9
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts +9 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +1 -2
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +1 -2
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +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/SilentIframeClient.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/request/SilentRequestHelpers.d.ts +1 -1
- package/types/request/SilentRequestHelpers.d.ts.map +1 -1
- package/types/utils/BrowserDetection.d.ts +17 -0
- package/types/utils/BrowserDetection.d.ts.map +1 -0
- 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/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs +0 -102
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs.map +0 -1
- package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs +0 -20
- package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs.map +0 -1
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +0 -36
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs.map +0 -1
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +0 -29
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs.map +0 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +0 -36
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs.map +0 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs +0 -61
- package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs.map +0 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs +0 -29
- package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs.map +0 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs +0 -18
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs.map +0 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +0 -37
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs.map +0 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +0 -23
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs.map +0 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs +0 -25
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs.map +0 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs +0 -33
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs.map +0 -1
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.ts +0 -146
- package/src/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.ts +0 -15
- package/src/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.ts +0 -33
- package/src/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.ts +0 -25
- package/src/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.ts +0 -18
- package/src/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.ts +0 -59
- package/src/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.ts +0 -76
- package/src/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.ts +0 -25
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.ts +0 -13
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.ts +0 -35
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.ts +0 -19
- package/src/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.ts +0 -21
- package/src/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.ts +0 -32
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts +0 -40
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts +0 -11
- package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts +0 -23
- package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts +0 -18
- package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts +0 -7
- package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts +0 -17
- package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts +0 -18
- package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts.map +0 -1
- package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts +0 -18
- package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts.map +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts +0 -9
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts.map +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts +0 -22
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts.map +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts +0 -12
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts.map +0 -1
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts +0 -14
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts.map +0 -1
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts +0 -20
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts.map +0 -1
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,E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AC9B,UAAE,SAAS,CAAC,YAAY,CAAC,QAAQ,CAAC;AAC1C,IAAA,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,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,G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AAC3B;;;;"}
|
|
@@ -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 { 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';
|
|
@@ -94,7 +94,10 @@ class NestedAppAuthController {
|
|
|
94
94
|
const correlationId = validRequest.correlationId || createNewGuid();
|
|
95
95
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Popup, validRequest);
|
|
96
96
|
const atPopupMeasurement = this.performanceClient.startMeasurement(AcquireTokenPopup, correlationId);
|
|
97
|
-
atPopupMeasurement.add({
|
|
97
|
+
atPopupMeasurement.add({
|
|
98
|
+
nestedAppAuthRequest: true,
|
|
99
|
+
bridgeType: "NAA",
|
|
100
|
+
});
|
|
98
101
|
try {
|
|
99
102
|
enforceResourceParameter(this.config.auth.isMcp, validRequest);
|
|
100
103
|
const naaRequest = this.nestedAppAuthAdapter.toNaaTokenRequest(validRequest);
|
|
@@ -161,6 +164,7 @@ class NestedAppAuthController {
|
|
|
161
164
|
});
|
|
162
165
|
ssoSilentMeasurement.add({
|
|
163
166
|
nestedAppAuthRequest: true,
|
|
167
|
+
bridgeType: "NAA",
|
|
164
168
|
});
|
|
165
169
|
try {
|
|
166
170
|
enforceResourceParameter(this.config.auth.isMcp, validRequest);
|
|
@@ -215,6 +219,7 @@ class NestedAppAuthController {
|
|
|
215
219
|
const atsMeasurement = this.performanceClient.startMeasurement(AcquireTokenSilent, correlationId);
|
|
216
220
|
atsMeasurement?.add({
|
|
217
221
|
nestedAppAuthRequest: true,
|
|
222
|
+
bridgeType: "NAA",
|
|
218
223
|
});
|
|
219
224
|
// if the request has claims, we cannot look up in the cache
|
|
220
225
|
if (request.claims) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestedAppAuthController.mjs","sources":["../../src/controllers/NestedAppAuthController.ts"],"sourcesContent":[null],"names":["RootPerformanceEvents.AcquireTokenPopup","RootPerformanceEvents.SsoSilent","RootPerformanceEvents.AcquireTokenSilent","AccountManager.getAccount","AccountManager.getAllAccounts","AccountManager.setActiveAccount","AccountManager.getActiveAccount"],"mappings":";;;;;;;;;;;;;;;AAAA;;;AAGG;MA4DU,uBAAuB,CAAA;AA+BhC,IAAA,WAAA,CAAY,gBAA2C,EAAA;AACnD,QAAA,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC;QACrD,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,YAAA,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;AAC5B,QAAA,CAAA;AAAM,aAAA;AACH,YAAA,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;AAC3D,QAAA,CAAA;;AAGD,QAAA,IAAI,CAAC,MAAM,GAAG,gBAAgB,CAAC,SAAS,EAAE,CAAC;;QAG3C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC;;QAGhD,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC;;AAGtD,QAAA,IAAI,CAAC,aAAa,GAAG,gBAAgB,CAAC,oBAAoB,EAAE;AACxD,cAAE,IAAI,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC;cACxD,6BAA6B,CAAC;AACpC,QAAA,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,oBAAoB,EAAE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C;IACN,CAAC;AAED,IAAA,MAAM,YAAY,CACd,MAA4B,EAC5B,OAIkB,EAAA;QAElB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,QAAA,EAAA,MAAA,CAAA,aAA8B,CAAA,CAAA;AAElD,QAAA,MAAM,aAAa,GACf,kBAAkB,CAAC,kCAAkC,CACjD,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,kBAAkB,EACzB,MAAM,CAAC,WAAW,CACrB,CAAC;QACN,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAChC,aAAa,EACb,MAAM,CAAC,aAAa,EACpB,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,EACtC,KAAK,CAAC,YAAY,CACrB,CAAC;QACF,OAAO,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"NestedAppAuthController.mjs","sources":["../../src/controllers/NestedAppAuthController.ts"],"sourcesContent":[null],"names":["RootPerformanceEvents.AcquireTokenPopup","RootPerformanceEvents.SsoSilent","RootPerformanceEvents.AcquireTokenSilent","AccountManager.getAccount","AccountManager.getAllAccounts","AccountManager.setActiveAccount","AccountManager.getActiveAccount"],"mappings":";;;;;;;;;;;;;;;AAAA;;;AAGG;MA4DU,uBAAuB,CAAA;AA+BhC,IAAA,WAAA,CAAY,gBAA2C,EAAA;AACnD,QAAA,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC;QACrD,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,YAAA,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;AAC5B,QAAA,CAAA;AAAM,aAAA;AACH,YAAA,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;AAC3D,QAAA,CAAA;;AAGD,QAAA,IAAI,CAAC,MAA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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
|