@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
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
} from "@azure/msal-common/browser";
|
|
30
30
|
import * as BrowserPerformanceEvents from "../telemetry/BrowserPerformanceEvents.js";
|
|
31
31
|
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
32
|
+
import { computePocd } from "../utils/PopupOriginCheck.js";
|
|
32
33
|
import { ApiId, BrowserConstants } from "../utils/BrowserConstants.js";
|
|
33
34
|
import { version } from "../packageMetadata.js";
|
|
34
35
|
import { CryptoOps } from "../crypto/CryptoOps.js";
|
|
@@ -156,7 +157,17 @@ async function getStandardParameters(
|
|
|
156
157
|
): Promise<Map<string, string>> {
|
|
157
158
|
const parameters = AuthorizeProtocol.getStandardAuthorizeRequestParameters(
|
|
158
159
|
{ ...config.auth, authority: authority },
|
|
159
|
-
|
|
160
|
+
{
|
|
161
|
+
...request,
|
|
162
|
+
/*
|
|
163
|
+
* Computed here rather than per flow so every authorize request
|
|
164
|
+
* carries it — GET, POST and EAR, interactive and silent alike.
|
|
165
|
+
* A request may assert it instead when the topology, rather than
|
|
166
|
+
* the current window, is what makes the popup unreachable.
|
|
167
|
+
*/
|
|
168
|
+
popupOriginCheckDone:
|
|
169
|
+
request.popupOriginCheckDone ?? computePocd(config) === 1,
|
|
170
|
+
},
|
|
160
171
|
logger,
|
|
161
172
|
performanceClient
|
|
162
173
|
);
|
|
@@ -267,6 +278,26 @@ export type AuthorizeFormData = {
|
|
|
267
278
|
fields: Record<string, string>;
|
|
268
279
|
};
|
|
269
280
|
|
|
281
|
+
function getAuthorizeFormAction(
|
|
282
|
+
authority: Authority,
|
|
283
|
+
request: CommonAuthorizationUrlRequest,
|
|
284
|
+
parameters: Map<string, string>
|
|
285
|
+
): string {
|
|
286
|
+
const queryParams = new Map<string, string>();
|
|
287
|
+
RequestParameterBuilder.addExtraParameters(
|
|
288
|
+
queryParams,
|
|
289
|
+
request.extraQueryParameters || {}
|
|
290
|
+
);
|
|
291
|
+
if (parameters.has(AADServerParamKeys.POPUP_ORIGIN_CHECK_DONE)) {
|
|
292
|
+
queryParams.delete(AADServerParamKeys.POPUP_ORIGIN_CHECK_DONE);
|
|
293
|
+
}
|
|
294
|
+
RequestParameterBuilder.addCorrelationId(
|
|
295
|
+
queryParams,
|
|
296
|
+
request.correlationId
|
|
297
|
+
);
|
|
298
|
+
return AuthorizeProtocol.getAuthorizeUrl(authority, queryParams);
|
|
299
|
+
}
|
|
300
|
+
|
|
270
301
|
/**
|
|
271
302
|
* Builds the action URL + POST-body fields for the EAR /authorize form.
|
|
272
303
|
*/
|
|
@@ -309,19 +340,7 @@ export async function getEARFormData(
|
|
|
309
340
|
...request.extraParameters,
|
|
310
341
|
});
|
|
311
342
|
|
|
312
|
-
const
|
|
313
|
-
RequestParameterBuilder.addExtraParameters(
|
|
314
|
-
queryParams,
|
|
315
|
-
request.extraQueryParameters || {}
|
|
316
|
-
);
|
|
317
|
-
|
|
318
|
-
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
319
|
-
RequestParameterBuilder.addCorrelationId(
|
|
320
|
-
queryParams,
|
|
321
|
-
request.correlationId
|
|
322
|
-
);
|
|
323
|
-
|
|
324
|
-
const action = AuthorizeProtocol.getAuthorizeUrl(authority, queryParams);
|
|
343
|
+
const action = getAuthorizeFormAction(authority, request, parameters);
|
|
325
344
|
|
|
326
345
|
return { action, fields: Object.fromEntries(parameters) };
|
|
327
346
|
}
|
|
@@ -381,20 +400,7 @@ export async function getCodeFormData(
|
|
|
381
400
|
...request.extraParameters,
|
|
382
401
|
});
|
|
383
402
|
|
|
384
|
-
|
|
385
|
-
const queryParams = new Map<string, string>();
|
|
386
|
-
RequestParameterBuilder.addExtraParameters(
|
|
387
|
-
queryParams,
|
|
388
|
-
request.extraQueryParameters || {}
|
|
389
|
-
);
|
|
390
|
-
|
|
391
|
-
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
392
|
-
RequestParameterBuilder.addCorrelationId(
|
|
393
|
-
queryParams,
|
|
394
|
-
request.correlationId
|
|
395
|
-
);
|
|
396
|
-
|
|
397
|
-
const action = AuthorizeProtocol.getAuthorizeUrl(authority, queryParams);
|
|
403
|
+
const action = getAuthorizeFormAction(authority, request, parameters);
|
|
398
404
|
|
|
399
405
|
return { action, fields: Object.fromEntries(parameters) };
|
|
400
406
|
}
|
|
@@ -75,7 +75,7 @@ export function resolveSilentRequestPreparation(
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Extends the web thumbprint with silent-flow options while preserving caller-owned references.
|
|
79
79
|
*/
|
|
80
80
|
export function prepareWebSilentRequest({
|
|
81
81
|
request,
|
|
@@ -94,7 +94,16 @@ export function prepareWebSilentRequest({
|
|
|
94
94
|
);
|
|
95
95
|
|
|
96
96
|
return {
|
|
97
|
-
key: JSON.stringify(
|
|
97
|
+
key: JSON.stringify({
|
|
98
|
+
...thumbprint,
|
|
99
|
+
forceRefresh: !!request.forceRefresh,
|
|
100
|
+
cacheLookupPolicy:
|
|
101
|
+
request.cacheLookupPolicy ?? CacheLookupPolicy.Default,
|
|
102
|
+
extraParameters: canonicalizeStringDict(request.extraParameters),
|
|
103
|
+
extraQueryParameters: canonicalizeStringDict(
|
|
104
|
+
request.extraQueryParameters
|
|
105
|
+
),
|
|
106
|
+
}),
|
|
98
107
|
request,
|
|
99
108
|
account,
|
|
100
109
|
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
IPerformanceClient,
|
|
8
|
+
Logger,
|
|
9
|
+
ProtocolMode,
|
|
10
|
+
} from "@azure/msal-common/browser";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Returns true when the supplied user agent is using Safari
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export function isSafari(
|
|
18
|
+
userAgent: string = typeof navigator !== "undefined"
|
|
19
|
+
? navigator.userAgent
|
|
20
|
+
: ""
|
|
21
|
+
): boolean {
|
|
22
|
+
if (
|
|
23
|
+
/OPR\/|OPiOS|PhantomJS|SamsungBrowser|Edge|EdgiOS|EdgA/.test(userAgent)
|
|
24
|
+
) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const browserNavigator =
|
|
29
|
+
typeof navigator !== "undefined"
|
|
30
|
+
? (navigator as Navigator & {
|
|
31
|
+
userAgentData?: {
|
|
32
|
+
brands?: Array<{ brand?: string } | undefined>;
|
|
33
|
+
};
|
|
34
|
+
})
|
|
35
|
+
: undefined;
|
|
36
|
+
|
|
37
|
+
if (
|
|
38
|
+
/Edg/.test(userAgent) ||
|
|
39
|
+
browserNavigator?.userAgentData?.brands?.some(
|
|
40
|
+
(brand) => brand?.brand === "Microsoft Edge"
|
|
41
|
+
)
|
|
42
|
+
) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (/Electron|CriOS|Chrome|Trident|FxiOS|Firefox/.test(userAgent)) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return /Safari/.test(userAgent) || /AppleWebKit/.test(userAgent);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Returns true when EAR should be used for the current request.
|
|
55
|
+
*
|
|
56
|
+
* Safari cannot complete EAR's cross-origin form POST, so requests configured
|
|
57
|
+
* for EAR transparently use authorization code flow instead.
|
|
58
|
+
*
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export function shouldUseEar(
|
|
62
|
+
protocolMode: ProtocolMode,
|
|
63
|
+
logger: Logger,
|
|
64
|
+
performanceClient: IPerformanceClient,
|
|
65
|
+
correlationId: string,
|
|
66
|
+
userAgent?: string
|
|
67
|
+
): boolean {
|
|
68
|
+
if (protocolMode !== ProtocolMode.EAR) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (!isSafari(userAgent)) {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
logger.verbose(
|
|
77
|
+
"Safari detected. Falling back from EAR to authorization code flow.",
|
|
78
|
+
correlationId
|
|
79
|
+
);
|
|
80
|
+
performanceClient.addFields(
|
|
81
|
+
{ "ext.earFallbackReason": "safari" },
|
|
82
|
+
correlationId
|
|
83
|
+
);
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
@@ -144,9 +144,16 @@ export function parseAuthResponseFromUrl(): {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* Clears
|
|
147
|
+
* Clears a recognized authentication response fragment, preserving the query string.
|
|
148
|
+
* Assigns an empty hash, then removes the trailing # when history updates are available.
|
|
148
149
|
*/
|
|
149
150
|
export function clearHash(contentWindow: Window): void {
|
|
151
|
+
const serverParams = UrlUtils.getDeserializedResponse(
|
|
152
|
+
contentWindow.location.hash
|
|
153
|
+
);
|
|
154
|
+
if (!serverParams) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
150
157
|
// Office.js sets history.replaceState to null
|
|
151
158
|
contentWindow.location.hash = "";
|
|
152
159
|
if (typeof contentWindow.history.replaceState === "function") {
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { AuthError, Constants, Logger } from "@azure/msal-common/browser";
|
|
7
|
+
import { clearAuthResponseFromUrl } from "./BrowserUtils.js";
|
|
8
|
+
import * as BrowserAuthErrorCodes from "../error/BrowserAuthErrorCodes.js";
|
|
9
|
+
|
|
10
|
+
export const IFRAME_POLL_INTERVAL_MS = 50;
|
|
11
|
+
export const DEFAULT_IFRAME_TIMEOUT_MS = 10000;
|
|
12
|
+
|
|
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
|
+
export async function monitorIframeForHash(
|
|
26
|
+
iframe: HTMLIFrameElement,
|
|
27
|
+
timeout: number,
|
|
28
|
+
logger: Logger,
|
|
29
|
+
correlationId: string,
|
|
30
|
+
responseMode: string
|
|
31
|
+
): Promise<string> {
|
|
32
|
+
return new Promise<string>((resolve, reject) => {
|
|
33
|
+
if (timeout < DEFAULT_IFRAME_TIMEOUT_MS) {
|
|
34
|
+
logger.warning(
|
|
35
|
+
`system.iframeBridgeTimeout set to lower (${timeout}ms) than the default (${DEFAULT_IFRAME_TIMEOUT_MS}ms). This may result in timeouts.`,
|
|
36
|
+
correlationId
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/*
|
|
41
|
+
* Polling for iframes can be purely timing based,
|
|
42
|
+
* since we don't need to account for interaction.
|
|
43
|
+
*/
|
|
44
|
+
const timeoutId = window.setTimeout(() => {
|
|
45
|
+
window.clearInterval(intervalId);
|
|
46
|
+
reject(
|
|
47
|
+
new AuthError(
|
|
48
|
+
BrowserAuthErrorCodes.timedOut,
|
|
49
|
+
correlationId,
|
|
50
|
+
undefined,
|
|
51
|
+
"monitor_window_timeout"
|
|
52
|
+
)
|
|
53
|
+
);
|
|
54
|
+
}, timeout);
|
|
55
|
+
|
|
56
|
+
const intervalId = window.setInterval(() => {
|
|
57
|
+
const contentWindow = iframe.contentWindow;
|
|
58
|
+
if (!contentWindow) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
let href: string = "";
|
|
63
|
+
try {
|
|
64
|
+
/*
|
|
65
|
+
* Will throw if cross origin,
|
|
66
|
+
* which should be caught and ignored
|
|
67
|
+
* since we need the interval to keep running while on STS UI.
|
|
68
|
+
*/
|
|
69
|
+
href = contentWindow.location.href;
|
|
70
|
+
} catch (e) {}
|
|
71
|
+
|
|
72
|
+
if (!href || href === "about:blank") {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const responseString =
|
|
77
|
+
responseMode === Constants.ResponseMode.QUERY
|
|
78
|
+
? contentWindow.location.search
|
|
79
|
+
: contentWindow.location.hash;
|
|
80
|
+
window.clearTimeout(timeoutId);
|
|
81
|
+
window.clearInterval(intervalId);
|
|
82
|
+
resolve(responseString);
|
|
83
|
+
}, IFRAME_POLL_INTERVAL_MS);
|
|
84
|
+
}).finally(() => {
|
|
85
|
+
/*
|
|
86
|
+
* Strip auth-response params from the iframe URL. The monitor owns the
|
|
87
|
+
* iframe for the duration of the poll, mirroring cleanPopup in
|
|
88
|
+
* PopupMonitor.
|
|
89
|
+
*/
|
|
90
|
+
try {
|
|
91
|
+
if (iframe.contentWindow) {
|
|
92
|
+
clearAuthResponseFromUrl(iframe.contentWindow);
|
|
93
|
+
}
|
|
94
|
+
} catch {
|
|
95
|
+
// Iframe may already be navigated away or cross-origin; ignore.
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { Constants, Logger } from "@azure/msal-common/browser";
|
|
7
|
+
import { BrowserAuthError } from "../error/BrowserAuthError.js";
|
|
8
|
+
import * as BrowserAuthErrorCodes from "../error/BrowserAuthErrorCodes.js";
|
|
9
|
+
import { clearAuthResponseFromUrl } from "./BrowserUtils.js";
|
|
10
|
+
|
|
11
|
+
export const POPUP_POLL_INTERVAL_MS = 30;
|
|
12
|
+
|
|
13
|
+
let activePopupPoller:
|
|
14
|
+
| { correlationId: string; cancel: () => void }
|
|
15
|
+
| undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Cancels legacy popup polling when an interaction is superseded.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
* @param logger Logger for the interaction.
|
|
21
|
+
*/
|
|
22
|
+
export function cancelPendingPopupPollingResponse(logger: Logger): void {
|
|
23
|
+
if (activePopupPoller) {
|
|
24
|
+
logger.verbose(
|
|
25
|
+
"PopupMonitor.cancelPendingPopupPollingResponse - Cancelling pending popup poller",
|
|
26
|
+
activePopupPoller.correlationId
|
|
27
|
+
);
|
|
28
|
+
activePopupPoller.cancel();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Monitors a popup window for a URL change to the same origin as the parent application.
|
|
34
|
+
* Polls the popup at a specified interval until it is redirected back to the application,
|
|
35
|
+
* closed by the user, or a navigation to a same-origin URL is detected. Once a same-origin
|
|
36
|
+
* URL is detected, extracts the response string (query or hash) and resolves the promise.
|
|
37
|
+
*
|
|
38
|
+
* @param popupWindow - The popup window to monitor for navigation.
|
|
39
|
+
* @param popupWindowParent - The parent window that opened the popup.
|
|
40
|
+
* @param responseMode - Response mode (`"query"` | `"fragment"`) determines whether
|
|
41
|
+
* to read `location.search` or `location.hash` from the popup once on the same
|
|
42
|
+
* origin. Any value other than `"query"` is treated as fragment.
|
|
43
|
+
* @param logger - Logger instance.
|
|
44
|
+
* @param unloadWindow - Event handler to remove from the parent window on cleanup.
|
|
45
|
+
* @param correlationId
|
|
46
|
+
*/
|
|
47
|
+
export async function monitorPopupForHash(
|
|
48
|
+
popupWindow: Window,
|
|
49
|
+
popupWindowParent: Window,
|
|
50
|
+
responseMode: string,
|
|
51
|
+
logger: Logger,
|
|
52
|
+
unloadWindow: (e: Event) => void,
|
|
53
|
+
correlationId: string
|
|
54
|
+
): Promise<string> {
|
|
55
|
+
let poller: { correlationId: string; cancel: () => void } | undefined;
|
|
56
|
+
return new Promise<string>((resolve, reject) => {
|
|
57
|
+
logger.verbose(
|
|
58
|
+
"PopupMonitor.monitorPopupForHash - polling started",
|
|
59
|
+
correlationId
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
const intervalId = window.setInterval(() => {
|
|
63
|
+
if (popupWindow.closed) {
|
|
64
|
+
logger.error(
|
|
65
|
+
"PopupMonitor.monitorPopupForHash - window closed",
|
|
66
|
+
correlationId
|
|
67
|
+
);
|
|
68
|
+
window.clearInterval(intervalId);
|
|
69
|
+
reject(
|
|
70
|
+
new BrowserAuthError(
|
|
71
|
+
BrowserAuthErrorCodes.userCancelled,
|
|
72
|
+
correlationId
|
|
73
|
+
)
|
|
74
|
+
);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
let href = "";
|
|
79
|
+
try {
|
|
80
|
+
/*
|
|
81
|
+
* Will throw if cross origin,
|
|
82
|
+
* which should be caught and ignored
|
|
83
|
+
* since we need the interval to keep running while on STS UI.
|
|
84
|
+
*/
|
|
85
|
+
href = popupWindow.location.href;
|
|
86
|
+
} catch (e) {}
|
|
87
|
+
|
|
88
|
+
// Don't process blank pages or cross domain
|
|
89
|
+
if (!href || href === "about:blank") {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
window.clearInterval(intervalId);
|
|
93
|
+
|
|
94
|
+
let responseString: string;
|
|
95
|
+
if (responseMode === Constants.ResponseMode.QUERY) {
|
|
96
|
+
responseString = popupWindow.location.search;
|
|
97
|
+
} else {
|
|
98
|
+
responseString = popupWindow.location.hash;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
logger.verbose(
|
|
102
|
+
"PopupMonitor.monitorPopupForHash - popup window is on same origin as caller",
|
|
103
|
+
correlationId
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
resolve(responseString);
|
|
107
|
+
}, POPUP_POLL_INTERVAL_MS);
|
|
108
|
+
|
|
109
|
+
poller = {
|
|
110
|
+
correlationId,
|
|
111
|
+
cancel: () => {
|
|
112
|
+
window.clearInterval(intervalId);
|
|
113
|
+
if (activePopupPoller === poller) {
|
|
114
|
+
activePopupPoller = undefined;
|
|
115
|
+
}
|
|
116
|
+
reject(
|
|
117
|
+
new BrowserAuthError(
|
|
118
|
+
BrowserAuthErrorCodes.interactionInProgressCancelled,
|
|
119
|
+
correlationId
|
|
120
|
+
)
|
|
121
|
+
);
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
activePopupPoller = poller;
|
|
125
|
+
}).finally(() => {
|
|
126
|
+
if (poller && activePopupPoller === poller) {
|
|
127
|
+
activePopupPoller = undefined;
|
|
128
|
+
}
|
|
129
|
+
cleanPopup(popupWindow, popupWindowParent, unloadWindow);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Performs cleanup operations after popup authentication.
|
|
135
|
+
* Strips auth-response params (code/state) from the popup URL while it is still
|
|
136
|
+
* open, closes the popup window, and removes the 'beforeunload' event listener
|
|
137
|
+
* from the parent window.
|
|
138
|
+
*
|
|
139
|
+
* @param popupWindow - The popup window to be closed.
|
|
140
|
+
* @param popupWindowParent - The parent window from which the event listener will be removed.
|
|
141
|
+
* @param unloadWindow - The event handler function to remove.
|
|
142
|
+
*/
|
|
143
|
+
export function cleanPopup(
|
|
144
|
+
popupWindow: Window,
|
|
145
|
+
popupWindowParent: Window,
|
|
146
|
+
unloadWindow: (e: Event) => void
|
|
147
|
+
): void {
|
|
148
|
+
if (!popupWindow.closed) {
|
|
149
|
+
try {
|
|
150
|
+
clearAuthResponseFromUrl(popupWindow);
|
|
151
|
+
} catch {
|
|
152
|
+
// Popup may have become cross-origin or otherwise inaccessible; ignore.
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
popupWindow.close();
|
|
156
|
+
|
|
157
|
+
popupWindowParent.removeEventListener("beforeunload", unloadWindow);
|
|
158
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { BrowserConfiguration } from "../config/Configuration.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* `window.origin` of a document with an opaque origin, e.g. one sandboxed
|
|
10
|
+
* without `allow-same-origin`. Read from `window.origin`, not
|
|
11
|
+
* `location.origin`, which reports the real host even when sandboxed.
|
|
12
|
+
*/
|
|
13
|
+
const OPAQUE_ORIGIN = "null";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Returns `true` when every ancestor browsing context is same-origin with
|
|
17
|
+
* `win`. A top-level document has no ancestors, so it always passes.
|
|
18
|
+
*/
|
|
19
|
+
export function allAncestorsSameOrigin(win: Window): boolean {
|
|
20
|
+
try {
|
|
21
|
+
// Sandboxed: no origin to compare ancestors against.
|
|
22
|
+
if (win.origin === OPAQUE_ORIGIN) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
let current: Window = win;
|
|
26
|
+
// `window.parent` is self-referential at the top level, never falsy.
|
|
27
|
+
while (current !== current.parent) {
|
|
28
|
+
current = current.parent;
|
|
29
|
+
// Throws SecurityError if this ancestor is cross-origin.
|
|
30
|
+
void current.location.href;
|
|
31
|
+
}
|
|
32
|
+
return true;
|
|
33
|
+
} catch {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Returns `true` when the top-level window has no opener, or one that is
|
|
40
|
+
* same-origin with it.
|
|
41
|
+
*
|
|
42
|
+
* Reads the opener from `win.top`, not `win`: a framed document always reports
|
|
43
|
+
* `window.opener === null` and would pass while the top window's untrusted
|
|
44
|
+
* opener still holds a handle on it.
|
|
45
|
+
*/
|
|
46
|
+
export function topOpenerIsSameOriginOrAbsent(win: Window): boolean {
|
|
47
|
+
try {
|
|
48
|
+
const top = win.top;
|
|
49
|
+
if (!top) {
|
|
50
|
+
// Detached from its browsing context; treat as unsafe.
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const opener = top.opener as Window | null | undefined;
|
|
55
|
+
if (!opener || opener === top) {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Throws SecurityError if the opener is cross-origin.
|
|
60
|
+
void opener.location.href;
|
|
61
|
+
return true;
|
|
62
|
+
} catch {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Computes the `pocd` ("popup origin check done") authorize parameter value.
|
|
69
|
+
*
|
|
70
|
+
* `1` means no untrusted window can reach the popup, which is what lets Entra
|
|
71
|
+
* omit the `Cross-Origin-Opener-Policy` response header for the request.
|
|
72
|
+
*
|
|
73
|
+
* @param config Resolved browser configuration.
|
|
74
|
+
* @param win Window whose hosting environment is being checked. Defaults to the app window.
|
|
75
|
+
* @returns `1` when the check passes, otherwise `0`.
|
|
76
|
+
*/
|
|
77
|
+
export function computePocd(
|
|
78
|
+
config: BrowserConfiguration,
|
|
79
|
+
win: Window | undefined = typeof window !== "undefined" ? window : undefined
|
|
80
|
+
): 0 | 1 {
|
|
81
|
+
/*
|
|
82
|
+
* Only an explicit false opts out; anything else computes the check, so an
|
|
83
|
+
* unresolved config fails closed rather than asserting pocd=1.
|
|
84
|
+
*/
|
|
85
|
+
if (config.auth.originCheck === false) {
|
|
86
|
+
return 1;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (!win || !allAncestorsSameOrigin(win)) {
|
|
90
|
+
return 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return topOpenerIsSameOriginOrAbsent(win) ? 1 : 0;
|
|
94
|
+
}
|
|
@@ -60,9 +60,10 @@ export declare class PublicClientApplication implements IPublicClientApplication
|
|
|
60
60
|
/**
|
|
61
61
|
* Waits for the auth response from a popup window opened by MSAL.
|
|
62
62
|
*
|
|
63
|
-
* The default implementation delegates to MSAL's `BroadcastChannel`-based bridge
|
|
64
|
-
*
|
|
65
|
-
*
|
|
63
|
+
* The default implementation delegates to MSAL's `BroadcastChannel`-based bridge,
|
|
64
|
+
* or to the v4-style same-origin location poller when
|
|
65
|
+
* `system.enableLegacyPolling` is set. Subclasses must return the raw response
|
|
66
|
+
* string (hash/query/fragment), or reject with an `AuthError` on failure.
|
|
66
67
|
*
|
|
67
68
|
* @internal
|
|
68
69
|
* @param request The in-flight authorization or end-session request.
|
|
@@ -73,7 +74,8 @@ export declare class PublicClientApplication implements IPublicClientApplication
|
|
|
73
74
|
/**
|
|
74
75
|
* Waits for the auth response from a hidden iframe used by MSAL silent flows.
|
|
75
76
|
*
|
|
76
|
-
* The default implementation delegates to MSAL's `BroadcastChannel`-based bridge
|
|
77
|
+
* The default implementation delegates to MSAL's `BroadcastChannel`-based bridge,
|
|
78
|
+
* or to the v4-style location poller when `system.enableLegacyPolling` is set.
|
|
77
79
|
* Subclasses must return the raw response string (hash/query/fragment), or reject
|
|
78
80
|
* with an `AuthError` on failure.
|
|
79
81
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/app/PublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACH,2BAA2B,EAC3B,WAAW,EACX,aAAa,
|
|
1
|
+
{"version":3,"file":"PublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/app/PublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACH,2BAA2B,EAC3B,WAAW,EACX,aAAa,EAEb,MAAM,EACN,6BAA6B,EAC7B,uBAAuB,EAE1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAA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,qCAAqC,CACvD,aAAa,EAAE,aAAa,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CAInC"}
|
|
@@ -84,6 +84,14 @@ export type BrowserAuthOptions = {
|
|
|
84
84
|
* This is a boolean flag and defaults to false if not specified.
|
|
85
85
|
*/
|
|
86
86
|
verifySSO?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Compute whether to send `pocd=1` on authorize and logout requests.
|
|
89
|
+
* Set to `false` to always assert it and accept responsibility for the framing threat model.
|
|
90
|
+
* Defaults to `true`; legacy polling defaults it to `false` unless explicitly set.
|
|
91
|
+
*
|
|
92
|
+
* See [Cross-Origin-Opener-Policy and popup responses](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md#cross-origin-opener-policy-and-popup-responses).
|
|
93
|
+
*/
|
|
94
|
+
originCheck?: boolean;
|
|
87
95
|
};
|
|
88
96
|
/** @internal */
|
|
89
97
|
export type InternalAuthOptions = Omit<Required<BrowserAuthOptions>, "onRedirectNavigate"> & {
|
|
@@ -124,6 +132,14 @@ export type BrowserSystemOptions = SystemOptions & {
|
|
|
124
132
|
* Sets the timeout for waiting for response from an iframe using BroadcastChannel
|
|
125
133
|
*/
|
|
126
134
|
iframeBridgeTimeout?: number;
|
|
135
|
+
/**
|
|
136
|
+
* Use same-origin URL polling instead of the redirect bridge for popup and silent iframe responses.
|
|
137
|
+
* Requires a passive same-origin callback and a COOP-compatible popup round-trip.
|
|
138
|
+
* Defaults to `false`. When enabled, {@link BrowserAuthOptions.originCheck} defaults to `false`.
|
|
139
|
+
*
|
|
140
|
+
* See [Cross-Origin-Opener-Policy and popup responses](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md#cross-origin-opener-policy-and-popup-responses).
|
|
141
|
+
*/
|
|
142
|
+
enableLegacyPolling?: boolean;
|
|
127
143
|
/**
|
|
128
144
|
* Time to wait for redirection to occur before resolving promise
|
|
129
145
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../src/config/Configuration.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,aAAa,EACb,aAAa,EACb,cAAc,EAEd,YAAY,EACZ,WAAW,EAIX,iBAAiB,EACjB,oBAAoB,EAGpB,kBAAkB,EAIrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../src/config/Configuration.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,aAAa,EACb,aAAa,EACb,cAAc,EAEd,YAAY,EACZ,WAAW,EAIX,iBAAiB,EACjB,oBAAoB,EAGpB,kBAAkB,EAIrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAMvE,eAAO,MAAM,wBAAwB,QAAQ,CAAC;AAC9C,eAAO,MAAM,yBAAyB,QAAQ,CAAC;AAC/C,eAAO,MAAM,2BAA2B,QAAQ,CAAC;AACjD,eAAO,MAAM,0CAA0C,OAAO,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtC;;;;;;;;;;;;;;OAcG;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