@azure/msal-browser 5.28.0 → 5.29.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 +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +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 +6 -4
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +58 -62
- 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 +3 -5
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +19 -13
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +8 -2
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +58 -69
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +3 -3
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +42 -15
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs +17 -4
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +14 -18
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +2 -4
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +2 -3
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +17 -6
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs +110 -0
- package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs +2 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs.map +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 +256 -150
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +2 -6
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +10 -3
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -7
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +35 -19
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +20 -9
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +1 -2
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +5 -7
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +3 -2
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +17 -2
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs.map +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom_auth/index.mjs +4 -3
- package/dist/custom_auth/index.mjs.map +1 -1
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +23 -7
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs +24 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.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/state/SignInContinuationStateV2.mjs +4 -7
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs +2 -2
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs.map +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +17 -8
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs +78 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs +48 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs +49 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +17 -24
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +1 -1
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +38 -31
- 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/log-strings-mapping.json +21 -9
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/popup_relay/constants.mjs +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/request/SilentRequestHelpers.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/BrowserDetection.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/IframeMonitor.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/utils/PopupMonitor.mjs +1 -1
- package/dist/utils/PopupOriginCheck.mjs +1 -1
- package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
- package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
- package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
- package/dist/webBrokerBridge/index.mjs +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +21 -9
- package/lib/custom-auth-path/msal-custom-auth.cjs +1100 -765
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +1100 -765
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +7 -3
- package/lib/msal-browser.cjs +117 -107
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +117 -107
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
- package/lib/popup-relay/msal-popup-relay.js +2 -2
- package/lib/popup-relay/msal-popup-relay.js.map +1 -1
- package/lib/popup-relay/msal-popup-relay.min.js +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
- package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
- package/package.json +2 -2
- package/src/custom_auth/CustomAuthActionInputs.ts +12 -5
- package/src/custom_auth/CustomAuthPublicClientApplication.ts +5 -3
- package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +5 -3
- package/src/custom_auth/controller/CustomAuthStandardController.ts +79 -110
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +1 -2
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +1 -4
- package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +5 -4
- package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +28 -16
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +6 -0
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +83 -72
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +3 -3
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +7 -5
- package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +10 -6
- package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +9 -6
- package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +4 -6
- package/src/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.ts +36 -0
- package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +6 -8
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +2 -2
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +61 -12
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +21 -3
- package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +30 -24
- package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +1 -3
- package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +11 -2
- package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +1 -2
- package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +26 -7
- package/src/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.ts +179 -0
- package/src/custom_auth/core/error/InvalidArgumentError.ts +1 -1
- package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +12 -12
- package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +394 -238
- package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +2 -6
- package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +2 -15
- package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +63 -26
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +0 -6
- package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +74 -26
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +48 -9
- package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +4 -6
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +0 -6
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +14 -53
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +0 -18
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +32 -13
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +8 -9
- package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +4 -5
- package/src/custom_auth/core/telemetry/PublicApiId.ts +1 -0
- package/src/custom_auth/core/utils/ArgumentValidator.ts +26 -0
- package/src/custom_auth/index.ts +10 -11
- package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +6 -7
- package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +28 -5
- package/src/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.ts +30 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +4 -8
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +4 -7
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +3 -6
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.ts +0 -3
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.ts +2 -3
- package/src/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.ts +49 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +8 -4
- package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +16 -4
- package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +26 -5
- package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.ts +101 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.ts +53 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.ts +97 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.ts +0 -6
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +25 -48
- package/src/interaction_client/PlatformAuthInteractionClient.ts +53 -38
- package/src/packageMetadata.ts +1 -1
- package/types/custom_auth/CustomAuthActionInputs.d.ts +12 -5
- 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 +5 -3
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +5 -3
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -1
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts +2 -0
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +1 -2
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +1 -4
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +5 -4
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +17 -8
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +6 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +23 -44
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +3 -3
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +7 -6
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +7 -6
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +8 -7
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +4 -6
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +20 -0
- package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +6 -8
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts +2 -2
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +3 -6
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts +3 -3
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +6 -8
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +1 -3
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +9 -2
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +1 -2
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +5 -6
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +23 -0
- package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/error/InvalidArgumentError.d.ts +1 -0
- package/types/custom_auth/core/error/InvalidArgumentError.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +8 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +12 -10
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +1 -1
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +2 -5
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +22 -3
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +2 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +8 -8
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +18 -6
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +6 -10
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +0 -4
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -1
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts +1 -0
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
- package/types/custom_auth/core/utils/ArgumentValidator.d.ts +3 -0
- package/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
- package/types/custom_auth/index.d.ts +5 -5
- package/types/custom_auth/index.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +6 -8
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +7 -5
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.d.ts +7 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +4 -8
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +5 -6
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +3 -6
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts +3 -2
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.d.ts +27 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +6 -3
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +12 -3
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +8 -3
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.d.ts +24 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.d.ts +18 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.d.ts +7 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts +0 -4
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts +5 -4
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts +4 -3
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +0 -82
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +0 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +0 -25
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs.map +0 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +0 -45
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +0 -1
- package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +0 -23
- package/src/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.ts +0 -19
- package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +0 -22
- package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +0 -115
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.ts +0 -34
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +0 -61
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +0 -14
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts +0 -13
- package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts.map +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +0 -9
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +0 -17
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +0 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts +0 -11
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts.map +0 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts +0 -19
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +0 -1
|
@@ -242,48 +242,50 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
242
242
|
throw e;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
245
|
+
if (this.apiId === ApiId.acquireTokenSilent_silentFlow) {
|
|
246
|
+
let cachedResult: AuthenticationResult | undefined;
|
|
247
|
+
try {
|
|
248
|
+
cachedResult = await this.acquireTokensFromCache(
|
|
249
|
+
this.accountId,
|
|
250
|
+
nativeRequest,
|
|
251
|
+
cacheLookupPolicy
|
|
252
|
+
);
|
|
253
|
+
} catch (e) {
|
|
254
|
+
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
255
|
+
this.logger.info(
|
|
256
|
+
"MSAL internal Cache does not contain tokens, return error as per cache policy",
|
|
257
|
+
this.correlationId
|
|
258
|
+
);
|
|
259
|
+
nativeATMeasurement.add({
|
|
260
|
+
isNativeBroker: false,
|
|
261
|
+
});
|
|
262
|
+
nativeATMeasurement.end({
|
|
263
|
+
success: false,
|
|
264
|
+
});
|
|
265
|
+
await this.resetGeneratedDpopRequestKeyBestEffort(
|
|
266
|
+
nativeRequest
|
|
267
|
+
);
|
|
268
|
+
throw e;
|
|
269
|
+
}
|
|
270
|
+
// continue with a native call for any and all errors
|
|
254
271
|
this.logger.info(
|
|
255
|
-
"MSAL internal Cache does not contain tokens,
|
|
272
|
+
"MSAL internal Cache does not contain tokens, proceed to make a native call",
|
|
256
273
|
this.correlationId
|
|
257
274
|
);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
if (cachedResult) {
|
|
278
|
+
// Served from the native internal cache; token did not come directly from the broker
|
|
258
279
|
nativeATMeasurement.add({
|
|
259
280
|
isNativeBroker: false,
|
|
260
281
|
});
|
|
261
282
|
nativeATMeasurement.end({
|
|
262
|
-
success:
|
|
283
|
+
success: true,
|
|
284
|
+
fromCache: true,
|
|
263
285
|
});
|
|
264
|
-
await this.
|
|
265
|
-
|
|
266
|
-
);
|
|
267
|
-
throw e;
|
|
286
|
+
await this.resetGeneratedDpopRequestKey(nativeRequest);
|
|
287
|
+
return cachedResult;
|
|
268
288
|
}
|
|
269
|
-
// continue with a native call for any and all errors
|
|
270
|
-
this.logger.info(
|
|
271
|
-
"MSAL internal Cache does not contain tokens, proceed to make a native call",
|
|
272
|
-
this.correlationId
|
|
273
|
-
);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
if (cachedResult) {
|
|
277
|
-
// Served from the native internal cache; token did not come directly from the broker
|
|
278
|
-
nativeATMeasurement.add({
|
|
279
|
-
isNativeBroker: false,
|
|
280
|
-
});
|
|
281
|
-
nativeATMeasurement.end({
|
|
282
|
-
success: true,
|
|
283
|
-
fromCache: true,
|
|
284
|
-
});
|
|
285
|
-
await this.resetGeneratedDpopRequestKey(nativeRequest);
|
|
286
|
-
return cachedResult;
|
|
287
289
|
}
|
|
288
290
|
|
|
289
291
|
// dispatch the request to the broker
|
|
@@ -418,15 +420,28 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
418
420
|
}
|
|
419
421
|
|
|
420
422
|
/**
|
|
421
|
-
* Fetches
|
|
423
|
+
* Fetches unexpired tokens when allowed by cache policy.
|
|
422
424
|
* @param nativeAccountId
|
|
423
425
|
* @param request
|
|
424
|
-
* @
|
|
426
|
+
* @param cacheLookupPolicy
|
|
427
|
+
* @returns Cached result, or undefined when cache policy bypasses lookup.
|
|
425
428
|
*/
|
|
426
429
|
protected async acquireTokensFromCache(
|
|
427
430
|
nativeAccountId: string,
|
|
428
|
-
request: PlatformAuthRequest
|
|
429
|
-
|
|
431
|
+
request: PlatformAuthRequest,
|
|
432
|
+
cacheLookupPolicy: CacheLookupPolicy = CacheLookupPolicy.Default
|
|
433
|
+
): Promise<AuthenticationResult | undefined> {
|
|
434
|
+
if (
|
|
435
|
+
cacheLookupPolicy === CacheLookupPolicy.RefreshTokenAndNetwork ||
|
|
436
|
+
cacheLookupPolicy === CacheLookupPolicy.Skip
|
|
437
|
+
) {
|
|
438
|
+
this.logger.verbose(
|
|
439
|
+
"Native cache lookup bypassed for cache policy",
|
|
440
|
+
this.correlationId
|
|
441
|
+
);
|
|
442
|
+
return undefined;
|
|
443
|
+
}
|
|
444
|
+
|
|
430
445
|
if (!nativeAccountId) {
|
|
431
446
|
this.logger.warning(
|
|
432
447
|
"NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided",
|
|
@@ -1090,7 +1105,7 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
1090
1105
|
kmsi,
|
|
1091
1106
|
this.apiId
|
|
1092
1107
|
);
|
|
1093
|
-
// Remove
|
|
1108
|
+
// Remove cached web access and refresh tokens, preserving ID tokens.
|
|
1094
1109
|
if (clearExistingTokens) {
|
|
1095
1110
|
this.browserStorage.removeAccountContext(
|
|
1096
1111
|
AccountEntityUtils.getAccountInfo(accountEntity),
|
package/src/packageMetadata.ts
CHANGED
|
@@ -26,22 +26,29 @@ export type SignInWithContinuationTokenInputs = {
|
|
|
26
26
|
scopes?: Array<string>;
|
|
27
27
|
claims?: string;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
31
|
+
*/
|
|
29
32
|
export type SignInInputsV2 = CustomAuthActionInputs & {
|
|
30
33
|
username: string;
|
|
31
|
-
|
|
32
|
-
scopes?: Array<string> | null;
|
|
34
|
+
scopes?: Array<string>;
|
|
33
35
|
claims?: string;
|
|
34
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
39
|
+
*/
|
|
35
40
|
export type ResetPasswordInputsV2 = CustomAuthActionInputs & {
|
|
36
41
|
username: string;
|
|
37
|
-
scopes?: Array<string
|
|
42
|
+
scopes?: Array<string>;
|
|
38
43
|
claims?: string;
|
|
39
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
47
|
+
*/
|
|
40
48
|
export type SignUpInputsV2 = CustomAuthActionInputs & {
|
|
41
49
|
username: string;
|
|
42
|
-
password?: string;
|
|
43
50
|
attributes?: UserAccountAttributes;
|
|
44
|
-
scopes?: Array<string
|
|
51
|
+
scopes?: Array<string>;
|
|
45
52
|
claims?: string;
|
|
46
53
|
};
|
|
47
54
|
//# sourceMappingURL=CustomAuthActionInputs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthActionInputs.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthActionInputs.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,GAAG;IACvD,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC5C,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,sBAAsB,GAAG;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,
|
|
1
|
+
{"version":3,"file":"CustomAuthActionInputs.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthActionInputs.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,GAAG;IACvD,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC5C,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,sBAAsB,GAAG;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,GAAG;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,sBAAsB,GAAG;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -49,20 +49,22 @@ export declare class CustomAuthPublicClientApplication extends PublicClientAppli
|
|
|
49
49
|
*/
|
|
50
50
|
resetPassword(resetPasswordInputs: ResetPasswordInputs): Promise<ResetPasswordStartResult>;
|
|
51
51
|
/**
|
|
52
|
-
* Starts native auth V2 sign-in
|
|
53
|
-
*
|
|
52
|
+
* Starts native auth V2 sign-in.
|
|
53
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
54
54
|
* @param inputs - Inputs for the sign-in V2 flow.
|
|
55
55
|
* @returns A promise that resolves to the sign-in start result.
|
|
56
56
|
*/
|
|
57
57
|
signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
|
|
58
58
|
/**
|
|
59
59
|
* Starts native auth V2 sign-up.
|
|
60
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
60
61
|
* @param inputs - Inputs for the sign-up V2 flow.
|
|
61
62
|
* @returns A promise that resolves to the sign-up start result.
|
|
62
63
|
*/
|
|
63
64
|
signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
|
|
64
65
|
/**
|
|
65
|
-
*
|
|
66
|
+
* Starts native auth V2 self-service password reset.
|
|
67
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
66
68
|
* @param {ResetPasswordInputsV2} inputs - Inputs for the reset-password V2 flow
|
|
67
69
|
* @returns {Promise<ResetPasswordStartResultV2>} - A promise that resolves to ResetPasswordStartResultV2
|
|
68
70
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthPublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAG1E,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAErF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAGzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAO5E,qBAAa,iCACT,SAAQ,uBACR,YAAW,oCAAoC;IAE/C,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgC;IAErE;;;;OAIG;WACU,MAAM,CACf,MAAM,EAAE,uBAAuB,GAChC,OAAO,CAAC,oCAAoC,CAAC;IAiBhD,OAAO;IASP;;;;OAIG;IACH,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAMnB;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,aAAa,CACT,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAIpC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI9D
|
|
1
|
+
{"version":3,"file":"CustomAuthPublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAG1E,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAErF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAGzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAO5E,qBAAa,iCACT,SAAQ,uBACR,YAAW,oCAAoC;IAE/C,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgC;IAErE;;;;OAIG;WACU,MAAM,CACf,MAAM,EAAE,uBAAuB,GAChC,OAAO,CAAC,oCAAoC,CAAC;IAiBhD,OAAO;IASP;;;;OAIG;IACH,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAMnB;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,aAAa,CACT,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAIpC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI9D;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI9D;;;;;OAKG;IACH,eAAe,CACX,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IAItC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;CAoChC"}
|
|
@@ -8,20 +8,22 @@ import { SignUpStartResultV2 } from "./sign_up/auth_flow/v2/result/SignUpStartRe
|
|
|
8
8
|
*/
|
|
9
9
|
export interface ICustomAuthPublicClientApplicationV2 extends ICustomAuthPublicClientApplication {
|
|
10
10
|
/**
|
|
11
|
-
* Starts native auth V2 sign-in
|
|
12
|
-
*
|
|
11
|
+
* Starts native auth V2 sign-in.
|
|
12
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
13
13
|
* @param inputs - Inputs for the sign-in V2 flow.
|
|
14
14
|
* @returns A promise that resolves to the sign-in start result.
|
|
15
15
|
*/
|
|
16
16
|
signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
|
|
17
17
|
/**
|
|
18
18
|
* Starts native auth V2 sign-up.
|
|
19
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
19
20
|
* @param inputs - Inputs for the sign-up V2 flow.
|
|
20
21
|
* @returns A promise that resolves to the sign-up start result.
|
|
21
22
|
*/
|
|
22
23
|
signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
+
* Starts native auth V2 self-service password reset.
|
|
26
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
25
27
|
* @param {ResetPasswordInputsV2} inputs - Inputs for the reset-password V2 flow
|
|
26
28
|
* @returns {Promise<ResetPasswordStartResultV2>} A promise that resolves to ResetPasswordStartResultV2
|
|
27
29
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICustomAuthPublicClientApplicationV2.d.ts","sourceRoot":"","sources":["../../src/custom_auth/ICustomAuthPublicClientApplicationV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EACH,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAE3F;;GAEG;AACH,MAAM,WAAW,oCACb,SAAQ,kCAAkC;IAC1C;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D
|
|
1
|
+
{"version":3,"file":"ICustomAuthPublicClientApplicationV2.d.ts","sourceRoot":"","sources":["../../src/custom_auth/ICustomAuthPublicClientApplicationV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EACH,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAE3F;;GAEG;AACH,MAAM,WAAW,oCACb,SAAQ,kCAAkC;IAC1C;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D;;;;;OAKG;IACH,eAAe,CACX,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC,CAAC;CAC1C"}
|
|
@@ -23,6 +23,7 @@ export declare class CustomAuthStandardController extends StandardController imp
|
|
|
23
23
|
private readonly flowClientV2;
|
|
24
24
|
private readonly signUpStateTransitionHandlerV2;
|
|
25
25
|
private readonly signInStateTransitionHandlerV2;
|
|
26
|
+
private readonly resetPasswordStateTransitionHandlerV2;
|
|
26
27
|
constructor(operatingContext: CustomAuthOperatingContext, customAuthApiClient?: ICustomAuthApiClient, customAuthApiClientV2?: CustomAuthApiClientV2);
|
|
27
28
|
getCurrentAccount(accountRetrievalInputs?: AccountRetrievalInputs): GetAccountResult;
|
|
28
29
|
signIn(signInInputs: SignInInputs): Promise<SignInResult>;
|
|
@@ -31,6 +32,7 @@ export declare class CustomAuthStandardController extends StandardController imp
|
|
|
31
32
|
resetPasswordV2(inputs: ResetPasswordInputsV2): Promise<ResetPasswordStartResultV2>;
|
|
32
33
|
signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
|
|
33
34
|
signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
|
|
35
|
+
private ensureUsernameIsValidV2;
|
|
34
36
|
private getCorrelationId;
|
|
35
37
|
private ensureUserNotSignedIn;
|
|
36
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAM3E,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEnB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAC1G,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,qBAAqB,EAAE,MAAM,oEAAoE,CAAC;AAI3G,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAM3E,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEnB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAC1G,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,qBAAqB,EAAE,MAAM,oEAAoE,CAAC;AAI3G,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAgC5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AAmBtG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAM7E,qBAAa,4BACT,SAAQ,kBACR,YAAW,6BAA6B;IAExC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAC1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAClE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;IAChD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA0B;IACvD,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CACN;IACzC,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CACN;IACzC,OAAO,CAAC,QAAQ,CAAC,qCAAqC,CACN;gBAS5C,gBAAgB,EAAE,0BAA0B,EAC5C,mBAAmB,CAAC,EAAE,oBAAoB,EAC1C,qBAAqB,CAAC,EAAE,qBAAqB;IAmFjD,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAqCb,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAiOzD,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAkHzD,aAAa,CACf,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAsD9B,eAAe,CACjB,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IA8FhC,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA+G9D,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAsIpE,OAAO,CAAC,uBAAuB;IAW/B,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,qBAAqB;CAWhC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* An authentication method that can be registered for the current account.
|
|
3
|
-
*
|
|
4
|
-
* selects this method.
|
|
3
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
5
4
|
*/
|
|
6
5
|
export interface AuthenticationMethodRegistrationV2 {
|
|
7
6
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticationMethodRegistrationV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"AuthenticationMethodRegistrationV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* An authentication method offered by the server during a native auth V2 flow.
|
|
3
|
-
*
|
|
4
|
-
* (for example an email one-time code), and is surfaced when the flow needs the
|
|
5
|
-
* app to pick a method before a challenge is issued. The app passes the selected
|
|
6
|
-
* method back to the SDK to request a challenge for it.
|
|
3
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
7
4
|
*/
|
|
8
5
|
export interface AuthenticationMethodV2 {
|
|
9
6
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticationMethodV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"AuthenticationMethodV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The native auth V2 flow that a result or error originates from
|
|
3
|
-
*
|
|
4
|
-
* which entry flow produced it; `Unknown` is used when the flow cannot be
|
|
5
|
-
* determined.
|
|
2
|
+
* The native auth V2 flow that a result or error originates from.
|
|
3
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
6
4
|
*/
|
|
7
5
|
export declare const CustomAuthFlowScenarioV2: {
|
|
8
6
|
readonly SignIn: "signIn";
|
|
@@ -10,5 +8,8 @@ export declare const CustomAuthFlowScenarioV2: {
|
|
|
10
8
|
readonly PasswordReset: "passwordReset";
|
|
11
9
|
readonly Unknown: "unknown";
|
|
12
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
13
|
+
*/
|
|
13
14
|
export type CustomAuthFlowScenarioV2 = (typeof CustomAuthFlowScenarioV2)[keyof typeof CustomAuthFlowScenarioV2];
|
|
14
15
|
//# sourceMappingURL=CustomAuthFlowScenarioV2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthFlowScenarioV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"CustomAuthFlowScenarioV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;CAK3B,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAChC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { AuthFlowStateBase } from "../AuthFlowState.js";
|
|
2
2
|
import { FailedStateV2 } from "./state/FailedStateV2.js";
|
|
3
3
|
import { AuthFlowErrorV2 } from "./error/AuthFlowErrorV2.js";
|
|
4
|
+
import type { AuthFlowErrorContextV2 } from "./error/AuthFlowErrorV2.js";
|
|
4
5
|
import { CustomAuthFlowScenarioV2 } from "./CustomAuthFlowScenarioV2.js";
|
|
5
6
|
type CreateWithErrorOptions = {
|
|
6
7
|
scenario?: CustomAuthFlowScenarioV2;
|
|
7
8
|
correlationId?: string;
|
|
9
|
+
errorContext?: AuthFlowErrorContextV2;
|
|
8
10
|
};
|
|
9
11
|
/**
|
|
10
|
-
* Result of a native auth V2 operation.
|
|
11
|
-
*
|
|
12
|
+
* Result of a native auth V2 operation.
|
|
13
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
12
14
|
*/
|
|
13
15
|
export declare class CustomAuthResultV2<TState extends AuthFlowStateBase, TData = void> {
|
|
14
16
|
readonly state: TState;
|
|
@@ -17,8 +19,7 @@ export declare class CustomAuthResultV2<TState extends AuthFlowStateBase, TData
|
|
|
17
19
|
constructor(state: TState, data?: TData | undefined, scenario?: CustomAuthFlowScenarioV2);
|
|
18
20
|
error?: AuthFlowErrorV2;
|
|
19
21
|
/**
|
|
20
|
-
*
|
|
21
|
-
* A successful match makes the state's properties available without a cast.
|
|
22
|
+
* Checks whether the result matches a state type and narrows its state.
|
|
22
23
|
* @param stateType - The state type to test for.
|
|
23
24
|
* @returns True (and narrows `state`) when the current state matches `stateType`.
|
|
24
25
|
*/
|
|
@@ -28,8 +29,7 @@ export declare class CustomAuthResultV2<TState extends AuthFlowStateBase, TData
|
|
|
28
29
|
}>;
|
|
29
30
|
};
|
|
30
31
|
/**
|
|
31
|
-
* Checks whether the
|
|
32
|
-
* contains the unified V2 flow error.
|
|
32
|
+
* Checks whether the operation failed.
|
|
33
33
|
* @returns True (and narrows `state`) when the operation failed.
|
|
34
34
|
*/
|
|
35
35
|
isFailed(): this is this & {
|
|
@@ -38,8 +38,17 @@ export declare class CustomAuthResultV2<TState extends AuthFlowStateBase, TData
|
|
|
38
38
|
}>;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
41
|
+
* Checks whether the current state requires a password.
|
|
42
|
+
* @returns True (and narrows `state`) when a password is required.
|
|
43
|
+
*/
|
|
44
|
+
isPasswordRequired(): this is this & {
|
|
45
|
+
state: Extract<TState, {
|
|
46
|
+
stateType: "passwordRequired";
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Creates a failed result from the supplied error.
|
|
51
|
+
* Optional error context identifies MFA verification or authentication-method registration.
|
|
43
52
|
* @param error - The error that occurred.
|
|
44
53
|
* @param options - The flow-error context.
|
|
45
54
|
* @returns A failed result carrying the unified V2 flow error.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthResultV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,KAAK,sBAAsB,GAAG;IAC1B,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomAuthResultV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,KAAK,sBAAsB,GAAG;IAC1B,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACzC,CAAC;AAEF;;;GAGG;AACH,qBAAa,kBAAkB,CAC3B,MAAM,SAAS,iBAAiB,EAChC,KAAK,GAAG,IAAI;aAGQ,KAAK,EAAE,MAAM;aACb,IAAI,CAAC;aACL,QAAQ,EAAE,wBAAwB;gBAFlC,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,mBAAO,EACZ,QAAQ,GAAE,wBAA2D;IAGzF,KAAK,CAAC,EAAE,eAAe,CAAC;IAExB;;;;OAIG;IACH,OAAO,CAAC,KAAK,SAAS,MAAM,CAAC,WAAW,CAAC,EACrC,SAAS,EAAE,KAAK,GACjB,IAAI,IAAI,IAAI,GAAG;QAAE,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE;YAAE,SAAS,EAAE,KAAK,CAAA;SAAE,CAAC,CAAA;KAAE;IAIlE;;;OAGG;IACH,QAAQ,IAAI,IAAI,IAAI,IAAI,GAAG;QACvB,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE;YAAE,SAAS,EAAE,QAAQ,CAAA;SAAE,CAAC,CAAC;KACnD;IAID;;;OAGG;IACH,kBAAkB,IAAI,IAAI,IAAI,IAAI,GAAG;QACjC,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE;YAAE,SAAS,EAAE,kBAAkB,CAAA;SAAE,CAAC,CAAC;KAC7D;IAID;;;;;;OAMG;IACH,MAAM,CAAC,eAAe,CAAC,MAAM,SAAS,iBAAiB,EAAE,KAAK,GAAG,IAAI,EACjE,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,sBAAsB,GAChC,kBAAkB,CAAC,MAAM,GAAG,aAAa,EAAE,KAAK,CAAC;IAqBpD,OAAO,CAAC,MAAM,CAAC,eAAe;CAiCjC"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
export declare const ATTRIBUTE_VALIDATION_ERROR = "attributeValidationError";
|
|
1
2
|
export declare const INVALID_ONE_TIME_CODE = "invalidOneTimeCode";
|
|
2
3
|
export declare const INVALID_USERNAME_OR_PASSWORD = "invalidUserNameOrPassword";
|
|
4
|
+
export declare const PASSWORD_BANNED = "passwordBanned";
|
|
5
|
+
export declare const PASSWORD_IS_INVALID = "passwordIsInvalid";
|
|
6
|
+
export declare const PASSWORD_RECENTLY_USED = "passwordRecentlyUsed";
|
|
7
|
+
export declare const PASSWORD_TOO_LONG = "passwordTooLong";
|
|
8
|
+
export declare const PASSWORD_TOO_SHORT = "passwordTooShort";
|
|
3
9
|
export declare const PASSWORD_TOO_WEAK = "passwordTooWeak";
|
|
4
10
|
export declare const USER_NOT_FOUND = "userNotFound";
|
|
5
11
|
//# sourceMappingURL=AuthFlowErrorSubcodesV2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthFlowErrorSubcodesV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,uBAAuB,CAAC;AAC1D,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AACxE,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"AuthFlowErrorSubcodesV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,0BAA0B,6BAA6B,CAAC;AACrE,eAAO,MAAM,qBAAqB,uBAAuB,CAAC;AAC1D,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AACxE,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,mBAAmB,sBAAsB,CAAC;AACvD,eAAO,MAAM,sBAAsB,yBAAyB,CAAC;AAC7D,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AACrD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,88 +1,67 @@
|
|
|
1
1
|
import type { CustomAuthError } from "../../../error/CustomAuthError.js";
|
|
2
2
|
import { CustomAuthFlowScenarioV2 } from "../CustomAuthFlowScenarioV2.js";
|
|
3
|
+
export type AuthFlowErrorContextV2 = "default" | "mfaVerification" | "authMethodRegistration";
|
|
3
4
|
/**
|
|
4
|
-
* Error returned by a native authentication V2 operation.
|
|
5
|
-
*
|
|
5
|
+
* Error returned by a native authentication V2 operation.
|
|
6
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
6
7
|
*/
|
|
7
8
|
export declare class AuthFlowErrorV2 {
|
|
8
9
|
errorData: CustomAuthError;
|
|
10
|
+
private readonly errorContext;
|
|
9
11
|
readonly scenario: CustomAuthFlowScenarioV2;
|
|
10
|
-
constructor(errorData: CustomAuthError, scenario?: CustomAuthFlowScenarioV2);
|
|
12
|
+
constructor(errorData: CustomAuthError, scenario?: CustomAuthFlowScenarioV2, errorContext?: AuthFlowErrorContextV2);
|
|
11
13
|
get correlationId(): string | undefined;
|
|
12
14
|
get errorCodes(): number[] | undefined;
|
|
13
15
|
get errorDescription(): string | undefined;
|
|
14
16
|
get innerErrorCode(): string | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Gets the attribute ids that the service reports as required.
|
|
17
|
-
*/
|
|
18
17
|
get requiredAttributes(): readonly string[];
|
|
19
|
-
/**
|
|
20
|
-
* Gets the attribute ids whose submitted values failed validation.
|
|
21
|
-
*/
|
|
22
18
|
get invalidAttributes(): readonly string[];
|
|
23
19
|
/**
|
|
24
|
-
* Checks
|
|
25
|
-
* server surfaces this as the `web_redirect_required` OAuth suberror, so a
|
|
26
|
-
* browser hand-off arrives as a `FailedStateV2` on which this detector
|
|
27
|
-
* returns true.
|
|
20
|
+
* Checks whether the flow must continue in the browser.
|
|
28
21
|
* @returns True if the browser is required, false otherwise.
|
|
29
22
|
*/
|
|
30
23
|
isBrowserRequired(): boolean;
|
|
31
24
|
/**
|
|
32
|
-
* Checks
|
|
33
|
-
* client-side validation before the request was issued (for example an empty
|
|
34
|
-
* username, code, or password, or an unknown method id). Use it to prompt the
|
|
35
|
-
* user to correct the input rather than treating it as a server failure.
|
|
25
|
+
* Checks whether a caller-supplied argument failed client-side validation.
|
|
36
26
|
* @returns True if the input was invalid, false otherwise.
|
|
37
27
|
*/
|
|
38
28
|
isInvalidInput(): boolean;
|
|
39
29
|
/**
|
|
40
|
-
* Checks whether the
|
|
41
|
-
*
|
|
42
|
-
* @returns True when the username is invalid, otherwise false.
|
|
30
|
+
* Checks whether the supplied username failed local validation.
|
|
31
|
+
* @returns True when local username validation failed.
|
|
43
32
|
*/
|
|
44
33
|
isInvalidUsername(): boolean;
|
|
45
34
|
/**
|
|
46
|
-
* Checks whether the supplied username does not identify an account.
|
|
47
|
-
* to distinguish a missing account from other request failures.
|
|
35
|
+
* Checks whether the supplied username does not identify an account.
|
|
48
36
|
* @returns True when the service reports that the user was not found.
|
|
49
37
|
*/
|
|
50
38
|
isUserNotFound(): boolean;
|
|
51
39
|
/**
|
|
52
|
-
* Checks whether the service rejected
|
|
53
|
-
* classifier does not identify new-password policy failures.
|
|
54
|
-
* @returns True when the username or password is incorrect.
|
|
55
|
-
*/
|
|
56
|
-
isInvalidCredentials(): boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Checks whether the service rejected a one-time code. Use it to prompt the
|
|
59
|
-
* user to re-enter the code or request a new one.
|
|
40
|
+
* Checks whether the service rejected a one-time code.
|
|
60
41
|
* @returns True when the one-time code is invalid, otherwise false.
|
|
61
42
|
*/
|
|
62
43
|
isInvalidCode(): boolean;
|
|
63
44
|
/**
|
|
64
|
-
* Checks whether
|
|
65
|
-
*
|
|
66
|
-
* @returns True when the new password is invalid, otherwise false.
|
|
45
|
+
* Checks whether the service rejected an MFA or registration challenge.
|
|
46
|
+
* @returns True when the verification challenge is invalid.
|
|
67
47
|
*/
|
|
68
|
-
|
|
48
|
+
isInvalidChallenge(): boolean;
|
|
69
49
|
/**
|
|
70
|
-
* Checks whether
|
|
71
|
-
*
|
|
72
|
-
* @returns True
|
|
50
|
+
* Checks whether the service rejected non-password attributes.
|
|
51
|
+
* Password-targeted validation is reported only by isInvalidPassword().
|
|
52
|
+
* @returns True when at least one non-password attribute is invalid.
|
|
73
53
|
*/
|
|
74
|
-
|
|
54
|
+
isInvalidAttributes(): boolean;
|
|
75
55
|
/**
|
|
76
|
-
* Checks whether the service
|
|
77
|
-
*
|
|
78
|
-
* @returns True when required attributes are missing, otherwise false.
|
|
56
|
+
* Checks whether the service rejected a supplied password.
|
|
57
|
+
* @returns True when the supplied password is invalid, otherwise false.
|
|
79
58
|
*/
|
|
80
|
-
|
|
59
|
+
isInvalidPassword(): boolean;
|
|
60
|
+
private isAttributeValidationError;
|
|
81
61
|
private isUserNotFoundError;
|
|
82
|
-
private isUserInvalidError;
|
|
83
62
|
private isInvalidCodeError;
|
|
84
63
|
private isInvalidPasswordError;
|
|
85
|
-
private
|
|
64
|
+
private isPasswordAttributeValidationError;
|
|
86
65
|
private isPasswordIncorrectError;
|
|
87
66
|
private getAttributeValidationDetails;
|
|
88
67
|
private getAttributeIdsByCode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthFlowErrorV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"AuthFlowErrorV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAgBzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAG1E,MAAM,MAAM,sBAAsB,GAC5B,SAAS,GACT,iBAAiB,GACjB,wBAAwB,CAAC;AAE/B;;;GAGG;AACH,qBAAa,eAAe;IAIb,SAAS,EAAE,eAAe;IAEjC,OAAO,CAAC,QAAQ,CAAC,YAAY;IALjC,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;gBAGjC,SAAS,EAAE,eAAe,EACjC,QAAQ,GAAE,wBAA2D,EACpD,YAAY,GAAE,sBAAkC;IAKrE,IAAI,aAAa,IAAI,MAAM,GAAG,SAAS,CAEtC;IAED,IAAI,UAAU,IAAI,MAAM,EAAE,GAAG,SAAS,CAErC;IAED,IAAI,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAEzC;IAED,IAAI,cAAc,IAAI,MAAM,GAAG,SAAS,CAIvC;IAED,IAAI,kBAAkB,IAAI,SAAS,MAAM,EAAE,CAE1C;IAED,IAAI,iBAAiB,IAAI,SAAS,MAAM,EAAE,CAEzC;IAED;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAO5B;;;OAGG;IACH,cAAc,IAAI,OAAO;IAIzB;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAO5B;;;OAGG;IACH,cAAc,IAAI,OAAO;IAIzB;;;OAGG;IACH,aAAa,IAAI,OAAO;IAIxB;;;OAGG;IACH,kBAAkB,IAAI,OAAO;IAQ7B;;;;OAIG;IACH,mBAAmB,IAAI,OAAO;IAoB9B;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAQ5B,OAAO,CAAC,0BAA0B;IAOlC,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,sBAAsB;IAc9B,OAAO,CAAC,kCAAkC;IAc1C,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,6BAA6B;IAerC,OAAO,CAAC,qBAAqB;CAahC"}
|
package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { CustomAuthResultV2 } from "../CustomAuthResultV2.js";
|
|
|
2
2
|
import type { FailedStateV2 } from "../state/FailedStateV2.js";
|
|
3
3
|
import type { AuthMethodVerificationRequiredStateV2 } from "../state/AuthMethodVerificationRequiredStateV2.js";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* States returned after requesting an authentication-method registration challenge.
|
|
6
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
7
7
|
*/
|
|
8
8
|
export type AuthMethodRegistrationChallengeResultStateV2 = AuthMethodVerificationRequiredStateV2 | FailedStateV2;
|
|
9
9
|
/**
|
|
10
10
|
* Result of challenging a selected authentication method for registration.
|
|
11
|
-
* It
|
|
11
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
12
12
|
*/
|
|
13
13
|
export type AuthMethodRegistrationChallengeResultV2 = CustomAuthResultV2<AuthMethodRegistrationChallengeResultStateV2>;
|
|
14
14
|
//# sourceMappingURL=AuthMethodRegistrationChallengeResultV2.d.ts.map
|
|
@@ -2,14 +2,15 @@ import { CustomAuthResultV2 } from "../CustomAuthResultV2.js";
|
|
|
2
2
|
import type { CompletedStateV2 } from "../state/CompletedStateV2.js";
|
|
3
3
|
import type { FailedStateV2 } from "../state/FailedStateV2.js";
|
|
4
4
|
import type { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
|
|
5
|
+
import type { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2/state/SignInContinuationStateV2.js";
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
7
|
+
* States returned after submitting an authentication-method verification challenge.
|
|
8
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8
9
|
*/
|
|
9
|
-
export type AuthMethodVerificationSubmitChallengeResultStateV2 = CompletedStateV2 | FailedStateV2;
|
|
10
|
+
export type AuthMethodVerificationSubmitChallengeResultStateV2 = SignInContinuationStateV2 | CompletedStateV2 | FailedStateV2;
|
|
10
11
|
/**
|
|
11
|
-
* Result of submitting
|
|
12
|
-
*
|
|
12
|
+
* Result of submitting an authentication-method verification challenge.
|
|
13
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
13
14
|
*/
|
|
14
|
-
export type AuthMethodVerificationSubmitChallengeResultV2 = CustomAuthResultV2<AuthMethodVerificationSubmitChallengeResultStateV2, CustomAuthAccountData>;
|
|
15
|
+
export type AuthMethodVerificationSubmitChallengeResultV2 = CustomAuthResultV2<AuthMethodVerificationSubmitChallengeResultStateV2, CustomAuthAccountData | undefined>;
|
|
15
16
|
//# sourceMappingURL=AuthMethodVerificationSubmitChallengeResultV2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthMethodVerificationSubmitChallengeResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;
|
|
1
|
+
{"version":3,"file":"AuthMethodVerificationSubmitChallengeResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACxG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qEAAqE,CAAC;AAErH;;;GAGG;AACH,MAAM,MAAM,kDAAkD,GACxD,yBAAyB,GACzB,gBAAgB,GAChB,aAAa,CAAC;AAEpB;;;GAGG;AACH,MAAM,MAAM,6CAA6C,GAAG,kBAAkB,CAC1E,kDAAkD,EAClD,qBAAqB,GAAG,SAAS,CACpC,CAAC"}
|