@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 @@
|
|
|
1
|
+
{"version":3,"file":"AuthFlowErrorBaseV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.23.0 2026-09-23 */
|
|
2
|
+
'use strict';
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
+
* Licensed under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
const INVALID_ONE_TIME_CODE = "invalidOneTimeCode";
|
|
8
|
+
const INVALID_USERNAME_OR_PASSWORD = "invalidUserNameOrPassword";
|
|
9
|
+
const PASSWORD_TOO_WEAK = "passwordTooWeak";
|
|
10
|
+
|
|
11
|
+
export { INVALID_ONE_TIME_CODE, INVALID_USERNAME_OR_PASSWORD, PASSWORD_TOO_WEAK };
|
|
12
|
+
//# sourceMappingURL=AuthFlowErrorSubcodesV2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthFlowErrorSubcodesV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEI,MAAM,qBAAqB,GAAG,qBAAqB;AACnD,MAAM,4BAA4B,GAAG,4BAA4B;AACjE,MAAM,iBAAiB,GAAG;;;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.23.0 2026-09-23 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { AuthFlowErrorBaseV2 } from './AuthFlowErrorBaseV2.mjs';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Error raised when requesting (or resending) a challenge for a selected
|
|
11
|
+
* authentication method. It is a shared action error bound to the shared
|
|
12
|
+
* `RequestChallengeResultV2` and returned regardless of which entry flow reached
|
|
13
|
+
* it. It currently exposes no action-specific detectors — only the inherited
|
|
14
|
+
* `isBrowserRequired()`.
|
|
15
|
+
*/
|
|
16
|
+
class RequestChallengeErrorV2 extends AuthFlowErrorBaseV2 {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { RequestChallengeErrorV2 };
|
|
20
|
+
//# sourceMappingURL=RequestChallengeErrorV2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestChallengeErrorV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIH;;;;;;AAMG;AACG,MAAO,uBAAwB,SAAQ,mBAAmB,CAAA;AAAG;;;;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.23.0 2026-09-23 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { AuthFlowErrorBaseV2 } from './AuthFlowErrorBaseV2.mjs';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Error raised by the first call of the native auth V2 reset-password flow
|
|
11
|
+
* (`resetPasswordV2`). It surfaces only the detectors relevant to starting a
|
|
12
|
+
* password reset, so an app inspecting `result.error` sees a small, focused set.
|
|
13
|
+
* Any unrecognised failure carries no specific detector; inspect the error code
|
|
14
|
+
* (`unexpected_error` when the server gives none) and `errorDescription`.
|
|
15
|
+
*/
|
|
16
|
+
class ResetPasswordStartErrorV2 extends AuthFlowErrorBaseV2 {
|
|
17
|
+
/**
|
|
18
|
+
* Checks if the supplied username is empty or invalid.
|
|
19
|
+
* @returns True if the username is invalid, false otherwise.
|
|
20
|
+
*/
|
|
21
|
+
isInvalidUsername() {
|
|
22
|
+
return this.isUserInvalidError();
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Checks if the error is due to the user not being found. Use it to tell the
|
|
26
|
+
* user no account matches the supplied username, rather than exposing a
|
|
27
|
+
* generic failure that hides the real cause.
|
|
28
|
+
* @returns True if the user was not found, false otherwise.
|
|
29
|
+
*/
|
|
30
|
+
isUserNotFound() {
|
|
31
|
+
return this.isUserNotFoundError();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { ResetPasswordStartErrorV2 };
|
|
36
|
+
//# sourceMappingURL=ResetPasswordStartErrorV2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResetPasswordStartErrorV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIH;;;;;;AAMG;AACG,MAAO,yBAA0B,SAAQ,mBAAmB,CAAA;AAC9D;;;AAGG;IACH,iBAAiB,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC;IACrC,CAAC;AAED;;;;;AAKG;IACH,cAAc,GAAA;AACV,QAAA,OAAO,IAAI,CAAC,mBAAmB,EAAE,CAAC;IACtC,CAAC;AACJ;;;;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.23.0 2026-09-23 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { AuthFlowErrorBaseV2 } from './AuthFlowErrorBaseV2.mjs';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Error raised when verifying a challenge (submitting a one-time code). It
|
|
11
|
+
* exposes the detectors relevant to code verification so the app can respond to
|
|
12
|
+
* a rejected code specifically. Unrecognised failures carry no specific
|
|
13
|
+
* detector; inspect the error code (`unexpected_error` when the server gives
|
|
14
|
+
* none) and `errorDescription`.
|
|
15
|
+
*/
|
|
16
|
+
class VerifyChallengeErrorV2 extends AuthFlowErrorBaseV2 {
|
|
17
|
+
/**
|
|
18
|
+
* Checks if the error is due to the provided code being invalid or expired.
|
|
19
|
+
* Use it to prompt the user to re-enter the code or request a new one, rather
|
|
20
|
+
* than restarting the whole flow.
|
|
21
|
+
* @returns True if the code is invalid, false otherwise.
|
|
22
|
+
*/
|
|
23
|
+
isInvalidCode() {
|
|
24
|
+
return this.isInvalidCodeError();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { VerifyChallengeErrorV2 };
|
|
29
|
+
//# sourceMappingURL=VerifyChallengeErrorV2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyChallengeErrorV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIH;;;;;;AAMG;AACG,MAAO,sBAAuB,SAAQ,mBAAmB,CAAA;AAC3D;;;;;AAKG;IACH,aAAa,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC;IACrC,CAAC;AACJ;;;;"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.23.0 2026-09-23 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { CustomAuthResultV2 } from '../CustomAuthResultV2.mjs';
|
|
4
|
+
import { RequestChallengeErrorV2 } from '../error/RequestChallengeErrorV2.mjs';
|
|
5
|
+
import { CodeRequiredStateV2 } from './CodeRequiredStateV2.mjs';
|
|
6
|
+
import { FLOW_CODE_REQUIRED_V2 } from '../../../interaction_client/v2/result/FlowActionResultV2.mjs';
|
|
7
|
+
import { AuthenticationMethodSelectionStateBaseV2 } from './AuthenticationMethodSelectionStateBaseV2.mjs';
|
|
8
|
+
import { AuthenticationMethodTypeV2 } from '../../../network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs';
|
|
9
|
+
import { CustomAuthError } from '../../../error/CustomAuthError.mjs';
|
|
10
|
+
import { UNSUPPORTED_FLOW_TRANSITION } from '../../../network_client/custom_auth_api/v2/ErrorCodesV2.mjs';
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
14
|
+
* Licensed under the MIT License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* State returned when the user must select one of several authentication
|
|
18
|
+
* methods before a challenge can be issued. It exposes the list of offered
|
|
19
|
+
* methods and lets the app request a challenge for the chosen one. The flow
|
|
20
|
+
* stays on this state until a challenge is successfully requested.
|
|
21
|
+
*/
|
|
22
|
+
class AuthMethodSelectionRequiredStateV2 extends AuthenticationMethodSelectionStateBaseV2 {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
this.stateType = "authMethodSelectionRequired";
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Requests a challenge for the selected authentication method. The returned
|
|
29
|
+
* state identifies the credential the application must collect.
|
|
30
|
+
* @param method - The method to challenge, from {@link methods}.
|
|
31
|
+
* @returns The result of requesting the challenge.
|
|
32
|
+
*/
|
|
33
|
+
async requestChallenge(method) {
|
|
34
|
+
const { correlationId, logger, continuationState, flowClient } = this.stateParameters;
|
|
35
|
+
try {
|
|
36
|
+
logger.verbose("1r2ypl", correlationId);
|
|
37
|
+
const { result, selectedMethod } = await this.requestSelectedMethodChallenge(method);
|
|
38
|
+
const resultType = result.type;
|
|
39
|
+
const commonStateParameters = {
|
|
40
|
+
correlationId: result.correlationId,
|
|
41
|
+
logger,
|
|
42
|
+
config: this.stateParameters.config,
|
|
43
|
+
flowClient,
|
|
44
|
+
continuationState: result.continuationState,
|
|
45
|
+
cacheClient: this.stateParameters.cacheClient,
|
|
46
|
+
};
|
|
47
|
+
if (result.type === FLOW_CODE_REQUIRED_V2 &&
|
|
48
|
+
(result.channel?.toLowerCase() ===
|
|
49
|
+
AuthenticationMethodTypeV2.EMAIL ||
|
|
50
|
+
result.channel?.toLowerCase() ===
|
|
51
|
+
AuthenticationMethodTypeV2.SMS)) {
|
|
52
|
+
return new CustomAuthResultV2(new CodeRequiredStateV2({
|
|
53
|
+
...commonStateParameters,
|
|
54
|
+
method: selectedMethod,
|
|
55
|
+
sentTo: result.sentTo,
|
|
56
|
+
channel: result.channel,
|
|
57
|
+
codeLength: result.codeLength,
|
|
58
|
+
}), undefined, result.continuationState.scenario);
|
|
59
|
+
}
|
|
60
|
+
throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, `Challenge type '${resultType}' with channel '${result.type === FLOW_CODE_REQUIRED_V2
|
|
61
|
+
? result.channel
|
|
62
|
+
: AuthenticationMethodTypeV2.PASSWORD}' is not supported for password reset.`, correlationId);
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
logger.errorPii(`0z5x7r ${error}`, correlationId);
|
|
66
|
+
return CustomAuthResultV2.createWithError(error, {
|
|
67
|
+
errorType: RequestChallengeErrorV2,
|
|
68
|
+
scenario: continuationState.scenario,
|
|
69
|
+
correlationId,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { AuthMethodSelectionRequiredStateV2 };
|
|
76
|
+
//# sourceMappingURL=AuthMethodSelectionRequiredStateV2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthMethodSelectionRequiredStateV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;AAAA;;;AAGG;AAcH;;;;;AAKG;AACG,MAAO,kCAAmC,SAAQ,wCAAsF,CAAA;AAA9I,IAAA,WAAA,GAAA;;QACa,IAAA,CAAA,SAAS,GAAG,6BAA6B,CAAC;IA2EvD,CAAC;AAzEG;;;;;AAKG;IACH,MAAM,gBAAgB,CAClB,MAA8B,EAAA;AAE9B,QAAA,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,GAC1D,IAAI,CAAC,eAAe,CAAC;QAEzB,IAAI;AACA,YAAA,MAAM,CAAC,OAAO,CACV;AAIJ,YAAA,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,GAC5B,MAAM,IAAI,CAAC,8BAA8B,CAAC,MAAM,CAAC,CAAC;AACtD,YAAA,MAAM,UAAU,GAAW,MAAM,CAAC,IAAI,CAAC;AAEvC,YAAA,MAAM,qBAAqB,GAAG;gBAC1B,aAAa,EAAE,MAAM,CAAC,aAAa;gBACnC,MAAM;AACN,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;gBACnC,UAAU;gBACV,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;AAC3C,gBAAA,WAAW,EAAE,IAAI,CAAC,eAAe,CAAC,WAAW;aAChD,CAAC;AAEF,YAAA,IACI,MAAM,CAAC,IAAI,KAAK,qBAAqB;AACrC,iBAAC,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE;AAC1B,oBAAA,0BAA0B,CAAC,KAAK;AAChC,oBAAA,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE;wBACzB,0BAA0B,CAAC,GAAG,CAAC,EACzC;AACE,gBAAA,OAAO,IAAI,kBAAkB,CACzB,IAAI,mBAAmB,CAAC;AACpB,oBAAA,GAAG,qBAAqB;AACxB,oBAAA,MAAM,EAAE,cAAc;oBACtB,MAAM,EAAE,MAAM,CAAC,MAAM;oBACrB,OAAO,EAAE,MAAM,CAAC,OAAO;oBACvB,UAAU,EAAE,MAAM,CAAC,UAAU;iBAChC,CAAC,EACF,SAAS,EACT,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CACpC,CAAC;AACL,YAAA,CAAA;AAED,YAAA,MAAM,IAAI,eAAe,CACrB,2BAA2B,EAC3B,CAAA,gBAAA,EAAmB,UAAU,CAAA,gBAAA,EACzB,MAAM,CAAC,IAAI,KAAK,qBAAqB;kBAC/B,MAAM,CAAC,OAAO;kBACd,0BAA0B,CAAC,QACrC,wCAAwC,EACxC,aAAa,CAChB,CAAC;AACL,QAAA,CAAA;AAAC,QAAA,OAAO,KAAK,EAAE;YACZ,MAAM,CAAC,QAAQ,CACX,CAAA,OAAA,EAAA,KAAA,CAAA,CAAA,EAAA,aAAA,CAAA,CAAA;AAIJ,YAAA,OAAO,kBAAkB,CAAC,eAAe,CAAC,KAAK,EAAE;AAC7C,gBAAA,SAAS,EAAE,uBAAuB;gBAClC,QAAQ,EAAE,iBAAiB,CAAC,QAAQ;gBACpC,aAAa;AAChB,aAAA,CAAC,CAAC;AACN,QAAA,CAAA;IACL,CAAC;AACJ;;;;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.23.0 2026-09-23 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { AuthFlowActionRequiredStateBase } from '../../AuthFlowState.mjs';
|
|
4
|
+
import { InvalidArgumentError } from '../../../error/InvalidArgumentError.mjs';
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
|
+
* Licensed under the MIT License.
|
|
9
|
+
*/
|
|
10
|
+
class AuthenticationMethodSelectionStateBaseV2 extends AuthFlowActionRequiredStateBase {
|
|
11
|
+
constructor(stateParameters) {
|
|
12
|
+
super(stateParameters);
|
|
13
|
+
this.methods = stateParameters.methods;
|
|
14
|
+
}
|
|
15
|
+
async requestSelectedMethodChallenge(method) {
|
|
16
|
+
const { correlationId, continuationState, flowClient } = this.stateParameters;
|
|
17
|
+
const selectedMethod = this.methods.find((candidate) => candidate.id === method.id);
|
|
18
|
+
if (!selectedMethod) {
|
|
19
|
+
throw new InvalidArgumentError("method", correlationId);
|
|
20
|
+
}
|
|
21
|
+
const result = await flowClient.requestChallenge({
|
|
22
|
+
correlationId,
|
|
23
|
+
continuationState: {
|
|
24
|
+
...continuationState,
|
|
25
|
+
links: {
|
|
26
|
+
...continuationState.links,
|
|
27
|
+
challenge: selectedMethod.challengeHref,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
return { result, selectedMethod };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { AuthenticationMethodSelectionStateBaseV2 };
|
|
36
|
+
//# sourceMappingURL=AuthenticationMethodSelectionStateBaseV2.mjs.map
|
package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthenticationMethodSelectionStateBaseV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAgBG,MAAgB,wCAEpB,SAAQ,+BAA4C,CAAA;AAGlD,IAAA,WAAA,CAAY,eAA4B,EAAA;QACpC,KAAK,CAAC,eAAe,CAAC,CAAC;AACvB,QAAA,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC;IAC3C,CAAC;IAES,MAAM,8BAA8B,CAC1C,MAA8B,EAAA;QAK9B,MAAM,EAAE,aAAa,EAAE,iBAAiB,EAAE,UAAU,EAAE,GAClD,IAAI,CAAC,eAAe,CAAC;QACzB,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CACpC,CAAC,SAAS,KAAK,SAAS,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAC5C,CAAC;QAEF,IAAI,CAAC,cAAc,EAAE;AACjB,YAAA,MAAM,IAAI,oBAAoB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AAC3D,QAAA,CAAA;AAED,QAAA,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,gBAAgB,CAAC;YAC7C,aAAa;AACb,YAAA,iBAAiB,EAAE;AACf,gBAAA,GAAG,iBAAiB;AACpB,gBAAA,KAAK,EAAE;oBACH,GAAG,iBAAiB,CAAC,KAAK;oBAC1B,SAAS,EAAE,cAAc,CAAC,aAAa;AAC1C,iBAAA;AACJ,aAAA;AACJ,SAAA,CAAC,CAAC;AAEH,QAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC;IACtC,CAAC;AACJ;;;;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.23.0 2026-09-23 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { AuthFlowActionRequiredStateBase } from '../../AuthFlowState.mjs';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
class ChallengeVerificationStateBaseV2 extends AuthFlowActionRequiredStateBase {
|
|
10
|
+
constructor(stateParameters) {
|
|
11
|
+
super(stateParameters);
|
|
12
|
+
this.method = stateParameters.method;
|
|
13
|
+
this.sentTo = stateParameters.sentTo;
|
|
14
|
+
this.channel = stateParameters.channel;
|
|
15
|
+
this.codeLength = stateParameters.codeLength;
|
|
16
|
+
}
|
|
17
|
+
async submitCodeCore(code) {
|
|
18
|
+
if (this.codeLength) {
|
|
19
|
+
this.ensureCodeIsValid(code, this.codeLength);
|
|
20
|
+
}
|
|
21
|
+
return this.stateParameters.flowClient.submitCode({
|
|
22
|
+
correlationId: this.stateParameters.correlationId,
|
|
23
|
+
continuationState: this.stateParameters.continuationState,
|
|
24
|
+
code,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
async resendCodeCore() {
|
|
28
|
+
return this.stateParameters.flowClient.resendCode({
|
|
29
|
+
correlationId: this.stateParameters.correlationId,
|
|
30
|
+
continuationState: this.stateParameters.continuationState,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { ChallengeVerificationStateBaseV2 };
|
|
36
|
+
//# sourceMappingURL=ChallengeVerificationStateBaseV2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChallengeVerificationStateBaseV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAUG,MAAgB,gCAEpB,SAAQ,+BAA4C,CAAA;AASlD,IAAA,WAAA,CAAY,eAA4B,EAAA;QACpC,KAAK,CAAC,eAAe,CAAC,CAAC;AACvB,QAAA,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;AACrC,QAAA,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;AACrC,QAAA,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC;AACvC,QAAA,IAAI,CAAC,UAAU,GAAG,eAAe,CAAC,UAAU,CAAC;IACjD,CAAC;IAES,MAAM,cAAc,CAC1B,IAAY,EAAA;QAEZ,IAAI,IAAI,CAAC,UAAU,EAAE;YACjB,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AACjD,QAAA,CAAA;AAED,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,UAAU,CAAC;AAC9C,YAAA,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa;AACjD,YAAA,iBAAiB,EAAE,IAAI,CAAC,eAAe,CAAC,iBAAiB;YACzD,IAAI;AACP,SAAA,CAAC,CAAC;IACP,CAAC;AAES,IAAA,MAAM,cAAc,GAAA;AAC1B,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,UAAU,CAAC;AAC9C,YAAA,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa;AACjD,YAAA,iBAAiB,EAAE,IAAI,CAAC,eAAe,CAAC,iBAAiB;AAC5D,SAAA,CAAC,CAAC;IACP,CAAC;AACJ;;;;"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.23.0 2026-09-23 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { CustomAuthResultV2 } from '../CustomAuthResultV2.mjs';
|
|
4
|
+
import { VerifyChallengeErrorV2 } from '../error/VerifyChallengeErrorV2.mjs';
|
|
5
|
+
import { RequestChallengeErrorV2 } from '../error/RequestChallengeErrorV2.mjs';
|
|
6
|
+
import { NewPasswordRequiredStateV2 } from '../../../../reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs';
|
|
7
|
+
import { CompletedStateV2 } from './CompletedStateV2.mjs';
|
|
8
|
+
import { MFARequiredStateV2 } from './MFARequiredStateV2.mjs';
|
|
9
|
+
import { CustomAuthAccountData } from '../../../../get_account/auth_flow/CustomAuthAccountData.mjs';
|
|
10
|
+
import { FLOW_NEW_PASSWORD_REQUIRED_V2, FLOW_ATTRIBUTES_REQUIRED_V2, FLOW_SIGN_UP_PASSWORD_REQUIRED_V2, FLOW_SIGN_IN_CONTINUATION_REQUIRED_V2, FLOW_MFA_REQUIRED_V2, FLOW_COMPLETED_V2 } from '../../../interaction_client/v2/result/FlowActionResultV2.mjs';
|
|
11
|
+
import { CustomAuthError } from '../../../error/CustomAuthError.mjs';
|
|
12
|
+
import { UNSUPPORTED_FLOW_TRANSITION } from '../../../network_client/custom_auth_api/v2/ErrorCodesV2.mjs';
|
|
13
|
+
import { SignInContinuationStateV2 } from '../../../../sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs';
|
|
14
|
+
import { ChallengeVerificationStateBaseV2 } from './ChallengeVerificationStateBaseV2.mjs';
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
18
|
+
* Licensed under the MIT License.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* State returned when first-factor email authentication requires a one-time
|
|
22
|
+
* code. It allows the app to submit the code or request a replacement.
|
|
23
|
+
*/
|
|
24
|
+
class CodeRequiredStateV2 extends ChallengeVerificationStateBaseV2 {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.stateType = "codeRequired";
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Submits the first-factor email code and advances the active flow. The
|
|
31
|
+
* result may complete the operation or require another flow-specific step.
|
|
32
|
+
* @param code - The code to submit.
|
|
33
|
+
* @returns The result of submitting the first-factor code.
|
|
34
|
+
*/
|
|
35
|
+
async submitCode(code) {
|
|
36
|
+
const { correlationId, logger, continuationState } = this.stateParameters;
|
|
37
|
+
try {
|
|
38
|
+
logger.verbose("1x3xae", correlationId);
|
|
39
|
+
const result = await this.submitCodeCore(code);
|
|
40
|
+
const resultType = result.type;
|
|
41
|
+
if (result.type === FLOW_NEW_PASSWORD_REQUIRED_V2) {
|
|
42
|
+
return new CustomAuthResultV2(new NewPasswordRequiredStateV2({
|
|
43
|
+
correlationId: result.correlationId,
|
|
44
|
+
logger,
|
|
45
|
+
config: this.stateParameters.config,
|
|
46
|
+
flowClient: this.stateParameters.flowClient,
|
|
47
|
+
continuationState: result.continuationState,
|
|
48
|
+
cacheClient: this.stateParameters.cacheClient,
|
|
49
|
+
}), undefined, result.continuationState.scenario);
|
|
50
|
+
}
|
|
51
|
+
if (result.type === FLOW_ATTRIBUTES_REQUIRED_V2 ||
|
|
52
|
+
result.type === FLOW_SIGN_UP_PASSWORD_REQUIRED_V2) {
|
|
53
|
+
const signUpStateTransitionHandler = this.stateParameters.signUpStateTransitionHandler;
|
|
54
|
+
if (!signUpStateTransitionHandler) {
|
|
55
|
+
throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, "Sign-up state transition handler is missing.", correlationId);
|
|
56
|
+
}
|
|
57
|
+
return signUpStateTransitionHandler.handleVerification(result, {
|
|
58
|
+
...this.stateParameters,
|
|
59
|
+
signUpStateTransitionHandler,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
if (result.type === FLOW_SIGN_IN_CONTINUATION_REQUIRED_V2) {
|
|
63
|
+
return new CustomAuthResultV2(new SignInContinuationStateV2({
|
|
64
|
+
correlationId: result.correlationId,
|
|
65
|
+
logger,
|
|
66
|
+
config: this.stateParameters.config,
|
|
67
|
+
flowClient: this.stateParameters.flowClient,
|
|
68
|
+
continuationState: result.continuationState,
|
|
69
|
+
cacheClient: this.stateParameters.cacheClient,
|
|
70
|
+
}), undefined, result.continuationState.scenario);
|
|
71
|
+
}
|
|
72
|
+
if (result.type === FLOW_MFA_REQUIRED_V2) {
|
|
73
|
+
return new CustomAuthResultV2(new MFARequiredStateV2({
|
|
74
|
+
correlationId: result.correlationId,
|
|
75
|
+
logger,
|
|
76
|
+
config: this.stateParameters.config,
|
|
77
|
+
flowClient: this.stateParameters.flowClient,
|
|
78
|
+
continuationState: result.continuationState,
|
|
79
|
+
cacheClient: this.stateParameters.cacheClient,
|
|
80
|
+
methods: result.methods,
|
|
81
|
+
}), undefined, result.continuationState.scenario);
|
|
82
|
+
}
|
|
83
|
+
if (result.type === FLOW_COMPLETED_V2) {
|
|
84
|
+
const account = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, logger, correlationId);
|
|
85
|
+
return new CustomAuthResultV2(new CompletedStateV2(), account, continuationState.scenario);
|
|
86
|
+
}
|
|
87
|
+
throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, `Code submission result type '${resultType}' is not supported.`, correlationId);
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
logger.errorPii(`0br9qy ${error}`, correlationId);
|
|
91
|
+
return CustomAuthResultV2.createWithError(error, {
|
|
92
|
+
errorType: VerifyChallengeErrorV2,
|
|
93
|
+
scenario: continuationState.scenario,
|
|
94
|
+
correlationId,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Requests a replacement first-factor email code. The returned state
|
|
100
|
+
* contains the refreshed challenge metadata.
|
|
101
|
+
* @returns The result of requesting a replacement code.
|
|
102
|
+
*/
|
|
103
|
+
async resendCode() {
|
|
104
|
+
const { correlationId, logger, continuationState } = this.stateParameters;
|
|
105
|
+
try {
|
|
106
|
+
logger.verbose("1xub2c", correlationId);
|
|
107
|
+
const result = await this.resendCodeCore();
|
|
108
|
+
return new CustomAuthResultV2(new CodeRequiredStateV2({
|
|
109
|
+
correlationId: result.correlationId,
|
|
110
|
+
logger,
|
|
111
|
+
config: this.stateParameters.config,
|
|
112
|
+
flowClient: this.stateParameters.flowClient,
|
|
113
|
+
continuationState: result.continuationState,
|
|
114
|
+
cacheClient: this.stateParameters.cacheClient,
|
|
115
|
+
signUpStateTransitionHandler: this.stateParameters.signUpStateTransitionHandler,
|
|
116
|
+
method: this.method,
|
|
117
|
+
sentTo: result.sentTo,
|
|
118
|
+
channel: result.channel,
|
|
119
|
+
codeLength: result.codeLength,
|
|
120
|
+
}), undefined, result.continuationState.scenario);
|
|
121
|
+
}
|
|
122
|
+
catch (error) {
|
|
123
|
+
logger.errorPii(`0eq23q ${error}`, correlationId);
|
|
124
|
+
return CustomAuthResultV2.createWithError(error, {
|
|
125
|
+
errorType: RequestChallengeErrorV2,
|
|
126
|
+
scenario: continuationState.scenario,
|
|
127
|
+
correlationId,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export { CodeRequiredStateV2 };
|
|
134
|
+
//# sourceMappingURL=CodeRequiredStateV2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeRequiredStateV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.23.0 2026-09-23 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { AuthFlowStateBase } from '../../AuthFlowState.mjs';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Terminal state indicating the operation completed successfully.
|
|
11
|
+
*
|
|
12
|
+
* Completion data (for example the signed-in account) is carried by the
|
|
13
|
+
* result's `data` payload, not by this state.
|
|
14
|
+
*/
|
|
15
|
+
class CompletedStateV2 extends AuthFlowStateBase {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.stateType = "completed";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { CompletedStateV2 };
|
|
23
|
+
//# sourceMappingURL=CompletedStateV2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompletedStateV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIH;;;;;AAKG;AACG,MAAO,gBAAiB,SAAQ,iBAAiB,CAAA;AAAvD,IAAA,WAAA,GAAA;;QACa,IAAA,CAAA,SAAS,GAAG,WAAW,CAAC;IACrC,CAAC;AAAA;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.23.0 2026-09-23 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { AuthFlowStateBase } from '../../AuthFlowState.mjs';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Terminal state indicating the operation failed.
|
|
11
|
+
*
|
|
12
|
+
* The error is carried by the result's `error` payload, not by this state.
|
|
13
|
+
*/
|
|
14
|
+
class FailedStateV2 extends AuthFlowStateBase {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.stateType = "failed";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { FailedStateV2 };
|
|
22
|
+
//# sourceMappingURL=FailedStateV2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FailedStateV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIH;;;;AAIG;AACG,MAAO,aAAc,SAAQ,iBAAiB,CAAA;AAApD,IAAA,WAAA,GAAA;;QACa,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC;IAClC,CAAC;AAAA;;;;"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.23.0 2026-09-23 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { CustomAuthResultV2 } from '../CustomAuthResultV2.mjs';
|
|
4
|
+
import { RequestChallengeErrorV2 } from '../error/RequestChallengeErrorV2.mjs';
|
|
5
|
+
import { CustomAuthError } from '../../../error/CustomAuthError.mjs';
|
|
6
|
+
import { UNSUPPORTED_FLOW_TRANSITION } from '../../../network_client/custom_auth_api/v2/ErrorCodesV2.mjs';
|
|
7
|
+
import { FLOW_CODE_REQUIRED_V2 } from '../../../interaction_client/v2/result/FlowActionResultV2.mjs';
|
|
8
|
+
import { MFAVerificationRequiredStateV2 } from './MFAVerificationRequiredStateV2.mjs';
|
|
9
|
+
import { AuthenticationMethodSelectionStateBaseV2 } from './AuthenticationMethodSelectionStateBaseV2.mjs';
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
13
|
+
* Licensed under the MIT License.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* State returned when sign-in requires a registered multi-factor
|
|
17
|
+
* authentication method.
|
|
18
|
+
*/
|
|
19
|
+
class MFARequiredStateV2 extends AuthenticationMethodSelectionStateBaseV2 {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.stateType = "mfaRequired";
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Requests a challenge for a registered MFA method.
|
|
26
|
+
* @param method - A method from {@link methods}.
|
|
27
|
+
* @returns A result requiring challenge verification or describing failure.
|
|
28
|
+
*/
|
|
29
|
+
async requestChallenge(method) {
|
|
30
|
+
const { correlationId, logger, continuationState, flowClient } = this.stateParameters;
|
|
31
|
+
try {
|
|
32
|
+
const { result, selectedMethod } = await this.requestSelectedMethodChallenge(method);
|
|
33
|
+
if (result.type !== FLOW_CODE_REQUIRED_V2) {
|
|
34
|
+
throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, `MFA method selection expected a code challenge but received '${result.type}'.`, correlationId);
|
|
35
|
+
}
|
|
36
|
+
return new CustomAuthResultV2(new MFAVerificationRequiredStateV2({
|
|
37
|
+
correlationId: result.correlationId,
|
|
38
|
+
logger,
|
|
39
|
+
config: this.stateParameters.config,
|
|
40
|
+
flowClient,
|
|
41
|
+
continuationState: result.continuationState,
|
|
42
|
+
cacheClient: this.stateParameters.cacheClient,
|
|
43
|
+
method: selectedMethod,
|
|
44
|
+
sentTo: result.sentTo,
|
|
45
|
+
channel: result.channel,
|
|
46
|
+
codeLength: result.codeLength,
|
|
47
|
+
}), undefined, result.continuationState.scenario);
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
logger.errorPii(`0ax1kt ${error}`, correlationId);
|
|
51
|
+
return CustomAuthResultV2.createWithError(error, {
|
|
52
|
+
errorType: RequestChallengeErrorV2,
|
|
53
|
+
scenario: continuationState.scenario,
|
|
54
|
+
correlationId,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { MFARequiredStateV2 };
|
|
61
|
+
//# sourceMappingURL=MFARequiredStateV2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MFARequiredStateV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;AAGG;AAaH;;;AAGG;AACG,MAAO,kBAAmB,SAAQ,wCAAsE,CAAA;AAA9G,IAAA,WAAA,GAAA;;QACa,IAAA,CAAA,SAAS,GAAG,aAAa,CAAC;IAsDvC,CAAC;AApDG;;;;AAIG;IACH,MAAM,gBAAgB,CAClB,MAA8B,EAAA;AAE9B,QAAA,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,GAC1D,IAAI,CAAC,eAAe,CAAC;QAEzB,IAAI;AACA,YAAA,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,GAC5B,MAAM,IAAI,CAAC,8BAA8B,CAAC,MAAM,CAAC,CAAC;AAEtD,YAAA,IAAI,MAAM,CAAC,IAAI,KAAK,qBAAqB,EAAE;AACvC,gBAAA,MAAM,IAAI,eAAe,CACrB,2BAA2B,EAC3B,CAAA,6DAAA,EAAgE,MAAM,CAAC,IAAI,CAAA,EAAA,CAAI,EAC/E,aAAa,CAChB,CAAC;AACL,YAAA,CAAA;AAED,YAAA,OAAO,IAAI,kBAAkB,CACzB,IAAI,8BAA8B,CAAC;gBAC/B,aAAa,EAAE,MAAM,CAAC,aAAa;gBACnC,MAAM;AACN,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;gBACnC,UAAU;gBACV,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;AAC3C,gBAAA,WAAW,EAAE,IAAI,CAAC,eAAe,CAAC,WAAW;AAC7C,gBAAA,MAAM,EAAE,cAAc;gBACtB,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,UAAU,EAAE,MAAM,CAAC,UAAU;aAChC,CAAC,EACF,SAAS,EACT,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CACpC,CAAC;AACL,QAAA,CAAA;AAAC,QAAA,OAAO,KAAK,EAAE;YACZ,MAAM,CAAC,QAAQ,CACX,CAAA,OAAA,EAAA,KAAA,CAAA,CAAA,EAAA,aAAA,CAAA,CAAA;AAIJ,YAAA,OAAO,kBAAkB,CAAC,eAAe,CAAC,KAAK,EAAE;AAC7C,gBAAA,SAAS,EAAE,uBAAuB;gBAClC,QAAQ,EAAE,iBAAiB,CAAC,QAAQ;gBACpC,aAAa;AAChB,aAAA,CAAC,CAAC;AACN,QAAA,CAAA;IACL,CAAC;AACJ;;;;"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.23.0 2026-09-23 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { CustomAuthResultV2 } from '../CustomAuthResultV2.mjs';
|
|
4
|
+
import { VerifyChallengeErrorV2 } from '../error/VerifyChallengeErrorV2.mjs';
|
|
5
|
+
import { RequestChallengeErrorV2 } from '../error/RequestChallengeErrorV2.mjs';
|
|
6
|
+
import { CompletedStateV2 } from './CompletedStateV2.mjs';
|
|
7
|
+
import { CustomAuthAccountData } from '../../../../get_account/auth_flow/CustomAuthAccountData.mjs';
|
|
8
|
+
import { FLOW_COMPLETED_V2 } from '../../../interaction_client/v2/result/FlowActionResultV2.mjs';
|
|
9
|
+
import { CustomAuthError } from '../../../error/CustomAuthError.mjs';
|
|
10
|
+
import { UNSUPPORTED_FLOW_TRANSITION } from '../../../network_client/custom_auth_api/v2/ErrorCodesV2.mjs';
|
|
11
|
+
import { ChallengeVerificationStateBaseV2 } from './ChallengeVerificationStateBaseV2.mjs';
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
15
|
+
* Licensed under the MIT License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* State returned when sign-in requires verification of an email or SMS MFA
|
|
19
|
+
* challenge. It allows the app to submit the challenge or request a replacement.
|
|
20
|
+
*/
|
|
21
|
+
class MFAVerificationRequiredStateV2 extends ChallengeVerificationStateBaseV2 {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.stateType = "mfaVerificationRequired";
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Submits the email or SMS challenge as the second authentication factor.
|
|
28
|
+
* Successful verification completes sign-in.
|
|
29
|
+
* @param challenge - The challenge value to submit.
|
|
30
|
+
* @returns The result of submitting the MFA challenge.
|
|
31
|
+
*/
|
|
32
|
+
async submitChallenge(challenge) {
|
|
33
|
+
const { correlationId, logger, continuationState } = this.stateParameters;
|
|
34
|
+
try {
|
|
35
|
+
logger.verbose("10k0lc", correlationId);
|
|
36
|
+
const result = await this.submitCodeCore(challenge);
|
|
37
|
+
if (result.type !== FLOW_COMPLETED_V2) {
|
|
38
|
+
throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, `MFA challenge submission result type '${result.type}' is not supported.`, correlationId);
|
|
39
|
+
}
|
|
40
|
+
const account = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, logger, correlationId);
|
|
41
|
+
return new CustomAuthResultV2(new CompletedStateV2(), account, continuationState.scenario);
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
logger.errorPii(`178w0g ${error}`, correlationId);
|
|
45
|
+
return CustomAuthResultV2.createWithError(error, {
|
|
46
|
+
errorType: VerifyChallengeErrorV2,
|
|
47
|
+
scenario: continuationState.scenario,
|
|
48
|
+
correlationId,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Requests a replacement challenge for the selected MFA method. The
|
|
54
|
+
* returned state contains the refreshed email or SMS challenge metadata.
|
|
55
|
+
* @returns The result of requesting a replacement MFA challenge.
|
|
56
|
+
*/
|
|
57
|
+
async resendChallenge() {
|
|
58
|
+
const { correlationId, logger, continuationState } = this.stateParameters;
|
|
59
|
+
try {
|
|
60
|
+
logger.verbose("13st9u", correlationId);
|
|
61
|
+
const result = await this.resendCodeCore();
|
|
62
|
+
return new CustomAuthResultV2(new MFAVerificationRequiredStateV2({
|
|
63
|
+
correlationId: result.correlationId,
|
|
64
|
+
logger,
|
|
65
|
+
config: this.stateParameters.config,
|
|
66
|
+
flowClient: this.stateParameters.flowClient,
|
|
67
|
+
continuationState: result.continuationState,
|
|
68
|
+
cacheClient: this.stateParameters.cacheClient,
|
|
69
|
+
method: this.method,
|
|
70
|
+
sentTo: result.sentTo,
|
|
71
|
+
channel: result.channel,
|
|
72
|
+
codeLength: result.codeLength,
|
|
73
|
+
}), undefined, result.continuationState.scenario);
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
logger.errorPii(`1qw1ey ${error}`, correlationId);
|
|
77
|
+
return CustomAuthResultV2.createWithError(error, {
|
|
78
|
+
errorType: RequestChallengeErrorV2,
|
|
79
|
+
scenario: continuationState.scenario,
|
|
80
|
+
correlationId,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export { MFAVerificationRequiredStateV2 };
|
|
87
|
+
//# sourceMappingURL=MFAVerificationRequiredStateV2.mjs.map
|