@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
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { AuthError, Constants } from '@azure/msal-common/browser';
|
|
4
|
+
import { clearAuthResponseFromUrl } from './BrowserUtils.mjs';
|
|
5
|
+
import { timedOut } from '../error/BrowserAuthErrorCodes.mjs';
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
+
* Licensed under the MIT License.
|
|
10
|
+
*/
|
|
11
|
+
const IFRAME_POLL_INTERVAL_MS = 50;
|
|
12
|
+
const DEFAULT_IFRAME_TIMEOUT_MS = 10000;
|
|
13
|
+
/**
|
|
14
|
+
* Monitors an iframe content window until it loads a URL with a known hash, or hits a specified timeout.
|
|
15
|
+
*
|
|
16
|
+
* @param iframe - The hidden iframe to monitor.
|
|
17
|
+
* @param timeout - Maximum time (ms) to wait for navigation before rejecting with
|
|
18
|
+
* `monitor_window_timeout`.
|
|
19
|
+
* @param logger - Logger instance.
|
|
20
|
+
* @param correlationId
|
|
21
|
+
* @param responseMode - `"query"` or `"fragment"` — determines whether to read
|
|
22
|
+
* `location.search` or `location.hash`. Any value other than `"query"` is
|
|
23
|
+
* treated as fragment.
|
|
24
|
+
*/
|
|
25
|
+
async function monitorIframeForHash(iframe, timeout, logger, correlationId, responseMode) {
|
|
26
|
+
return new Promise((resolve, reject) => {
|
|
27
|
+
if (timeout < DEFAULT_IFRAME_TIMEOUT_MS) {
|
|
28
|
+
logger.warning(`137tec ${timeout} ${DEFAULT_IFRAME_TIMEOUT_MS}`, correlationId);
|
|
29
|
+
}
|
|
30
|
+
/*
|
|
31
|
+
* Polling for iframes can be purely timing based,
|
|
32
|
+
* since we don't need to account for interaction.
|
|
33
|
+
*/
|
|
34
|
+
const timeoutId = window.setTimeout(() => {
|
|
35
|
+
window.clearInterval(intervalId);
|
|
36
|
+
reject(new AuthError(timedOut, correlationId, undefined, "monitor_window_timeout"));
|
|
37
|
+
}, timeout);
|
|
38
|
+
const intervalId = window.setInterval(() => {
|
|
39
|
+
const contentWindow = iframe.contentWindow;
|
|
40
|
+
if (!contentWindow) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
let href = "";
|
|
44
|
+
try {
|
|
45
|
+
/*
|
|
46
|
+
* Will throw if cross origin,
|
|
47
|
+
* which should be caught and ignored
|
|
48
|
+
* since we need the interval to keep running while on STS UI.
|
|
49
|
+
*/
|
|
50
|
+
href = contentWindow.location.href;
|
|
51
|
+
}
|
|
52
|
+
catch (e) { }
|
|
53
|
+
if (!href || href === "about:blank") {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const responseString = responseMode === Constants.ResponseMode.QUERY
|
|
57
|
+
? contentWindow.location.search
|
|
58
|
+
: contentWindow.location.hash;
|
|
59
|
+
window.clearTimeout(timeoutId);
|
|
60
|
+
window.clearInterval(intervalId);
|
|
61
|
+
resolve(responseString);
|
|
62
|
+
}, IFRAME_POLL_INTERVAL_MS);
|
|
63
|
+
}).finally(() => {
|
|
64
|
+
/*
|
|
65
|
+
* Strip auth-response params from the iframe URL. The monitor owns the
|
|
66
|
+
* iframe for the duration of the poll, mirroring cleanPopup in
|
|
67
|
+
* PopupMonitor.
|
|
68
|
+
*/
|
|
69
|
+
try {
|
|
70
|
+
if (iframe.contentWindow) {
|
|
71
|
+
clearAuthResponseFromUrl(iframe.contentWindow);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
// Iframe may already be navigated away or cross-origin; ignore.
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { DEFAULT_IFRAME_TIMEOUT_MS, IFRAME_POLL_INTERVAL_MS, monitorIframeForHash };
|
|
81
|
+
//# sourceMappingURL=IframeMonitor.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IframeMonitor.mjs","sources":["../../src/utils/IframeMonitor.ts"],"sourcesContent":[null],"names":["BrowserAuthErrorCodes.timedOut"],"mappings":";;;;;;AAAA;;;AAGG;AAMI,MAAM,uBAAuB,GAAG,GAAG;AACnC,MAAM,yBAAyB,GAAG,MAAM;AAE/C;;;;;;;;;;;AAWG;AACI,eAAe,oBAAoB,CACtC,MAAyB,EACzB,OAAe,EACf,MAAc,EACd,aAAqB,EACrB,YAAoB,EAAA;IAEpB,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,KAAI;QAC3C,IAAI,OAAO,GAAG,yBAAyB,EAAE;YACrC,MAAM,CAAC,OAAO,CACV,CAAA,OAAA,EAAA,OAAA,CAAA,CAAA,EAAA,yBAA4C,CAAA,CAAA,EAAA,aAAO,CAAA,CAAA;AAG1D,QAAA,CAAA;AAED;;;AAGG;AACH,QAAA,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,CAAC,MAAK;AACrC,YAAA,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;AACjC,YAAA,MAAM,CACF,IAAI,SAAS,CACTA,QAA8B,EAC9B,aAAa,EACb,SAAS,EACT,wBAAwB,CAC3B,CACJ,CAAC;QACN,CAAC,EAAE,OAAO,CAAC,CAAC;AAEZ,QAAA,MAAM,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC,MAAK;AACvC,YAAA,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;YAC3C,IAAI,CAAC,aAAa,EAAE;gBAChB,OAAO;AACV,YAAA,CAAA;YAED,IAAI,IAAI,GAAW,EAAE,CAAC;YACtB,IAAI;AACA;;;;AAIG;AACH,gBAAA,IAAI,GAAG,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC;AACtC,YAAA,CAAA;YAAC,OAAO,CAAC,EAAE,EAAA,CAAE;AAEd,YAAA,IAAI,CAAC,IAAI,IAAI,IAAI,KAAK,aAAa,EAAE;gBACjC,OAAO;AACV,YAAA,CAAA;YAED,MAAM,cAAc,GAChB,YAAY,KAAK,SAAS,CAAC,YAAY,CAAC,KAAK;AACzC,kBAAE,aAAa,CAAC,QAAQ,CAAC,MAAM;AAC/B,kBAAE,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC;AACtC,YAAA,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;AAC/B,YAAA,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YACjC,OAAO,CAAC,cAAc,CAAC,CAAC;QAC5B,CAAC,EAAE,uBAAuB,CAAC,CAAC;AAChC,IAAA,CAAC,CAAC,CAAC,OAAO,CAAC,MAAK;AACZ;;;;AAIG;QACH,IAAI;YACA,IAAI,MAAM,CAAC,aAAa,EAAE;AACtB,gBAAA,wBAAwB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AAClD,YAAA,CAAA;AACJ,QAAA,CAAA;QAAC,MAAM;;AAEP,QAAA,CAAA;AACL,IAAA,CAAC,CAAC,CAAC;AACP;;;;"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { Constants } from '@azure/msal-common/browser';
|
|
4
|
+
import { BrowserAuthError } from '../error/BrowserAuthError.mjs';
|
|
5
|
+
import { userCancelled, interactionInProgressCancelled } from '../error/BrowserAuthErrorCodes.mjs';
|
|
6
|
+
import { clearAuthResponseFromUrl } from './BrowserUtils.mjs';
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
10
|
+
* Licensed under the MIT License.
|
|
11
|
+
*/
|
|
12
|
+
const POPUP_POLL_INTERVAL_MS = 30;
|
|
13
|
+
let activePopupPoller;
|
|
14
|
+
/**
|
|
15
|
+
* Cancels legacy popup polling when an interaction is superseded.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
* @param logger Logger for the interaction.
|
|
19
|
+
*/
|
|
20
|
+
function cancelPendingPopupPollingResponse(logger) {
|
|
21
|
+
if (activePopupPoller) {
|
|
22
|
+
logger.verbose("0g9n3p", activePopupPoller.correlationId);
|
|
23
|
+
activePopupPoller.cancel();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Monitors a popup window for a URL change to the same origin as the parent application.
|
|
28
|
+
* Polls the popup at a specified interval until it is redirected back to the application,
|
|
29
|
+
* closed by the user, or a navigation to a same-origin URL is detected. Once a same-origin
|
|
30
|
+
* URL is detected, extracts the response string (query or hash) and resolves the promise.
|
|
31
|
+
*
|
|
32
|
+
* @param popupWindow - The popup window to monitor for navigation.
|
|
33
|
+
* @param popupWindowParent - The parent window that opened the popup.
|
|
34
|
+
* @param responseMode - Response mode (`"query"` | `"fragment"`) determines whether
|
|
35
|
+
* to read `location.search` or `location.hash` from the popup once on the same
|
|
36
|
+
* origin. Any value other than `"query"` is treated as fragment.
|
|
37
|
+
* @param logger - Logger instance.
|
|
38
|
+
* @param unloadWindow - Event handler to remove from the parent window on cleanup.
|
|
39
|
+
* @param correlationId
|
|
40
|
+
*/
|
|
41
|
+
async function monitorPopupForHash(popupWindow, popupWindowParent, responseMode, logger, unloadWindow, correlationId) {
|
|
42
|
+
let poller;
|
|
43
|
+
return new Promise((resolve, reject) => {
|
|
44
|
+
logger.verbose("0cp91u", correlationId);
|
|
45
|
+
const intervalId = window.setInterval(() => {
|
|
46
|
+
if (popupWindow.closed) {
|
|
47
|
+
logger.error("0n69wb", correlationId);
|
|
48
|
+
window.clearInterval(intervalId);
|
|
49
|
+
reject(new BrowserAuthError(userCancelled, correlationId));
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
let href = "";
|
|
53
|
+
try {
|
|
54
|
+
/*
|
|
55
|
+
* Will throw if cross origin,
|
|
56
|
+
* which should be caught and ignored
|
|
57
|
+
* since we need the interval to keep running while on STS UI.
|
|
58
|
+
*/
|
|
59
|
+
href = popupWindow.location.href;
|
|
60
|
+
}
|
|
61
|
+
catch (e) { }
|
|
62
|
+
// Don't process blank pages or cross domain
|
|
63
|
+
if (!href || href === "about:blank") {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
window.clearInterval(intervalId);
|
|
67
|
+
let responseString;
|
|
68
|
+
if (responseMode === Constants.ResponseMode.QUERY) {
|
|
69
|
+
responseString = popupWindow.location.search;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
responseString = popupWindow.location.hash;
|
|
73
|
+
}
|
|
74
|
+
logger.verbose("0po9er", correlationId);
|
|
75
|
+
resolve(responseString);
|
|
76
|
+
}, POPUP_POLL_INTERVAL_MS);
|
|
77
|
+
poller = {
|
|
78
|
+
correlationId,
|
|
79
|
+
cancel: () => {
|
|
80
|
+
window.clearInterval(intervalId);
|
|
81
|
+
if (activePopupPoller === poller) {
|
|
82
|
+
activePopupPoller = undefined;
|
|
83
|
+
}
|
|
84
|
+
reject(new BrowserAuthError(interactionInProgressCancelled, correlationId));
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
activePopupPoller = poller;
|
|
88
|
+
}).finally(() => {
|
|
89
|
+
if (poller && activePopupPoller === poller) {
|
|
90
|
+
activePopupPoller = undefined;
|
|
91
|
+
}
|
|
92
|
+
cleanPopup(popupWindow, popupWindowParent, unloadWindow);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Performs cleanup operations after popup authentication.
|
|
97
|
+
* Strips auth-response params (code/state) from the popup URL while it is still
|
|
98
|
+
* open, closes the popup window, and removes the 'beforeunload' event listener
|
|
99
|
+
* from the parent window.
|
|
100
|
+
*
|
|
101
|
+
* @param popupWindow - The popup window to be closed.
|
|
102
|
+
* @param popupWindowParent - The parent window from which the event listener will be removed.
|
|
103
|
+
* @param unloadWindow - The event handler function to remove.
|
|
104
|
+
*/
|
|
105
|
+
function cleanPopup(popupWindow, popupWindowParent, unloadWindow) {
|
|
106
|
+
if (!popupWindow.closed) {
|
|
107
|
+
try {
|
|
108
|
+
clearAuthResponseFromUrl(popupWindow);
|
|
109
|
+
}
|
|
110
|
+
catch {
|
|
111
|
+
// Popup may have become cross-origin or otherwise inaccessible; ignore.
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
popupWindow.close();
|
|
115
|
+
popupWindowParent.removeEventListener("beforeunload", unloadWindow);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export { POPUP_POLL_INTERVAL_MS, cancelPendingPopupPollingResponse, cleanPopup, monitorPopupForHash };
|
|
119
|
+
//# sourceMappingURL=PopupMonitor.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopupMonitor.mjs","sources":["../../src/utils/PopupMonitor.ts"],"sourcesContent":[null],"names":["BrowserAuthErrorCodes.userCancelled","BrowserAuthErrorCodes.interactionInProgressCancelled"],"mappings":";;;;;;;AAAA;;;AAGG;AAOI,MAAM,sBAAsB,GAAG,GAAG;AAEzC,IAAI,iBAEW,CAAC;AAChB;;;;;AAKG;AACG,SAAU,iCAAiC,CAAC,MAAc,EAAA;AAC5D,IAAA,IAAI,iBAAiB,EAAE;QACnB,MAAM,CAAC,OAAO,CACV,QAAA,EAAA,iBAAA,CAAA,aAAA,CAAA,CAAA;QAGJ,iBAAiB,CAAC,MAAM,EAAE,CAAC;AAC9B,IAAA,CAAA;AACL,CAAC;AAED;;;;;;;;;;;;;;AAcG;AACI,eAAe,mBAAmB,CACrC,WAAmB,EACnB,iBAAyB,EACzB,YAAoB,EACpB,MAAc,EACd,YAAgC,EAChC,aAAqB,EAAA;AAErB,IAAA,IAAI,MAAiE,CAAC;IACtE,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,KAAI;AAC3C,QAAA,MAAM,CAAC,OAAO,CACV;AAIJ,QAAA,MAAM,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC,MAAK;YACvC,IAAI,WAAW,CAAC,MAAM,EAAE;AACpB,gBAAA,MAAM,CAAC,KAAK,CACR;AAGJ,gBAAA,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;gBACjC,MAAM,CACF,IAAI,gBAAgB,CAChBA,aAAmC,EACnC,aAAa,CAChB,CACJ,CAAC;gBACF,OAAO;AACV,YAAA,CAAA;YAED,IAAI,IAAI,GAAG,EAAE,CAAC;YACd,IAAI;AACA;;;;AAIG;AACH,gBAAA,IAAI,GAAG,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC;AACpC,YAAA,CAAA;YAAC,OAAO,CAAC,EAAE,EAAA,CAAE;;AAGd,YAAA,IAAI,CAAC,IAAI,IAAI,IAAI,KAAK,aAAa,EAAE;gBACjC,OAAO;AACV,YAAA,CAAA;AACD,YAAA,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;AAEjC,YAAA,IAAI,cAAsB,CAAC;AAC3B,YAAA,IAAI,YAAY,KAAK,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE;AAC/C,gBAAA,cAAc,GAAG,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC;AAChD,YAAA,CAAA;AAAM,iBAAA;AACH,gBAAA,cAAc,GAAG,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC9C,YAAA,CAAA;AAED,YAAA,MAAM,CAAC,OAAO,CACV;YAIJ,OAAO,CAAC,cAAc,CAAC,CAAC;QAC5B,CAAC,EAAE,sBAAsB,CAAC,CAAC;AAE3B,QAAA,MAAM,GAAG;YACL,aAAa;YACb,MAAM,EAAE,MAAK;AACT,gBAAA,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;gBACjC,IAAI,iBAAiB,KAAK,MAAM,EAAE;oBAC9B,iBAAiB,GAAG,SAAS,CAAC;AACjC,gBAAA,CAAA;gBACD,MAAM,CACF,IAAI,gBAAgB,CAChBC,8BAAoD,EACpD,aAAa,CAChB,CACJ,CAAC;YACN,CAAC;SACJ,CAAC;QACF,iBAAiB,GAAG,MAAM,CAAC;AAC/B,IAAA,CAAC,CAAC,CAAC,OAAO,CAAC,MAAK;AACZ,QAAA,IAAI,MAAM,IAAI,iBAAiB,KAAK,MAAM,EAAE;YACxC,iBAAiB,GAAG,SAAS,CAAC;AACjC,QAAA,CAAA;AACD,QAAA,UAAU,CAAC,WAAW,EAAE,iBAAiB,EAAE,YAAY,CAAC,CAAC;AAC7D,IAAA,CAAC,CAAC,CAAC;AACP,CAAC;AAED;;;;;;;;;AASG;SACa,UAAU,CACtB,WAAmB,EACnB,iBAAyB,EACzB,YAAgC,EAAA;AAEhC,IAAA,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE;QACrB,IAAI;YACA,wBAAwB,CAAC,WAAW,CAAC,CAAC;AACzC,QAAA,CAAA;QAAC,MAAM;;AAEP,QAAA,CAAA;AACJ,IAAA,CAAA;IACD,WAAW,CAAC,KAAK,EAAE,CAAC;AAEpB,IAAA,iBAAiB,CAAC,mBAAmB,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;AACxE;;;;"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.27.0 2026-10-27 */
|
|
2
|
+
'use strict';
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
+
* Licensed under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* `window.origin` of a document with an opaque origin, e.g. one sandboxed
|
|
9
|
+
* without `allow-same-origin`. Read from `window.origin`, not
|
|
10
|
+
* `location.origin`, which reports the real host even when sandboxed.
|
|
11
|
+
*/
|
|
12
|
+
const OPAQUE_ORIGIN = "null";
|
|
13
|
+
/**
|
|
14
|
+
* Returns `true` when every ancestor browsing context is same-origin with
|
|
15
|
+
* `win`. A top-level document has no ancestors, so it always passes.
|
|
16
|
+
*/
|
|
17
|
+
function allAncestorsSameOrigin(win) {
|
|
18
|
+
try {
|
|
19
|
+
// Sandboxed: no origin to compare ancestors against.
|
|
20
|
+
if (win.origin === OPAQUE_ORIGIN) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
let current = win;
|
|
24
|
+
// `window.parent` is self-referential at the top level, never falsy.
|
|
25
|
+
while (current !== current.parent) {
|
|
26
|
+
current = current.parent;
|
|
27
|
+
// Throws SecurityError if this ancestor is cross-origin.
|
|
28
|
+
void current.location.href;
|
|
29
|
+
}
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Returns `true` when the top-level window has no opener, or one that is
|
|
38
|
+
* same-origin with it.
|
|
39
|
+
*
|
|
40
|
+
* Reads the opener from `win.top`, not `win`: a framed document always reports
|
|
41
|
+
* `window.opener === null` and would pass while the top window's untrusted
|
|
42
|
+
* opener still holds a handle on it.
|
|
43
|
+
*/
|
|
44
|
+
function topOpenerIsSameOriginOrAbsent(win) {
|
|
45
|
+
try {
|
|
46
|
+
const top = win.top;
|
|
47
|
+
if (!top) {
|
|
48
|
+
// Detached from its browsing context; treat as unsafe.
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
const opener = top.opener;
|
|
52
|
+
if (!opener || opener === top) {
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
// Throws SecurityError if the opener is cross-origin.
|
|
56
|
+
void opener.location.href;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
catch {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Computes the `pocd` ("popup origin check done") authorize parameter value.
|
|
65
|
+
*
|
|
66
|
+
* `1` means no untrusted window can reach the popup, which is what lets Entra
|
|
67
|
+
* omit the `Cross-Origin-Opener-Policy` response header for the request.
|
|
68
|
+
*
|
|
69
|
+
* @param config Resolved browser configuration.
|
|
70
|
+
* @param win Window whose hosting environment is being checked. Defaults to the app window.
|
|
71
|
+
* @returns `1` when the check passes, otherwise `0`.
|
|
72
|
+
*/
|
|
73
|
+
function computePocd(config, win = typeof window !== "undefined" ? window : undefined) {
|
|
74
|
+
/*
|
|
75
|
+
* Only an explicit false opts out; anything else computes the check, so an
|
|
76
|
+
* unresolved config fails closed rather than asserting pocd=1.
|
|
77
|
+
*/
|
|
78
|
+
if (config.auth.originCheck === false) {
|
|
79
|
+
return 1;
|
|
80
|
+
}
|
|
81
|
+
if (!win || !allAncestorsSameOrigin(win)) {
|
|
82
|
+
return 0;
|
|
83
|
+
}
|
|
84
|
+
return topOpenerIsSameOriginOrAbsent(win) ? 1 : 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { allAncestorsSameOrigin, computePocd, topOpenerIsSameOriginOrAbsent };
|
|
88
|
+
//# sourceMappingURL=PopupOriginCheck.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopupOriginCheck.mjs","sources":["../../src/utils/PopupOriginCheck.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAIH;;;;AAIG;AACH,MAAM,aAAa,GAAG,MAAM,CAAC;AAE7B;;;AAGG;AACG,SAAU,sBAAsB,CAAC,GAAW,EAAA;IAC9C,IAAI;;AAEA,QAAA,IAAI,GAAG,CAAC,MAAM,KAAK,aAAa,EAAE;AAC9B,YAAA,OAAO,KAAK,CAAC;AAChB,QAAA,CAAA;QACD,IAAI,OAAO,GAAW,GAAG,CAAC;;AAE1B,QAAA,OAAO,OAAO,KAAK,OAAO,CAAC,MAAM,EAAE;AAC/B,YAAA,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;;AAEzB,YAAA,KAAK,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC9B,QAAA,CAAA;AACD,QAAA,OAAO,IAAI,CAAC;AACf,IAAA,CAAA;IAAC,MAAM;AACJ,QAAA,OAAO,KAAK,CAAC;AAChB,IAAA,CAAA;AACL,CAAC;AAED;;;;;;;AAOG;AACG,SAAU,6BAA6B,CAAC,GAAW,EAAA;IACrD,IAAI;AACA,QAAA,MAAM,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;QACpB,IAAI,CAAC,GAAG,EAAE;;AAEN,YAAA,OAAO,KAAK,CAAC;AAChB,QAAA,CAAA;AAED,QAAA,MAAM,MAAM,GAAG,GAAG,CAAC,MAAmC,CAAC;AACvD,QAAA,IAAI,CAAC,MAAM,IAAI,MAAM,KAAK,GAAG,EAAE;AAC3B,YAAA,OAAO,IAAI,CAAC;AACf,QAAA,CAAA;;AAGD,QAAA,KAAK,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC1B,QAAA,OAAO,IAAI,CAAC;AACf,IAAA,CAAA;IAAC,MAAM;AACJ,QAAA,OAAO,KAAK,CAAC;AAChB,IAAA,CAAA;AACL,CAAC;AAED;;;;;;;;;AASG;SACa,WAAW,CACvB,MAA4B,EAC5B,MAA0B,OAAO,MAAM,KAAK,WAAW,GAAG,MAAM,GAAG,SAAS,EAAA;AAE5E;;;AAGG;AACH,IAAA,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,KAAK,KAAK,EAAE;AACnC,QAAA,OAAO,CAAC,CAAC;AACZ,IAAA,CAAA;IAED,IAAI,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE;AACtC,QAAA,OAAO,CAAC,CAAC;AACZ,IAAA,CAAA;AAED,IAAA,OAAO,6BAA6B,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACtD;;;;"}
|
|
@@ -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 { AuthError, ClientAuthError, ClientAuthErrorCodes, ServerError, InteractionRequiredAuthError } from '@azure/msal-common/browser';
|
|
4
4
|
import { WebBrokerBridgeErrorCode } from './WebBrokerBridgeError.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-10-
|
|
3
|
-
"packageVersion": "5.
|
|
4
|
-
"totalStrings":
|
|
2
|
+
"timestamp": "2026-10-27T18:19:21.204Z",
|
|
3
|
+
"packageVersion": "5.27.0",
|
|
4
|
+
"totalStrings": 498,
|
|
5
5
|
"mappings": {
|
|
6
6
|
"0yfud8": {
|
|
7
7
|
"message": "Failed to get access token from cache.",
|
|
@@ -303,10 +303,6 @@
|
|
|
303
303
|
"message": "Requesting challenge for the selected V2 method.",
|
|
304
304
|
"level": "verbose"
|
|
305
305
|
},
|
|
306
|
-
"0ax1kt": {
|
|
307
|
-
"message": "Failed to request V2 MFA challenge. Error: '${error}'.",
|
|
308
|
-
"level": "errorPii"
|
|
309
|
-
},
|
|
310
306
|
"0qvjzk": {
|
|
311
307
|
"message": "Failed to submit V2 sign-in password. Error: '${error}'.",
|
|
312
308
|
"level": "errorPii"
|
|
@@ -747,6 +743,26 @@
|
|
|
747
743
|
"message": "BrowserUtils.cancelPendingBridgeResponse - Cancelling pending bridge monitor",
|
|
748
744
|
"level": "verbose"
|
|
749
745
|
},
|
|
746
|
+
"0po9er": {
|
|
747
|
+
"message": "PopupMonitor.monitorPopupForHash - popup window is on same origin as caller",
|
|
748
|
+
"level": "verbose"
|
|
749
|
+
},
|
|
750
|
+
"0n69wb": {
|
|
751
|
+
"message": "PopupMonitor.monitorPopupForHash - window closed",
|
|
752
|
+
"level": "error"
|
|
753
|
+
},
|
|
754
|
+
"0cp91u": {
|
|
755
|
+
"message": "PopupMonitor.monitorPopupForHash - polling started",
|
|
756
|
+
"level": "verbose"
|
|
757
|
+
},
|
|
758
|
+
"0g9n3p": {
|
|
759
|
+
"message": "PopupMonitor.cancelPendingPopupPollingResponse - Cancelling pending popup poller",
|
|
760
|
+
"level": "verbose"
|
|
761
|
+
},
|
|
762
|
+
"137tec": {
|
|
763
|
+
"message": "system.iframeBridgeTimeout set to lower (${timeout}ms) than the default (${DEFAULT_IFRAME_TIMEOUT_MS}ms). This may result in timeouts.",
|
|
764
|
+
"level": "warning"
|
|
765
|
+
},
|
|
750
766
|
"1ysax9": {
|
|
751
767
|
"message": "Introspect endpoint called for MFA auth methods.",
|
|
752
768
|
"level": "verbose"
|
|
@@ -1819,6 +1835,10 @@
|
|
|
1819
1835
|
"message": "initializeLogoutRequest called",
|
|
1820
1836
|
"level": "verbose"
|
|
1821
1837
|
},
|
|
1838
|
+
"0wirye": {
|
|
1839
|
+
"message": "Safari detected. Falling back from EAR to authorization code flow.",
|
|
1840
|
+
"level": "verbose"
|
|
1841
|
+
},
|
|
1822
1842
|
"1d05g9": {
|
|
1823
1843
|
"message": "PopupRelay.waitForPopupRelayResponse - started",
|
|
1824
1844
|
"level": "verbose"
|