@azure/msal-browser 5.29.1 → 5.31.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 +4 -2
- package/dist/app/IPublicClientApplication.mjs +4 -1
- package/dist/app/IPublicClientApplication.mjs.map +1 -1
- package/dist/app/PublicClientApplication.mjs +14 -2
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +10 -23
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +2 -3
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +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 +40 -4
- package/dist/cache/BrowserCacheManager.mjs.map +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 +11 -2
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +26 -5
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.mjs +44 -11
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +189 -5
- package/dist/crypto/BrowserCrypto.mjs.map +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 -4
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +11 -4
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +3 -3
- package/dist/custom_auth/core/CustomAuthAuthority.mjs.map +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 -4
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -3
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs.map +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 -8
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +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 -3
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -3
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs.map +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 -7
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +2 -5
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +1 -2
- 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 -2
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs +2 -3
- package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +32 -27
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +6 -2
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +7 -5
- 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 +12 -3
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +9 -39
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +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/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +2 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +1 -1
- package/dist/custom_auth/index.mjs +1 -1
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +1 -2
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs +1 -1
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -3
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -3
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -3
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +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/SignInContinuationStateV2.mjs +1 -2
- 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 +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +1 -2
- 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/ExistingAccountCodeRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +3 -2
- package/dist/error/BrowserAuthErrorCodes.mjs.map +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 +4 -2
- package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +18 -5
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +27 -21
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +8 -10
- 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 +5 -8
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +2 -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 +13 -9
- 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 +24 -6
- package/dist/popup_relay/constants.mjs.map +1 -1
- package/dist/popup_relay/index.mjs +142 -44
- package/dist/popup_relay/index.mjs.map +1 -1
- package/dist/popup_relay/relayClient.mjs +66 -23
- package/dist/popup_relay/relayClient.mjs.map +1 -1
- package/dist/protocol/Authorize.mjs +71 -13
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +2 -1
- package/dist/request/RequestHelpers.mjs.map +1 -1
- package/dist/request/SilentRequestHelpers.mjs +7 -4
- 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 +14 -2
- package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserDetection.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/IframeMonitor.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/utils/PopupMonitor.mjs +1 -1
- package/dist/utils/PopupOriginCheck.mjs +1 -1
- 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 +13 -9
- package/lib/custom-auth-path/msal-custom-auth.cjs +764 -314
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +764 -314
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +13 -9
- package/lib/msal-browser.cjs +791 -215
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +791 -215
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs +231 -60
- package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
- package/lib/popup-relay/msal-popup-relay.js +231 -60
- package/lib/popup-relay/msal-popup-relay.js.map +1 -1
- package/lib/popup-relay/msal-popup-relay.min.js +2 -2
- 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/IPublicClientApplication.ts +16 -0
- package/src/app/PublicClientApplication.ts +22 -0
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +11 -44
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +1 -2
- package/src/broker/nativeBroker/PlatformAuthResponse.ts +2 -6
- package/src/cache/BrowserCacheManager.ts +66 -6
- package/src/config/Configuration.ts +35 -0
- package/src/controllers/NestedAppAuthController.ts +35 -2
- package/src/controllers/StandardController.ts +76 -12
- package/src/controllers/UnknownOperatingContextController.ts +10 -0
- package/src/crypto/BrowserCrypto.ts +367 -2
- package/src/custom_auth/CustomAuthActionInputs.ts +0 -9
- package/src/custom_auth/CustomAuthPublicClientApplication.ts +0 -3
- package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +0 -3
- package/src/custom_auth/controller/CustomAuthStandardController.ts +15 -2
- package/src/custom_auth/core/CustomAuthAuthority.ts +2 -1
- package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts +0 -3
- package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts +0 -2
- package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts +0 -7
- package/src/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.ts +0 -2
- package/src/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.ts +0 -2
- package/src/custom_auth/core/auth_flow/mfa/state/MfaState.ts +0 -6
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +0 -4
- package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +0 -3
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +0 -1
- package/src/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.ts +8 -6
- package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +1 -0
- package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +43 -29
- package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +21 -2
- package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +12 -8
- package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +35 -4
- package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +10 -47
- package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +1 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +9 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +5 -5
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +2 -5
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +2 -4
- package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +1 -0
- package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +0 -2
- package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +0 -1
- package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +0 -1
- package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +0 -2
- package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +0 -2
- package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +0 -1
- package/src/error/AsymmetricEarSubErrors.ts +18 -0
- package/src/error/BrowserAuthErrorCodes.ts +1 -0
- package/src/interaction_client/BaseInteractionClient.ts +6 -1
- package/src/interaction_client/PlatformAuthInteractionClient.ts +28 -8
- package/src/interaction_client/PopupClient.ts +59 -29
- package/src/interaction_client/RedirectClient.ts +10 -13
- package/src/interaction_client/SilentIframeClient.ts +9 -13
- package/src/interaction_client/StandardInteractionClient.ts +1 -0
- package/src/packageMetadata.ts +1 -1
- package/src/popup_relay/constants.ts +34 -3
- package/src/popup_relay/index.ts +200 -45
- package/src/popup_relay/relayClient.ts +108 -24
- package/src/protocol/Authorize.ts +123 -11
- package/src/request/EndSessionPopupRequest.ts +3 -0
- package/src/request/PopupRequest.ts +1 -0
- package/src/request/RedirectRequest.ts +4 -0
- package/src/request/RequestHelpers.ts +5 -0
- package/src/request/SilentRequestHelpers.ts +10 -4
- package/src/request/SsoSilentRequest.ts +1 -0
- package/src/telemetry/BrowserPerformanceEvents.ts +14 -0
- package/types/app/IPublicClientApplication.d.ts +8 -0
- package/types/app/IPublicClientApplication.d.ts.map +1 -1
- package/types/app/PublicClientApplication.d.ts +6 -1
- package/types/app/PublicClientApplication.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +0 -1
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +2 -6
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
- package/types/cache/BrowserCacheManager.d.ts +20 -2
- package/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/types/config/Configuration.d.ts +14 -0
- package/types/config/Configuration.d.ts.map +1 -1
- package/types/controllers/NestedAppAuthController.d.ts +5 -0
- package/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts +4 -0
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/controllers/UnknownOperatingContextController.d.ts +5 -0
- package/types/controllers/UnknownOperatingContextController.d.ts.map +1 -1
- package/types/crypto/BrowserCrypto.d.ts +34 -0
- package/types/crypto/BrowserCrypto.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthActionInputs.d.ts +0 -9
- package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +0 -3
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +0 -3
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -1
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +0 -3
- package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +0 -7
- package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +0 -6
- package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +0 -4
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +0 -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 +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +0 -2
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +1 -0
- 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 +3 -2
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +10 -1
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +1 -1
- 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/CustomAuthApiClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -0
- 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/ResponsesV2.d.ts +8 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +4 -5
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +3 -6
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +2 -5
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
- package/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +0 -2
- 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 +0 -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/result/SignInResult.d.ts +0 -2
- package/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +0 -2
- package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +0 -2
- package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +0 -2
- 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 +0 -2
- 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/state/SignInContinuationStateV2.d.ts +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +0 -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 +0 -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 +0 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
- package/types/error/AsymmetricEarSubErrors.d.ts +14 -0
- package/types/error/AsymmetricEarSubErrors.d.ts.map +1 -0
- package/types/error/BrowserAuthErrorCodes.d.ts +1 -0
- package/types/error/BrowserAuthErrorCodes.d.ts.map +1 -1
- package/types/interaction_client/BaseInteractionClient.d.ts +3 -2
- package/types/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/PopupClient.d.ts +3 -1
- package/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/types/interaction_client/RedirectClient.d.ts +0 -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/popup_relay/constants.d.ts +10 -3
- package/types/popup_relay/constants.d.ts.map +1 -1
- package/types/popup_relay/index.d.ts +27 -11
- package/types/popup_relay/index.d.ts.map +1 -1
- package/types/popup_relay/relayClient.d.ts +9 -11
- package/types/popup_relay/relayClient.d.ts.map +1 -1
- package/types/protocol/Authorize.d.ts +5 -0
- package/types/protocol/Authorize.d.ts.map +1 -1
- package/types/request/EndSessionPopupRequest.d.ts +3 -0
- package/types/request/EndSessionPopupRequest.d.ts.map +1 -1
- package/types/request/PopupRequest.d.ts +1 -1
- package/types/request/PopupRequest.d.ts.map +1 -1
- package/types/request/RedirectRequest.d.ts +4 -1
- package/types/request/RedirectRequest.d.ts.map +1 -1
- package/types/request/RequestHelpers.d.ts.map +1 -1
- package/types/request/SilentRequestHelpers.d.ts +1 -1
- package/types/request/SilentRequestHelpers.d.ts.map +1 -1
- package/types/request/SsoSilentRequest.d.ts +1 -1
- package/types/request/SsoSilentRequest.d.ts.map +1 -1
- package/types/telemetry/BrowserPerformanceEvents.d.ts +12 -0
- package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
|
@@ -31,7 +31,6 @@ abstract class MfaState<
|
|
|
31
31
|
* Requests an MFA challenge for a specific authentication method.
|
|
32
32
|
* @param authMethodId The authentication method ID to use for the challenge.
|
|
33
33
|
* @returns Promise that resolves to MfaRequestChallengeResult.
|
|
34
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
35
34
|
*/
|
|
36
35
|
async requestChallenge(
|
|
37
36
|
authMethodId: string
|
|
@@ -101,7 +100,6 @@ export class MfaAwaitingState extends MfaState<MfaAwaitingStateParameters> {
|
|
|
101
100
|
/**
|
|
102
101
|
* Gets the available authentication methods for MFA.
|
|
103
102
|
* @returns Array of available authentication methods.
|
|
104
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
105
103
|
*/
|
|
106
104
|
getAuthMethods(): AuthenticationMethod[] {
|
|
107
105
|
return this.stateParameters.authMethods;
|
|
@@ -121,7 +119,6 @@ export class MfaVerificationRequiredState extends MfaState<MfaVerificationRequir
|
|
|
121
119
|
/**
|
|
122
120
|
* Gets the length of the code that the user needs to provide.
|
|
123
121
|
* @returns The expected code length.
|
|
124
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
125
122
|
*/
|
|
126
123
|
getCodeLength(): number {
|
|
127
124
|
return this.stateParameters.codeLength;
|
|
@@ -130,7 +127,6 @@ export class MfaVerificationRequiredState extends MfaState<MfaVerificationRequir
|
|
|
130
127
|
/**
|
|
131
128
|
* Gets the channel through which the challenge was sent.
|
|
132
129
|
* @returns The challenge channel (e.g., "email").
|
|
133
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
134
130
|
*/
|
|
135
131
|
getChannel(): string {
|
|
136
132
|
return this.stateParameters.challengeChannel;
|
|
@@ -139,7 +135,6 @@ export class MfaVerificationRequiredState extends MfaState<MfaVerificationRequir
|
|
|
139
135
|
/**
|
|
140
136
|
* Gets the target label indicating where the challenge was sent.
|
|
141
137
|
* @returns The challenge target label (e.g., masked email address).
|
|
142
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
143
138
|
*/
|
|
144
139
|
getSentTo(): string {
|
|
145
140
|
return this.stateParameters.challengeTargetLabel;
|
|
@@ -149,7 +144,6 @@ export class MfaVerificationRequiredState extends MfaState<MfaVerificationRequir
|
|
|
149
144
|
* Submits the MFA challenge (e.g., OTP code) to complete the authentication.
|
|
150
145
|
* @param challenge The challenge code (e.g., OTP code) entered by the user.
|
|
151
146
|
* @returns Promise that resolves to MfaSubmitChallengeResult.
|
|
152
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
153
147
|
*/
|
|
154
148
|
async submitChallenge(
|
|
155
149
|
challenge: string
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* An authentication method that can be registered for the current account.
|
|
8
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
9
8
|
*/
|
|
10
9
|
export interface AuthenticationMethodRegistrationV2 {
|
|
11
10
|
type: string;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* An authentication method offered by the server during a native auth V2 flow.
|
|
8
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
9
8
|
*/
|
|
10
9
|
export interface AuthenticationMethodV2 {
|
|
11
10
|
id: string;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The native auth V2 flow that a result or error originates from.
|
|
8
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
9
8
|
*/
|
|
10
9
|
export const CustomAuthFlowScenarioV2 = {
|
|
11
10
|
SignIn: "signIn",
|
|
@@ -14,8 +13,5 @@ export const CustomAuthFlowScenarioV2 = {
|
|
|
14
13
|
Unknown: "unknown",
|
|
15
14
|
} as const;
|
|
16
15
|
|
|
17
|
-
/**
|
|
18
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
19
|
-
*/
|
|
20
16
|
export type CustomAuthFlowScenarioV2 =
|
|
21
17
|
(typeof CustomAuthFlowScenarioV2)[keyof typeof CustomAuthFlowScenarioV2];
|
|
@@ -21,7 +21,6 @@ type CreateWithErrorOptions = {
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Result of a native auth V2 operation.
|
|
24
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
25
24
|
*/
|
|
26
25
|
export class CustomAuthResultV2<
|
|
27
26
|
TState extends AuthFlowStateBase,
|
|
@@ -29,7 +29,6 @@ export type AuthFlowErrorContextV2 =
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Error returned by a native authentication V2 operation.
|
|
32
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
33
32
|
*/
|
|
34
33
|
export class AuthFlowErrorV2 {
|
|
35
34
|
readonly scenario: CustomAuthFlowScenarioV2;
|
|
@@ -9,7 +9,6 @@ import type { AuthMethodVerificationRequiredStateV2 } from "../state/AuthMethodV
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* States returned after requesting an authentication-method registration challenge.
|
|
12
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
13
12
|
*/
|
|
14
13
|
export type AuthMethodRegistrationChallengeResultStateV2 =
|
|
15
14
|
| AuthMethodVerificationRequiredStateV2
|
|
@@ -17,7 +16,6 @@ export type AuthMethodRegistrationChallengeResultStateV2 =
|
|
|
17
16
|
|
|
18
17
|
/**
|
|
19
18
|
* Result of challenging a selected authentication method for registration.
|
|
20
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
21
19
|
*/
|
|
22
20
|
export type AuthMethodRegistrationChallengeResultV2 =
|
|
23
21
|
CustomAuthResultV2<AuthMethodRegistrationChallengeResultStateV2>;
|
package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts
CHANGED
|
@@ -11,7 +11,6 @@ import type { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* States returned after submitting an authentication-method verification challenge.
|
|
14
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
15
14
|
*/
|
|
16
15
|
export type AuthMethodVerificationSubmitChallengeResultStateV2 =
|
|
17
16
|
| SignInContinuationStateV2
|
|
@@ -20,7 +19,6 @@ export type AuthMethodVerificationSubmitChallengeResultStateV2 =
|
|
|
20
19
|
|
|
21
20
|
/**
|
|
22
21
|
* Result of submitting an authentication-method verification challenge.
|
|
23
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
24
22
|
*/
|
|
25
23
|
export type AuthMethodVerificationSubmitChallengeResultV2 = CustomAuthResultV2<
|
|
26
24
|
AuthMethodVerificationSubmitChallengeResultStateV2,
|
|
@@ -11,7 +11,6 @@ import type { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* States returned after submitting an MFA challenge.
|
|
14
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
15
14
|
*/
|
|
16
15
|
export type MFASubmitChallengeResultStateV2 =
|
|
17
16
|
| SignInContinuationStateV2
|
|
@@ -20,7 +19,6 @@ export type MFASubmitChallengeResultStateV2 =
|
|
|
20
19
|
|
|
21
20
|
/**
|
|
22
21
|
* Result of submitting an MFA challenge.
|
|
23
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
24
22
|
*/
|
|
25
23
|
export type MFASubmitChallengeResultV2 = CustomAuthResultV2<
|
|
26
24
|
MFASubmitChallengeResultStateV2,
|
|
@@ -13,7 +13,6 @@ import type { ExistingAccountPasswordRequiredStateV2 } from "../../../../sign_up
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* States returned after requesting an authentication challenge.
|
|
16
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
17
16
|
*/
|
|
18
17
|
export type RequestChallengeResultStateV2 =
|
|
19
18
|
| CodeRequiredStateV2
|
|
@@ -25,7 +24,6 @@ export type RequestChallengeResultStateV2 =
|
|
|
25
24
|
|
|
26
25
|
/**
|
|
27
26
|
* Result of requesting an authentication challenge.
|
|
28
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
29
27
|
*/
|
|
30
28
|
export type RequestChallengeResultV2 =
|
|
31
29
|
CustomAuthResultV2<RequestChallengeResultStateV2>;
|
|
@@ -10,7 +10,6 @@ import type { FailedStateV2 } from "../state/FailedStateV2.js";
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* States returned when native auth V2 password reset starts.
|
|
13
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
14
13
|
*/
|
|
15
14
|
export type ResetPasswordStartResultStateV2 =
|
|
16
15
|
| AuthMethodSelectionRequiredStateV2
|
|
@@ -19,7 +18,6 @@ export type ResetPasswordStartResultStateV2 =
|
|
|
19
18
|
|
|
20
19
|
/**
|
|
21
20
|
* Result of starting native auth V2 password reset.
|
|
22
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
23
21
|
*/
|
|
24
22
|
export type ResetPasswordStartResultV2 =
|
|
25
23
|
CustomAuthResultV2<ResetPasswordStartResultStateV2>;
|
|
@@ -15,7 +15,6 @@ import type { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* States returned after submitting a sign-in or sign-up password.
|
|
18
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
19
18
|
*/
|
|
20
19
|
export type SubmitPasswordResultStateV2 =
|
|
21
20
|
| CompletedStateV2
|
|
@@ -28,7 +27,6 @@ export type SubmitPasswordResultStateV2 =
|
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
29
|
* Result of submitting a password in the active flow.
|
|
31
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
32
30
|
*/
|
|
33
31
|
export type SubmitPasswordResultV2 = CustomAuthResultV2<
|
|
34
32
|
SubmitPasswordResultStateV2,
|
|
@@ -16,7 +16,6 @@ import type { AuthMethodRegistrationRequiredStateV2 } from "../state/AuthMethodR
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* States returned after verifying an authentication challenge.
|
|
19
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
20
19
|
*/
|
|
21
20
|
export type VerifyChallengeResultStateV2 =
|
|
22
21
|
| NewPasswordRequiredStateV2
|
|
@@ -30,7 +29,6 @@ export type VerifyChallengeResultStateV2 =
|
|
|
30
29
|
|
|
31
30
|
/**
|
|
32
31
|
* Result of verifying an authentication challenge.
|
|
33
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
34
32
|
*/
|
|
35
33
|
export type VerifyChallengeResultV2 = CustomAuthResultV2<
|
|
36
34
|
VerifyChallengeResultStateV2,
|
|
@@ -14,7 +14,6 @@ import { ensureArgumentIsNotEmptyString } from "../../../utils/ArgumentValidator
|
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* State returned when an authentication method must be registered.
|
|
17
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
18
17
|
*/
|
|
19
18
|
export class AuthMethodRegistrationRequiredStateV2 extends AuthFlowActionRequiredStateBase<AuthMethodRegistrationRequiredStateParametersV2> {
|
|
20
19
|
readonly stateType = "authMethodRegistrationRequired";
|
|
@@ -27,7 +27,6 @@ import { ExistingAccountPasswordRequiredStateV2 } from "../../../../sign_up/auth
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* State returned when the user must select an authentication method.
|
|
30
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
31
30
|
*/
|
|
32
31
|
export class AuthMethodSelectionRequiredStateV2 extends AuthFlowActionRequiredStateBase<AuthMethodSelectionRequiredStateParametersV2> {
|
|
33
32
|
readonly stateType = "authMethodSelectionRequired";
|
|
@@ -75,8 +74,6 @@ export class AuthMethodSelectionRequiredStateV2 extends AuthFlowActionRequiredSt
|
|
|
75
74
|
signInStateTransitionHandler,
|
|
76
75
|
};
|
|
77
76
|
const isExistingAccountSignUp =
|
|
78
|
-
continuationState.scenario ===
|
|
79
|
-
CustomAuthFlowScenarioV2.SignUp &&
|
|
80
77
|
continuationState.signUp?.purpose === "existingAccount";
|
|
81
78
|
|
|
82
79
|
const channel =
|
|
@@ -17,7 +17,6 @@ import { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2/stat
|
|
|
17
17
|
/**
|
|
18
18
|
* State returned when a newly registered authentication method must be
|
|
19
19
|
* activated with the challenge sent by the service.
|
|
20
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
21
20
|
*/
|
|
22
21
|
export class AuthMethodVerificationRequiredStateV2 extends AuthFlowActionRequiredStateBase<AuthMethodVerificationRequiredStateParametersV2> {
|
|
23
22
|
readonly stateType = "authMethodVerificationRequired";
|
|
@@ -26,7 +26,6 @@ import { AuthMethodRegistrationRequiredStateV2 } from "./AuthMethodRegistrationR
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* State returned when first-factor authentication requires a one-time code.
|
|
29
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
30
29
|
*/
|
|
31
30
|
export class CodeRequiredStateV2 extends ChallengeVerificationStateBaseV2<CodeRequiredStateParametersV2> {
|
|
32
31
|
readonly stateType = "codeRequired";
|
|
@@ -7,7 +7,6 @@ import { AuthFlowStateBase } from "../../AuthFlowState.js";
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Terminal state indicating the operation completed successfully.
|
|
10
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
11
10
|
*/
|
|
12
11
|
export class CompletedStateV2 extends AuthFlowStateBase {
|
|
13
12
|
readonly stateType = "completed";
|
|
@@ -7,7 +7,6 @@ import { AuthFlowStateBase } from "../../AuthFlowState.js";
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Terminal state indicating the operation failed.
|
|
10
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
11
10
|
*/
|
|
12
11
|
export class FailedStateV2 extends AuthFlowStateBase {
|
|
13
12
|
readonly stateType = "failed";
|
|
@@ -22,7 +22,6 @@ import { AuthenticationFactorV2 } from "../../../network_client/custom_auth_api/
|
|
|
22
22
|
/**
|
|
23
23
|
* State returned when authentication requires verification of an email or SMS MFA
|
|
24
24
|
* challenge. It allows the app to submit the challenge or request a replacement.
|
|
25
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
26
25
|
*/
|
|
27
26
|
export class MFAVerificationRequiredStateV2 extends ChallengeVerificationStateBaseV2<MFAVerificationRequiredStateParametersV2> {
|
|
28
27
|
readonly stateType = "mfaVerificationRequired";
|
|
@@ -26,7 +26,6 @@ import type { SubmitAttributesResultV2 } from "../../../../sign_up/auth_flow/v2/
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* State returned when sign-in or sign-up requires a password.
|
|
29
|
-
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
30
29
|
*/
|
|
31
30
|
export class PasswordRequiredStateV2 extends AuthFlowActionRequiredStateBase<PasswordRequiredStateParametersV2> {
|
|
32
31
|
readonly stateType = "passwordRequired";
|
|
@@ -97,11 +96,14 @@ export class PasswordRequiredStateV2 extends AuthFlowActionRequiredStateBase<Pas
|
|
|
97
96
|
);
|
|
98
97
|
}
|
|
99
98
|
|
|
100
|
-
const result = await flowClient.submitSignUpAttributes(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
const result = await flowClient.submitSignUpAttributes(
|
|
100
|
+
{
|
|
101
|
+
correlationId,
|
|
102
|
+
continuationState,
|
|
103
|
+
attributes: { password },
|
|
104
|
+
},
|
|
105
|
+
"submitPassword"
|
|
106
|
+
);
|
|
105
107
|
return signUpStateTransitionHandler.handleAttributeSubmission(
|
|
106
108
|
result,
|
|
107
109
|
{ ...this.stateParameters, signUpStateTransitionHandler },
|
|
@@ -7,6 +7,7 @@ import { CustomAuthFlowScenarioV2 } from "../../auth_flow/v2/CustomAuthFlowScena
|
|
|
7
7
|
import type { UserAccountAttributes } from "../../../UserAccountAttributes.js";
|
|
8
8
|
|
|
9
9
|
export interface FlowLinksV2 {
|
|
10
|
+
continue?: string;
|
|
10
11
|
challenge?: string;
|
|
11
12
|
verify?: string;
|
|
12
13
|
activate?: string;
|
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
createFlowCodeRequiredResultV2,
|
|
29
29
|
createFlowExistingAccountCodeRequiredResultV2,
|
|
30
30
|
createFlowExistingAccountPasswordRequiredResultV2,
|
|
31
|
+
createFlowExistingAccountStartResultV2,
|
|
31
32
|
createFlowPasswordRequiredResultV2,
|
|
32
33
|
createFlowSignUpPasswordRequiredResultV2,
|
|
33
34
|
createFlowMFARequiredResultV2,
|
|
@@ -43,6 +44,8 @@ import {
|
|
|
43
44
|
import type {
|
|
44
45
|
FlowCodeRequiredResultV2,
|
|
45
46
|
FlowExistingAccountChallengeResultV2,
|
|
47
|
+
FlowExistingAccountStartResultV2,
|
|
48
|
+
FlowMethodSelectionRequiredResultV2,
|
|
46
49
|
FlowCompletedResultV2,
|
|
47
50
|
FlowSignInContinuationRequiredResultV2,
|
|
48
51
|
FlowSignInStartResultV2,
|
|
@@ -306,22 +309,36 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
306
309
|
});
|
|
307
310
|
}
|
|
308
311
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
312
|
+
return createFlowExistingAccountStartResultV2({
|
|
313
|
+
correlationId,
|
|
314
|
+
continuationState: {
|
|
315
|
+
continuationToken: startResult.continuationToken,
|
|
316
|
+
scenario: CustomAuthFlowScenarioV2.SignIn,
|
|
317
|
+
scopes,
|
|
318
|
+
links: {},
|
|
319
|
+
signUp: {
|
|
320
|
+
purpose: "existingAccount",
|
|
321
|
+
},
|
|
316
322
|
},
|
|
317
|
-
|
|
323
|
+
authenticationFactor: startResult.authenticationFactor,
|
|
324
|
+
methods: startResult.methods,
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
async challengeExistingAccount(
|
|
329
|
+
parameters: FlowExistingAccountStartResultV2
|
|
330
|
+
): Promise<
|
|
331
|
+
| FlowExistingAccountChallengeResultV2
|
|
332
|
+
| FlowMethodSelectionRequiredResultV2
|
|
333
|
+
> {
|
|
334
|
+
const { continuationState, correlationId } = parameters;
|
|
318
335
|
this.ensureAuthenticationFactor(
|
|
319
|
-
|
|
336
|
+
parameters.authenticationFactor,
|
|
320
337
|
AuthenticationFactorV2.SINGLE_FACTOR,
|
|
321
338
|
"existing-account sign-up",
|
|
322
339
|
correlationId
|
|
323
340
|
);
|
|
324
|
-
const supportedMethods =
|
|
341
|
+
const supportedMethods = parameters.methods
|
|
325
342
|
.map((method) => ({
|
|
326
343
|
id: method.id,
|
|
327
344
|
type: method.type ?? "",
|
|
@@ -610,7 +627,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
610
627
|
continuationState: {
|
|
611
628
|
...continuationState,
|
|
612
629
|
continuationToken: result.continuationToken,
|
|
613
|
-
links: {},
|
|
630
|
+
links: { continue: result.continueHref },
|
|
614
631
|
},
|
|
615
632
|
});
|
|
616
633
|
}
|
|
@@ -618,6 +635,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
618
635
|
return this.completeSignInAfterVerification(
|
|
619
636
|
continuationState,
|
|
620
637
|
result.continuationToken,
|
|
638
|
+
result.continueHref,
|
|
621
639
|
correlationId
|
|
622
640
|
);
|
|
623
641
|
}
|
|
@@ -699,7 +717,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
699
717
|
continuationState: {
|
|
700
718
|
...continuationState,
|
|
701
719
|
continuationToken: verifyResult.continuationToken,
|
|
702
|
-
links: {},
|
|
720
|
+
links: { continue: verifyResult.continueHref },
|
|
703
721
|
},
|
|
704
722
|
});
|
|
705
723
|
}
|
|
@@ -730,17 +748,6 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
730
748
|
);
|
|
731
749
|
}
|
|
732
750
|
|
|
733
|
-
if (
|
|
734
|
-
continuationState.scenario === CustomAuthFlowScenarioV2.SignUp &&
|
|
735
|
-
continuationState.signUp?.purpose === "existingAccount"
|
|
736
|
-
) {
|
|
737
|
-
return this.handleSignInVerification(
|
|
738
|
-
continuationState,
|
|
739
|
-
verifyResult,
|
|
740
|
-
correlationId
|
|
741
|
-
);
|
|
742
|
-
}
|
|
743
|
-
|
|
744
751
|
if (continuationState.scenario === CustomAuthFlowScenarioV2.SignUp) {
|
|
745
752
|
return this.handleSignUpVerification(
|
|
746
753
|
continuationState,
|
|
@@ -797,7 +804,8 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
797
804
|
}
|
|
798
805
|
|
|
799
806
|
async submitSignUpAttributes(
|
|
800
|
-
parameters: FlowSubmitSignUpAttributesParamsV2
|
|
807
|
+
parameters: FlowSubmitSignUpAttributesParamsV2,
|
|
808
|
+
step: "submitAttributes" | "submitPassword" = "submitAttributes"
|
|
801
809
|
): Promise<FlowSignUpSubmitAttributesResultV2> {
|
|
802
810
|
const {
|
|
803
811
|
continuationState,
|
|
@@ -807,7 +815,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
807
815
|
const context = this.createRequestContext(
|
|
808
816
|
this.resolveStepApiId(
|
|
809
817
|
continuationState.scenario,
|
|
810
|
-
|
|
818
|
+
step,
|
|
811
819
|
correlationId
|
|
812
820
|
),
|
|
813
821
|
correlationId
|
|
@@ -976,7 +984,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
976
984
|
continuationToken: pollResult.continuationToken,
|
|
977
985
|
scenario: continuationState.scenario,
|
|
978
986
|
scopes: continuationState.scopes,
|
|
979
|
-
links: {},
|
|
987
|
+
links: { continue: pollResult.continueHref },
|
|
980
988
|
},
|
|
981
989
|
});
|
|
982
990
|
}
|
|
@@ -1028,6 +1036,10 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
1028
1036
|
const tokenResponse = await this.apiClient.completeWithTokens(
|
|
1029
1037
|
{
|
|
1030
1038
|
continuationToken: continuationState.continuationToken,
|
|
1039
|
+
continueHref: this.requireLink(
|
|
1040
|
+
correlationId,
|
|
1041
|
+
continuationState.links.continue
|
|
1042
|
+
),
|
|
1031
1043
|
},
|
|
1032
1044
|
context
|
|
1033
1045
|
);
|
|
@@ -1095,6 +1107,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
1095
1107
|
return this.completeSignInAfterVerification(
|
|
1096
1108
|
continuationState,
|
|
1097
1109
|
verifyResult.continuationToken,
|
|
1110
|
+
verifyResult.continueHref,
|
|
1098
1111
|
correlationId
|
|
1099
1112
|
);
|
|
1100
1113
|
}
|
|
@@ -1173,7 +1186,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
1173
1186
|
continuationState: {
|
|
1174
1187
|
...continuationState,
|
|
1175
1188
|
continuationToken: verifyResult.continuationToken,
|
|
1176
|
-
links: {},
|
|
1189
|
+
links: { continue: verifyResult.continueHref },
|
|
1177
1190
|
},
|
|
1178
1191
|
});
|
|
1179
1192
|
}
|
|
@@ -1402,7 +1415,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
1402
1415
|
continuationState: {
|
|
1403
1416
|
...continuationState,
|
|
1404
1417
|
continuationToken: result.continuationToken,
|
|
1405
|
-
links: {},
|
|
1418
|
+
links: { continue: result.continueHref },
|
|
1406
1419
|
},
|
|
1407
1420
|
});
|
|
1408
1421
|
}
|
|
@@ -1535,6 +1548,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
1535
1548
|
private completeSignInAfterVerification(
|
|
1536
1549
|
continuationState: FlowContinuationStateV2,
|
|
1537
1550
|
continuationToken: string,
|
|
1551
|
+
continueHref: string,
|
|
1538
1552
|
correlationId: string
|
|
1539
1553
|
): Promise<FlowCompletedResultV2> {
|
|
1540
1554
|
return this.signInWithContinuation({
|
|
@@ -1542,7 +1556,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
|
1542
1556
|
continuationState: {
|
|
1543
1557
|
...continuationState,
|
|
1544
1558
|
continuationToken,
|
|
1545
|
-
links: {},
|
|
1559
|
+
links: { continue: continueHref },
|
|
1546
1560
|
},
|
|
1547
1561
|
});
|
|
1548
1562
|
}
|
|
@@ -8,6 +8,10 @@ import { AuthenticationMethodV2 } from "../../../auth_flow/v2/AuthenticationMeth
|
|
|
8
8
|
import { FlowContinuationStateV2 } from "../FlowContinuationStateV2.js";
|
|
9
9
|
import { SignUpAttributeV2 } from "../../../network_client/custom_auth_api/v2/result/SignUpResultsV2.js";
|
|
10
10
|
import { AuthenticationMethodRegistrationV2 } from "../../../auth_flow/v2/AuthenticationMethodRegistrationV2.js";
|
|
11
|
+
import type {
|
|
12
|
+
AuthenticationFactorV2,
|
|
13
|
+
StartMethodV2,
|
|
14
|
+
} from "../../../network_client/custom_auth_api/v2/result/BaseResultsV2.js";
|
|
11
15
|
|
|
12
16
|
interface FlowActionResultBaseV2 {
|
|
13
17
|
type: string;
|
|
@@ -46,6 +50,14 @@ export interface FlowExistingAccountPasswordRequiredResultV2
|
|
|
46
50
|
continuationState: FlowContinuationStateV2;
|
|
47
51
|
}
|
|
48
52
|
|
|
53
|
+
export interface FlowExistingAccountStartResultV2
|
|
54
|
+
extends FlowActionResultBaseV2 {
|
|
55
|
+
type: typeof FLOW_EXISTING_ACCOUNT_START_V2;
|
|
56
|
+
continuationState: FlowContinuationStateV2;
|
|
57
|
+
authenticationFactor: AuthenticationFactorV2;
|
|
58
|
+
methods: StartMethodV2[];
|
|
59
|
+
}
|
|
60
|
+
|
|
49
61
|
export interface FlowResetPasswordCodeRequiredResultV2
|
|
50
62
|
extends FlowCodeRequiredResultV2 {
|
|
51
63
|
method: AuthenticationMethodV2;
|
|
@@ -127,8 +139,7 @@ export type FlowExistingAccountChallengeResultV2 =
|
|
|
127
139
|
|
|
128
140
|
export type FlowSignUpStartResultV2 =
|
|
129
141
|
| FlowCodeRequiredResultV2
|
|
130
|
-
|
|
|
131
|
-
| FlowMethodSelectionRequiredResultV2;
|
|
142
|
+
| FlowExistingAccountStartResultV2;
|
|
132
143
|
|
|
133
144
|
export type FlowResetPasswordStartResultV2 =
|
|
134
145
|
| FlowMethodSelectionRequiredResultV2
|
|
@@ -163,6 +174,8 @@ export const FLOW_EXISTING_ACCOUNT_CODE_REQUIRED_V2 =
|
|
|
163
174
|
"FlowExistingAccountCodeRequiredResultV2";
|
|
164
175
|
export const FLOW_EXISTING_ACCOUNT_PASSWORD_REQUIRED_V2 =
|
|
165
176
|
"FlowExistingAccountPasswordRequiredResultV2";
|
|
177
|
+
export const FLOW_EXISTING_ACCOUNT_START_V2 =
|
|
178
|
+
"FlowExistingAccountStartResultV2";
|
|
166
179
|
export const FLOW_PASSWORD_REQUIRED_V2 = "FlowPasswordRequiredResultV2";
|
|
167
180
|
export const FLOW_SIGN_UP_PASSWORD_REQUIRED_V2 =
|
|
168
181
|
"FlowSignUpPasswordRequiredResultV2";
|
|
@@ -201,6 +214,12 @@ export function createFlowExistingAccountPasswordRequiredResultV2(
|
|
|
201
214
|
return { type: FLOW_EXISTING_ACCOUNT_PASSWORD_REQUIRED_V2, ...input };
|
|
202
215
|
}
|
|
203
216
|
|
|
217
|
+
export function createFlowExistingAccountStartResultV2(
|
|
218
|
+
input: Omit<FlowExistingAccountStartResultV2, "type">
|
|
219
|
+
): FlowExistingAccountStartResultV2 {
|
|
220
|
+
return { type: FLOW_EXISTING_ACCOUNT_START_V2, ...input };
|
|
221
|
+
}
|
|
222
|
+
|
|
204
223
|
export function createFlowPasswordRequiredResultV2(
|
|
205
224
|
input: Omit<FlowPasswordRequiredResultV2, "type">
|
|
206
225
|
): FlowPasswordRequiredResultV2 {
|
|
@@ -138,6 +138,7 @@ export abstract class BaseApiClientV2 {
|
|
|
138
138
|
context: RequestContextV2
|
|
139
139
|
): Promise<TokenResponseV2> {
|
|
140
140
|
const code = await this.authorizeChallengeContinue(
|
|
141
|
+
request.continueHref,
|
|
141
142
|
request.continuationToken,
|
|
142
143
|
context
|
|
143
144
|
);
|
|
@@ -149,6 +150,7 @@ export abstract class BaseApiClientV2 {
|
|
|
149
150
|
* Redeems a continuation token for an authorization code.
|
|
150
151
|
*/
|
|
151
152
|
protected async authorizeChallengeContinue(
|
|
153
|
+
continueHref: string,
|
|
152
154
|
continuationToken: string,
|
|
153
155
|
context: RequestContextV2
|
|
154
156
|
): Promise<string> {
|
|
@@ -158,7 +160,7 @@ export abstract class BaseApiClientV2 {
|
|
|
158
160
|
|
|
159
161
|
const parsedResponse =
|
|
160
162
|
await this.postOAuthForm<AuthorizeChallengeContinueResponseV2>(
|
|
161
|
-
|
|
163
|
+
resolveHrefV2(this.baseRequestUrl, continueHref),
|
|
162
164
|
request,
|
|
163
165
|
context
|
|
164
166
|
);
|
|
@@ -273,19 +275,21 @@ export abstract class BaseApiClientV2 {
|
|
|
273
275
|
}
|
|
274
276
|
|
|
275
277
|
private async postOAuthForm<T>(
|
|
276
|
-
endpoint: string,
|
|
278
|
+
endpoint: string | URL,
|
|
277
279
|
data: OAuthFormRequestV2 | AuthorizeChallengeContinueRequestV2,
|
|
278
280
|
context: RequestContextV2
|
|
279
281
|
): Promise<ParsedResponseV2<T>> {
|
|
280
282
|
const formData = new URLSearchParams(
|
|
281
283
|
Object.entries(data) as [string, string][]
|
|
282
284
|
);
|
|
283
|
-
const url =
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
285
|
+
const url =
|
|
286
|
+
typeof endpoint === "string"
|
|
287
|
+
? buildUrl(
|
|
288
|
+
this.baseRequestUrl.href,
|
|
289
|
+
endpoint,
|
|
290
|
+
this.customAuthApiQueryParams
|
|
291
|
+
)
|
|
292
|
+
: endpoint;
|
|
289
293
|
const response = await this.sendRequest(
|
|
290
294
|
url,
|
|
291
295
|
HttpMethod.POST,
|