@azure/msal-browser 4.24.0 → 4.25.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/app/PublicClientNext.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/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/ControllerFactory.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +2 -1
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.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/custom-auth-path/app/PublicClientApplication.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
- package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
- package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/TokenCache.mjs +1 -1
- package/dist/custom-auth-path/config/Configuration.mjs +1 -1
- package/dist/custom-auth-path/controllers/ControllerFactory.mjs +1 -1
- package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.mjs +2 -1
- package/dist/custom-auth-path/controllers/StandardController.mjs.map +1 -1
- package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
- package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
- package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +25 -2
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +6 -6
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +5 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +42 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +45 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +45 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +16 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +16 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +125 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.mjs +85 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +24 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +2 -2
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +4 -3
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +4 -3
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +6 -3
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +15 -13
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/index.d.ts +7 -0
- package/dist/custom-auth-path/custom_auth/index.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/index.mjs +7 -1
- package/dist/custom-auth-path/custom_auth/index.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +3 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +2 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +9 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +19 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +17 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +10 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +9 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +6 -13
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +5 -33
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +5 -30
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.d.ts +16 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +68 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +2 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +5 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +3 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
- package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/error/NativeAuthError.d.ts.map +1 -1
- package/dist/custom-auth-path/error/NativeAuthError.mjs +3 -2
- package/dist/custom-auth-path/error/NativeAuthError.mjs.map +1 -1
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.d.ts +1 -0
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.d.ts.map +1 -1
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +3 -2
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs.map +1 -1
- package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
- package/dist/custom-auth-path/event/EventType.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +2 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
- package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
- package/dist/custom-auth-path/packageMetadata.mjs +2 -2
- package/dist/custom-auth-path/protocol/Authorize.mjs +1 -1
- package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
- package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
- package/dist/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +5 -0
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/dist/custom_auth/index.d.ts +7 -0
- package/dist/custom_auth/index.d.ts.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +19 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +10 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.d.ts +16 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +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.d.ts.map +1 -1
- package/dist/error/NativeAuthError.mjs +3 -2
- package/dist/error/NativeAuthError.mjs.map +1 -1
- package/dist/error/NativeAuthErrorCodes.d.ts +1 -0
- package/dist/error/NativeAuthErrorCodes.d.ts.map +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +3 -2
- package/dist/error/NativeAuthErrorCodes.mjs.map +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +2 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +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/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/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.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/BrowserPerformanceMeasurement.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/lib/custom-auth-path/msal-custom-auth.cjs +894 -468
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
- package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +5 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/index.d.ts +7 -0
- package/lib/custom-auth-path/types/custom_auth/index.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +19 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +10 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInState.d.ts +16 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
- package/lib/custom-auth-path/types/error/NativeAuthError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/error/NativeAuthErrorCodes.d.ts +1 -0
- package/lib/custom-auth-path/types/error/NativeAuthErrorCodes.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
- package/lib/msal-browser.cjs +70 -66
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +70 -66
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +60 -60
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
- package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +5 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
- package/lib/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/lib/types/custom_auth/index.d.ts +7 -0
- package/lib/types/custom_auth/index.d.ts.map +1 -1
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +19 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +10 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInState.d.ts +16 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
- package/lib/types/error/NativeAuthError.d.ts.map +1 -1
- package/lib/types/error/NativeAuthErrorCodes.d.ts +1 -0
- package/lib/types/error/NativeAuthErrorCodes.d.ts.map +1 -1
- package/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/package.json +1 -1
- package/src/controllers/StandardController.ts +1 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +33 -0
- package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +3 -5
- package/src/custom_auth/core/auth_flow/mfa/error_type/MfaError.ts +8 -0
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts +2 -1
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.ts +1 -0
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.ts +1 -0
- package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +17 -15
- package/src/custom_auth/index.ts +22 -0
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.ts +2 -0
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.ts +1 -0
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.ts +2 -0
- package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +12 -1
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +27 -1
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +14 -1
- package/src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts +12 -22
- package/src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts +8 -50
- package/src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts +12 -49
- package/src/custom_auth/sign_in/auth_flow/state/SignInState.ts +108 -0
- package/src/custom_auth/sign_in/auth_flow/state/SignInStateParameters.ts +2 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.ts +1 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.ts +4 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.ts +2 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.ts +2 -0
- package/src/error/NativeAuthError.ts +1 -0
- package/src/error/NativeAuthErrorCodes.ts +1 -0
- package/src/interaction_client/PlatformAuthInteractionClient.ts +1 -0
- package/src/packageMetadata.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.25.0 2025-10-09 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { ResetPasswordSubmitPasswordResult } from '../result/ResetPasswordSubmitPasswordResult.mjs';
|
|
4
4
|
import { ResetPasswordState } from './ResetPasswordState.mjs';
|
|
@@ -41,6 +41,7 @@ class ResetPasswordPasswordRequiredState extends ResetPasswordState {
|
|
|
41
41
|
signInClient: this.stateParameters.signInClient,
|
|
42
42
|
cacheClient: this.stateParameters.cacheClient,
|
|
43
43
|
jitClient: this.stateParameters.jitClient,
|
|
44
|
+
mfaClient: this.stateParameters.mfaClient,
|
|
44
45
|
signInScenario: SignInScenario.SignInAfterPasswordReset,
|
|
45
46
|
}));
|
|
46
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordPasswordRequiredState.mjs","sources":["../../../../../../../src/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AAQH;;AAEG;AACG,MAAO,kCAAmC,SAAQ,kBAAgE,CAAA;AACpH;;;;AAIG;IACH,MAAM,iBAAiB,CACnB,QAAgB,EAAA;QAEhB,IAAI;AACA,YAAA,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;AAExC,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,6CAA6C,EAC7C,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;YAEF,MAAM,MAAM,GACR,MAAM,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,iBAAiB,CAC5D;gBACI,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ;AACnD,gBAAA,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa;AACjD,gBAAA,aAAa,EACT,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU;AACjC,qBAAA,cAAc,IAAI,EAAE;AAC7B,gBAAA,iBAAiB,EACb,IAAI,CAAC,eAAe,CAAC,iBAAiB,IAAI,EAAE;AAChD,gBAAA,WAAW,EAAE,QAAQ;AACrB,gBAAA,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ;AAC1C,aAAA,CACJ,CAAC;AAEN,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,wCAAwC,EACxC,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,OAAO,IAAI,iCAAiC,CACxC,IAAI,2BAA2B,CAAC;gBAC5B,aAAa,EAAE,MAAM,CAAC,aAAa;gBACnC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;AAC3C,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;AACnC,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;AACnC,gBAAA,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ;AACvC,gBAAA,YAAY,EAAE,IAAI,CAAC,eAAe,CAAC,YAAY;AAC/C,gBAAA,WAAW,EAAE,IAAI,CAAC,eAAe,CAAC,WAAW;AAC7C,gBAAA,SAAS,EAAE,IAAI,CAAC,eAAe,CAAC,SAAS;gBACzC,cAAc,EAAE,cAAc,CAAC,wBAAwB;AAC1D,aAAA,CAAC,CACL,CAAC;AACL,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;AACZ,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAChC,CAAA,qDAAA,EAAwD,KAAK,CAAA,CAAA,CAAG,EAChE,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,OAAO,iCAAiC,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AACnE,SAAA;KACJ;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"ResetPasswordPasswordRequiredState.mjs","sources":["../../../../../../../src/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AAQH;;AAEG;AACG,MAAO,kCAAmC,SAAQ,kBAAgE,CAAA;AACpH;;;;AAIG;IACH,MAAM,iBAAiB,CACnB,QAAgB,EAAA;QAEhB,IAAI;AACA,YAAA,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;AAExC,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,6CAA6C,EAC7C,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;YAEF,MAAM,MAAM,GACR,MAAM,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,iBAAiB,CAC5D;gBACI,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ;AACnD,gBAAA,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa;AACjD,gBAAA,aAAa,EACT,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU;AACjC,qBAAA,cAAc,IAAI,EAAE;AAC7B,gBAAA,iBAAiB,EACb,IAAI,CAAC,eAAe,CAAC,iBAAiB,IAAI,EAAE;AAChD,gBAAA,WAAW,EAAE,QAAQ;AACrB,gBAAA,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ;AAC1C,aAAA,CACJ,CAAC;AAEN,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,wCAAwC,EACxC,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,OAAO,IAAI,iCAAiC,CACxC,IAAI,2BAA2B,CAAC;gBAC5B,aAAa,EAAE,MAAM,CAAC,aAAa;gBACnC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;AAC3C,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;AACnC,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;AACnC,gBAAA,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ;AACvC,gBAAA,YAAY,EAAE,IAAI,CAAC,eAAe,CAAC,YAAY;AAC/C,gBAAA,WAAW,EAAE,IAAI,CAAC,eAAe,CAAC,WAAW;AAC7C,gBAAA,SAAS,EAAE,IAAI,CAAC,eAAe,CAAC,SAAS;AACzC,gBAAA,SAAS,EAAE,IAAI,CAAC,eAAe,CAAC,SAAS;gBACzC,cAAc,EAAE,cAAc,CAAC,wBAAwB;AAC1D,aAAA,CAAC,CACL,CAAC;AACL,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;AACZ,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAChC,CAAA,qDAAA,EAAwD,KAAK,CAAA,CAAA,CAAG,EAChE,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,OAAO,iCAAiC,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AACnE,SAAA;KACJ;AACJ;;;;"}
|
package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.25.0 2025-10-09 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthFlowActionRequiredStateBase } from '../../../core/auth_flow/AuthFlowState.mjs';
|
|
4
4
|
import { ensureArgumentIsNotEmptyString } from '../../../core/utils/ArgumentValidator.mjs';
|
|
@@ -3,12 +3,14 @@ import { SignInClient } from "../../../sign_in/interaction_client/SignInClient.j
|
|
|
3
3
|
import { CustomAuthSilentCacheClient } from "../../../get_account/interaction_client/CustomAuthSilentCacheClient.js";
|
|
4
4
|
import { AuthFlowActionRequiredStateParameters } from "../../../core/auth_flow/AuthFlowState.js";
|
|
5
5
|
import { JitClient } from "../../../core/interaction_client/jit/JitClient.js";
|
|
6
|
+
import { MfaClient } from "../../../core/interaction_client/mfa/MfaClient.js";
|
|
6
7
|
export interface ResetPasswordStateParameters extends AuthFlowActionRequiredStateParameters {
|
|
7
8
|
username: string;
|
|
8
9
|
resetPasswordClient: ResetPasswordClient;
|
|
9
10
|
signInClient: SignInClient;
|
|
10
11
|
cacheClient: CustomAuthSilentCacheClient;
|
|
11
12
|
jitClient: JitClient;
|
|
13
|
+
mfaClient: MfaClient;
|
|
12
14
|
}
|
|
13
15
|
export type ResetPasswordPasswordRequiredStateParameters = ResetPasswordStateParameters;
|
|
14
16
|
export interface ResetPasswordCodeRequiredStateParameters extends ResetPasswordStateParameters {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordStateParameters.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,MAAM,wEAAwE,CAAC;AACrH,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,mDAAmD,CAAC;AAE9E,MAAM,WAAW,4BACb,SAAQ,qCAAqC;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,EAAE,2BAA2B,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC;CACxB;AAED,MAAM,MAAM,4CAA4C,GACpD,4BAA4B,CAAC;AAEjC,MAAM,WAAW,wCACb,SAAQ,4BAA4B;IACpC,UAAU,EAAE,MAAM,CAAC;CACtB"}
|
|
1
|
+
{"version":3,"file":"ResetPasswordStateParameters.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,MAAM,wEAAwE,CAAC;AACrH,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,mDAAmD,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,mDAAmD,CAAC;AAE9E,MAAM,WAAW,4BACb,SAAQ,qCAAqC;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,EAAE,2BAA2B,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;CACxB;AAED,MAAM,MAAM,4CAA4C,GACpD,4BAA4B,CAAC;AAEjC,MAAM,WAAW,wCACb,SAAQ,4BAA4B;IACpC,UAAU,EAAE,MAAM,CAAC;CACtB"}
|
package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.25.0 2025-10-09 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { CustomAuthApiError } from '../../core/error/CustomAuthApiError.mjs';
|
|
4
4
|
import { CustomAuthInteractionClientBase } from '../../core/interaction_client/CustomAuthInteractionClientBase.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.25.0 2025-10-09 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthActionErrorBase } from '../../../core/auth_flow/AuthFlowErrorBase.mjs';
|
|
4
4
|
import { USER_NOT_FOUND } from '../../../core/network_client/custom_auth_api/types/ApiErrorCodes.mjs';
|
|
@@ -6,6 +6,7 @@ import { SignInPasswordRequiredState } from "../state/SignInPasswordRequiredStat
|
|
|
6
6
|
import { SignInFailedState } from "../state/SignInFailedState.js";
|
|
7
7
|
import { SignInCompletedState } from "../state/SignInCompletedState.js";
|
|
8
8
|
import { AuthMethodRegistrationRequiredState } from "../../../core/auth_flow/jit/state/AuthMethodRegistrationState.js";
|
|
9
|
+
import { MfaAwaitingState } from "../../../core/auth_flow/mfa/state/MfaState.js";
|
|
9
10
|
export declare class SignInResult extends AuthFlowResultBase<SignInResultState, SignInError, CustomAuthAccountData> {
|
|
10
11
|
/**
|
|
11
12
|
* Creates a new instance of SignInResultState.
|
|
@@ -49,6 +50,13 @@ export declare class SignInResult extends AuthFlowResultBase<SignInResultState,
|
|
|
49
50
|
isAuthMethodRegistrationRequired(): this is SignInResult & {
|
|
50
51
|
state: AuthMethodRegistrationRequiredState;
|
|
51
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* Checks if the result requires MFA.
|
|
55
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
56
|
+
*/
|
|
57
|
+
isMfaRequired(): this is SignInResult & {
|
|
58
|
+
state: MfaAwaitingState;
|
|
59
|
+
};
|
|
52
60
|
}
|
|
53
61
|
/**
|
|
54
62
|
* The possible states for the SignInResult.
|
|
@@ -58,6 +66,7 @@ export declare class SignInResult extends AuthFlowResultBase<SignInResultState,
|
|
|
58
66
|
* - SignInFailedState: The sign-in process has failed.
|
|
59
67
|
* - SignInCompletedState: The sign-in process is completed.
|
|
60
68
|
* - AuthMethodRegistrationRequiredState: The sign-in process requires authentication method registration.
|
|
69
|
+
* - MfaAwaitingState: The sign-in process requires MFA.
|
|
61
70
|
*/
|
|
62
|
-
export type SignInResultState = SignInCodeRequiredState | SignInPasswordRequiredState | SignInFailedState | SignInCompletedState | AuthMethodRegistrationRequiredState;
|
|
71
|
+
export type SignInResultState = SignInCodeRequiredState | SignInPasswordRequiredState | SignInFailedState | SignInCompletedState | AuthMethodRegistrationRequiredState | MfaAwaitingState;
|
|
63
72
|
//# sourceMappingURL=SignInResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInResult.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/result/SignInResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;
|
|
1
|
+
{"version":3,"file":"SignInResult.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/result/SignInResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;AACvH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAKjF,qBAAa,YAAa,SAAQ,kBAAkB,CAChD,iBAAiB,EACjB,WAAW,EACX,qBAAqB,CACxB;IACG;;;OAGG;gBACS,KAAK,EAAE,iBAAiB,EAAE,UAAU,CAAC,EAAE,qBAAqB;IAIxE;;;;OAIG;IACH,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY;IAOpD;;OAEG;IACH,QAAQ,IAAI,IAAI,IAAI,YAAY,GAAG;QAAE,KAAK,EAAE,iBAAiB,CAAA;KAAE;IAI/D;;OAEG;IACH,cAAc,IAAI,IAAI,IAAI,YAAY,GAAG;QACrC,KAAK,EAAE,uBAAuB,CAAC;KAClC;IAID;;OAEG;IACH,kBAAkB,IAAI,IAAI,IAAI,YAAY,GAAG;QACzC,KAAK,EAAE,2BAA2B,CAAC;KACtC;IAID;;OAEG;IACH,WAAW,IAAI,IAAI,IAAI,YAAY,GAAG;QAAE,KAAK,EAAE,oBAAoB,CAAA;KAAE;IAIrE;;;OAGG;IACH,gCAAgC,IAAI,IAAI,IAAI,YAAY,GAAG;QACvD,KAAK,EAAE,mCAAmC,CAAC;KAC9C;IAID;;;OAGG;IACH,aAAa,IAAI,IAAI,IAAI,YAAY,GAAG;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;CAGtE;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GACvB,uBAAuB,GACvB,2BAA2B,GAC3B,iBAAiB,GACjB,oBAAoB,GACpB,mCAAmC,GACnC,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.25.0 2025-10-09 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthFlowResultBase } from '../../../core/auth_flow/AuthFlowResultBase.mjs';
|
|
4
4
|
import { SignInError } from '../error_type/SignInError.mjs';
|
|
@@ -7,6 +7,7 @@ import { SignInPasswordRequiredState } from '../state/SignInPasswordRequiredStat
|
|
|
7
7
|
import { SignInFailedState } from '../state/SignInFailedState.mjs';
|
|
8
8
|
import { SignInCompletedState } from '../state/SignInCompletedState.mjs';
|
|
9
9
|
import { AuthMethodRegistrationRequiredState } from '../../../core/auth_flow/jit/state/AuthMethodRegistrationState.mjs';
|
|
10
|
+
import { MfaAwaitingState } from '../../../core/auth_flow/mfa/state/MfaState.mjs';
|
|
10
11
|
|
|
11
12
|
/*
|
|
12
13
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -64,6 +65,13 @@ class SignInResult extends AuthFlowResultBase {
|
|
|
64
65
|
isAuthMethodRegistrationRequired() {
|
|
65
66
|
return this.state instanceof AuthMethodRegistrationRequiredState;
|
|
66
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Checks if the result requires MFA.
|
|
70
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
71
|
+
*/
|
|
72
|
+
isMfaRequired() {
|
|
73
|
+
return this.state instanceof MfaAwaitingState;
|
|
74
|
+
}
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
export { SignInResult };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInResult.mjs","sources":["../../../../../../../src/custom_auth/sign_in/auth_flow/result/SignInResult.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignInResult.mjs","sources":["../../../../../../../src/custom_auth/sign_in/auth_flow/result/SignInResult.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;AAAA;;;AAGG;AAYH;;AAEG;AACG,MAAO,YAAa,SAAQ,kBAIjC,CAAA;AACG;;;AAGG;IACH,WAAY,CAAA,KAAwB,EAAE,UAAkC,EAAA;AACpE,QAAA,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;KAC5B;AAED;;;;AAIG;IACH,OAAO,eAAe,CAAC,KAAc,EAAA;QACjC,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAC;AACzD,QAAA,MAAM,CAAC,KAAK,GAAG,IAAI,WAAW,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;AAEpE,QAAA,OAAO,MAAM,CAAC;KACjB;AAED;;AAEG;IACH,QAAQ,GAAA;AACJ,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,iBAAiB,CAAC;KAClD;AAED;;AAEG;IACH,cAAc,GAAA;AAGV,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,uBAAuB,CAAC;KACxD;AAED;;AAEG;IACH,kBAAkB,GAAA;AAGd,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,2BAA2B,CAAC;KAC5D;AAED;;AAEG;IACH,WAAW,GAAA;AACP,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,oBAAoB,CAAC;KACrD;AAED;;;AAGG;IACH,gCAAgC,GAAA;AAG5B,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,mCAAmC,CAAC;KACpE;AAED;;;AAGG;IACH,aAAa,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,gBAAgB,CAAC;KACjD;AACJ;;;;"}
|
package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { SignInCompletedState } from "../state/SignInCompletedState.js";
|
|
|
3
3
|
import { SignInFailedState } from "../state/SignInFailedState.js";
|
|
4
4
|
import { AuthFlowResultBase } from "../../../core/auth_flow/AuthFlowResultBase.js";
|
|
5
5
|
import { CustomAuthAccountData } from "../../../get_account/auth_flow/CustomAuthAccountData.js";
|
|
6
|
+
import { AuthMethodRegistrationRequiredState } from "../../../core/auth_flow/jit/state/AuthMethodRegistrationState.js";
|
|
7
|
+
import { MfaAwaitingState } from "../../../core/auth_flow/mfa/state/MfaState.js";
|
|
6
8
|
export declare class SignInSubmitCodeResult extends AuthFlowResultBase<SignInSubmitCodeResultState, SignInSubmitCodeError, CustomAuthAccountData> {
|
|
7
9
|
/**
|
|
8
10
|
* Creates a new instance of SignInSubmitCodeResult with error data.
|
|
@@ -22,12 +24,28 @@ export declare class SignInSubmitCodeResult extends AuthFlowResultBase<SignInSub
|
|
|
22
24
|
isCompleted(): this is SignInSubmitCodeResult & {
|
|
23
25
|
state: SignInCompletedState;
|
|
24
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Checks if the result requires authentication method registration.
|
|
29
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
30
|
+
*/
|
|
31
|
+
isAuthMethodRegistrationRequired(): this is SignInSubmitCodeResult & {
|
|
32
|
+
state: AuthMethodRegistrationRequiredState;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Checks if the result requires MFA.
|
|
36
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
37
|
+
*/
|
|
38
|
+
isMfaRequired(): this is SignInSubmitCodeResult & {
|
|
39
|
+
state: MfaAwaitingState;
|
|
40
|
+
};
|
|
25
41
|
}
|
|
26
42
|
/**
|
|
27
43
|
* The possible states of the SignInSubmitCodeResult.
|
|
28
44
|
* This includes:
|
|
29
45
|
* - SignInCompletedState: The sign-in process has completed successfully.
|
|
30
46
|
* - SignInFailedState: The sign-in process has failed.
|
|
47
|
+
* - AuthMethodRegistrationRequiredState: The user needs to register an authentication method.
|
|
48
|
+
* - MfaAwaitingState: The user is in a multi-factor authentication (MFA) waiting state.
|
|
31
49
|
*/
|
|
32
|
-
export type SignInSubmitCodeResultState = SignInCompletedState | SignInFailedState;
|
|
50
|
+
export type SignInSubmitCodeResultState = SignInCompletedState | SignInFailedState | AuthMethodRegistrationRequiredState | MfaAwaitingState;
|
|
33
51
|
//# sourceMappingURL=SignInSubmitCodeResult.d.ts.map
|
package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInSubmitCodeResult.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;
|
|
1
|
+
{"version":3,"file":"SignInSubmitCodeResult.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;AACvH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAKjF,qBAAa,sBAAuB,SAAQ,kBAAkB,CAC1D,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,CACxB;IACG;;;;OAIG;IACH,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,sBAAsB;IAS9D;;OAEG;IACH,QAAQ,IAAI,IAAI,IAAI,sBAAsB,GAAG;QAAE,KAAK,EAAE,iBAAiB,CAAA;KAAE;IAIzE;;OAEG;IACH,WAAW,IAAI,IAAI,IAAI,sBAAsB,GAAG;QAC5C,KAAK,EAAE,oBAAoB,CAAC;KAC/B;IAID;;;OAGG;IACH,gCAAgC,IAAI,IAAI,IAAI,sBAAsB,GAAG;QACjE,KAAK,EAAE,mCAAmC,CAAC;KAC9C;IAID;;;OAGG;IACH,aAAa,IAAI,IAAI,IAAI,sBAAsB,GAAG;QAC9C,KAAK,EAAE,gBAAgB,CAAC;KAC3B;CAGJ;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,2BAA2B,GACjC,oBAAoB,GACpB,iBAAiB,GACjB,mCAAmC,GACnC,gBAAgB,CAAC"}
|
package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.25.0 2025-10-09 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { SignInSubmitCodeError } from '../error_type/SignInError.mjs';
|
|
4
4
|
import { SignInCompletedState } from '../state/SignInCompletedState.mjs';
|
|
5
5
|
import { SignInFailedState } from '../state/SignInFailedState.mjs';
|
|
6
6
|
import { AuthFlowResultBase } from '../../../core/auth_flow/AuthFlowResultBase.mjs';
|
|
7
|
+
import { AuthMethodRegistrationRequiredState } from '../../../core/auth_flow/jit/state/AuthMethodRegistrationState.mjs';
|
|
8
|
+
import { MfaAwaitingState } from '../../../core/auth_flow/mfa/state/MfaState.mjs';
|
|
7
9
|
|
|
8
10
|
/*
|
|
9
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -35,6 +37,20 @@ class SignInSubmitCodeResult extends AuthFlowResultBase {
|
|
|
35
37
|
isCompleted() {
|
|
36
38
|
return this.state instanceof SignInCompletedState;
|
|
37
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Checks if the result requires authentication method registration.
|
|
42
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
43
|
+
*/
|
|
44
|
+
isAuthMethodRegistrationRequired() {
|
|
45
|
+
return this.state instanceof AuthMethodRegistrationRequiredState;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Checks if the result requires MFA.
|
|
49
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
50
|
+
*/
|
|
51
|
+
isMfaRequired() {
|
|
52
|
+
return this.state instanceof MfaAwaitingState;
|
|
53
|
+
}
|
|
38
54
|
}
|
|
39
55
|
|
|
40
56
|
export { SignInSubmitCodeResult };
|
package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInSubmitCodeResult.mjs","sources":["../../../../../../../src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignInSubmitCodeResult.mjs","sources":["../../../../../../../src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;AAGG;AAUH;;AAEG;AACG,MAAO,sBAAuB,SAAQ,kBAI3C,CAAA;AACG;;;;AAIG;IACH,OAAO,eAAe,CAAC,KAAc,EAAA;QACjC,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAC;AACnE,QAAA,MAAM,CAAC,KAAK,GAAG,IAAI,qBAAqB,CACpC,sBAAsB,CAAC,eAAe,CAAC,KAAK,CAAC,CAChD,CAAC;AAEF,QAAA,OAAO,MAAM,CAAC;KACjB;AAED;;AAEG;IACH,QAAQ,GAAA;AACJ,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,iBAAiB,CAAC;KAClD;AAED;;AAEG;IACH,WAAW,GAAA;AAGP,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,oBAAoB,CAAC;KACrD;AAED;;;AAGG;IACH,gCAAgC,GAAA;AAG5B,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,mCAAmC,CAAC;KACpE;AAED;;;AAGG;IACH,aAAa,GAAA;AAGT,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,gBAAgB,CAAC;KACjD;AACJ;;;;"}
|
package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { SignInFailedState } from "../state/SignInFailedState.js";
|
|
|
4
4
|
import { AuthFlowResultBase } from "../../../core/auth_flow/AuthFlowResultBase.js";
|
|
5
5
|
import { CustomAuthAccountData } from "../../../get_account/auth_flow/CustomAuthAccountData.js";
|
|
6
6
|
import { AuthMethodRegistrationRequiredState } from "../../../core/auth_flow/jit/state/AuthMethodRegistrationState.js";
|
|
7
|
+
import { MfaAwaitingState } from "../../../core/auth_flow/mfa/state/MfaState.js";
|
|
7
8
|
export declare class SignInSubmitPasswordResult extends AuthFlowResultBase<SignInSubmitPasswordResultState, SignInSubmitPasswordError, CustomAuthAccountData> {
|
|
8
9
|
static createWithError(error: unknown): SignInSubmitPasswordResult;
|
|
9
10
|
/**
|
|
@@ -25,6 +26,13 @@ export declare class SignInSubmitPasswordResult extends AuthFlowResultBase<SignI
|
|
|
25
26
|
isAuthMethodRegistrationRequired(): this is SignInSubmitPasswordResult & {
|
|
26
27
|
state: AuthMethodRegistrationRequiredState;
|
|
27
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Checks if the result requires MFA.
|
|
31
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
32
|
+
*/
|
|
33
|
+
isMfaRequired(): this is SignInSubmitPasswordResult & {
|
|
34
|
+
state: MfaAwaitingState;
|
|
35
|
+
};
|
|
28
36
|
}
|
|
29
37
|
/**
|
|
30
38
|
* The possible states of the SignInSubmitPasswordResult.
|
|
@@ -32,6 +40,7 @@ export declare class SignInSubmitPasswordResult extends AuthFlowResultBase<SignI
|
|
|
32
40
|
* - SignInCompletedState: The sign-in process has completed successfully.
|
|
33
41
|
* - SignInFailedState: The sign-in process has failed.
|
|
34
42
|
* - AuthMethodRegistrationRequiredState: The sign-in process requires authentication method registration.
|
|
43
|
+
* - MfaAwaitingState: The sign-in process requires MFA.
|
|
35
44
|
*/
|
|
36
|
-
export type SignInSubmitPasswordResultState = SignInCompletedState | SignInFailedState | AuthMethodRegistrationRequiredState;
|
|
45
|
+
export type SignInSubmitPasswordResultState = SignInCompletedState | SignInFailedState | AuthMethodRegistrationRequiredState | MfaAwaitingState;
|
|
37
46
|
//# sourceMappingURL=SignInSubmitPasswordResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInSubmitPasswordResult.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;
|
|
1
|
+
{"version":3,"file":"SignInSubmitPasswordResult.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;AACvH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAKjF,qBAAa,0BAA2B,SAAQ,kBAAkB,CAC9D,+BAA+B,EAC/B,yBAAyB,EACzB,qBAAqB,CACxB;IACG,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,0BAA0B;IASlE;;OAEG;IACH,QAAQ,IAAI,IAAI,IAAI,0BAA0B,GAAG;QAC7C,KAAK,EAAE,iBAAiB,CAAC;KAC5B;IAID;;OAEG;IACH,WAAW,IAAI,IAAI,IAAI,0BAA0B,GAAG;QAChD,KAAK,EAAE,oBAAoB,CAAC;KAC/B;IAID;;;OAGG;IACH,gCAAgC,IAAI,IAAI,IAAI,0BAA0B,GAAG;QACrE,KAAK,EAAE,mCAAmC,CAAC;KAC9C;IAID;;;OAGG;IACH,aAAa,IAAI,IAAI,IAAI,0BAA0B,GAAG;QAClD,KAAK,EAAE,gBAAgB,CAAC;KAC3B;CAGJ;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,+BAA+B,GACrC,oBAAoB,GACpB,iBAAiB,GACjB,mCAAmC,GACnC,gBAAgB,CAAC"}
|
package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.25.0 2025-10-09 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { SignInSubmitPasswordError } from '../error_type/SignInError.mjs';
|
|
4
4
|
import { SignInCompletedState } from '../state/SignInCompletedState.mjs';
|
|
5
5
|
import { SignInFailedState } from '../state/SignInFailedState.mjs';
|
|
6
6
|
import { AuthFlowResultBase } from '../../../core/auth_flow/AuthFlowResultBase.mjs';
|
|
7
7
|
import { AuthMethodRegistrationRequiredState } from '../../../core/auth_flow/jit/state/AuthMethodRegistrationState.mjs';
|
|
8
|
+
import { MfaAwaitingState } from '../../../core/auth_flow/mfa/state/MfaState.mjs';
|
|
8
9
|
|
|
9
10
|
/*
|
|
10
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -38,6 +39,13 @@ class SignInSubmitPasswordResult extends AuthFlowResultBase {
|
|
|
38
39
|
isAuthMethodRegistrationRequired() {
|
|
39
40
|
return this.state instanceof AuthMethodRegistrationRequiredState;
|
|
40
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Checks if the result requires MFA.
|
|
44
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
45
|
+
*/
|
|
46
|
+
isMfaRequired() {
|
|
47
|
+
return this.state instanceof MfaAwaitingState;
|
|
48
|
+
}
|
|
41
49
|
}
|
|
42
50
|
|
|
43
51
|
export { SignInSubmitPasswordResult };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInSubmitPasswordResult.mjs","sources":["../../../../../../../src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignInSubmitPasswordResult.mjs","sources":["../../../../../../../src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;AAGG;AAUH;;AAEG;AACG,MAAO,0BAA2B,SAAQ,kBAI/C,CAAA;IACG,OAAO,eAAe,CAAC,KAAc,EAAA;QACjC,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAC;AACvE,QAAA,MAAM,CAAC,KAAK,GAAG,IAAI,yBAAyB,CACxC,0BAA0B,CAAC,eAAe,CAAC,KAAK,CAAC,CACpD,CAAC;AAEF,QAAA,OAAO,MAAM,CAAC;KACjB;AAED;;AAEG;IACH,QAAQ,GAAA;AAGJ,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,iBAAiB,CAAC;KAClD;AAED;;AAEG;IACH,WAAW,GAAA;AAGP,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,oBAAoB,CAAC;KACrD;AAED;;;AAGG;IACH,gCAAgC,GAAA;AAG5B,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,mCAAmC,CAAC;KACpE;AAED;;;AAGG;IACH,aAAa,GAAA;AAGT,QAAA,OAAO,IAAI,CAAC,KAAK,YAAY,gBAAgB,CAAC;KACjD;AACJ;;;;"}
|
package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInCodeRequiredState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignInCodeRequiredState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAK/C,qBAAa,uBAAwB,SAAQ,WAAW,CAAC,iCAAiC,CAAC;IACvF;;;;;OAKG;IACG,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAsD/D;;;OAGG;IACG,UAAU,IAAI,OAAO,CAAC,sBAAsB,CAAC;IA6CnD;;;OAGG;IACH,aAAa,IAAI,MAAM;IAIvB;;;OAGG;IACH,SAAS,IAAI,MAAM,EAAE,GAAG,SAAS;CAGpC"}
|
package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.25.0 2025-10-09 */
|
|
2
2
|
'use strict';
|
|
3
|
-
import { CustomAuthAccountData } from '../../../get_account/auth_flow/CustomAuthAccountData.mjs';
|
|
4
3
|
import { SignInResendCodeResult } from '../result/SignInResendCodeResult.mjs';
|
|
5
4
|
import { SignInSubmitCodeResult } from '../result/SignInSubmitCodeResult.mjs';
|
|
6
5
|
import { SignInState } from './SignInState.mjs';
|
|
7
|
-
import { SignInCompletedState } from './SignInCompletedState.mjs';
|
|
8
|
-
import { SIGN_IN_COMPLETED_RESULT_TYPE } from '../../interaction_client/result/SignInActionResult.mjs';
|
|
9
6
|
|
|
10
7
|
/*
|
|
11
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -37,16 +34,11 @@ class SignInCodeRequiredState extends SignInState {
|
|
|
37
34
|
this.stateParameters.logger.verbose("Submitting code for sign-in.", this.stateParameters.correlationId);
|
|
38
35
|
const submitCodeResult = await this.stateParameters.signInClient.submitCode(submitCodeParams);
|
|
39
36
|
this.stateParameters.logger.verbose("Code submitted for sign-in.", this.stateParameters.correlationId);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
// Unexpected result type
|
|
46
|
-
const result = submitCodeResult;
|
|
47
|
-
const error = new Error(`Unexpected result type: ${result.type}`);
|
|
48
|
-
return SignInSubmitCodeResult.createWithError(error);
|
|
37
|
+
const nextState = this.handleSignInResult(submitCodeResult, this.stateParameters.scopes);
|
|
38
|
+
if (nextState.error) {
|
|
39
|
+
return SignInSubmitCodeResult.createWithError(nextState.error);
|
|
49
40
|
}
|
|
41
|
+
return new SignInSubmitCodeResult(nextState.state, nextState.accountInfo);
|
|
50
42
|
}
|
|
51
43
|
catch (error) {
|
|
52
44
|
this.stateParameters.logger.errorPii(`Failed to submit code for sign-in. Error: ${error}.`, this.stateParameters.correlationId);
|
|
@@ -77,6 +69,7 @@ class SignInCodeRequiredState extends SignInState {
|
|
|
77
69
|
signInClient: this.stateParameters.signInClient,
|
|
78
70
|
cacheClient: this.stateParameters.cacheClient,
|
|
79
71
|
jitClient: this.stateParameters.jitClient,
|
|
72
|
+
mfaClient: this.stateParameters.mfaClient,
|
|
80
73
|
username: this.stateParameters.username,
|
|
81
74
|
codeLength: result.codeLength,
|
|
82
75
|
scopes: this.stateParameters.scopes,
|
package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInCodeRequiredState.mjs","sources":["../../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignInCodeRequiredState.mjs","sources":["../../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;AAWH;;AAEG;AACG,MAAO,uBAAwB,SAAQ,WAA8C,CAAA;AACvF;;;;;AAKG;IACH,MAAM,UAAU,CAAC,IAAY,EAAA;QACzB,IAAI;YACA,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;AAE9D,YAAA,MAAM,gBAAgB,GAA2B;gBAC7C,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ;AACnD,gBAAA,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa;gBACjD,aAAa,EACT,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,IAAI,EAAE;AAC/D,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,IAAI,EAAE;AACzC,gBAAA,iBAAiB,EAAE,IAAI,CAAC,eAAe,CAAC,iBAAiB,IAAI,EAAE;AAC/D,gBAAA,IAAI,EAAE,IAAI;AACV,gBAAA,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ;AACvC,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;aACtC,CAAC;AAEF,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,8BAA8B,EAC9B,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,MAAM,gBAAgB,GAClB,MAAM,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,UAAU,CAC9C,gBAAgB,CACnB,CAAC;AAEN,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,6BAA6B,EAC7B,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,MAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,CACrC,gBAAgB,EAChB,IAAI,CAAC,eAAe,CAAC,MAAM,CAC9B,CAAC;YAEF,IAAI,SAAS,CAAC,KAAK,EAAE;gBACjB,OAAO,sBAAsB,CAAC,eAAe,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAClE,aAAA;YAED,OAAO,IAAI,sBAAsB,CAC7B,SAAS,CAAC,KAAK,EACf,SAAS,CAAC,WAAW,CACxB,CAAC;AACL,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;AACZ,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAChC,CAAA,0CAAA,EAA6C,KAAK,CAAA,CAAA,CAAG,EACrD,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,OAAO,sBAAsB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AACxD,SAAA;KACJ;AAED;;;AAGG;AACH,IAAA,MAAM,UAAU,GAAA;QACZ,IAAI;AACA,YAAA,MAAM,gBAAgB,GAA2B;gBAC7C,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ;AACnD,gBAAA,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa;gBACjD,aAAa,EACT,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,IAAI,EAAE;AAC/D,gBAAA,iBAAiB,EAAE,IAAI,CAAC,eAAe,CAAC,iBAAiB,IAAI,EAAE;AAC/D,gBAAA,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ;aAC1C,CAAC;AAEF,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,6BAA6B,EAC7B,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,UAAU,CAC7D,gBAAgB,CACnB,CAAC;AAEF,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,0BAA0B,EAC1B,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,OAAO,IAAI,sBAAsB,CAC7B,IAAI,uBAAuB,CAAC;gBACxB,aAAa,EAAE,MAAM,CAAC,aAAa;gBACnC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;AAC3C,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;AACnC,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;AACnC,gBAAA,YAAY,EAAE,IAAI,CAAC,eAAe,CAAC,YAAY;AAC/C,gBAAA,WAAW,EAAE,IAAI,CAAC,eAAe,CAAC,WAAW;AAC7C,gBAAA,SAAS,EAAE,IAAI,CAAC,eAAe,CAAC,SAAS;AACzC,gBAAA,SAAS,EAAE,IAAI,CAAC,eAAe,CAAC,SAAS;AACzC,gBAAA,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ;gBACvC,UAAU,EAAE,MAAM,CAAC,UAAU;AAC7B,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;AACtC,aAAA,CAAC,CACL,CAAC;AACL,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;AACZ,YAAA,OAAO,sBAAsB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AACxD,SAAA;KACJ;AAED;;;AAGG;IACH,aAAa,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC;KAC1C;AAED;;;AAGG;IACH,SAAS,GAAA;AACL,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC;KACtC;AACJ;;;;"}
|
package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInContinuationState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignInContinuationState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C,qBAAa,uBAAwB,SAAQ,WAAW,CAAC,iCAAiC,CAAC;IACvF;;;;OAIG;IACG,MAAM,CACR,iCAAiC,CAAC,EAAE,iCAAiC,GACtE,OAAO,CAAC,YAAY,CAAC;CAwD3B"}
|
package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.25.0 2025-10-09 */
|
|
2
2
|
'use strict';
|
|
3
|
-
import { CustomAuthAccountData } from '../../../get_account/auth_flow/CustomAuthAccountData.mjs';
|
|
4
3
|
import { SignInResult } from '../result/SignInResult.mjs';
|
|
5
4
|
import { SignInState } from './SignInState.mjs';
|
|
6
|
-
import { SignInCompletedState } from './SignInCompletedState.mjs';
|
|
7
|
-
import { SIGN_IN_COMPLETED_RESULT_TYPE, SIGN_IN_JIT_REQUIRED_RESULT_TYPE } from '../../interaction_client/result/SignInActionResult.mjs';
|
|
8
|
-
import { AuthMethodRegistrationRequiredState } from '../../../core/auth_flow/jit/state/AuthMethodRegistrationState.mjs';
|
|
9
5
|
import { ensureArgumentIsJSONString } from '../../../core/utils/ArgumentValidator.mjs';
|
|
10
6
|
|
|
11
7
|
/*
|
|
@@ -39,35 +35,11 @@ class SignInContinuationState extends SignInState {
|
|
|
39
35
|
this.stateParameters.logger.verbose("Signing in with continuation token.", this.stateParameters.correlationId);
|
|
40
36
|
const signInResult = await this.stateParameters.signInClient.signInWithContinuationToken(continuationTokenParams);
|
|
41
37
|
this.stateParameters.logger.verbose("Signed in with continuation token.", this.stateParameters.correlationId);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return new SignInResult(new SignInCompletedState(), accountInfo);
|
|
46
|
-
}
|
|
47
|
-
else if (signInResult.type === SIGN_IN_JIT_REQUIRED_RESULT_TYPE) {
|
|
48
|
-
// JIT is required
|
|
49
|
-
this.stateParameters.logger.warning("Auth method registration required during continuation token sign-in.", this.stateParameters.correlationId);
|
|
50
|
-
// Return AuthMethodRegistrationRequiredState to handle JIT scenario
|
|
51
|
-
const authMethodRegistrationState = new AuthMethodRegistrationRequiredState({
|
|
52
|
-
correlationId: this.stateParameters.correlationId,
|
|
53
|
-
continuationToken: signInResult.continuationToken,
|
|
54
|
-
logger: this.stateParameters.logger,
|
|
55
|
-
config: this.stateParameters.config,
|
|
56
|
-
jitClient: this.stateParameters.jitClient,
|
|
57
|
-
cacheClient: this.stateParameters.cacheClient,
|
|
58
|
-
authMethods: signInResult.authMethods,
|
|
59
|
-
username: this.stateParameters.username,
|
|
60
|
-
scopes: signInWithContinuationTokenInputs?.scopes ?? [],
|
|
61
|
-
claims: this.stateParameters.claims,
|
|
62
|
-
});
|
|
63
|
-
return new SignInResult(authMethodRegistrationState);
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
// Unexpected result type
|
|
67
|
-
const result = signInResult;
|
|
68
|
-
const error = new Error(`Unexpected result type: ${result.type}`);
|
|
69
|
-
return SignInResult.createWithError(error);
|
|
38
|
+
const nextState = this.handleSignInResult(signInResult, signInWithContinuationTokenInputs?.scopes);
|
|
39
|
+
if (nextState.error) {
|
|
40
|
+
return SignInResult.createWithError(nextState.error);
|
|
70
41
|
}
|
|
42
|
+
return new SignInResult(nextState.state, nextState.accountInfo);
|
|
71
43
|
}
|
|
72
44
|
catch (error) {
|
|
73
45
|
this.stateParameters.logger.errorPii(`Failed to sign in with continuation token. Error: ${error}.`, this.stateParameters.correlationId);
|
package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInContinuationState.mjs","sources":["../../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts"],"sourcesContent":[null],"names":["ArgumentValidator.ensureArgumentIsJSONString"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignInContinuationState.mjs","sources":["../../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts"],"sourcesContent":[null],"names":["ArgumentValidator.ensureArgumentIsJSONString"],"mappings":";;;;;;AAAA;;;AAGG;AASH;;AAEG;AACG,MAAO,uBAAwB,SAAQ,WAA8C,CAAA;AACvF;;;;AAIG;IACH,MAAM,MAAM,CACR,iCAAqE,EAAA;QAErE,IAAI;YACA,IAAI,iCAAiC,EAAE,MAAM,EAAE;AAC3C,gBAAAA,0BAA4C,CACxC,0CAA0C,EAC1C,iCAAiC,CAAC,MAAM,EACxC,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AACL,aAAA;AAED,YAAA,MAAM,uBAAuB,GAAkC;gBAC3D,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ;AACnD,gBAAA,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa;gBACjD,aAAa,EACT,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,IAAI,EAAE;AAC/D,gBAAA,MAAM,EAAE,iCAAiC,EAAE,MAAM,IAAI,EAAE;AACvD,gBAAA,iBAAiB,EAAE,IAAI,CAAC,eAAe,CAAC,iBAAiB,IAAI,EAAE;AAC/D,gBAAA,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ;AACvC,gBAAA,cAAc,EAAE,IAAI,CAAC,eAAe,CAAC,cAAc;gBACnD,MAAM,EAAE,iCAAiC,EAAE,MAAM;aACpD,CAAC;AAEF,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,qCAAqC,EACrC,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,MAAM,YAAY,GACd,MAAM,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,2BAA2B,CAC/D,uBAAuB,CAC1B,CAAC;AAEN,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,oCAAoC,EACpC,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,MAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,CACrC,YAAY,EACZ,iCAAiC,EAAE,MAAM,CAC5C,CAAC;YAEF,IAAI,SAAS,CAAC,KAAK,EAAE;gBACjB,OAAO,YAAY,CAAC,eAAe,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACxD,aAAA;YAED,OAAO,IAAI,YAAY,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;AACnE,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;AACZ,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAChC,CAAA,kDAAA,EAAqD,KAAK,CAAA,CAAA,CAAG,EAC7D,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,OAAO,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AAC9C,SAAA;KACJ;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInPasswordRequiredState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignInPasswordRequiredState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,qCAAqC,EAAE,MAAM,4BAA4B,CAAC;AAKnF,qBAAa,2BAA4B,SAAQ,WAAW,CAAC,qCAAqC,CAAC;IAC/F;;;;OAIG;IACG,cAAc,CAChB,QAAQ,EAAE,MAAM,GACjB,OAAO,CAAC,0BAA0B,CAAC;IAwDtC;;;OAGG;IACH,SAAS,IAAI,MAAM,EAAE,GAAG,SAAS;CAGpC"}
|
package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.25.0 2025-10-09 */
|
|
2
2
|
'use strict';
|
|
3
|
-
import { CustomAuthAccountData } from '../../../get_account/auth_flow/CustomAuthAccountData.mjs';
|
|
4
3
|
import { SignInSubmitPasswordResult } from '../result/SignInSubmitPasswordResult.mjs';
|
|
5
|
-
import { SignInCompletedState } from './SignInCompletedState.mjs';
|
|
6
4
|
import { SignInState } from './SignInState.mjs';
|
|
7
|
-
import { SIGN_IN_COMPLETED_RESULT_TYPE, SIGN_IN_JIT_REQUIRED_RESULT_TYPE } from '../../interaction_client/result/SignInActionResult.mjs';
|
|
8
|
-
import { AuthMethodRegistrationRequiredState } from '../../../core/auth_flow/jit/state/AuthMethodRegistrationState.mjs';
|
|
9
5
|
|
|
10
6
|
/*
|
|
11
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -36,32 +32,11 @@ class SignInPasswordRequiredState extends SignInState {
|
|
|
36
32
|
this.stateParameters.logger.verbose("Submitting password for sign-in.", this.stateParameters.correlationId);
|
|
37
33
|
const submitPasswordResult = await this.stateParameters.signInClient.submitPassword(submitPasswordParams);
|
|
38
34
|
this.stateParameters.logger.verbose("Password submitted for sign-in.", this.stateParameters.correlationId);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
else if (submitPasswordResult.type === SIGN_IN_JIT_REQUIRED_RESULT_TYPE) {
|
|
44
|
-
// JIT is required - return AuthMethodRegistrationRequiredState
|
|
45
|
-
this.stateParameters.logger.verbose("Authentication method registration required after password submission.", this.stateParameters.correlationId);
|
|
46
|
-
return new SignInSubmitPasswordResult(new AuthMethodRegistrationRequiredState({
|
|
47
|
-
correlationId: this.stateParameters.correlationId,
|
|
48
|
-
continuationToken: submitPasswordResult.continuationToken,
|
|
49
|
-
logger: this.stateParameters.logger,
|
|
50
|
-
config: this.stateParameters.config,
|
|
51
|
-
jitClient: this.stateParameters.jitClient,
|
|
52
|
-
cacheClient: this.stateParameters.cacheClient,
|
|
53
|
-
authMethods: submitPasswordResult.authMethods,
|
|
54
|
-
username: this.stateParameters.username,
|
|
55
|
-
scopes: this.stateParameters.scopes ?? [],
|
|
56
|
-
claims: this.stateParameters.claims,
|
|
57
|
-
}));
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
// Unexpected result type
|
|
61
|
-
const result = submitPasswordResult;
|
|
62
|
-
const error = new Error(`Unexpected result type: ${result.type}`);
|
|
63
|
-
return SignInSubmitPasswordResult.createWithError(error);
|
|
35
|
+
const nextState = this.handleSignInResult(submitPasswordResult, this.stateParameters.scopes);
|
|
36
|
+
if (nextState.error) {
|
|
37
|
+
return SignInSubmitPasswordResult.createWithError(nextState.error);
|
|
64
38
|
}
|
|
39
|
+
return new SignInSubmitPasswordResult(nextState.state, nextState.accountInfo);
|
|
65
40
|
}
|
|
66
41
|
catch (error) {
|
|
67
42
|
this.stateParameters.logger.errorPii(`Failed to sign in after submitting password. Error: ${error}.`, this.stateParameters.correlationId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInPasswordRequiredState.mjs","sources":["../../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignInPasswordRequiredState.mjs","sources":["../../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAOH;;AAEG;AACG,MAAO,2BAA4B,SAAQ,WAAkD,CAAA;AAC/F;;;;AAIG;IACH,MAAM,cAAc,CAChB,QAAgB,EAAA;QAEhB,IAAI;AACA,YAAA,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;AAExC,YAAA,MAAM,oBAAoB,GAA+B;gBACrD,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ;AACnD,gBAAA,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa;gBACjD,aAAa,EACT,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,IAAI,EAAE;AAC/D,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,IAAI,EAAE;AACzC,gBAAA,iBAAiB,EAAE,IAAI,CAAC,eAAe,CAAC,iBAAiB,IAAI,EAAE;AAC/D,gBAAA,QAAQ,EAAE,QAAQ;AAClB,gBAAA,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ;AACvC,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;aACtC,CAAC;AAEF,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,kCAAkC,EAClC,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,MAAM,oBAAoB,GACtB,MAAM,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,cAAc,CAClD,oBAAoB,CACvB,CAAC;AAEN,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,iCAAiC,EACjC,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,MAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,CACrC,oBAAoB,EACpB,IAAI,CAAC,eAAe,CAAC,MAAM,CAC9B,CAAC;YAEF,IAAI,SAAS,CAAC,KAAK,EAAE;gBACjB,OAAO,0BAA0B,CAAC,eAAe,CAC7C,SAAS,CAAC,KAAK,CAClB,CAAC;AACL,aAAA;YAED,OAAO,IAAI,0BAA0B,CACjC,SAAS,CAAC,KAAK,EACf,SAAS,CAAC,WAAW,CACxB,CAAC;AACL,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;AACZ,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAChC,CAAA,oDAAA,EAAuD,KAAK,CAAA,CAAA,CAAG,EAC/D,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,YAAA,OAAO,0BAA0B,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AAC5D,SAAA;KACJ;AAED;;;AAGG;IACH,SAAS,GAAA;AACL,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC;KACtC;AACJ;;;;"}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import { AuthFlowActionRequiredStateBase } from "../../../core/auth_flow/AuthFlowState.js";
|
|
2
|
+
import { AuthMethodRegistrationRequiredState } from "../../../core/auth_flow/jit/state/AuthMethodRegistrationState.js";
|
|
3
|
+
import { MfaAwaitingState } from "../../../core/auth_flow/mfa/state/MfaState.js";
|
|
4
|
+
import { CustomAuthAccountData } from "../../../get_account/auth_flow/CustomAuthAccountData.js";
|
|
5
|
+
import { SignInCompletedResult, SignInJitRequiredResult, SignInMfaRequiredResult } from "../../interaction_client/result/SignInActionResult.js";
|
|
6
|
+
import { SignInCompletedState } from "./SignInCompletedState.js";
|
|
2
7
|
import { SignInStateParameters } from "./SignInStateParameters.js";
|
|
3
8
|
export declare abstract class SignInState<TParameters extends SignInStateParameters> extends AuthFlowActionRequiredStateBase<TParameters> {
|
|
4
9
|
constructor(stateParameters: TParameters);
|
|
10
|
+
/**
|
|
11
|
+
* Handles the result of a sign-in attempt.
|
|
12
|
+
* @param result - The result of the sign-in attempt.
|
|
13
|
+
* @param scopes - The scopes requested for the sign-in.
|
|
14
|
+
* @returns An object containing the next state and account information, if applicable.
|
|
15
|
+
*/
|
|
16
|
+
protected handleSignInResult(result: SignInCompletedResult | SignInJitRequiredResult | SignInMfaRequiredResult, scopes?: string[]): {
|
|
17
|
+
state: SignInCompletedState | AuthMethodRegistrationRequiredState | MfaAwaitingState;
|
|
18
|
+
accountInfo?: CustomAuthAccountData;
|
|
19
|
+
error?: Error;
|
|
20
|
+
};
|
|
5
21
|
}
|
|
6
22
|
//# sourceMappingURL=SignInState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignInState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInState.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"SignInState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInState.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,OAAO,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;AACvH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAEjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAIH,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EAC1B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAKnE,8BAAsB,WAAW,CAC7B,WAAW,SAAS,qBAAqB,CAC3C,SAAQ,+BAA+B,CAAC,WAAW,CAAC;gBAKtC,eAAe,EAAE,WAAW;IAexC;;;;;OAKG;IACH,SAAS,CAAC,kBAAkB,CACxB,MAAM,EACA,qBAAqB,GACrB,uBAAuB,GACvB,uBAAuB,EAC7B,MAAM,CAAC,EAAE,MAAM,EAAE,GAClB;QACC,KAAK,EACC,oBAAoB,GACpB,mCAAmC,GACnC,gBAAgB,CAAC;QACvB,WAAW,CAAC,EAAE,qBAAqB,CAAC;QACpC,KAAK,CAAC,EAAE,KAAK,CAAC;KACjB;CA2EJ"}
|