@azure/msal-browser 5.22.0 → 5.24.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 +133 -29
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +178 -64
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +61 -22
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +49 -0
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs.map +1 -0
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +97 -29
- package/dist/cache/LocalStorage.mjs.map +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 +10 -10
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +27 -2
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +192 -2
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +21 -0
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +80 -0
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs +102 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +12 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs +20 -0
- package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +36 -0
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +29 -0
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +76 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +36 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +36 -0
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +134 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +23 -0
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +22 -0
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs +61 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +87 -0
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +3 -2
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +602 -0
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -0
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +67 -0
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -0
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +46 -0
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +3 -2
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +30 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +193 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +236 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +26 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +66 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +97 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +56 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +23 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +14 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -0
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +3 -2
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs.map +1 -1
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +38 -0
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -0
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +20 -3
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom_auth/index.mjs +23 -1
- package/dist/custom_auth/index.mjs.map +1 -1
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs +29 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs.map +1 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +59 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs +18 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +37 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +23 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +70 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +61 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs +25 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs +33 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +40 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +25 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +47 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +60 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +21 -14
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +11 -8
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/log-strings-mapping.json +1381 -1185
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/popup_relay/constants.mjs +1 -1
- package/dist/popup_relay/index.mjs +1 -1
- package/dist/popup_relay/relayClient.mjs +1 -1
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +16 -2
- package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
- package/dist/webBrokerBridge/PerfEventNames.mjs +38 -0
- package/dist/webBrokerBridge/PerfEventNames.mjs.map +1 -0
- package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
- package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
- package/dist/webBrokerBridge/index.mjs +2 -1
- package/dist/webBrokerBridge/index.mjs.map +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +215 -19
- package/lib/custom-auth-path/msal-custom-auth.cjs +3571 -479
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +3571 -479
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +23 -11
- package/lib/msal-browser.cjs +622 -233
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +622 -233
- 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 +59 -1
- package/lib/web-broker-bridge/msal-web-broker-bridge.cjs.map +1 -1
- package/package.json +3 -3
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +217 -45
- package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +261 -107
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +92 -37
- package/src/broker/nativeBroker/PlatformAuthRequest.ts +118 -6
- package/src/broker/nativeBroker/PlatformAuthResponse.ts +14 -1
- package/src/cache/LocalStorage.ts +135 -28
- package/src/controllers/StandardController.ts +17 -23
- package/src/custom_auth/CustomAuthActionInputs.ts +11 -0
- package/src/custom_auth/CustomAuthPublicClientApplication.ts +40 -4
- package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +44 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +360 -1
- package/src/custom_auth/controller/ICustomAuthStandardController.ts +14 -0
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +18 -0
- package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +20 -0
- package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +133 -0
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.ts +146 -0
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +8 -0
- package/src/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.ts +15 -0
- package/src/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.ts +33 -0
- package/src/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.ts +25 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.ts +18 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +26 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +26 -0
- package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +25 -0
- package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +30 -0
- package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +40 -0
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +100 -0
- package/src/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.ts +59 -0
- package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +53 -0
- package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +196 -0
- package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +16 -0
- package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +44 -0
- package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +15 -0
- package/src/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.ts +76 -0
- package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +119 -0
- package/src/custom_auth/core/error/CustomAuthApiError.ts +3 -1
- package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +35 -0
- package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +1145 -0
- package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +150 -0
- package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +66 -0
- package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +185 -0
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +1 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +30 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +423 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +553 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.ts +24 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +81 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +177 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +129 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.ts +68 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +50 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.ts +20 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +202 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +111 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +26 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +44 -0
- package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +64 -0
- package/src/custom_auth/core/telemetry/PublicApiId.ts +18 -0
- package/src/custom_auth/index.ts +96 -0
- package/src/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.ts +25 -0
- package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +33 -0
- package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +69 -0
- package/src/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.ts +9 -0
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.ts +13 -0
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.ts +35 -0
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.ts +19 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +31 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +32 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +22 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +96 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +83 -0
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.ts +12 -0
- package/src/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.ts +21 -0
- package/src/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.ts +32 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +28 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +20 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +48 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.ts +34 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +63 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.ts +24 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +112 -0
- package/src/interaction_client/PlatformAuthInteractionClient.ts +79 -17
- package/src/interaction_client/RedirectClient.ts +15 -5
- package/src/packageMetadata.ts +1 -1
- package/src/telemetry/BrowserPerformanceEvents.ts +20 -0
- package/src/webBrokerBridge/PerfEventNames.ts +43 -0
- package/src/webBrokerBridge/index.ts +26 -0
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +3 -1
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts +3 -1
- package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +68 -5
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +12 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
- package/types/cache/LocalStorage.d.ts +4 -5
- package/types/cache/LocalStorage.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthActionInputs.d.ts +7 -0
- package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +27 -5
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +30 -0
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -0
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts +11 -2
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/controller/ICustomAuthStandardController.d.ts +7 -1
- package/types/custom_auth/controller/ICustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +53 -0
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts +40 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +4 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts +11 -0
- package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts +23 -0
- package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts +18 -0
- package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts +7 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +15 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +16 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +16 -0
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +18 -0
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +23 -0
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +21 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts +17 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +25 -0
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +11 -0
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +28 -0
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +10 -0
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts +18 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +25 -0
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/error/CustomAuthApiError.d.ts +3 -1
- package/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +21 -0
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +35 -0
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +26 -0
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +43 -0
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -0
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +80 -0
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts +17 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +31 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts +23 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts +19 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts +2 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +15 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +52 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts +3 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts +37 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts +12 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/HalResource.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +133 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +70 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +10 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +33 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -0
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +4 -0
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -0
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts +16 -0
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
- package/types/custom_auth/index.d.ts +37 -0
- package/types/custom_auth/index.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts +18 -0
- package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts.map +1 -0
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +22 -0
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +19 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts +3 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts +9 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts +22 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts +12 -0
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +21 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +17 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +9 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +17 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +24 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts +4 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts +14 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts +20 -0
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +15 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +8 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +15 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts +11 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts +19 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts +14 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts +10 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -0
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/telemetry/BrowserPerformanceEvents.d.ts +13 -0
- package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/types/webBrokerBridge/PerfEventNames.d.ts +30 -0
- package/types/webBrokerBridge/PerfEventNames.d.ts.map +1 -0
- package/types/webBrokerBridge/index.d.ts +1 -0
- package/types/webBrokerBridge/index.d.ts.map +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AuthFlowActionRequiredStateBase } from "../../AuthFlowState.js";
|
|
2
|
+
import type { AuthenticationMethodV2 } from "../AuthenticationMethodV2.js";
|
|
3
|
+
import type { CodeVerificationStateParametersV2 } from "./CustomAuthStateParametersV2.js";
|
|
4
|
+
import type { FlowCodeRequiredResultV2, FlowSubmitCodeResultV2 } from "../../../interaction_client/v2/result/FlowActionResultV2.js";
|
|
5
|
+
export declare abstract class ChallengeVerificationStateBaseV2<TParameters extends CodeVerificationStateParametersV2 = CodeVerificationStateParametersV2> extends AuthFlowActionRequiredStateBase<TParameters> {
|
|
6
|
+
readonly method?: AuthenticationMethodV2;
|
|
7
|
+
readonly sentTo?: string;
|
|
8
|
+
readonly channel?: string;
|
|
9
|
+
readonly codeLength?: number;
|
|
10
|
+
constructor(stateParameters: TParameters);
|
|
11
|
+
protected submitCodeCore(code: string): Promise<FlowSubmitCodeResultV2>;
|
|
12
|
+
protected resendCodeCore(): Promise<FlowCodeRequiredResultV2>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=ChallengeVerificationStateBaseV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChallengeVerificationStateBaseV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,KAAK,EACR,wBAAwB,EACxB,sBAAsB,EACzB,MAAM,6DAA6D,CAAC;AAErE,8BAAsB,gCAAgC,CAClD,WAAW,SAAS,iCAAiC,GAAG,iCAAiC,CAC3F,SAAQ,+BAA+B,CAAC,WAAW,CAAC;IAClD,QAAQ,CAAC,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAEzC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;gBAEjB,eAAe,EAAE,WAAW;cAQxB,cAAc,CAC1B,IAAI,EAAE,MAAM,GACb,OAAO,CAAC,sBAAsB,CAAC;cAYlB,cAAc,IAAI,OAAO,CAAC,wBAAwB,CAAC;CAMtE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CodeRequiredStateParametersV2 } from "./CustomAuthStateParametersV2.js";
|
|
2
|
+
import type { VerifyChallengeResultV2 } from "../result/VerifyChallengeResultV2.js";
|
|
3
|
+
import type { RequestChallengeResultV2 } from "../result/RequestChallengeResultV2.js";
|
|
4
|
+
import { ChallengeVerificationStateBaseV2 } from "./ChallengeVerificationStateBaseV2.js";
|
|
5
|
+
/**
|
|
6
|
+
* State returned when first-factor email authentication requires a one-time
|
|
7
|
+
* code. It allows the app to submit the code or request a replacement.
|
|
8
|
+
*/
|
|
9
|
+
export declare class CodeRequiredStateV2 extends ChallengeVerificationStateBaseV2<CodeRequiredStateParametersV2> {
|
|
10
|
+
readonly stateType = "codeRequired";
|
|
11
|
+
/**
|
|
12
|
+
* Submits the first-factor email code and advances the active flow. The
|
|
13
|
+
* result may complete the operation or require another flow-specific step.
|
|
14
|
+
* @param code - The code to submit.
|
|
15
|
+
* @returns The result of submitting the first-factor code.
|
|
16
|
+
*/
|
|
17
|
+
submitCode(code: string): Promise<VerifyChallengeResultV2>;
|
|
18
|
+
/**
|
|
19
|
+
* Requests a replacement first-factor email code. The returned state
|
|
20
|
+
* contains the refreshed challenge metadata.
|
|
21
|
+
* @returns The result of requesting a replacement code.
|
|
22
|
+
*/
|
|
23
|
+
resendCode(): Promise<RequestChallengeResultV2>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=CodeRequiredStateV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeRequiredStateV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAetF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,gCAAgC,CAAC,6BAA6B,CAAC;IACpG,QAAQ,CAAC,SAAS,kBAAkB;IAEpC;;;;;OAKG;IACG,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;IA8GhE;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,wBAAwB,CAAC;CAuCxD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AuthFlowStateBase } from "../../AuthFlowState.js";
|
|
2
|
+
/**
|
|
3
|
+
* Terminal state indicating the operation completed successfully.
|
|
4
|
+
*
|
|
5
|
+
* Completion data (for example the signed-in account) is carried by the
|
|
6
|
+
* result's `data` payload, not by this state.
|
|
7
|
+
*/
|
|
8
|
+
export declare class CompletedStateV2 extends AuthFlowStateBase {
|
|
9
|
+
readonly stateType = "completed";
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=CompletedStateV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompletedStateV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;;GAKG;AACH,qBAAa,gBAAiB,SAAQ,iBAAiB;IACnD,QAAQ,CAAC,SAAS,eAAe;CACpC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AuthFlowActionRequiredStateParameters } from "../../AuthFlowState.js";
|
|
2
|
+
import { AuthenticationMethodV2 } from "../AuthenticationMethodV2.js";
|
|
3
|
+
import { FlowContinuationStateV2 } from "../../../interaction_client/v2/FlowContinuationStateV2.js";
|
|
4
|
+
import { FlowInteractionClientV2 } from "../../../interaction_client/v2/FlowInteractionClientV2.js";
|
|
5
|
+
import { CustomAuthSilentCacheClient } from "../../../../get_account/interaction_client/CustomAuthSilentCacheClient.js";
|
|
6
|
+
import type { SignUpStateTransitionHandlerV2 } from "../../../../sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.js";
|
|
7
|
+
export interface CustomAuthActionRequiredStateParametersV2 extends AuthFlowActionRequiredStateParameters {
|
|
8
|
+
flowClient: FlowInteractionClientV2;
|
|
9
|
+
continuationState: FlowContinuationStateV2;
|
|
10
|
+
cacheClient: CustomAuthSilentCacheClient;
|
|
11
|
+
}
|
|
12
|
+
export interface AuthMethodSelectionRequiredStateParametersV2 extends CustomAuthActionRequiredStateParametersV2 {
|
|
13
|
+
methods: readonly AuthenticationMethodV2[];
|
|
14
|
+
}
|
|
15
|
+
export interface MFARequiredStateParametersV2 extends CustomAuthActionRequiredStateParametersV2 {
|
|
16
|
+
methods: readonly AuthenticationMethodV2[];
|
|
17
|
+
}
|
|
18
|
+
export interface CodeVerificationStateParametersV2 extends CustomAuthActionRequiredStateParametersV2 {
|
|
19
|
+
method?: AuthenticationMethodV2;
|
|
20
|
+
sentTo?: string;
|
|
21
|
+
channel?: string;
|
|
22
|
+
codeLength?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface CodeRequiredStateParametersV2 extends CodeVerificationStateParametersV2 {
|
|
25
|
+
signUpStateTransitionHandler?: SignUpStateTransitionHandlerV2;
|
|
26
|
+
}
|
|
27
|
+
export type MFAVerificationRequiredStateParametersV2 = CodeVerificationStateParametersV2;
|
|
28
|
+
//# sourceMappingURL=CustomAuthStateParametersV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomAuthStateParametersV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qCAAqC,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AACpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AACpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,2EAA2E,CAAC;AACxH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,0EAA0E,CAAC;AAE/H,MAAM,WAAW,yCACb,SAAQ,qCAAqC;IAC7C,UAAU,EAAE,uBAAuB,CAAC;IACpC,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,WAAW,EAAE,2BAA2B,CAAC;CAC5C;AAED,MAAM,WAAW,4CACb,SAAQ,yCAAyC;IACjD,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,4BACb,SAAQ,yCAAyC;IACjD,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,iCACb,SAAQ,yCAAyC;IACjD,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,6BACb,SAAQ,iCAAiC;IACzC,4BAA4B,CAAC,EAAE,8BAA8B,CAAC;CACjE;AAED,MAAM,MAAM,wCAAwC,GAChD,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AuthFlowStateBase } from "../../AuthFlowState.js";
|
|
2
|
+
/**
|
|
3
|
+
* Terminal state indicating the operation failed.
|
|
4
|
+
*
|
|
5
|
+
* The error is carried by the result's `error` payload, not by this state.
|
|
6
|
+
*/
|
|
7
|
+
export declare class FailedStateV2 extends AuthFlowStateBase {
|
|
8
|
+
readonly stateType = "failed";
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=FailedStateV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FailedStateV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,iBAAiB;IAChD,QAAQ,CAAC,SAAS,YAAY;CACjC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AuthenticationMethodV2 } from "../AuthenticationMethodV2.js";
|
|
2
|
+
import type { MFARequiredStateParametersV2 } from "./CustomAuthStateParametersV2.js";
|
|
3
|
+
import type { MFARequestChallengeResultV2 } from "../result/MFARequestChallengeResultV2.js";
|
|
4
|
+
import { AuthenticationMethodSelectionStateBaseV2 } from "./AuthenticationMethodSelectionStateBaseV2.js";
|
|
5
|
+
/**
|
|
6
|
+
* State returned when sign-in requires a registered multi-factor
|
|
7
|
+
* authentication method.
|
|
8
|
+
*/
|
|
9
|
+
export declare class MFARequiredStateV2 extends AuthenticationMethodSelectionStateBaseV2<MFARequiredStateParametersV2> {
|
|
10
|
+
readonly stateType = "mfaRequired";
|
|
11
|
+
/**
|
|
12
|
+
* Requests a challenge for a registered MFA method.
|
|
13
|
+
* @param method - A method from {@link methods}.
|
|
14
|
+
* @returns A result requiring challenge verification or describing failure.
|
|
15
|
+
*/
|
|
16
|
+
requestChallenge(method: AuthenticationMethodV2): Promise<MFARequestChallengeResultV2>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=MFARequiredStateV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MFARequiredStateV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAOtE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,wCAAwC,EAAE,MAAM,+CAA+C,CAAC;AAEzG;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,wCAAwC,CAAC,4BAA4B,CAAC;IAC1G,QAAQ,CAAC,SAAS,iBAAiB;IAEnC;;;;OAIG;IACG,gBAAgB,CAClB,MAAM,EAAE,sBAAsB,GAC/B,OAAO,CAAC,2BAA2B,CAAC;CA6C1C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { MFAVerificationRequiredStateParametersV2 } from "./CustomAuthStateParametersV2.js";
|
|
2
|
+
import type { MFASubmitChallengeResultV2 } from "../result/MFASubmitChallengeResultV2.js";
|
|
3
|
+
import type { MFAResendChallengeResultV2 } from "../result/MFAResendChallengeResultV2.js";
|
|
4
|
+
import { ChallengeVerificationStateBaseV2 } from "./ChallengeVerificationStateBaseV2.js";
|
|
5
|
+
/**
|
|
6
|
+
* State returned when sign-in requires verification of an email or SMS MFA
|
|
7
|
+
* challenge. It allows the app to submit the challenge or request a replacement.
|
|
8
|
+
*/
|
|
9
|
+
export declare class MFAVerificationRequiredStateV2 extends ChallengeVerificationStateBaseV2<MFAVerificationRequiredStateParametersV2> {
|
|
10
|
+
readonly stateType = "mfaVerificationRequired";
|
|
11
|
+
/**
|
|
12
|
+
* Submits the email or SMS challenge as the second authentication factor.
|
|
13
|
+
* Successful verification completes sign-in.
|
|
14
|
+
* @param challenge - The challenge value to submit.
|
|
15
|
+
* @returns The result of submitting the MFA challenge.
|
|
16
|
+
*/
|
|
17
|
+
submitChallenge(challenge: string): Promise<MFASubmitChallengeResultV2>;
|
|
18
|
+
/**
|
|
19
|
+
* Requests a replacement challenge for the selected MFA method. The
|
|
20
|
+
* returned state contains the refreshed email or SMS challenge metadata.
|
|
21
|
+
* @returns The result of requesting a replacement MFA challenge.
|
|
22
|
+
*/
|
|
23
|
+
resendChallenge(): Promise<MFAResendChallengeResultV2>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=MFAVerificationRequiredStateV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MFAVerificationRequiredStateV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AACjG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAM1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF;;;GAGG;AACH,qBAAa,8BAA+B,SAAQ,gCAAgC,CAAC,wCAAwC,CAAC;IAC1H,QAAQ,CAAC,SAAS,6BAA6B;IAE/C;;;;;OAKG;IACG,eAAe,CACjB,SAAS,EAAE,MAAM,GAClB,OAAO,CAAC,0BAA0B,CAAC;IA2CtC;;;;OAIG;IACG,eAAe,IAAI,OAAO,CAAC,0BAA0B,CAAC;CAqC/D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UserAttribute } from "../network_client/custom_auth_api/types/ApiErrorResponseTypes.js";
|
|
2
|
+
import { AttributeValidationDetailV2 } from "../network_client/custom_auth_api/v2/response/ErrorResponsesV2.js";
|
|
2
3
|
import { CustomAuthError } from "./CustomAuthError.js";
|
|
3
4
|
/**
|
|
4
5
|
* Error when no required authentication method by Microsoft Entra is supported
|
|
@@ -15,6 +16,7 @@ export declare class CustomAuthApiError extends CustomAuthError {
|
|
|
15
16
|
continuationToken?: string | undefined;
|
|
16
17
|
traceId?: string | undefined;
|
|
17
18
|
timestamp?: string | undefined;
|
|
18
|
-
|
|
19
|
+
attributeValidationDetails?: AttributeValidationDetailV2[] | undefined;
|
|
20
|
+
constructor(error: string, errorDescription: string, correlationId?: string, errorCodes?: Array<number>, subError?: string, attributes?: UserAttribute[] | undefined, continuationToken?: string | undefined, traceId?: string | undefined, timestamp?: string | undefined, attributeValidationDetails?: AttributeValidationDetailV2[] | undefined);
|
|
19
21
|
}
|
|
20
22
|
//# sourceMappingURL=CustomAuthApiError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthApiError.d.ts","sourceRoot":"","sources":["../../../../src/custom_auth/core/error/CustomAuthApiError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,kEAAkE,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,aAAc,SAAQ,eAAe;IACH,cAAc,CAAC;gBAA9C,aAAa,CAAC,EAAE,MAAM,EAAS,cAAc,CAAC,oBAAQ;CASrE;AAED;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,eAAe;IAOxC,UAAU,CAAC;IACX,iBAAiB,CAAC;IAClB,OAAO,CAAC;IACR,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomAuthApiError.d.ts","sourceRoot":"","sources":["../../../../src/custom_auth/core/error/CustomAuthApiError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,kEAAkE,CAAC;AACjG,OAAO,EAAE,2BAA2B,EAAE,MAAM,mEAAmE,CAAC;AAChH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,aAAc,SAAQ,eAAe;IACH,cAAc,CAAC;gBAA9C,aAAa,CAAC,EAAE,MAAM,EAAS,cAAc,CAAC,oBAAQ;CASrE;AAED;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,eAAe;IAOxC,UAAU,CAAC;IACX,iBAAiB,CAAC;IAClB,OAAO,CAAC;IACR,SAAS,CAAC;IACV,0BAA0B,CAAC;gBATlC,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,MAAM,EACxB,aAAa,CAAC,EAAE,MAAM,EACtB,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EAC1B,QAAQ,CAAC,EAAE,MAAM,EACV,UAAU,CAAC,6BAAsB,EACjC,iBAAiB,CAAC,oBAAQ,EAC1B,OAAO,CAAC,oBAAQ,EAChB,SAAS,CAAC,oBAAQ,EAClB,0BAA0B,CAAC,2CAA+B;CAKxE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CustomAuthFlowScenarioV2 } from "../../auth_flow/v2/CustomAuthFlowScenarioV2.js";
|
|
2
|
+
export interface FlowLinksV2 {
|
|
3
|
+
challenge?: string;
|
|
4
|
+
verify?: string;
|
|
5
|
+
resend?: string;
|
|
6
|
+
update?: string;
|
|
7
|
+
poll?: string;
|
|
8
|
+
submitAttributes?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface FlowContinuationStateV2 {
|
|
11
|
+
continuationToken: string;
|
|
12
|
+
scenario: CustomAuthFlowScenarioV2;
|
|
13
|
+
links: FlowLinksV2;
|
|
14
|
+
tokenRequest?: {
|
|
15
|
+
scopes?: string[];
|
|
16
|
+
};
|
|
17
|
+
signUp?: {
|
|
18
|
+
passwordWasSupplied: boolean;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=FlowContinuationStateV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowContinuationStateV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAM1F,MAAM,WAAW,WAAW;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAMD,MAAM,WAAW,uBAAuB;IACpC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,wBAAwB,CAAC;IACnC,KAAK,EAAE,WAAW,CAAC;IACnB,YAAY,CAAC,EAAE;QACX,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;IACF,MAAM,CAAC,EAAE;QACL,mBAAmB,EAAE,OAAO,CAAC;KAChC,CAAC;CACL"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ICrypto, IPerformanceClient, Logger } from "@azure/msal-common/browser";
|
|
2
|
+
import { InteractionClientBaseV2 } from "./InteractionClientBaseV2.js";
|
|
3
|
+
import { FlowStartParamsV2, FlowSignInStartParamsV2, FlowSignUpStartParamsV2, FlowChallengeParamsV2, FlowSubmitCodeParamsV2, FlowSubmitNewPasswordParamsV2, FlowSubmitSignInPasswordParamsV2, FlowSubmitSignUpAttributesParamsV2, FlowSignInWithContinuationParamsV2 } from "./parameter/FlowParamsV2.js";
|
|
4
|
+
import type { FlowMethodSelectionRequiredResultV2, FlowCodeRequiredResultV2, FlowSignInCodeRequiredResultV2, FlowResetPasswordCodeRequiredResultV2, FlowPasswordRequiredResultV2, FlowSignUpPasswordRequiredResultV2, FlowMFARequiredResultV2, FlowAttributesRequiredResultV2, FlowSignInContinuationRequiredResultV2, FlowCompletedResultV2, FlowSignUpActionResultV2, FlowSubmitCodeResultV2 } from "./result/FlowActionResultV2.js";
|
|
5
|
+
import { BrowserConfiguration } from "../../../../config/Configuration.js";
|
|
6
|
+
import { BrowserCacheManager } from "../../../../cache/BrowserCacheManager.js";
|
|
7
|
+
import { EventHandler } from "../../../../event/EventHandler.js";
|
|
8
|
+
import { INavigationClient } from "../../../../navigation/INavigationClient.js";
|
|
9
|
+
import { CustomAuthAuthority } from "../../CustomAuthAuthority.js";
|
|
10
|
+
import { CustomAuthApiClientV2 } from "../../network_client/custom_auth_api/v2/CustomAuthApiClientV2.js";
|
|
11
|
+
export declare class FlowInteractionClientV2 extends InteractionClientBaseV2 {
|
|
12
|
+
protected apiClient: CustomAuthApiClientV2;
|
|
13
|
+
constructor(config: BrowserConfiguration, storageImpl: BrowserCacheManager, browserCrypto: ICrypto, logger: Logger, eventHandler: EventHandler, navigationClient: INavigationClient, performanceClient: IPerformanceClient, customAuthAuthority: CustomAuthAuthority, apiClient: CustomAuthApiClientV2);
|
|
14
|
+
signIn(parameters: FlowSignInStartParamsV2): Promise<FlowPasswordRequiredResultV2 | FlowSignInCodeRequiredResultV2 | FlowMFARequiredResultV2 | FlowCompletedResultV2>;
|
|
15
|
+
signUp(parameters: FlowSignUpStartParamsV2): Promise<FlowCodeRequiredResultV2 | FlowSignUpPasswordRequiredResultV2 | FlowAttributesRequiredResultV2>;
|
|
16
|
+
resetPassword(parameters: FlowStartParamsV2): Promise<FlowMethodSelectionRequiredResultV2 | FlowResetPasswordCodeRequiredResultV2>;
|
|
17
|
+
requestChallenge(parameters: FlowChallengeParamsV2): Promise<FlowCodeRequiredResultV2 | FlowPasswordRequiredResultV2>;
|
|
18
|
+
submitCode(parameters: FlowSubmitCodeParamsV2): Promise<FlowSubmitCodeResultV2>;
|
|
19
|
+
resendCode(parameters: FlowChallengeParamsV2): Promise<FlowCodeRequiredResultV2>;
|
|
20
|
+
submitSignUpAttributes(parameters: FlowSubmitSignUpAttributesParamsV2): Promise<FlowSignUpActionResultV2>;
|
|
21
|
+
submitNewPassword(parameters: FlowSubmitNewPasswordParamsV2): Promise<FlowSignInContinuationRequiredResultV2>;
|
|
22
|
+
submitSignInPassword(parameters: FlowSubmitSignInPasswordParamsV2): Promise<FlowMFARequiredResultV2 | FlowCompletedResultV2>;
|
|
23
|
+
signInWithContinuation(parameters: FlowSignInWithContinuationParamsV2): Promise<FlowCompletedResultV2>;
|
|
24
|
+
private handleSignInVerification;
|
|
25
|
+
private selectSignInMethod;
|
|
26
|
+
private toSignUpActionResult;
|
|
27
|
+
private ensureAuthenticationFactor;
|
|
28
|
+
private verifySignInPassword;
|
|
29
|
+
private completeSignInAfterVerification;
|
|
30
|
+
private sendMethodChallenge;
|
|
31
|
+
private createChallengeContinuationState;
|
|
32
|
+
private resolveStepApiId;
|
|
33
|
+
private requireLink;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=FlowInteractionClientV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowInteractionClientV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,kBAAkB,EAClB,MAAM,EACT,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACH,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,6BAA6B,EAC7B,gCAAgC,EAChC,kCAAkC,EAClC,kCAAkC,EACrC,MAAM,6BAA6B,CAAC;AAcrC,OAAO,KAAK,EACR,mCAAmC,EACnC,wBAAwB,EACxB,8BAA8B,EAC9B,qCAAqC,EACrC,4BAA4B,EAC5B,kCAAkC,EAClC,uBAAuB,EACvB,8BAA8B,EAC9B,sCAAsC,EACtC,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACzB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kEAAkE,CAAC;AA+CzG,qBAAa,uBAAwB,SAAQ,uBAAuB;IAU5D,SAAS,CAAC,SAAS,EAAE,qBAAqB;gBAR1C,MAAM,EAAE,oBAAoB,EAC5B,WAAW,EAAE,mBAAmB,EAChC,aAAa,EAAE,OAAO,EACtB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,iBAAiB,EACnC,iBAAiB,EAAE,kBAAkB,EACrC,mBAAmB,EAAE,mBAAmB,EAC9B,SAAS,EAAE,qBAAqB;IAiBxC,MAAM,CACR,UAAU,EAAE,uBAAuB,GACpC,OAAO,CACJ,4BAA4B,GAC5B,8BAA8B,GAC9B,uBAAuB,GACvB,qBAAqB,CAC1B;IAmFK,MAAM,CACR,UAAU,EAAE,uBAAuB,GACpC,OAAO,CACJ,wBAAwB,GACxB,kCAAkC,GAClC,8BAA8B,CACnC;IA+EK,aAAa,CACf,UAAU,EAAE,iBAAiB,GAC9B,OAAO,CACJ,mCAAmC,GACnC,qCAAqC,CAC1C;IA8GK,gBAAgB,CAClB,UAAU,EAAE,qBAAqB,GAClC,OAAO,CAAC,wBAAwB,GAAG,4BAA4B,CAAC;IAkC7D,UAAU,CACZ,UAAU,EAAE,sBAAsB,GACnC,OAAO,CAAC,sBAAsB,CAAC;IA0H5B,UAAU,CACZ,UAAU,EAAE,qBAAqB,GAClC,OAAO,CAAC,wBAAwB,CAAC;IAkB9B,sBAAsB,CACxB,UAAU,EAAE,kCAAkC,GAC/C,OAAO,CAAC,wBAAwB,CAAC;IA8C9B,iBAAiB,CACnB,UAAU,EAAE,6BAA6B,GAC1C,OAAO,CAAC,sCAAsC,CAAC;IA6E5C,oBAAoB,CACtB,UAAU,EAAE,gCAAgC,GAC7C,OAAO,CAAC,uBAAuB,GAAG,qBAAqB,CAAC;IAcrD,sBAAsB,CACxB,UAAU,EAAE,kCAAkC,GAC/C,OAAO,CAAC,qBAAqB,CAAC;YA2CnB,wBAAwB;IA+CtC,OAAO,CAAC,kBAAkB;IA6C1B,OAAO,CAAC,oBAAoB;IAyF5B,OAAO,CAAC,0BAA0B;YAmBpB,oBAAoB;IAyBlC,OAAO,CAAC,+BAA+B;YAiBzB,mBAAmB;IAsDjC,OAAO,CAAC,gCAAgC;IAuBxC,OAAO,CAAC,gBAAgB;IAqBxB,OAAO,CAAC,WAAW;CAkBtB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ICrypto, IPerformanceClient, Logger } from "@azure/msal-common/browser";
|
|
2
|
+
import { StandardInteractionClient } from "../../../../interaction_client/StandardInteractionClient.js";
|
|
3
|
+
import { BrowserConfiguration } from "../../../../config/Configuration.js";
|
|
4
|
+
import { BrowserCacheManager } from "../../../../cache/BrowserCacheManager.js";
|
|
5
|
+
import { EventHandler } from "../../../../event/EventHandler.js";
|
|
6
|
+
import { INavigationClient } from "../../../../navigation/INavigationClient.js";
|
|
7
|
+
import { RedirectRequest } from "../../../../request/RedirectRequest.js";
|
|
8
|
+
import { PopupRequest } from "../../../../request/PopupRequest.js";
|
|
9
|
+
import { SsoSilentRequest } from "../../../../request/SsoSilentRequest.js";
|
|
10
|
+
import { EndSessionRequest } from "../../../../request/EndSessionRequest.js";
|
|
11
|
+
import { ClearCacheRequest } from "../../../../request/ClearCacheRequest.js";
|
|
12
|
+
import { AuthenticationResult } from "../../../../response/AuthenticationResult.js";
|
|
13
|
+
import { CustomAuthAuthority } from "../../CustomAuthAuthority.js";
|
|
14
|
+
import { RequestContextV2 } from "../../network_client/custom_auth_api/v2/request/RequestsV2.js";
|
|
15
|
+
import { TokenResponseV2 } from "../../network_client/custom_auth_api/v2/response/ResponsesV2.js";
|
|
16
|
+
export declare abstract class InteractionClientBaseV2 extends StandardInteractionClient {
|
|
17
|
+
protected customAuthAuthority: CustomAuthAuthority;
|
|
18
|
+
private readonly tokenResponseHandler;
|
|
19
|
+
constructor(config: BrowserConfiguration, storageImpl: BrowserCacheManager, browserCrypto: ICrypto, logger: Logger, eventHandler: EventHandler, navigationClient: INavigationClient, performanceClient: IPerformanceClient, customAuthAuthority: CustomAuthAuthority);
|
|
20
|
+
acquireToken(request: RedirectRequest | PopupRequest | SsoSilentRequest): Promise<AuthenticationResult | void>;
|
|
21
|
+
logout(request: EndSessionRequest | ClearCacheRequest | undefined): Promise<void>;
|
|
22
|
+
protected getScopes(scopes: string[] | undefined): string[];
|
|
23
|
+
protected handleTokenResponse(tokenResponse: TokenResponseV2, requestScopes: string[], correlationId: string, apiId: number): Promise<AuthenticationResult>;
|
|
24
|
+
protected createRequestContext(apiId: number, correlationId: string): RequestContextV2;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=InteractionClientBaseV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionClientBaseV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,OAAO,EACP,kBAAkB,EAClB,MAAM,EAGT,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,6DAA6D,CAAC;AACxG,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,iEAAiE,CAAC;AAOlG,8BAAsB,uBAAwB,SAAQ,yBAAyB;IAWvE,SAAS,CAAC,mBAAmB,EAAE,mBAAmB;IAVtD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAkB;gBAGnD,MAAM,EAAE,oBAAoB,EAC5B,WAAW,EAAE,mBAAmB,EAChC,aAAa,EAAE,OAAO,EACtB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,iBAAiB,EACnC,iBAAiB,EAAE,kBAAkB,EAC3B,mBAAmB,EAAE,mBAAmB;IAyBtD,YAAY,CAER,OAAO,EAAE,eAAe,GAAG,YAAY,GAAG,gBAAgB,GAC3D,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAOvC,MAAM,CAEF,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,SAAS,GAC3D,OAAO,CAAC,IAAI,CAAC;IAIhB,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE;cAoB3C,mBAAmB,CAC/B,aAAa,EAAE,eAAe,EAC9B,aAAa,EAAE,MAAM,EAAE,EACvB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,GACd,OAAO,CAAC,oBAAoB,CAAC;IAqBhC,SAAS,CAAC,oBAAoB,CAC1B,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,MAAM,GACtB,gBAAgB;CAYtB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FlowContinuationStateV2 } from "../FlowContinuationStateV2.js";
|
|
2
|
+
import { UserAccountAttributes } from "../../../../UserAccountAttributes.js";
|
|
3
|
+
interface FlowParamsBaseV2 {
|
|
4
|
+
correlationId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FlowStartParamsV2 extends FlowParamsBaseV2 {
|
|
7
|
+
username: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FlowSignInStartParamsV2 extends FlowStartParamsV2 {
|
|
10
|
+
password?: string;
|
|
11
|
+
scopes?: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface FlowSignUpStartParamsV2 extends FlowStartParamsV2 {
|
|
14
|
+
password?: string;
|
|
15
|
+
attributes?: UserAccountAttributes;
|
|
16
|
+
scopes?: string[];
|
|
17
|
+
claims?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface FlowChallengeParamsV2 extends FlowParamsBaseV2 {
|
|
20
|
+
continuationState: FlowContinuationStateV2;
|
|
21
|
+
}
|
|
22
|
+
export interface FlowSubmitCodeParamsV2 extends FlowParamsBaseV2 {
|
|
23
|
+
continuationState: FlowContinuationStateV2;
|
|
24
|
+
code: string;
|
|
25
|
+
}
|
|
26
|
+
export interface FlowSubmitNewPasswordParamsV2 extends FlowParamsBaseV2 {
|
|
27
|
+
continuationState: FlowContinuationStateV2;
|
|
28
|
+
newPassword: string;
|
|
29
|
+
}
|
|
30
|
+
export interface FlowSubmitSignInPasswordParamsV2 extends FlowParamsBaseV2 {
|
|
31
|
+
continuationState: FlowContinuationStateV2;
|
|
32
|
+
password: string;
|
|
33
|
+
}
|
|
34
|
+
export interface FlowSubmitSignUpAttributesParamsV2 extends FlowParamsBaseV2 {
|
|
35
|
+
continuationState: FlowContinuationStateV2;
|
|
36
|
+
attributes: UserAccountAttributes;
|
|
37
|
+
}
|
|
38
|
+
export interface FlowSignInWithContinuationParamsV2 extends FlowParamsBaseV2 {
|
|
39
|
+
continuationState: FlowContinuationStateV2;
|
|
40
|
+
scopes?: string[];
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=FlowParamsV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowParamsV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAO7E,UAAU,gBAAgB;IACtB,aAAa,EAAE,MAAM,CAAC;CACzB;AAGD,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACvD,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC3D,iBAAiB,EAAE,uBAAuB,CAAC;CAC9C;AAGD,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC5D,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACnE,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,gCAAiC,SAAQ,gBAAgB;IACtE,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kCAAmC,SAAQ,gBAAgB;IACxE,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,UAAU,EAAE,qBAAqB,CAAC;CACrC;AAGD,MAAM,WAAW,kCAAmC,SAAQ,gBAAgB;IACxE,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { AuthenticationResult } from "../../../../../response/AuthenticationResult.js";
|
|
2
|
+
import { AuthenticationMethodV2 } from "../../../auth_flow/v2/AuthenticationMethodV2.js";
|
|
3
|
+
import { FlowContinuationStateV2 } from "../FlowContinuationStateV2.js";
|
|
4
|
+
import { SignUpAttributeV2 } from "../../../network_client/custom_auth_api/v2/result/SignUpResultsV2.js";
|
|
5
|
+
interface FlowActionResultBaseV2 {
|
|
6
|
+
type: string;
|
|
7
|
+
correlationId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FlowMethodSelectionRequiredResultV2 extends FlowActionResultBaseV2 {
|
|
10
|
+
type: typeof FLOW_METHOD_SELECTION_REQUIRED_V2;
|
|
11
|
+
continuationState: FlowContinuationStateV2;
|
|
12
|
+
methods: AuthenticationMethodV2[];
|
|
13
|
+
}
|
|
14
|
+
export interface FlowCodeRequiredResultV2 extends FlowActionResultBaseV2 {
|
|
15
|
+
type: typeof FLOW_CODE_REQUIRED_V2;
|
|
16
|
+
continuationState: FlowContinuationStateV2;
|
|
17
|
+
channel?: string;
|
|
18
|
+
sentTo?: string;
|
|
19
|
+
codeLength?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface FlowSignInCodeRequiredResultV2 extends FlowCodeRequiredResultV2 {
|
|
22
|
+
method: AuthenticationMethodV2;
|
|
23
|
+
}
|
|
24
|
+
export interface FlowResetPasswordCodeRequiredResultV2 extends FlowCodeRequiredResultV2 {
|
|
25
|
+
method: AuthenticationMethodV2;
|
|
26
|
+
}
|
|
27
|
+
export interface FlowPasswordRequiredResultV2 extends FlowActionResultBaseV2 {
|
|
28
|
+
type: typeof FLOW_PASSWORD_REQUIRED_V2;
|
|
29
|
+
continuationState: FlowContinuationStateV2;
|
|
30
|
+
}
|
|
31
|
+
export interface FlowSignUpPasswordRequiredResultV2 extends FlowActionResultBaseV2 {
|
|
32
|
+
type: typeof FLOW_SIGN_UP_PASSWORD_REQUIRED_V2;
|
|
33
|
+
continuationState: FlowContinuationStateV2;
|
|
34
|
+
attributes: SignUpAttributeV2[];
|
|
35
|
+
requiredPasswordAttribute: SignUpAttributeV2;
|
|
36
|
+
}
|
|
37
|
+
export interface FlowMFARequiredResultV2 extends FlowActionResultBaseV2 {
|
|
38
|
+
type: typeof FLOW_MFA_REQUIRED_V2;
|
|
39
|
+
continuationState: FlowContinuationStateV2;
|
|
40
|
+
methods: AuthenticationMethodV2[];
|
|
41
|
+
}
|
|
42
|
+
export interface FlowNewPasswordRequiredResultV2 extends FlowActionResultBaseV2 {
|
|
43
|
+
type: typeof FLOW_NEW_PASSWORD_REQUIRED_V2;
|
|
44
|
+
continuationState: FlowContinuationStateV2;
|
|
45
|
+
}
|
|
46
|
+
export interface FlowAttributesRequiredResultV2 extends FlowActionResultBaseV2 {
|
|
47
|
+
type: typeof FLOW_ATTRIBUTES_REQUIRED_V2;
|
|
48
|
+
continuationState: FlowContinuationStateV2;
|
|
49
|
+
attributes: SignUpAttributeV2[];
|
|
50
|
+
}
|
|
51
|
+
export interface FlowSignInContinuationRequiredResultV2 extends FlowActionResultBaseV2 {
|
|
52
|
+
type: typeof FLOW_SIGN_IN_CONTINUATION_REQUIRED_V2;
|
|
53
|
+
continuationState: FlowContinuationStateV2;
|
|
54
|
+
}
|
|
55
|
+
export interface FlowCompletedResultV2 extends FlowActionResultBaseV2 {
|
|
56
|
+
type: typeof FLOW_COMPLETED_V2;
|
|
57
|
+
authenticationResult: AuthenticationResult;
|
|
58
|
+
}
|
|
59
|
+
export type FlowSubmitCodeResultV2 = FlowNewPasswordRequiredResultV2 | FlowSignUpPasswordRequiredResultV2 | FlowAttributesRequiredResultV2 | FlowSignInContinuationRequiredResultV2 | FlowMFARequiredResultV2 | FlowCompletedResultV2;
|
|
60
|
+
export type FlowSignUpActionResultV2 = FlowCodeRequiredResultV2 | FlowSignUpPasswordRequiredResultV2 | FlowAttributesRequiredResultV2 | FlowSignInContinuationRequiredResultV2;
|
|
61
|
+
export declare const FLOW_METHOD_SELECTION_REQUIRED_V2 = "FlowMethodSelectionRequiredResultV2";
|
|
62
|
+
export declare const FLOW_CODE_REQUIRED_V2 = "FlowCodeRequiredResultV2";
|
|
63
|
+
export declare const FLOW_PASSWORD_REQUIRED_V2 = "FlowPasswordRequiredResultV2";
|
|
64
|
+
export declare const FLOW_SIGN_UP_PASSWORD_REQUIRED_V2 = "FlowSignUpPasswordRequiredResultV2";
|
|
65
|
+
export declare const FLOW_MFA_REQUIRED_V2 = "FlowMFARequiredResultV2";
|
|
66
|
+
export declare const FLOW_NEW_PASSWORD_REQUIRED_V2 = "FlowNewPasswordRequiredResultV2";
|
|
67
|
+
export declare const FLOW_ATTRIBUTES_REQUIRED_V2 = "FlowAttributesRequiredResultV2";
|
|
68
|
+
export declare const FLOW_SIGN_IN_CONTINUATION_REQUIRED_V2 = "FlowSignInContinuationRequiredResultV2";
|
|
69
|
+
export declare const FLOW_COMPLETED_V2 = "FlowCompletedResultV2";
|
|
70
|
+
export declare function createFlowMethodSelectionRequiredResultV2(input: Omit<FlowMethodSelectionRequiredResultV2, "type">): FlowMethodSelectionRequiredResultV2;
|
|
71
|
+
export declare function createFlowCodeRequiredResultV2(input: Omit<FlowCodeRequiredResultV2, "type">): FlowCodeRequiredResultV2;
|
|
72
|
+
export declare function createFlowPasswordRequiredResultV2(input: Omit<FlowPasswordRequiredResultV2, "type">): FlowPasswordRequiredResultV2;
|
|
73
|
+
export declare function createFlowSignUpPasswordRequiredResultV2(input: Omit<FlowSignUpPasswordRequiredResultV2, "type">): FlowSignUpPasswordRequiredResultV2;
|
|
74
|
+
export declare function createFlowMFARequiredResultV2(input: Omit<FlowMFARequiredResultV2, "type">): FlowMFARequiredResultV2;
|
|
75
|
+
export declare function createFlowNewPasswordRequiredResultV2(input: Omit<FlowNewPasswordRequiredResultV2, "type">): FlowNewPasswordRequiredResultV2;
|
|
76
|
+
export declare function createFlowAttributesRequiredResultV2(input: Omit<FlowAttributesRequiredResultV2, "type">): FlowAttributesRequiredResultV2;
|
|
77
|
+
export declare function createFlowSignInContinuationRequiredResultV2(input: Omit<FlowSignInContinuationRequiredResultV2, "type">): FlowSignInContinuationRequiredResultV2;
|
|
78
|
+
export declare function createFlowCompletedResultV2(input: Omit<FlowCompletedResultV2, "type">): FlowCompletedResultV2;
|
|
79
|
+
export {};
|
|
80
|
+
//# sourceMappingURL=FlowActionResultV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowActionResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sEAAsE,CAAC;AAOzG,UAAU,sBAAsB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACzB;AAMD,MAAM,WAAW,mCACb,SAAQ,sBAAsB;IAC9B,IAAI,EAAE,OAAO,iCAAiC,CAAC;IAC/C,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,OAAO,EAAE,sBAAsB,EAAE,CAAC;CACrC;AAMD,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB;IACpE,IAAI,EAAE,OAAO,qBAAqB,CAAC;IACnC,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,8BACb,SAAQ,wBAAwB;IAChC,MAAM,EAAE,sBAAsB,CAAC;CAClC;AAED,MAAM,WAAW,qCACb,SAAQ,wBAAwB;IAChC,MAAM,EAAE,sBAAsB,CAAC;CAClC;AAGD,MAAM,WAAW,4BAA6B,SAAQ,sBAAsB;IACxE,IAAI,EAAE,OAAO,yBAAyB,CAAC;IACvC,iBAAiB,EAAE,uBAAuB,CAAC;CAC9C;AAGD,MAAM,WAAW,kCACb,SAAQ,sBAAsB;IAC9B,IAAI,EAAE,OAAO,iCAAiC,CAAC;IAC/C,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,yBAAyB,EAAE,iBAAiB,CAAC;CAChD;AAGD,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACnE,IAAI,EAAE,OAAO,oBAAoB,CAAC;IAClC,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,OAAO,EAAE,sBAAsB,EAAE,CAAC;CACrC;AAGD,MAAM,WAAW,+BACb,SAAQ,sBAAsB;IAC9B,IAAI,EAAE,OAAO,6BAA6B,CAAC;IAC3C,iBAAiB,EAAE,uBAAuB,CAAC;CAC9C;AAED,MAAM,WAAW,8BAA+B,SAAQ,sBAAsB;IAC1E,IAAI,EAAE,OAAO,2BAA2B,CAAC;IACzC,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,UAAU,EAAE,iBAAiB,EAAE,CAAC;CACnC;AAMD,MAAM,WAAW,sCACb,SAAQ,sBAAsB;IAC9B,IAAI,EAAE,OAAO,qCAAqC,CAAC;IACnD,iBAAiB,EAAE,uBAAuB,CAAC;CAC9C;AAGD,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACjE,IAAI,EAAE,OAAO,iBAAiB,CAAC;IAC/B,oBAAoB,EAAE,oBAAoB,CAAC;CAC9C;AAED,MAAM,MAAM,sBAAsB,GAC5B,+BAA+B,GAC/B,kCAAkC,GAClC,8BAA8B,GAC9B,sCAAsC,GACtC,uBAAuB,GACvB,qBAAqB,CAAC;AAE5B,MAAM,MAAM,wBAAwB,GAC9B,wBAAwB,GACxB,kCAAkC,GAClC,8BAA8B,GAC9B,sCAAsC,CAAC;AAG7C,eAAO,MAAM,iCAAiC,wCACL,CAAC;AAC1C,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,iCAAiC,uCACN,CAAC;AACzC,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,6BAA6B,oCAAoC,CAAC;AAC/E,eAAO,MAAM,2BAA2B,mCAAmC,CAAC;AAC5E,eAAO,MAAM,qCAAqC,2CACN,CAAC;AAC7C,eAAO,MAAM,iBAAiB,0BAA0B,CAAC;AAEzD,wBAAgB,yCAAyC,CACrD,KAAK,EAAE,IAAI,CAAC,mCAAmC,EAAE,MAAM,CAAC,GACzD,mCAAmC,CAErC;AAED,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,IAAI,CAAC,wBAAwB,EAAE,MAAM,CAAC,GAC9C,wBAAwB,CAE1B;AAED,wBAAgB,kCAAkC,CAC9C,KAAK,EAAE,IAAI,CAAC,4BAA4B,EAAE,MAAM,CAAC,GAClD,4BAA4B,CAE9B;AAED,wBAAgB,wCAAwC,CACpD,KAAK,EAAE,IAAI,CAAC,kCAAkC,EAAE,MAAM,CAAC,GACxD,kCAAkC,CAEpC;AAED,wBAAgB,6BAA6B,CACzC,KAAK,EAAE,IAAI,CAAC,uBAAuB,EAAE,MAAM,CAAC,GAC7C,uBAAuB,CAEzB;AAED,wBAAgB,qCAAqC,CACjD,KAAK,EAAE,IAAI,CAAC,+BAA+B,EAAE,MAAM,CAAC,GACrD,+BAA+B,CAEjC;AAED,wBAAgB,oCAAoC,CAChD,KAAK,EAAE,IAAI,CAAC,8BAA8B,EAAE,MAAM,CAAC,GACpD,8BAA8B,CAEhC;AAED,wBAAgB,4CAA4C,CACxD,KAAK,EAAE,IAAI,CAAC,sCAAsC,EAAE,MAAM,CAAC,GAC5D,sCAAsC,CAExC;AAED,wBAAgB,2BAA2B,CACvC,KAAK,EAAE,IAAI,CAAC,qBAAqB,EAAE,MAAM,CAAC,GAC3C,qBAAqB,CAEvB"}
|
|
@@ -2,6 +2,7 @@ export declare const SIGNIN_INITIATE = "/oauth2/v2.0/initiate";
|
|
|
2
2
|
export declare const SIGNIN_CHALLENGE = "/oauth2/v2.0/challenge";
|
|
3
3
|
export declare const SIGNIN_TOKEN = "/oauth2/v2.0/token";
|
|
4
4
|
export declare const SIGNIN_INTROSPECT = "/oauth2/v2.0/introspect";
|
|
5
|
+
export declare const AUTHORIZE_CHALLENGE = "/oauth2/v2.0/authorize-challenge";
|
|
5
6
|
export declare const SIGNUP_START = "/signup/v1.0/start";
|
|
6
7
|
export declare const SIGNUP_CHALLENGE = "/signup/v1.0/challenge";
|
|
7
8
|
export declare const SIGNUP_CONTINUE = "/signup/v1.0/continue";
|
package/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthApiEndpoint.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,0BAA0B,CAAC;AACvD,eAAO,MAAM,gBAAgB,2BAA2B,CAAC;AACzD,eAAO,MAAM,YAAY,uBAAuB,CAAC;AACjD,eAAO,MAAM,iBAAiB,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomAuthApiEndpoint.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,0BAA0B,CAAC;AACvD,eAAO,MAAM,gBAAgB,2BAA2B,CAAC;AACzD,eAAO,MAAM,YAAY,uBAAuB,CAAC;AACjD,eAAO,MAAM,iBAAiB,4BAA4B,CAAC;AAC3D,eAAO,MAAM,mBAAmB,qCAAqC,CAAC;AAEtE,eAAO,MAAM,YAAY,uBAAuB,CAAC;AACjD,eAAO,MAAM,gBAAgB,2BAA2B,CAAC;AACzD,eAAO,MAAM,eAAe,0BAA0B,CAAC;AAEvD,eAAO,MAAM,eAAe,8BAA8B,CAAC;AAC3D,eAAO,MAAM,mBAAmB,kCAAkC,CAAC;AACnE,eAAO,MAAM,kBAAkB,iCAAiC,CAAC;AACjE,eAAO,MAAM,gBAAgB,+BAA+B,CAAC;AAC7D,eAAO,MAAM,cAAc,wCAAwC,CAAC;AAEpE,eAAO,MAAM,mBAAmB,8BAA8B,CAAC;AAC/D,eAAO,MAAM,kBAAkB,6BAA6B,CAAC;AAC7D,eAAO,MAAM,iBAAiB,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const JSON_CONTENT_TYPE = "application/json";
|
|
2
|
+
export declare const UPDATE_RELATION = "update";
|
|
3
|
+
export declare const CHALLENGE_RELATION = "challenge";
|
|
4
|
+
export declare const VERIFY_RELATION = "verify";
|
|
5
|
+
export declare const RISK_VERIFY_RELATION = "riskverify";
|
|
6
|
+
export declare const COLLECT_ATTRIBUTES_RELATION = "collectAttributes";
|
|
7
|
+
export declare const AuthenticationMethodTypeV2: {
|
|
8
|
+
readonly EMAIL: "email";
|
|
9
|
+
readonly PASSWORD: "password";
|
|
10
|
+
readonly SMS: "sms";
|
|
11
|
+
};
|
|
12
|
+
export declare const ResponseStateV2: {
|
|
13
|
+
readonly INTERACTION_REQUIRED: "interactionRequired";
|
|
14
|
+
readonly CONTINUE: "continue";
|
|
15
|
+
readonly WEB_FALLBACK_REQUIRED: "webFallbackRequired";
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ApiClientConstantsV2.d.ts.map
|
package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiClientConstantsV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AAGpD,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,kBAAkB,cAAc,CAAC;AAC9C,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,oBAAoB,eAAe,CAAC;AACjD,eAAO,MAAM,2BAA2B,sBAAsB,CAAC;AAE/D,eAAO,MAAM,0BAA0B;;;;CAI7B,CAAC;AAMX,eAAO,MAAM,eAAe;;;;CAIlB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Logger } from "@azure/msal-common/browser";
|
|
2
|
+
import { IHttpClient, HttpMethod } from "../../http_client/IHttpClient.js";
|
|
3
|
+
import { CustomAuthRequestInterceptor } from "../../../../configuration/CustomAuthRequestInterceptor.js";
|
|
4
|
+
import { ResponseHandlerV2 } from "./ResponseHandlerV2.js";
|
|
5
|
+
import { ParsedResponseV2, TokenResponseV2 } from "./response/ResponsesV2.js";
|
|
6
|
+
import { RequestContextV2, ActionRequestBaseV2, CompleteWithTokensRequestV2 } from "./request/RequestsV2.js";
|
|
7
|
+
import { AuthorizeChallengeEntryResultV2 } from "./result/BaseResultsV2.js";
|
|
8
|
+
export declare abstract class BaseApiClientV2 {
|
|
9
|
+
protected readonly clientId: string;
|
|
10
|
+
private readonly httpClient;
|
|
11
|
+
private readonly customAuthApiQueryParams?;
|
|
12
|
+
private readonly requestInterceptor?;
|
|
13
|
+
protected readonly logger?: Logger | undefined;
|
|
14
|
+
private readonly baseRequestUrl;
|
|
15
|
+
protected readonly handler: ResponseHandlerV2;
|
|
16
|
+
constructor(baseUrl: string, clientId: string, httpClient: IHttpClient, customAuthApiQueryParams?: Record<string, string> | undefined, requestInterceptor?: CustomAuthRequestInterceptor | undefined, logger?: Logger | undefined);
|
|
17
|
+
authorizeChallengeStart(context: RequestContextV2, scopes?: string[]): Promise<AuthorizeChallengeEntryResultV2>;
|
|
18
|
+
completeWithTokens(request: CompleteWithTokensRequestV2, context: RequestContextV2): Promise<TokenResponseV2>;
|
|
19
|
+
protected authorizeChallengeContinue(continuationToken: string, context: RequestContextV2): Promise<string>;
|
|
20
|
+
protected token(code: string, scopes: string[], context: RequestContextV2): Promise<TokenResponseV2>;
|
|
21
|
+
protected sendActionRequest<T>(href: string, method: (typeof HttpMethod)[keyof typeof HttpMethod], body: ActionRequestBaseV2, context: RequestContextV2): Promise<ParsedResponseV2<T>>;
|
|
22
|
+
protected throwOnApiError(parsedResponse: ParsedResponseV2<unknown>): void;
|
|
23
|
+
private postOAuthForm;
|
|
24
|
+
private sendRequest;
|
|
25
|
+
private toApiError;
|
|
26
|
+
private throwOnWebFallback;
|
|
27
|
+
private ensureTokenResponseIsValid;
|
|
28
|
+
private getCommonHeaders;
|
|
29
|
+
private getAdditionalHeaders;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=BaseApiClientV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseApiClientV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,MAAM,EAET,MAAM,4BAA4B,CAAC;AAKpC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAI3D,OAAO,EAGH,gBAAgB,EAChB,eAAe,EAClB,MAAM,2BAA2B,CAAC;AAUnC,OAAO,EACH,gBAAgB,EAEhB,mBAAmB,EAInB,2BAA2B,EAC9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAC;AAM5E,8BAAsB,eAAe;IAO7B,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM;IACnC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAC1C,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IACpC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC;IAV9B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAM;IAErC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;gBAG1C,OAAO,EAAE,MAAM,EACI,QAAQ,EAAE,MAAM,EAClB,UAAU,EAAE,WAAW,EACvB,wBAAwB,CAAC,oCAAwB,EACjD,kBAAkB,CAAC,0CAA8B,EAC/C,MAAM,CAAC,oBAAQ;IAWhC,uBAAuB,CACzB,OAAO,EAAE,gBAAgB,EACzB,MAAM,CAAC,EAAE,MAAM,EAAE,GAClB,OAAO,CAAC,+BAA+B,CAAC;IAoDrC,kBAAkB,CACpB,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,eAAe,CAAC;cAYX,0BAA0B,CACtC,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,MAAM,CAAC;cAmCF,KAAK,CACjB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EAAE,EAChB,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,eAAe,CAAC;cA+BX,iBAAiB,CAAC,CAAC,EAC/B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,EACpD,IAAI,EAAE,mBAAmB,EACzB,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAmC/B,SAAS,CAAC,eAAe,CAAC,cAAc,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAAG,IAAI;YAgB5D,aAAa;YAgCb,WAAW;IA+BzB,OAAO,CAAC,UAAU;IAkBlB,OAAO,CAAC,kBAAkB;IAY1B,OAAO,CAAC,0BAA0B;IAalC,OAAO,CAAC,gBAAgB;YAmBV,oBAAoB;CAuBrC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseApiClientV2 } from "./BaseApiClientV2.js";
|
|
2
|
+
import { ResetPasswordUpdateResultV2, ResetPasswordPollResultV2 } from "./result/ResetPasswordResultsV2.js";
|
|
3
|
+
import { ResetPasswordStartApiResultV2, SignInStartApiResultV2, ChallengeResultV2, ChallengeVerificationResultV2, VerifyResultV2 } from "./result/BaseResultsV2.js";
|
|
4
|
+
import { SignUpStartApiResultV2, SignUpSubmitAttributesApiResultV2 } from "./result/SignUpResultsV2.js";
|
|
5
|
+
import { RequestContextV2, PasswordResetStartRequestV2, SignInStartRequestV2, SignUpStartRequestV2, SignUpSubmitAttributesRequestV2, ChallengeRequestV2, VerifyRequestV2, UpdatePasswordRequestV2, PollRequestV2 } from "./request/RequestsV2.js";
|
|
6
|
+
export declare class CustomAuthApiClientV2 extends BaseApiClientV2 {
|
|
7
|
+
resetPasswordStart(resetPasswordHref: string, request: PasswordResetStartRequestV2, context: RequestContextV2): Promise<ResetPasswordStartApiResultV2>;
|
|
8
|
+
signInStart(signInHref: string, request: SignInStartRequestV2, context: RequestContextV2): Promise<SignInStartApiResultV2>;
|
|
9
|
+
signUpStart(signUpHref: string, request: SignUpStartRequestV2, context: RequestContextV2): Promise<SignUpStartApiResultV2>;
|
|
10
|
+
submitSignUpAttributes(submitAttributesHref: string, request: SignUpSubmitAttributesRequestV2, context: RequestContextV2): Promise<SignUpSubmitAttributesApiResultV2>;
|
|
11
|
+
requestChallenge(challengeHref: string, request: ChallengeRequestV2, context: RequestContextV2): Promise<ChallengeResultV2>;
|
|
12
|
+
verifyRisk(riskVerifyHref: string, request: ChallengeRequestV2, context: RequestContextV2): Promise<ChallengeVerificationResultV2>;
|
|
13
|
+
verifyChallenge(verifyHref: string, request: VerifyRequestV2, context: RequestContextV2): Promise<VerifyResultV2>;
|
|
14
|
+
submitNewPassword(updateHref: string, request: UpdatePasswordRequestV2, context: RequestContextV2): Promise<ResetPasswordUpdateResultV2>;
|
|
15
|
+
poll(pollHref: string, request: PollRequestV2, context: RequestContextV2): Promise<ResetPasswordPollResultV2>;
|
|
16
|
+
private sendStartRequest;
|
|
17
|
+
private toVerifyResult;
|
|
18
|
+
private resolveAuthenticationFactor;
|
|
19
|
+
private toChallengeResult;
|
|
20
|
+
private toChallengeVerificationResult;
|
|
21
|
+
private resolveMethods;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=CustomAuthApiClientV2.d.ts.map
|
package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomAuthApiClientV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EACH,2BAA2B,EAC3B,yBAAyB,EAC5B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACH,6BAA6B,EAC7B,sBAAsB,EAGtB,iBAAiB,EAEjB,6BAA6B,EAC7B,cAAc,EAGjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,sBAAsB,EACtB,iCAAiC,EAEpC,MAAM,6BAA6B,CAAC;AAgBrC,OAAO,EACH,gBAAgB,EAChB,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,EACpB,+BAA+B,EAC/B,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,aAAa,EAChB,MAAM,yBAAyB,CAAC;AAqBjC,qBAAa,qBAAsB,SAAQ,eAAe;IAIhD,kBAAkB,CACpB,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,6BAA6B,CAAC;IAOnC,WAAW,CACb,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,sBAAsB,CAAC;IAa5B,WAAW,CACb,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,sBAAsB,CAAC;IA2B5B,sBAAsB,CACxB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,EAAE,+BAA+B,EACxC,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,iCAAiC,CAAC;IAyDvC,gBAAgB,CAClB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,iBAAiB,CAAC;IAYvB,UAAU,CACZ,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,6BAA6B,CAAC;IAkCnC,eAAe,CACjB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,cAAc,CAAC;IAcpB,iBAAiB,CACnB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,2BAA2B,CAAC;IA2BjC,IAAI,CACN,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,yBAAyB,CAAC;YAyBvB,gBAAgB;IA4B9B,OAAO,CAAC,cAAc;IA+DtB,OAAO,CAAC,2BAA2B;IAuBnC,OAAO,CAAC,iBAAiB;IAkCzB,OAAO,CAAC,6BAA6B;IAgCrC,OAAO,CAAC,cAAc;CA0CzB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const HTTP_REQUEST_FAILED = "http_request_failed";
|
|
2
|
+
export declare const REDIRECT_TO_WEB = "redirect_to_web";
|
|
3
|
+
export declare const UNEXPECTED_ERROR = "unexpected_error";
|
|
4
|
+
export declare const INVALID_INPUT = "invalid_input";
|
|
5
|
+
export declare const AUTH_CODE_MISSING = "authorization_code_missing";
|
|
6
|
+
export declare const INVALID_TOKEN_RESPONSE = "invalid_token_response";
|
|
7
|
+
export declare const INVALID_RESPONSE_BODY = "invalid_response_body";
|
|
8
|
+
export declare const CONTINUATION_TOKEN_MISSING = "continuation_token_missing";
|
|
9
|
+
export declare const INVALID_HAL_RESPONSE = "invalid_hal_response";
|
|
10
|
+
export declare const RESET_PASSWORD_UNSUPPORTED = "reset_password_unsupported";
|
|
11
|
+
export declare const SIGN_IN_UNSUPPORTED = "sign_in_unsupported";
|
|
12
|
+
export declare const SIGN_UP_UNSUPPORTED = "sign_up_unsupported";
|
|
13
|
+
export declare const CONTINUATION_LINK_MISSING = "continuation_link_missing";
|
|
14
|
+
export declare const RESET_PASSWORD_TIMEOUT = "reset_password_timeout";
|
|
15
|
+
export declare const UNSUPPORTED_FLOW_STEP = "unsupported_flow_step";
|
|
16
|
+
export declare const UNSUPPORTED_FLOW_TRANSITION = "unsupported_flow_transition";
|
|
17
|
+
export declare const NO_AUTHENTICATION_METHODS = "no_authentication_methods";
|
|
18
|
+
export declare const UNEXPECTED_AUTHENTICATION_FACTOR = "unexpected_authentication_factor";
|
|
19
|
+
//# sourceMappingURL=ErrorCodesV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorCodesV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,iBAAiB,+BAA+B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AACzE,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,gCAAgC,qCACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HrefResolverV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts"],"names":[],"mappings":"AAkBA,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAsC1D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Logger } from "@azure/msal-common/browser";
|
|
2
|
+
import { EmbeddedMethodV2, ParsedResponseV2 } from "./response/ResponsesV2.js";
|
|
3
|
+
export declare class ResponseHandlerV2 {
|
|
4
|
+
private readonly logger?;
|
|
5
|
+
constructor(logger?: Logger | undefined);
|
|
6
|
+
parseResponse<T>(response: Response, requestCorrelationId: string): Promise<ParsedResponseV2<T>>;
|
|
7
|
+
requireHref(href: string | undefined, relation: string, correlationId: string, missingHrefError?: {
|
|
8
|
+
code: string;
|
|
9
|
+
message: string;
|
|
10
|
+
}): string;
|
|
11
|
+
requireContinuationToken(continuationToken: string | undefined, correlationId: string): string;
|
|
12
|
+
requireMethods(methods: EmbeddedMethodV2[] | undefined, correlationId: string): EmbeddedMethodV2[];
|
|
13
|
+
private parseBody;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ResponseHandlerV2.d.ts.map
|