@azure/msal-browser 5.21.0 → 5.23.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/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +23 -3
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +5 -2
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +49 -0
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs.map +1 -0
- 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 +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +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 +27 -2
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +192 -2
- 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 +21 -0
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +80 -0
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs +102 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +12 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs +20 -0
- package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +36 -0
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +29 -0
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +76 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +36 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +36 -0
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +134 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +23 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +22 -0
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs +61 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +87 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -0
- 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 +602 -0
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -0
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +67 -0
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +46 -0
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -0
- 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 +3 -2
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +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 +30 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +193 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +236 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +26 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +66 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +97 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +56 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +23 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +14 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +3 -2
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs.map +1 -1
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +38 -0
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -0
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +20 -3
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom_auth/index.mjs +23 -1
- 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/error_type/SubmitNewPasswordErrorV2.mjs +29 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +59 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -0
- 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/error_type/SignInContinuationErrorV2.mjs +18 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +37 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +23 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +70 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +61 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.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/error_type/SignUpStartErrorV2.mjs +25 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs +33 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +40 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +25 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +47 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +60 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +1 -0
- 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/index.mjs.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +8 -2
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +11 -8
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/log-strings-mapping.json +189 -5
- 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 +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
- package/dist/webBrokerBridge/PerfEventNames.mjs +38 -0
- package/dist/webBrokerBridge/PerfEventNames.mjs.map +1 -0
- package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
- package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +139 -0
- package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs.map +1 -0
- package/dist/webBrokerBridge/index.mjs +8 -0
- package/dist/webBrokerBridge/index.mjs.map +1 -0
- package/lib/custom-auth-path/log-strings-mapping.json +195 -11
- package/lib/custom-auth-path/msal-custom-auth.cjs +2996 -204
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +2996 -204
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +2 -2
- package/lib/msal-browser.cjs +176 -87
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +176 -87
- 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 +353 -0
- package/lib/web-broker-bridge/msal-web-broker-bridge.cjs.map +1 -0
- package/package.json +19 -2
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +40 -2
- package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +4 -1
- package/src/broker/nativeBroker/PlatformAuthRequest.ts +118 -6
- package/src/broker/nativeBroker/PlatformAuthResponse.ts +14 -1
- package/src/custom_auth/CustomAuthActionInputs.ts +11 -0
- package/src/custom_auth/CustomAuthPublicClientApplication.ts +40 -4
- package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +44 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +360 -1
- package/src/custom_auth/controller/ICustomAuthStandardController.ts +14 -0
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +18 -0
- package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +20 -0
- package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +133 -0
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.ts +146 -0
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +8 -0
- package/src/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.ts +15 -0
- package/src/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.ts +33 -0
- package/src/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.ts +25 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.ts +18 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +26 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +26 -0
- package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +25 -0
- package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +30 -0
- package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +40 -0
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +100 -0
- package/src/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.ts +59 -0
- package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +53 -0
- package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +196 -0
- package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +16 -0
- package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +44 -0
- package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +15 -0
- package/src/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.ts +76 -0
- package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +119 -0
- package/src/custom_auth/core/error/CustomAuthApiError.ts +3 -1
- package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +35 -0
- package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +1145 -0
- package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +150 -0
- package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +66 -0
- package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +185 -0
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +1 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +30 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +423 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +553 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.ts +24 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +81 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +177 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +129 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.ts +68 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +50 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.ts +20 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +202 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +111 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +26 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +44 -0
- package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +64 -0
- package/src/custom_auth/core/telemetry/PublicApiId.ts +18 -0
- package/src/custom_auth/index.ts +96 -0
- package/src/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.ts +25 -0
- package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +33 -0
- package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +69 -0
- package/src/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.ts +9 -0
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.ts +13 -0
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.ts +35 -0
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.ts +19 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +31 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +32 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +22 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +96 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +83 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.ts +12 -0
- package/src/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.ts +21 -0
- package/src/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.ts +32 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +28 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +20 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +48 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.ts +34 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +63 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.ts +24 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +112 -0
- package/src/index.ts +0 -2
- package/src/interaction_client/PlatformAuthInteractionClient.ts +23 -2
- package/src/interaction_client/RedirectClient.ts +15 -5
- package/src/packageMetadata.ts +1 -1
- package/src/webBrokerBridge/PerfEventNames.ts +43 -0
- package/src/webBrokerBridge/index.ts +28 -6
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +1 -0
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +68 -5
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +12 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthActionInputs.d.ts +7 -0
- 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 +27 -5
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +30 -0
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -0
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts +11 -2
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/controller/ICustomAuthStandardController.d.ts +7 -1
- package/types/custom_auth/controller/ICustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +53 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts +40 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +4 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts +11 -0
- package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts +23 -0
- package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts +18 -0
- package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts +7 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +15 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +16 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +16 -0
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +18 -0
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +23 -0
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +21 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts +17 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +25 -0
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +11 -0
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +28 -0
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +10 -0
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts +18 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +25 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/error/CustomAuthApiError.d.ts +3 -1
- package/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +21 -0
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +35 -0
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +26 -0
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +43 -0
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +80 -0
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts +17 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +31 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts +23 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts +19 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts +2 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +15 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +52 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts +3 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts +37 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts +12 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +133 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +70 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +10 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +33 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -0
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +4 -0
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -0
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts +16 -0
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
- package/types/custom_auth/index.d.ts +37 -0
- package/types/custom_auth/index.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts +18 -0
- package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts.map +1 -0
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +22 -0
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +19 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts +3 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts +9 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts +22 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts +12 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +21 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +17 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +9 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +17 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +24 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts +4 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts +14 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts +20 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +15 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +8 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +15 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts +11 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts +19 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts +14 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts +10 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -0
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/webBrokerBridge/PerfEventNames.d.ts +30 -0
- package/types/webBrokerBridge/PerfEventNames.d.ts.map +1 -0
- package/types/webBrokerBridge/index.d.cts +1 -0
- package/types/webBrokerBridge/index.d.ts +3 -5
- package/types/webBrokerBridge/index.d.ts.map +1 -1
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Return contracts of the shared V2 base client (BaseApiClientV2), flow-agnostic and reused by
|
|
8
|
+
* every V2 flow. Distinct from the per-flow result DTOs (e.g. ResetPasswordResultsV2).
|
|
9
|
+
*/
|
|
10
|
+
import type { SignUpAttributeV2 } from "./SignUpResultsV2.js";
|
|
11
|
+
|
|
12
|
+
// Initial continuation token and available flow links.
|
|
13
|
+
export interface AuthorizeChallengeEntryResultV2 {
|
|
14
|
+
continuationToken: string;
|
|
15
|
+
resetPasswordHref?: string;
|
|
16
|
+
signInHref?: string;
|
|
17
|
+
signUpHref?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/*
|
|
21
|
+
* A selectable authentication method surfaced by a flow-start response, resolved from
|
|
22
|
+
* `_embedded.methods[]`. `challengeHref` is the per-method `challenge` link to POST to send the
|
|
23
|
+
* code to that method; `id`/`type`/`hint` are display/selection metadata.
|
|
24
|
+
*/
|
|
25
|
+
export interface StartMethodV2 {
|
|
26
|
+
id: string;
|
|
27
|
+
type?: string;
|
|
28
|
+
hint?: string;
|
|
29
|
+
challengeHref: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const AuthenticationFactorV2 = {
|
|
33
|
+
SINGLE_FACTOR: "singleFactor",
|
|
34
|
+
MULTI_FACTOR: "multiFactor",
|
|
35
|
+
} as const;
|
|
36
|
+
|
|
37
|
+
export type AuthenticationFactorV2 =
|
|
38
|
+
(typeof AuthenticationFactorV2)[keyof typeof AuthenticationFactorV2];
|
|
39
|
+
|
|
40
|
+
/*
|
|
41
|
+
* Result of starting a flow. It contains the continuation token, available
|
|
42
|
+
* authentication methods, authentication factor, and optional server scenario.
|
|
43
|
+
*/
|
|
44
|
+
export interface StartResultV2 {
|
|
45
|
+
continuationToken: string;
|
|
46
|
+
methods: StartMethodV2[];
|
|
47
|
+
authenticationFactor: AuthenticationFactorV2;
|
|
48
|
+
scenario?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type ResetPasswordStartApiResultV2 = StartResultV2;
|
|
52
|
+
export type SignInStartApiResultV2 = StartResultV2;
|
|
53
|
+
|
|
54
|
+
export const ChallengeNextActionV2 = {
|
|
55
|
+
VERIFY: "verify",
|
|
56
|
+
RISK_VERIFY: "riskVerify",
|
|
57
|
+
} as const;
|
|
58
|
+
|
|
59
|
+
export interface ChallengeVerificationResultV2 {
|
|
60
|
+
nextAction: typeof ChallengeNextActionV2.VERIFY;
|
|
61
|
+
continuationToken: string;
|
|
62
|
+
verifyHref: string;
|
|
63
|
+
resendHref?: string;
|
|
64
|
+
codeLength?: number;
|
|
65
|
+
hint?: string;
|
|
66
|
+
type?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface RiskVerificationRequiredResultV2 {
|
|
70
|
+
nextAction: typeof ChallengeNextActionV2.RISK_VERIFY;
|
|
71
|
+
continuationToken: string;
|
|
72
|
+
riskVerifyHref: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type ChallengeResultV2 =
|
|
76
|
+
| ChallengeVerificationResultV2
|
|
77
|
+
| RiskVerificationRequiredResultV2;
|
|
78
|
+
|
|
79
|
+
export const VerifyNextActionV2 = {
|
|
80
|
+
UPDATE: "update",
|
|
81
|
+
CONTINUE: "continue",
|
|
82
|
+
CHALLENGE: "challenge",
|
|
83
|
+
COLLECT_ATTRIBUTES: "collectAttributes",
|
|
84
|
+
} as const;
|
|
85
|
+
|
|
86
|
+
/*
|
|
87
|
+
* Result of verifying a credential. The discriminated union identifies whether
|
|
88
|
+
* another update is required or token redemption can continue.
|
|
89
|
+
*/
|
|
90
|
+
export type VerifyResultV2 =
|
|
91
|
+
| {
|
|
92
|
+
nextAction: typeof VerifyNextActionV2.UPDATE;
|
|
93
|
+
continuationToken: string;
|
|
94
|
+
updateHref: string;
|
|
95
|
+
}
|
|
96
|
+
| {
|
|
97
|
+
nextAction: typeof VerifyNextActionV2.CONTINUE;
|
|
98
|
+
continuationToken: string;
|
|
99
|
+
}
|
|
100
|
+
| {
|
|
101
|
+
nextAction: typeof VerifyNextActionV2.CHALLENGE;
|
|
102
|
+
continuationToken: string;
|
|
103
|
+
authenticationFactor: AuthenticationFactorV2;
|
|
104
|
+
methods: StartMethodV2[];
|
|
105
|
+
}
|
|
106
|
+
| {
|
|
107
|
+
nextAction: typeof VerifyNextActionV2.COLLECT_ATTRIBUTES;
|
|
108
|
+
continuationToken: string;
|
|
109
|
+
attributes: SignUpAttributeV2[];
|
|
110
|
+
submitAttributesHref: string;
|
|
111
|
+
};
|
package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Reset-password response contracts used by the controller. Shared response
|
|
8
|
+
* contracts are defined in `BaseResultsV2`.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
// Result of submitting the new password: where to poll for completion.
|
|
12
|
+
export interface ResetPasswordUpdateResultV2 {
|
|
13
|
+
continuationToken: string;
|
|
14
|
+
pollHref: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/*
|
|
18
|
+
* Result of a single poll. `isCompleted` is true once the server reports
|
|
19
|
+
* `state: continue`. While still in progress the server returns a fresh
|
|
20
|
+
* `pollHref`; the bounded poll loop lives in the controller layer.
|
|
21
|
+
*/
|
|
22
|
+
export interface ResetPasswordPollResultV2 {
|
|
23
|
+
continuationToken: string;
|
|
24
|
+
isCompleted: boolean;
|
|
25
|
+
pollHref?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ChallengeVerificationResultV2 } from "./BaseResultsV2.js";
|
|
7
|
+
|
|
8
|
+
export interface SignUpAttributeV2 {
|
|
9
|
+
attributeId: string;
|
|
10
|
+
inputType?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
canChange?: boolean;
|
|
13
|
+
label?: string;
|
|
14
|
+
regex?: string;
|
|
15
|
+
confirmationInput?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface SignUpStartApiResultV2 {
|
|
19
|
+
continuationToken: string;
|
|
20
|
+
submitAttributesHref: string;
|
|
21
|
+
attributes?: SignUpAttributeV2[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const SignUpSubmitAttributesNextActionV2 = {
|
|
25
|
+
VERIFY: "verify",
|
|
26
|
+
COLLECT_ATTRIBUTES: "collectAttributes",
|
|
27
|
+
CONTINUE: "continue",
|
|
28
|
+
} as const;
|
|
29
|
+
|
|
30
|
+
export type SignUpSubmitAttributesApiResultV2 =
|
|
31
|
+
| (ChallengeVerificationResultV2 & {
|
|
32
|
+
nextAction: typeof SignUpSubmitAttributesNextActionV2.VERIFY;
|
|
33
|
+
attributes?: SignUpAttributeV2[];
|
|
34
|
+
})
|
|
35
|
+
| {
|
|
36
|
+
nextAction: typeof SignUpSubmitAttributesNextActionV2.COLLECT_ATTRIBUTES;
|
|
37
|
+
continuationToken: string;
|
|
38
|
+
attributes: SignUpAttributeV2[];
|
|
39
|
+
submitAttributesHref: string;
|
|
40
|
+
}
|
|
41
|
+
| {
|
|
42
|
+
nextAction: typeof SignUpSubmitAttributesNextActionV2.CONTINUE;
|
|
43
|
+
continuationToken: string;
|
|
44
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { CustomAuthFlowScenarioV2 } from "../auth_flow/v2/CustomAuthFlowScenarioV2.js";
|
|
7
|
+
import {
|
|
8
|
+
RESET_PASSWORD_V2_CHALLENGE,
|
|
9
|
+
RESET_PASSWORD_V2_RESEND_CODE,
|
|
10
|
+
RESET_PASSWORD_V2_SUBMIT,
|
|
11
|
+
RESET_PASSWORD_V2_SUBMIT_CODE,
|
|
12
|
+
SIGN_IN_AFTER_PASSWORD_RESET,
|
|
13
|
+
SIGN_IN_V2_CHALLENGE,
|
|
14
|
+
SIGN_IN_V2_COMPLETE,
|
|
15
|
+
SIGN_IN_V2_SUBMIT_CODE,
|
|
16
|
+
SIGN_IN_V2_SUBMIT_PASSWORD,
|
|
17
|
+
SIGN_UP_V2_CHALLENGE,
|
|
18
|
+
SIGN_UP_V2_COMPLETE,
|
|
19
|
+
SIGN_UP_V2_RESEND_CODE,
|
|
20
|
+
SIGN_UP_V2_SUBMIT_ATTRIBUTES,
|
|
21
|
+
SIGN_UP_V2_SUBMIT_CODE,
|
|
22
|
+
} from "./PublicApiId.js";
|
|
23
|
+
|
|
24
|
+
export type FlowStepV2 =
|
|
25
|
+
| "requestChallenge"
|
|
26
|
+
| "submitCode"
|
|
27
|
+
| "resendCode"
|
|
28
|
+
| "submitNewPassword"
|
|
29
|
+
| "submitPassword"
|
|
30
|
+
| "submitAttributes"
|
|
31
|
+
| "signInWithContinuation";
|
|
32
|
+
|
|
33
|
+
const FLOW_STEP_API_IDS_V2: Partial<
|
|
34
|
+
Record<CustomAuthFlowScenarioV2, Partial<Record<FlowStepV2, number>>>
|
|
35
|
+
> = {
|
|
36
|
+
[CustomAuthFlowScenarioV2.PasswordReset]: {
|
|
37
|
+
requestChallenge: RESET_PASSWORD_V2_CHALLENGE,
|
|
38
|
+
submitCode: RESET_PASSWORD_V2_SUBMIT_CODE,
|
|
39
|
+
resendCode: RESET_PASSWORD_V2_RESEND_CODE,
|
|
40
|
+
submitNewPassword: RESET_PASSWORD_V2_SUBMIT,
|
|
41
|
+
signInWithContinuation: SIGN_IN_AFTER_PASSWORD_RESET,
|
|
42
|
+
},
|
|
43
|
+
[CustomAuthFlowScenarioV2.SignIn]: {
|
|
44
|
+
requestChallenge: SIGN_IN_V2_CHALLENGE,
|
|
45
|
+
submitCode: SIGN_IN_V2_SUBMIT_CODE,
|
|
46
|
+
resendCode: SIGN_IN_V2_CHALLENGE,
|
|
47
|
+
submitPassword: SIGN_IN_V2_SUBMIT_PASSWORD,
|
|
48
|
+
signInWithContinuation: SIGN_IN_V2_COMPLETE,
|
|
49
|
+
},
|
|
50
|
+
[CustomAuthFlowScenarioV2.SignUp]: {
|
|
51
|
+
requestChallenge: SIGN_UP_V2_CHALLENGE,
|
|
52
|
+
submitCode: SIGN_UP_V2_SUBMIT_CODE,
|
|
53
|
+
resendCode: SIGN_UP_V2_RESEND_CODE,
|
|
54
|
+
submitAttributes: SIGN_UP_V2_SUBMIT_ATTRIBUTES,
|
|
55
|
+
signInWithContinuation: SIGN_UP_V2_COMPLETE,
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export function getPublicApiIdV2(
|
|
60
|
+
scenario: CustomAuthFlowScenarioV2,
|
|
61
|
+
step: FlowStepV2
|
|
62
|
+
): number | undefined {
|
|
63
|
+
return FLOW_STEP_API_IDS_V2[scenario]?.[step];
|
|
64
|
+
}
|
|
@@ -43,3 +43,21 @@ export const JIT_SUBMIT_CHALLENGE = 100082;
|
|
|
43
43
|
// MFA
|
|
44
44
|
export const MFA_REQUEST_CHALLENGE = 100101;
|
|
45
45
|
export const MFA_SUBMIT_CHALLENGE = 100102;
|
|
46
|
+
|
|
47
|
+
// Native Auth V2 (server-driven HAL flows) API Ids
|
|
48
|
+
export const RESET_PASSWORD_V2_START = 100201;
|
|
49
|
+
export const RESET_PASSWORD_V2_SUBMIT_CODE = 100202;
|
|
50
|
+
export const RESET_PASSWORD_V2_RESEND_CODE = 100203;
|
|
51
|
+
export const RESET_PASSWORD_V2_SUBMIT = 100204;
|
|
52
|
+
export const RESET_PASSWORD_V2_CHALLENGE = 100205;
|
|
53
|
+
export const SIGN_IN_V2_START = 100206;
|
|
54
|
+
export const SIGN_IN_V2_CHALLENGE = 100207;
|
|
55
|
+
export const SIGN_IN_V2_SUBMIT_PASSWORD = 100208;
|
|
56
|
+
export const SIGN_IN_V2_COMPLETE = 100209;
|
|
57
|
+
export const SIGN_IN_V2_SUBMIT_CODE = 100210;
|
|
58
|
+
export const SIGN_UP_V2_START = 100211;
|
|
59
|
+
export const SIGN_UP_V2_CHALLENGE = 100212;
|
|
60
|
+
export const SIGN_UP_V2_SUBMIT_CODE = 100213;
|
|
61
|
+
export const SIGN_UP_V2_SUBMIT_ATTRIBUTES = 100214;
|
|
62
|
+
export const SIGN_UP_V2_RESEND_CODE = 100215;
|
|
63
|
+
export const SIGN_UP_V2_COMPLETE = 100216;
|
package/src/custom_auth/index.ts
CHANGED
|
@@ -238,5 +238,101 @@ export {
|
|
|
238
238
|
MfaSubmitChallengeError,
|
|
239
239
|
} from "./core/auth_flow/mfa/error_type/MfaError.js";
|
|
240
240
|
|
|
241
|
+
// Native Auth V2
|
|
242
|
+
|
|
243
|
+
// Native Auth V2 Application Interface
|
|
244
|
+
export { ICustomAuthPublicClientApplicationV2 } from "./ICustomAuthPublicClientApplicationV2.js";
|
|
245
|
+
|
|
246
|
+
// Native Auth V2 Operation Inputs
|
|
247
|
+
export {
|
|
248
|
+
ResetPasswordInputsV2,
|
|
249
|
+
SignInInputsV2,
|
|
250
|
+
SignUpInputsV2,
|
|
251
|
+
SignInContinuationInputsV2,
|
|
252
|
+
} from "./CustomAuthActionInputs.js";
|
|
253
|
+
|
|
254
|
+
// Native Auth V2 Result
|
|
255
|
+
export { CustomAuthResultV2 } from "./core/auth_flow/v2/CustomAuthResultV2.js";
|
|
256
|
+
|
|
257
|
+
// Native Auth V2 Flow Scenario
|
|
258
|
+
export { CustomAuthFlowScenarioV2 } from "./core/auth_flow/v2/CustomAuthFlowScenarioV2.js";
|
|
259
|
+
|
|
260
|
+
// Native Auth V2 Authentication Method
|
|
261
|
+
export { AuthenticationMethodV2 } from "./core/auth_flow/v2/AuthenticationMethodV2.js";
|
|
262
|
+
|
|
263
|
+
// Native Auth V2 Errors
|
|
264
|
+
export { ResetPasswordStartErrorV2 } from "./core/auth_flow/v2/error/ResetPasswordStartErrorV2.js";
|
|
265
|
+
export { RequestChallengeErrorV2 } from "./core/auth_flow/v2/error/RequestChallengeErrorV2.js";
|
|
266
|
+
export { VerifyChallengeErrorV2 } from "./core/auth_flow/v2/error/VerifyChallengeErrorV2.js";
|
|
267
|
+
export { SubmitNewPasswordErrorV2 } from "./reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.js";
|
|
268
|
+
export { SignInStartErrorV2 } from "./sign_in/auth_flow/v2/error_type/SignInStartErrorV2.js";
|
|
269
|
+
export { SignUpStartErrorV2 } from "./sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.js";
|
|
270
|
+
export { SignInContinuationErrorV2 } from "./sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.js";
|
|
271
|
+
export { SubmitPasswordErrorV2 } from "./sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.js";
|
|
272
|
+
export { SubmitAttributesErrorV2 } from "./sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.js";
|
|
273
|
+
|
|
274
|
+
// Native Auth V2 States
|
|
275
|
+
export { CompletedStateV2 } from "./core/auth_flow/v2/state/CompletedStateV2.js";
|
|
276
|
+
export { FailedStateV2 } from "./core/auth_flow/v2/state/FailedStateV2.js";
|
|
277
|
+
export { NewPasswordRequiredStateV2 } from "./reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.js";
|
|
278
|
+
export { CodeRequiredStateV2 } from "./core/auth_flow/v2/state/CodeRequiredStateV2.js";
|
|
279
|
+
export { MFAVerificationRequiredStateV2 } from "./core/auth_flow/v2/state/MFAVerificationRequiredStateV2.js";
|
|
280
|
+
export { AuthMethodSelectionRequiredStateV2 } from "./core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.js";
|
|
281
|
+
export { MFARequiredStateV2 } from "./core/auth_flow/v2/state/MFARequiredStateV2.js";
|
|
282
|
+
export { PasswordRequiredStateV2 } from "./sign_in/auth_flow/v2/state/PasswordRequiredStateV2.js";
|
|
283
|
+
export { SignInContinuationStateV2 } from "./sign_in/auth_flow/v2/state/SignInContinuationStateV2.js";
|
|
284
|
+
export { AttributesRequiredStateV2 } from "./sign_up/auth_flow/v2/state/AttributesRequiredStateV2.js";
|
|
285
|
+
export { SignUpPasswordRequiredStateV2 } from "./sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.js";
|
|
286
|
+
|
|
287
|
+
// Native Auth V2 Results
|
|
288
|
+
export {
|
|
289
|
+
ResetPasswordStartResultV2,
|
|
290
|
+
ResetPasswordStartResultStateV2,
|
|
291
|
+
} from "./core/auth_flow/v2/result/ResetPasswordStartResultV2.js";
|
|
292
|
+
export {
|
|
293
|
+
SignInStartResultV2,
|
|
294
|
+
SignInStartResultStateV2,
|
|
295
|
+
} from "./sign_in/auth_flow/v2/result/SignInStartResultV2.js";
|
|
296
|
+
export {
|
|
297
|
+
SignUpStartResultV2,
|
|
298
|
+
SignUpStartResultStateV2,
|
|
299
|
+
} from "./sign_up/auth_flow/v2/result/SignUpStartResultV2.js";
|
|
300
|
+
export {
|
|
301
|
+
RequestChallengeResultV2,
|
|
302
|
+
RequestChallengeResultStateV2,
|
|
303
|
+
} from "./core/auth_flow/v2/result/RequestChallengeResultV2.js";
|
|
304
|
+
export {
|
|
305
|
+
MFARequestChallengeResultV2,
|
|
306
|
+
MFARequestChallengeResultStateV2,
|
|
307
|
+
} from "./core/auth_flow/v2/result/MFARequestChallengeResultV2.js";
|
|
308
|
+
export {
|
|
309
|
+
MFASubmitChallengeResultV2,
|
|
310
|
+
MFASubmitChallengeResultStateV2,
|
|
311
|
+
} from "./core/auth_flow/v2/result/MFASubmitChallengeResultV2.js";
|
|
312
|
+
export {
|
|
313
|
+
MFAResendChallengeResultV2,
|
|
314
|
+
MFAResendChallengeResultStateV2,
|
|
315
|
+
} from "./core/auth_flow/v2/result/MFAResendChallengeResultV2.js";
|
|
316
|
+
export {
|
|
317
|
+
VerifyChallengeResultV2,
|
|
318
|
+
VerifyChallengeResultStateV2,
|
|
319
|
+
} from "./core/auth_flow/v2/result/VerifyChallengeResultV2.js";
|
|
320
|
+
export {
|
|
321
|
+
SubmitNewPasswordResultV2,
|
|
322
|
+
SubmitNewPasswordResultStateV2,
|
|
323
|
+
} from "./reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.js";
|
|
324
|
+
export {
|
|
325
|
+
SignInContinuationResultV2,
|
|
326
|
+
SignInContinuationResultStateV2,
|
|
327
|
+
} from "./sign_in/auth_flow/v2/result/SignInContinuationResultV2.js";
|
|
328
|
+
export {
|
|
329
|
+
SubmitPasswordResultV2,
|
|
330
|
+
SubmitPasswordResultStateV2,
|
|
331
|
+
} from "./sign_in/auth_flow/v2/result/SubmitPasswordResultV2.js";
|
|
332
|
+
export {
|
|
333
|
+
SubmitAttributesResultV2,
|
|
334
|
+
SubmitAttributesResultStateV2,
|
|
335
|
+
} from "./sign_up/auth_flow/v2/result/SubmitAttributesResultV2.js";
|
|
336
|
+
|
|
241
337
|
// Components from msal_browser
|
|
242
338
|
export { LogLevel } from "@azure/msal-common/browser";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { AuthFlowErrorBaseV2 } from "../../../../core/auth_flow/v2/error/AuthFlowErrorBaseV2.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Error raised when submitting a new password. It exposes the detectors relevant
|
|
10
|
+
* to password submission so the app can react to a rejected password
|
|
11
|
+
* specifically. Unrecognised failures carry no specific detector; inspect the
|
|
12
|
+
* error code (`unexpected_error` when the server gives none) and
|
|
13
|
+
* `errorDescription`.
|
|
14
|
+
*/
|
|
15
|
+
export class SubmitNewPasswordErrorV2 extends AuthFlowErrorBaseV2 {
|
|
16
|
+
/**
|
|
17
|
+
* Checks if the error is due to the new password being invalid, for example
|
|
18
|
+
* because it fails the tenant's complexity policy. Use it to prompt the user
|
|
19
|
+
* for a stronger password rather than restarting the reset flow.
|
|
20
|
+
* @returns True if the new password is invalid, false otherwise.
|
|
21
|
+
*/
|
|
22
|
+
isInvalidPassword(): boolean {
|
|
23
|
+
return this.isInvalidPasswordError();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { CustomAuthResultV2 } from "../../../../core/auth_flow/v2/CustomAuthResultV2.js";
|
|
7
|
+
import type { FailedStateV2 } from "../../../../core/auth_flow/v2/state/FailedStateV2.js";
|
|
8
|
+
import type { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2/state/SignInContinuationStateV2.js";
|
|
9
|
+
import type { SubmitNewPasswordErrorV2 } from "../error_type/SubmitNewPasswordErrorV2.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The states a submit-new-password action can resolve to. Submitting the new
|
|
13
|
+
* password completes the reset; the flow does not sign the user in
|
|
14
|
+
* automatically, so on success it surfaces `SignInContinuationStateV2`
|
|
15
|
+
* (carrying the reset continuation) rather than the terminal `CompletedStateV2`.
|
|
16
|
+
* The app then calls its `signIn` to obtain tokens.
|
|
17
|
+
*/
|
|
18
|
+
export type SubmitNewPasswordResultStateV2 =
|
|
19
|
+
| SignInContinuationStateV2
|
|
20
|
+
| FailedStateV2;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Result of submitting a new password. It wraps one of
|
|
24
|
+
* {@link SubmitNewPasswordResultStateV2} plus, on failure, a
|
|
25
|
+
* {@link SubmitNewPasswordErrorV2}. Submitting completes the reset but does not
|
|
26
|
+
* sign the user in, so a successful result reaches
|
|
27
|
+
* `SignInContinuationStateV2` and carries no account data; the account is
|
|
28
|
+
* surfaced by the subsequent sign-in.
|
|
29
|
+
*/
|
|
30
|
+
export type SubmitNewPasswordResultV2 = CustomAuthResultV2<
|
|
31
|
+
SubmitNewPasswordResultStateV2,
|
|
32
|
+
SubmitNewPasswordErrorV2
|
|
33
|
+
>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { AuthFlowActionRequiredStateBase } from "../../../../core/auth_flow/AuthFlowState.js";
|
|
7
|
+
import { CustomAuthResultV2 } from "../../../../core/auth_flow/v2/CustomAuthResultV2.js";
|
|
8
|
+
import { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2/state/SignInContinuationStateV2.js";
|
|
9
|
+
import { SubmitNewPasswordErrorV2 } from "../error_type/SubmitNewPasswordErrorV2.js";
|
|
10
|
+
import type { NewPasswordRequiredStateParametersV2 } from "./ResetPasswordStateParametersV2.js";
|
|
11
|
+
import type { SubmitNewPasswordResultV2 } from "../result/SubmitNewPasswordResultV2.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* State returned when the user must supply a new password to complete the flow.
|
|
15
|
+
* A successful submission returns `SignInContinuationStateV2` so the app can
|
|
16
|
+
* sign the user in.
|
|
17
|
+
*/
|
|
18
|
+
export class NewPasswordRequiredStateV2 extends AuthFlowActionRequiredStateBase<NewPasswordRequiredStateParametersV2> {
|
|
19
|
+
readonly stateType = "newPasswordRequired";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Submits the new password to complete the reset. The result either allows
|
|
23
|
+
* sign-in or reports that the password was rejected.
|
|
24
|
+
* @param password - The new password to set.
|
|
25
|
+
* @returns The result of submitting the new password.
|
|
26
|
+
*/
|
|
27
|
+
async submitNewPassword(
|
|
28
|
+
password: string
|
|
29
|
+
): Promise<SubmitNewPasswordResultV2> {
|
|
30
|
+
const { correlationId, logger, continuationState, flowClient } =
|
|
31
|
+
this.stateParameters;
|
|
32
|
+
|
|
33
|
+
try {
|
|
34
|
+
this.ensurePasswordIsNotEmpty(password);
|
|
35
|
+
|
|
36
|
+
logger.verbose("Submitting V2 new password.", correlationId);
|
|
37
|
+
|
|
38
|
+
const result = await flowClient.submitNewPassword({
|
|
39
|
+
correlationId,
|
|
40
|
+
continuationState,
|
|
41
|
+
newPassword: password,
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
return new CustomAuthResultV2(
|
|
45
|
+
new SignInContinuationStateV2({
|
|
46
|
+
correlationId: result.correlationId,
|
|
47
|
+
logger,
|
|
48
|
+
config: this.stateParameters.config,
|
|
49
|
+
flowClient,
|
|
50
|
+
continuationState: result.continuationState,
|
|
51
|
+
cacheClient: this.stateParameters.cacheClient,
|
|
52
|
+
}),
|
|
53
|
+
undefined,
|
|
54
|
+
result.continuationState.scenario
|
|
55
|
+
);
|
|
56
|
+
} catch (error) {
|
|
57
|
+
logger.errorPii(
|
|
58
|
+
`Failed to submit V2 new password. Error: '${error}'.`,
|
|
59
|
+
correlationId
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
return CustomAuthResultV2.createWithError(error, {
|
|
63
|
+
errorType: SubmitNewPasswordErrorV2,
|
|
64
|
+
scenario: continuationState.scenario,
|
|
65
|
+
correlationId,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { CustomAuthActionRequiredStateParametersV2 } from "../../../../core/auth_flow/v2/state/CustomAuthStateParametersV2.js";
|
|
7
|
+
|
|
8
|
+
export type NewPasswordRequiredStateParametersV2 =
|
|
9
|
+
CustomAuthActionRequiredStateParametersV2;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { AuthFlowErrorBaseV2 } from "../../../../core/auth_flow/v2/error/AuthFlowErrorBaseV2.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Error raised when redeeming a completed V2 flow's continuation for tokens.
|
|
10
|
+
* It adds no action-specific detectors beyond the inherited
|
|
11
|
+
* `isBrowserRequired()`; the app typically retries or starts sign-in explicitly.
|
|
12
|
+
*/
|
|
13
|
+
export class SignInContinuationErrorV2 extends AuthFlowErrorBaseV2 {}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { AuthFlowErrorBaseV2 } from "../../../../core/auth_flow/v2/error/AuthFlowErrorBaseV2.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Error returned when native auth V2 sign-in cannot start.
|
|
10
|
+
*/
|
|
11
|
+
export class SignInStartErrorV2 extends AuthFlowErrorBaseV2 {
|
|
12
|
+
/**
|
|
13
|
+
* Checks whether the service rejected the username parameter.
|
|
14
|
+
* @returns True when the username was empty or invalid.
|
|
15
|
+
*/
|
|
16
|
+
isInvalidUsername(): boolean {
|
|
17
|
+
return this.isUserInvalidError();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Checks whether the supplied username does not identify an account.
|
|
22
|
+
* @returns True when the service reports that the user was not found.
|
|
23
|
+
*/
|
|
24
|
+
isUserNotFound(): boolean {
|
|
25
|
+
return this.isUserNotFoundError();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Checks whether an automatically submitted password was rejected.
|
|
30
|
+
* @returns True when the password is incorrect.
|
|
31
|
+
*/
|
|
32
|
+
isInvalidPassword(): boolean {
|
|
33
|
+
return this.isPasswordIncorrectError();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { AuthFlowErrorBaseV2 } from "../../../../core/auth_flow/v2/error/AuthFlowErrorBaseV2.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Error returned when a password cannot be submitted for V2 sign-in.
|
|
10
|
+
*/
|
|
11
|
+
export class SubmitPasswordErrorV2 extends AuthFlowErrorBaseV2 {
|
|
12
|
+
/**
|
|
13
|
+
* Checks whether the supplied password was rejected.
|
|
14
|
+
* @returns True when the password is incorrect.
|
|
15
|
+
*/
|
|
16
|
+
isInvalidPassword(): boolean {
|
|
17
|
+
return this.isPasswordIncorrectError();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { CustomAuthResultV2 } from "../../../../core/auth_flow/v2/CustomAuthResultV2.js";
|
|
7
|
+
import type { CompletedStateV2 } from "../../../../core/auth_flow/v2/state/CompletedStateV2.js";
|
|
8
|
+
import type { FailedStateV2 } from "../../../../core/auth_flow/v2/state/FailedStateV2.js";
|
|
9
|
+
import type { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
|
|
10
|
+
import type { SignInContinuationErrorV2 } from "../error_type/SignInContinuationErrorV2.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The states a V2 continuation sign-in can resolve to. Signing in redeems the
|
|
14
|
+
* flow continuation for tokens, so the terminal
|
|
15
|
+
* `CompletedStateV2` carries `CustomAuthAccountData`. `CompletedStateV2` and the
|
|
16
|
+
* account payload are declared together because they always occur together.
|
|
17
|
+
*/
|
|
18
|
+
export type SignInContinuationResultStateV2 = CompletedStateV2 | FailedStateV2;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Result of signing the user in from a V2 continuation. It wraps one of
|
|
22
|
+
* {@link SignInContinuationResultStateV2} plus, on failure, a
|
|
23
|
+
* {@link SignInContinuationErrorV2}, and on success carries the signed-in
|
|
24
|
+
* account data. This is the flow's completion point, so a successful result
|
|
25
|
+
* reaches `CompletedStateV2`.
|
|
26
|
+
*/
|
|
27
|
+
export type SignInContinuationResultV2 = CustomAuthResultV2<
|
|
28
|
+
SignInContinuationResultStateV2,
|
|
29
|
+
SignInContinuationErrorV2,
|
|
30
|
+
CustomAuthAccountData
|
|
31
|
+
>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { CustomAuthResultV2 } from "../../../../core/auth_flow/v2/CustomAuthResultV2.js";
|
|
7
|
+
import type { FailedStateV2 } from "../../../../core/auth_flow/v2/state/FailedStateV2.js";
|
|
8
|
+
import type { CompletedStateV2 } from "../../../../core/auth_flow/v2/state/CompletedStateV2.js";
|
|
9
|
+
import type { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
|
|
10
|
+
import type { SignInStartErrorV2 } from "../error_type/SignInStartErrorV2.js";
|
|
11
|
+
import type { PasswordRequiredStateV2 } from "../state/PasswordRequiredStateV2.js";
|
|
12
|
+
import type { MFARequiredStateV2 } from "../../../../core/auth_flow/v2/state/MFARequiredStateV2.js";
|
|
13
|
+
import type { CodeRequiredStateV2 } from "../../../../core/auth_flow/v2/state/CodeRequiredStateV2.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* States returned when native auth V2 sign-in starts.
|
|
17
|
+
*/
|
|
18
|
+
export type SignInStartResultStateV2 =
|
|
19
|
+
| PasswordRequiredStateV2
|
|
20
|
+
| CodeRequiredStateV2
|
|
21
|
+
| MFARequiredStateV2
|
|
22
|
+
| CompletedStateV2
|
|
23
|
+
| FailedStateV2;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Result of starting native auth V2 sign-in.
|
|
27
|
+
*/
|
|
28
|
+
export type SignInStartResultV2 = CustomAuthResultV2<
|
|
29
|
+
SignInStartResultStateV2,
|
|
30
|
+
SignInStartErrorV2,
|
|
31
|
+
CustomAuthAccountData | undefined
|
|
32
|
+
>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { CustomAuthResultV2 } from "../../../../core/auth_flow/v2/CustomAuthResultV2.js";
|
|
7
|
+
import type { CompletedStateV2 } from "../../../../core/auth_flow/v2/state/CompletedStateV2.js";
|
|
8
|
+
import type { FailedStateV2 } from "../../../../core/auth_flow/v2/state/FailedStateV2.js";
|
|
9
|
+
import type { MFARequiredStateV2 } from "../../../../core/auth_flow/v2/state/MFARequiredStateV2.js";
|
|
10
|
+
import type { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
|
|
11
|
+
import type { SubmitPasswordErrorV2 } from "../error_type/SubmitPasswordErrorV2.js";
|
|
12
|
+
|
|
13
|
+
export type SubmitPasswordResultStateV2 =
|
|
14
|
+
| CompletedStateV2
|
|
15
|
+
| MFARequiredStateV2
|
|
16
|
+
| FailedStateV2;
|
|
17
|
+
|
|
18
|
+
export type SubmitPasswordResultV2 = CustomAuthResultV2<
|
|
19
|
+
SubmitPasswordResultStateV2,
|
|
20
|
+
SubmitPasswordErrorV2,
|
|
21
|
+
CustomAuthAccountData | undefined
|
|
22
|
+
>;
|