@azure/msal-browser 5.27.0 → 5.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +9 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +7 -6
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +4 -2
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +21 -7
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs.map +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +14 -1
- package/dist/cache/AsyncMemoryStorage.mjs.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +9 -2
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +65 -7
- 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 +14 -1
- package/dist/crypto/TokenBindingKeyManager.mjs.map +1 -1
- package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +6 -4
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +58 -50
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +3 -5
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +19 -13
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +8 -2
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +58 -69
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +68 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +44 -16
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs +100 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +5 -3
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +27 -19
- package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +2 -4
- package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +2 -3
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +20 -8
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs +110 -0
- package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs +2 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs.map +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +465 -186
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +2 -6
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +18 -3
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +10 -8
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +147 -38
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +21 -10
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +2 -12
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +2 -2
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +15 -3
- package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +10 -3
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +17 -2
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs.map +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom_auth/index.mjs +6 -3
- package/dist/custom_auth/index.mjs.map +1 -1
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +49 -14
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs +24 -0
- package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs.map +1 -0
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +4 -7
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs +2 -2
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs.map +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +17 -8
- package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs +78 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs +48 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs +49 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs.map +1 -0
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +21 -21
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +1 -1
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +526 -90
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +27 -20
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +29 -14
- 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 +44 -32
- package/dist/interaction_client/SilentIframeClient.mjs.map +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 +77 -25
- 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 +21 -13
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +35 -11
- package/dist/request/RequestHelpers.mjs.map +1 -1
- package/dist/request/SilentRequestHelpers.mjs +6 -6
- package/dist/request/SilentRequestHelpers.mjs.map +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +3 -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/BrowserDetection.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/IframeMonitor.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/utils/PopupMonitor.mjs +1 -1
- package/dist/utils/PopupOriginCheck.mjs +1 -1
- package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
- package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
- package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
- package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
- package/dist/webBrokerBridge/index.mjs +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +69 -17
- package/lib/custom-auth-path/msal-custom-auth.cjs +2394 -920
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +2394 -920
- 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 +943 -278
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +943 -278
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
- package/lib/popup-relay/msal-popup-relay.js +2 -2
- package/lib/popup-relay/msal-popup-relay.js.map +1 -1
- package/lib/popup-relay/msal-popup-relay.min.js +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
- package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
- package/package.json +2 -2
- package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +15 -0
- package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +6 -21
- package/src/broker/nativeBroker/PlatformAuthProvider.ts +3 -1
- package/src/broker/nativeBroker/PlatformAuthRequest.ts +12 -8
- package/src/broker/nativeBroker/PlatformAuthResponse.ts +31 -0
- package/src/cache/AsyncMemoryStorage.ts +16 -0
- package/src/cache/BrowserCacheManager.ts +19 -1
- package/src/controllers/StandardController.ts +107 -11
- package/src/crypto/TokenBindingKeyManager.ts +21 -0
- package/src/custom_auth/CustomAuthActionInputs.ts +12 -5
- package/src/custom_auth/CustomAuthPublicClientApplication.ts +5 -3
- package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +5 -3
- package/src/custom_auth/controller/CustomAuthStandardController.ts +79 -92
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +14 -0
- package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +1 -4
- package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +5 -4
- package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +28 -16
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +6 -0
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +83 -72
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +23 -0
- package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +28 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +10 -6
- package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +9 -6
- package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +4 -6
- package/src/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.ts +36 -0
- package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +8 -8
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +94 -0
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +68 -14
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +150 -0
- package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +8 -2
- package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +48 -24
- package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +1 -3
- package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +24 -2
- package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +1 -2
- package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +34 -9
- package/src/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.ts +179 -0
- package/src/custom_auth/core/error/InvalidArgumentError.ts +1 -1
- package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +13 -12
- package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +771 -261
- package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +2 -6
- package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +27 -15
- package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +97 -26
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +9 -6
- package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +330 -63
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +51 -15
- package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +25 -6
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +0 -6
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +48 -48
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +44 -37
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +32 -15
- package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +14 -10
- package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +24 -1
- package/src/custom_auth/core/telemetry/PublicApiId.ts +7 -0
- package/src/custom_auth/core/utils/ArgumentValidator.ts +26 -0
- package/src/custom_auth/index.ts +21 -11
- package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +8 -10
- package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +71 -16
- package/src/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.ts +30 -0
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +4 -8
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +4 -5
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +3 -6
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.ts +0 -3
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.ts +2 -3
- package/src/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.ts +49 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +8 -4
- package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +18 -4
- package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +26 -5
- package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.ts +101 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.ts +53 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.ts +97 -0
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.ts +0 -6
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +33 -43
- package/src/interaction_client/PlatformAuthInteractionClient.ts +886 -148
- package/src/interaction_client/PopupClient.ts +104 -83
- package/src/interaction_client/RedirectClient.ts +88 -34
- package/src/interaction_client/SilentIframeClient.ts +121 -95
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +46 -18
- package/src/request/RequestHelpers.ts +64 -11
- package/src/request/SilentRequestHelpers.ts +8 -9
- package/src/telemetry/BrowserPerformanceEvents.ts +1 -0
- package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +6 -1
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +21 -0
- package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
- package/types/cache/AsyncMemoryStorage.d.ts +5 -0
- package/types/cache/AsyncMemoryStorage.d.ts.map +1 -1
- package/types/cache/BrowserCacheManager.d.ts +4 -0
- package/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts +5 -0
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/crypto/TokenBindingKeyManager.d.ts +9 -0
- package/types/crypto/TokenBindingKeyManager.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthActionInputs.d.ts +12 -5
- package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +5 -3
- package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +5 -3
- package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -1
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts +2 -0
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +10 -0
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +1 -4
- package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +5 -4
- package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +17 -8
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +6 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +23 -44
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +14 -0
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +16 -0
- package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +7 -6
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +8 -7
- package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +4 -6
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +20 -0
- package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +7 -8
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts +22 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +3 -6
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts +28 -0
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts +3 -2
- package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +6 -8
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +1 -3
- package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +18 -2
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +1 -2
- package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +5 -6
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +23 -0
- package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/core/error/InvalidArgumentError.d.ts +1 -0
- package/types/custom_auth/core/error/InvalidArgumentError.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +9 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +19 -10
- package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +1 -1
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +19 -5
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +39 -4
- package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts +8 -0
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts +8 -2
- package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +4 -3
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +13 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +36 -9
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +30 -17
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +18 -4
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +8 -11
- package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +2 -1
- package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -1
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts +7 -0
- package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
- package/types/custom_auth/core/utils/ArgumentValidator.d.ts +3 -0
- package/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
- package/types/custom_auth/index.d.ts +10 -5
- package/types/custom_auth/index.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +7 -11
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +7 -5
- package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.d.ts +7 -0
- package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.d.ts.map +1 -0
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +4 -8
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +5 -5
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +3 -6
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts +3 -2
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.d.ts +27 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +6 -3
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +13 -3
- package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +8 -3
- package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.d.ts +24 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.d.ts +18 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.d.ts +7 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts +0 -4
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts +5 -4
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts +110 -8
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/protocol/Authorize.d.ts +4 -4
- package/types/protocol/Authorize.d.ts.map +1 -1
- package/types/request/RequestHelpers.d.ts +21 -3
- package/types/request/RequestHelpers.d.ts.map +1 -1
- package/types/request/SilentRequestHelpers.d.ts.map +1 -1
- package/types/telemetry/BrowserPerformanceEvents.d.ts +1 -0
- package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +0 -70
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +0 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +0 -25
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs.map +0 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +0 -45
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +0 -1
- package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +0 -23
- package/src/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.ts +0 -19
- package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +0 -20
- package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +0 -97
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.ts +0 -34
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +0 -61
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +0 -14
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts +0 -13
- package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts.map +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +0 -8
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +0 -17
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +0 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts +0 -11
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts.map +0 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts +0 -19
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +0 -1
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import { ApiRequestBase } from "../../types/ApiTypesBase.js";
|
|
7
7
|
import { UserAccountAttributes } from "../../../../../UserAccountAttributes.js";
|
|
8
|
+
import { PhoneRegistrationChannelV2 } from "../ApiClientConstantsV2.js";
|
|
8
9
|
|
|
9
10
|
/*
|
|
10
11
|
* Per-request context threaded through every V2 network-layer call. These shared fields drive
|
|
@@ -24,7 +25,7 @@ export interface OAuthFormRequestV2 {
|
|
|
24
25
|
|
|
25
26
|
/*
|
|
26
27
|
* Entry (POST /oauth2/v2.0/authorize-challenge): the flow's front door. OAuth form-encoded
|
|
27
|
-
* and carries
|
|
28
|
+
* and carries `client_id` (via OAuthFormRequestV2), with optional scope and claims. The response
|
|
28
29
|
* (`AuthorizeChallengeEntryResponseV2`) returns the seed `continuation_token` and the flat
|
|
29
30
|
* `reset_password`/`sign_in`/`sign_up` hrefs.
|
|
30
31
|
*/
|
|
@@ -80,7 +81,7 @@ export type PasswordResetStartRequestV2 = StartRequestV2;
|
|
|
80
81
|
|
|
81
82
|
export type SignInStartRequestV2 = StartRequestV2;
|
|
82
83
|
|
|
83
|
-
export type SignUpStartRequestV2 =
|
|
84
|
+
export type SignUpStartRequestV2 = StartRequestV2;
|
|
84
85
|
|
|
85
86
|
export interface SignUpSubmitAttributesRequestV2 extends ActionRequestBaseV2 {
|
|
86
87
|
attributes: UserAccountAttributes & {
|
|
@@ -92,13 +93,31 @@ export interface SignUpSubmitAttributesRequestV2 extends ActionRequestBaseV2 {
|
|
|
92
93
|
// Request or resend a challenge.
|
|
93
94
|
export type ChallengeRequestV2 = ActionRequestBaseV2;
|
|
94
95
|
|
|
96
|
+
export interface EmailAuthMethodRegistrationRequestV2
|
|
97
|
+
extends ActionRequestBaseV2 {
|
|
98
|
+
email: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface PhoneAuthMethodRegistrationRequestV2
|
|
102
|
+
extends ActionRequestBaseV2 {
|
|
103
|
+
phoneNumber: string;
|
|
104
|
+
channel: typeof PhoneRegistrationChannelV2.SMS;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type AuthMethodRegistrationRequestV2 =
|
|
108
|
+
| EmailAuthMethodRegistrationRequestV2
|
|
109
|
+
| PhoneAuthMethodRegistrationRequestV2;
|
|
110
|
+
|
|
111
|
+
export interface AuthMethodRegistrationVerificationRequestV2
|
|
112
|
+
extends ActionRequestBaseV2 {
|
|
113
|
+
otp: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
95
116
|
// Submit a single credential to `/methods/{type}/{id}/verify`.
|
|
96
117
|
/*
|
|
97
118
|
* The credential is a distinct top-level key per method type (never overloaded onto one field):
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* add a `VerifyPasswordRequestV2` member (`password: string`) and include it in the union
|
|
101
|
-
* without touching the OTP member.
|
|
119
|
+
* OTP verification sends `otp`, and password verification sends `password`.
|
|
120
|
+
* The union represents the supported credential request shapes.
|
|
102
121
|
*/
|
|
103
122
|
type VerifyRequestBaseV2 = ActionRequestBaseV2;
|
|
104
123
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
// Nested error shape returned by the HAL `/api` resource endpoints.
|
|
7
6
|
export interface AttributeValidationDetailV2 {
|
|
8
7
|
attributeIds?: string[];
|
|
9
8
|
code?: string;
|
|
@@ -24,7 +23,6 @@ export interface HalErrorResponseV2 {
|
|
|
24
23
|
};
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
// Flat error shape returned by the OAuth endpoints (authorize-challenge entry and token).
|
|
28
26
|
export interface OAuthErrorResponseV2 {
|
|
29
27
|
error?: string;
|
|
30
28
|
error_description?: string;
|
|
@@ -35,10 +33,6 @@ export interface OAuthErrorResponseV2 {
|
|
|
35
33
|
correlation_id?: string;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
|
-
/*
|
|
39
|
-
* Normalized server error folded from either wire shape (flat OAuth or nested HAL) into one
|
|
40
|
-
* struct. Response parsing adds it to the envelope so the api-client stays shape-agnostic.
|
|
41
|
-
*/
|
|
42
36
|
export interface ServerErrorV2 {
|
|
43
37
|
code: string;
|
|
44
38
|
message?: string;
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
import { OAuthErrorResponseV2, ServerErrorV2 } from "./ErrorResponsesV2.js";
|
|
7
7
|
import { HalLink, HalResource } from "./HalResource.js";
|
|
8
|
+
import {
|
|
9
|
+
CHALLENGE_RELATION,
|
|
10
|
+
VERIFY_RELATION,
|
|
11
|
+
} from "../ApiClientConstantsV2.js";
|
|
8
12
|
|
|
9
|
-
/*
|
|
10
|
-
* Envelope shared by every JSON HAL response. `correlationId` is not on the HAL body -
|
|
11
|
-
* it is injected by the api-client from the response header; the rest are server body fields.
|
|
12
|
-
*/
|
|
13
13
|
export interface HalResponseBaseV2 extends HalResource {
|
|
14
14
|
continuationToken?: string;
|
|
15
15
|
state?: string;
|
|
@@ -21,9 +21,6 @@ export interface HalResponseBaseV2 extends HalResource {
|
|
|
21
21
|
correlationId?: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
/*
|
|
25
|
-
* A method embedded under `_embedded.methods[]`.
|
|
26
|
-
*/
|
|
27
24
|
export interface EmbeddedMethodV2 extends Omit<HalResource, "_links"> {
|
|
28
25
|
id?: string;
|
|
29
26
|
type?: string;
|
|
@@ -33,18 +30,26 @@ export interface EmbeddedMethodV2 extends Omit<HalResource, "_links"> {
|
|
|
33
30
|
};
|
|
34
31
|
}
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
export interface EmbeddedEnrollmentMethodV2
|
|
34
|
+
extends Omit<HalResource, "_links"> {
|
|
35
|
+
type?: string;
|
|
36
|
+
channels?: string[];
|
|
37
|
+
_links?: {
|
|
38
|
+
enroll?: HalLink;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface EnrollmentRequiredResponseV2
|
|
43
|
+
extends Omit<HalResponseBaseV2, "_embedded"> {
|
|
44
|
+
_embedded?: {
|
|
45
|
+
methods?: EmbeddedEnrollmentMethodV2[];
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
40
49
|
export interface AuthorizeChallengeContinueResponseV2 {
|
|
41
50
|
code?: string;
|
|
42
51
|
}
|
|
43
52
|
|
|
44
|
-
/*
|
|
45
|
-
* Authorize-challenge entry response. Success is indicated by a continuation
|
|
46
|
-
* token and flat flow hrefs rather than the HTTP status or HAL links.
|
|
47
|
-
*/
|
|
48
53
|
export interface AuthorizeChallengeEntryResponseV2
|
|
49
54
|
extends OAuthErrorResponseV2 {
|
|
50
55
|
continuation_token?: string;
|
|
@@ -53,13 +58,10 @@ export interface AuthorizeChallengeEntryResponseV2
|
|
|
53
58
|
sign_up?: string;
|
|
54
59
|
}
|
|
55
60
|
|
|
56
|
-
/*
|
|
57
|
-
* Start response containing the available authentication
|
|
58
|
-
* methods. Each method provides the challenge link used after selection.
|
|
59
|
-
*/
|
|
60
61
|
interface StartResponseV2 extends Omit<HalResponseBaseV2, "_embedded"> {
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
action: typeof CHALLENGE_RELATION;
|
|
63
|
+
_embedded: {
|
|
64
|
+
methods: EmbeddedMethodV2[];
|
|
63
65
|
};
|
|
64
66
|
}
|
|
65
67
|
|
|
@@ -76,14 +78,14 @@ export interface SignUpAttributeResponseV2 {
|
|
|
76
78
|
confirmationInput?: string;
|
|
77
79
|
}
|
|
78
80
|
|
|
79
|
-
export interface
|
|
80
|
-
|
|
81
|
-
attributes?: SignUpAttributeResponseV2[];
|
|
82
|
-
_links?: {
|
|
83
|
-
submitAttributes?: HalLink;
|
|
84
|
-
};
|
|
81
|
+
export interface SignUpStartVerifyResponseV2 extends CodeChallengeResponseV2 {
|
|
82
|
+
action: typeof VERIFY_RELATION;
|
|
85
83
|
}
|
|
86
84
|
|
|
85
|
+
export type SignUpStartResponseV2 =
|
|
86
|
+
| SignUpStartVerifyResponseV2
|
|
87
|
+
| SignInStartResponseV2;
|
|
88
|
+
|
|
87
89
|
interface ChallengeResponseBaseV2 extends Omit<HalResponseBaseV2, "_links"> {
|
|
88
90
|
id?: string;
|
|
89
91
|
type?: string;
|
|
@@ -123,19 +125,18 @@ export type ChallengeResponseV2 =
|
|
|
123
125
|
export type RiskVerificationResponseV2 = CodeChallengeResponseV2;
|
|
124
126
|
|
|
125
127
|
export interface SignUpSubmitAttributesResponseV2
|
|
126
|
-
extends Omit<CodeChallengeResponseV2, "_links"> {
|
|
128
|
+
extends Omit<CodeChallengeResponseV2, "_links" | "_embedded"> {
|
|
127
129
|
attributes?: SignUpAttributeResponseV2[];
|
|
128
130
|
_links?: {
|
|
129
131
|
verify?: HalLink;
|
|
130
132
|
resend?: HalLink;
|
|
131
133
|
submitAttributes?: HalLink;
|
|
132
134
|
};
|
|
135
|
+
_embedded?: {
|
|
136
|
+
methods?: EmbeddedEnrollmentMethodV2[];
|
|
137
|
+
};
|
|
133
138
|
}
|
|
134
139
|
|
|
135
|
-
/*
|
|
136
|
-
* Credential-verification response. For password reset, the `update` relation
|
|
137
|
-
* identifies where the new password is submitted.
|
|
138
|
-
*/
|
|
139
140
|
export interface VerifyResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
|
|
140
141
|
id?: string;
|
|
141
142
|
type?: string;
|
|
@@ -146,14 +147,21 @@ export interface VerifyResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
|
|
|
146
147
|
submitAttributes?: HalLink;
|
|
147
148
|
};
|
|
148
149
|
_embedded?: {
|
|
149
|
-
methods?: EmbeddedMethodV2[];
|
|
150
|
+
methods?: (EmbeddedMethodV2 | EmbeddedEnrollmentMethodV2)[];
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface EnrollmentResponseV2
|
|
155
|
+
extends Omit<HalResponseBaseV2, "_links"> {
|
|
156
|
+
codeLength?: number;
|
|
157
|
+
type?: string;
|
|
158
|
+
hint?: string;
|
|
159
|
+
_links?: {
|
|
160
|
+
activate?: HalLink;
|
|
161
|
+
resend?: HalLink;
|
|
150
162
|
};
|
|
151
163
|
}
|
|
152
164
|
|
|
153
|
-
/*
|
|
154
|
-
* Password-update response for the reset-password flow. The `poll` relation
|
|
155
|
-
* identifies where the client checks for completion.
|
|
156
|
-
*/
|
|
157
165
|
export interface UpdatePasswordResponseV2
|
|
158
166
|
extends Omit<HalResponseBaseV2, "_links"> {
|
|
159
167
|
id?: string;
|
|
@@ -164,19 +172,15 @@ export interface UpdatePasswordResponseV2
|
|
|
164
172
|
};
|
|
165
173
|
}
|
|
166
174
|
|
|
167
|
-
/*
|
|
168
|
-
* Password-reset polling response.
|
|
169
|
-
*/
|
|
170
175
|
export interface PollResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
|
|
171
176
|
_links?: {
|
|
172
177
|
poll?: HalLink;
|
|
173
178
|
};
|
|
179
|
+
_embedded?: {
|
|
180
|
+
methods?: (EmbeddedMethodV2 | EmbeddedEnrollmentMethodV2)[];
|
|
181
|
+
};
|
|
174
182
|
}
|
|
175
183
|
|
|
176
|
-
/*
|
|
177
|
-
* Flat OAuth token response containing the standard token fields observed on
|
|
178
|
-
* the wire. Token errors use `OAuthErrorResponseV2`.
|
|
179
|
-
*/
|
|
180
184
|
export interface TokenResponseV2 {
|
|
181
185
|
token_type: string;
|
|
182
186
|
expires_in: number;
|
|
@@ -188,10 +192,6 @@ export interface TokenResponseV2 {
|
|
|
188
192
|
ext_expires_in?: number;
|
|
189
193
|
}
|
|
190
194
|
|
|
191
|
-
/*
|
|
192
|
-
* Parsed envelope produced by the response handler. It carries the typed body
|
|
193
|
-
* together with normalized HTTP metadata and error information.
|
|
194
|
-
*/
|
|
195
195
|
export interface ParsedResponseV2<T> {
|
|
196
196
|
statusCode: number;
|
|
197
197
|
correlationId: string;
|
|
@@ -3,13 +3,18 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/*
|
|
7
|
-
* Return contracts of the shared V2 base client (BaseApiClientV2), flow-agnostic and reused by
|
|
8
|
-
* every V2 flow. Distinct from the per-flow result DTOs (e.g. ResetPasswordResultsV2).
|
|
9
|
-
*/
|
|
10
6
|
import type { SignUpAttributeV2 } from "./SignUpResultsV2.js";
|
|
7
|
+
import {
|
|
8
|
+
ACTIVATE_RELATION,
|
|
9
|
+
CHALLENGE_RELATION,
|
|
10
|
+
COLLECT_ATTRIBUTES_RELATION,
|
|
11
|
+
ENROLL_RELATION,
|
|
12
|
+
RISK_VERIFY_RELATION,
|
|
13
|
+
UPDATE_RELATION,
|
|
14
|
+
VERIFY_RELATION,
|
|
15
|
+
ResponseStateV2,
|
|
16
|
+
} from "../ApiClientConstantsV2.js";
|
|
11
17
|
|
|
12
|
-
// Initial continuation token and available flow links.
|
|
13
18
|
export interface AuthorizeChallengeEntryResultV2 {
|
|
14
19
|
continuationToken: string;
|
|
15
20
|
resetPasswordHref?: string;
|
|
@@ -17,11 +22,6 @@ export interface AuthorizeChallengeEntryResultV2 {
|
|
|
17
22
|
signUpHref?: string;
|
|
18
23
|
}
|
|
19
24
|
|
|
20
|
-
/*
|
|
21
|
-
* A selectable authentication method surfaced by a flow-start response, resolved from
|
|
22
|
-
* `_embedded.methods[]`. `challengeHref` is the per-method `challenge` link to POST to send the
|
|
23
|
-
* code to that method; `id`/`type`/`hint` are display/selection metadata.
|
|
24
|
-
*/
|
|
25
25
|
export interface StartMethodV2 {
|
|
26
26
|
id: string;
|
|
27
27
|
type?: string;
|
|
@@ -29,6 +29,32 @@ export interface StartMethodV2 {
|
|
|
29
29
|
challengeHref: string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
export interface EnrollmentMethodV2 {
|
|
33
|
+
type: string;
|
|
34
|
+
channels?: string[];
|
|
35
|
+
enrollHref: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface EnrollmentRequiredResultV2 {
|
|
39
|
+
nextAction: typeof ENROLL_RELATION;
|
|
40
|
+
continuationToken: string;
|
|
41
|
+
methods: EnrollmentMethodV2[];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface EnrollmentResultV2 {
|
|
45
|
+
nextAction: typeof ACTIVATE_RELATION;
|
|
46
|
+
continuationToken: string;
|
|
47
|
+
hint?: string;
|
|
48
|
+
codeLength: number;
|
|
49
|
+
activateHref: string;
|
|
50
|
+
resendHref?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface ActivationResultV2 {
|
|
54
|
+
nextAction: typeof ResponseStateV2.CONTINUE;
|
|
55
|
+
continuationToken: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
32
58
|
export const AuthenticationFactorV2 = {
|
|
33
59
|
SINGLE_FACTOR: "singleFactor",
|
|
34
60
|
MULTI_FACTOR: "multiFactor",
|
|
@@ -37,10 +63,6 @@ export const AuthenticationFactorV2 = {
|
|
|
37
63
|
export type AuthenticationFactorV2 =
|
|
38
64
|
(typeof AuthenticationFactorV2)[keyof typeof AuthenticationFactorV2];
|
|
39
65
|
|
|
40
|
-
/*
|
|
41
|
-
* Result of starting a flow. It contains the continuation token, available
|
|
42
|
-
* authentication methods, authentication factor, and optional server scenario.
|
|
43
|
-
*/
|
|
44
66
|
export interface StartResultV2 {
|
|
45
67
|
continuationToken: string;
|
|
46
68
|
methods: StartMethodV2[];
|
|
@@ -51,13 +73,8 @@ export interface StartResultV2 {
|
|
|
51
73
|
export type ResetPasswordStartApiResultV2 = StartResultV2;
|
|
52
74
|
export type SignInStartApiResultV2 = StartResultV2;
|
|
53
75
|
|
|
54
|
-
export const ChallengeNextActionV2 = {
|
|
55
|
-
VERIFY: "verify",
|
|
56
|
-
RISK_VERIFY: "riskVerify",
|
|
57
|
-
} as const;
|
|
58
|
-
|
|
59
76
|
export interface ChallengeVerificationResultV2 {
|
|
60
|
-
nextAction: typeof
|
|
77
|
+
nextAction: typeof VERIFY_RELATION;
|
|
61
78
|
continuationToken: string;
|
|
62
79
|
verifyHref: string;
|
|
63
80
|
resendHref?: string;
|
|
@@ -67,7 +84,7 @@ export interface ChallengeVerificationResultV2 {
|
|
|
67
84
|
}
|
|
68
85
|
|
|
69
86
|
export interface RiskVerificationRequiredResultV2 {
|
|
70
|
-
nextAction: typeof
|
|
87
|
+
nextAction: typeof RISK_VERIFY_RELATION;
|
|
71
88
|
continuationToken: string;
|
|
72
89
|
riskVerifyHref: string;
|
|
73
90
|
}
|
|
@@ -76,36 +93,26 @@ export type ChallengeResultV2 =
|
|
|
76
93
|
| ChallengeVerificationResultV2
|
|
77
94
|
| RiskVerificationRequiredResultV2;
|
|
78
95
|
|
|
79
|
-
export const VerifyNextActionV2 = {
|
|
80
|
-
UPDATE: "update",
|
|
81
|
-
CONTINUE: "continue",
|
|
82
|
-
CHALLENGE: "challenge",
|
|
83
|
-
COLLECT_ATTRIBUTES: "collectAttributes",
|
|
84
|
-
} as const;
|
|
85
|
-
|
|
86
|
-
/*
|
|
87
|
-
* Result of verifying a credential. The discriminated union identifies whether
|
|
88
|
-
* another update is required or token redemption can continue.
|
|
89
|
-
*/
|
|
90
96
|
export type VerifyResultV2 =
|
|
91
97
|
| {
|
|
92
|
-
nextAction: typeof
|
|
98
|
+
nextAction: typeof UPDATE_RELATION;
|
|
93
99
|
continuationToken: string;
|
|
94
100
|
updateHref: string;
|
|
95
101
|
}
|
|
96
102
|
| {
|
|
97
|
-
nextAction: typeof
|
|
103
|
+
nextAction: typeof ResponseStateV2.CONTINUE;
|
|
98
104
|
continuationToken: string;
|
|
99
105
|
}
|
|
100
106
|
| {
|
|
101
|
-
nextAction: typeof
|
|
107
|
+
nextAction: typeof CHALLENGE_RELATION;
|
|
102
108
|
continuationToken: string;
|
|
103
109
|
authenticationFactor: AuthenticationFactorV2;
|
|
104
110
|
methods: StartMethodV2[];
|
|
105
111
|
}
|
|
106
112
|
| {
|
|
107
|
-
nextAction: typeof
|
|
113
|
+
nextAction: typeof COLLECT_ATTRIBUTES_RELATION;
|
|
108
114
|
continuationToken: string;
|
|
109
115
|
attributes: SignUpAttributeV2[];
|
|
110
116
|
submitAttributesHref: string;
|
|
111
|
-
}
|
|
117
|
+
}
|
|
118
|
+
| EnrollmentRequiredResultV2;
|
package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts
CHANGED
|
@@ -3,24 +3,41 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import type {
|
|
7
|
+
AuthenticationFactorV2,
|
|
8
|
+
EnrollmentMethodV2,
|
|
9
|
+
StartMethodV2,
|
|
10
|
+
} from "./BaseResultsV2.js";
|
|
11
|
+
import {
|
|
12
|
+
CHALLENGE_RELATION,
|
|
13
|
+
ENROLL_RELATION,
|
|
14
|
+
POLL_RELATION,
|
|
15
|
+
ResponseStateV2,
|
|
16
|
+
} from "../ApiClientConstantsV2.js";
|
|
10
17
|
|
|
11
|
-
// Result of submitting the new password: where to poll for completion.
|
|
12
18
|
export interface ResetPasswordUpdateResultV2 {
|
|
13
19
|
continuationToken: string;
|
|
14
20
|
pollHref: string;
|
|
15
21
|
}
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
export type ResetPasswordPollResultV2 =
|
|
24
|
+
| {
|
|
25
|
+
nextAction: typeof POLL_RELATION;
|
|
26
|
+
continuationToken: string;
|
|
27
|
+
pollHref: string;
|
|
28
|
+
}
|
|
29
|
+
| {
|
|
30
|
+
nextAction: typeof ENROLL_RELATION;
|
|
31
|
+
continuationToken: string;
|
|
32
|
+
methods: EnrollmentMethodV2[];
|
|
33
|
+
}
|
|
34
|
+
| {
|
|
35
|
+
nextAction: typeof CHALLENGE_RELATION;
|
|
36
|
+
continuationToken: string;
|
|
37
|
+
authenticationFactor: AuthenticationFactorV2;
|
|
38
|
+
methods: StartMethodV2[];
|
|
39
|
+
}
|
|
40
|
+
| {
|
|
41
|
+
nextAction: typeof ResponseStateV2.CONTINUE;
|
|
42
|
+
continuationToken: string;
|
|
43
|
+
};
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type {
|
|
6
|
+
import type {
|
|
7
|
+
ChallengeVerificationResultV2,
|
|
8
|
+
EnrollmentRequiredResultV2,
|
|
9
|
+
StartResultV2,
|
|
10
|
+
} from "./BaseResultsV2.js";
|
|
11
|
+
import { CHALLENGE_RELATION } from "../ApiClientConstantsV2.js";
|
|
7
12
|
|
|
8
13
|
export interface SignUpAttributeV2 {
|
|
9
14
|
attributeId: string;
|
|
@@ -15,29 +20,28 @@ export interface SignUpAttributeV2 {
|
|
|
15
20
|
confirmationInput?: string;
|
|
16
21
|
}
|
|
17
22
|
|
|
18
|
-
export interface
|
|
19
|
-
|
|
20
|
-
submitAttributesHref: string;
|
|
21
|
-
attributes?: SignUpAttributeV2[];
|
|
23
|
+
export interface SignUpStartExistingAccountApiResultV2 extends StartResultV2 {
|
|
24
|
+
nextAction: typeof CHALLENGE_RELATION;
|
|
22
25
|
}
|
|
23
26
|
|
|
27
|
+
export type SignUpStartApiResultV2 =
|
|
28
|
+
| ChallengeVerificationResultV2
|
|
29
|
+
| SignUpStartExistingAccountApiResultV2;
|
|
30
|
+
|
|
24
31
|
export const SignUpSubmitAttributesNextActionV2 = {
|
|
25
|
-
VERIFY: "verify",
|
|
26
32
|
COLLECT_ATTRIBUTES: "collectAttributes",
|
|
27
33
|
CONTINUE: "continue",
|
|
34
|
+
ENROLL: "enroll",
|
|
28
35
|
} as const;
|
|
29
36
|
|
|
30
37
|
export type SignUpSubmitAttributesApiResultV2 =
|
|
31
|
-
| (ChallengeVerificationResultV2 & {
|
|
32
|
-
nextAction: typeof SignUpSubmitAttributesNextActionV2.VERIFY;
|
|
33
|
-
attributes?: SignUpAttributeV2[];
|
|
34
|
-
})
|
|
35
38
|
| {
|
|
36
39
|
nextAction: typeof SignUpSubmitAttributesNextActionV2.COLLECT_ATTRIBUTES;
|
|
37
40
|
continuationToken: string;
|
|
38
41
|
attributes: SignUpAttributeV2[];
|
|
39
42
|
submitAttributesHref: string;
|
|
40
43
|
}
|
|
44
|
+
| EnrollmentRequiredResultV2
|
|
41
45
|
| {
|
|
42
46
|
nextAction: typeof SignUpSubmitAttributesNextActionV2.CONTINUE;
|
|
43
47
|
continuationToken: string;
|
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { CustomAuthFlowScenarioV2 } from "../auth_flow/v2/CustomAuthFlowScenarioV2.js";
|
|
7
|
+
import { AuthenticationFactorV2 } from "../network_client/custom_auth_api/v2/result/BaseResultsV2.js";
|
|
7
8
|
import {
|
|
9
|
+
MFA_V2_RESEND_CHALLENGE,
|
|
10
|
+
MFA_V2_SELECT_AUTH_METHOD,
|
|
11
|
+
MFA_V2_SUBMIT_CHALLENGE,
|
|
8
12
|
RESET_PASSWORD_V2_CHALLENGE,
|
|
9
13
|
RESET_PASSWORD_V2_RESEND_CODE,
|
|
10
14
|
RESET_PASSWORD_V2_SUBMIT,
|
|
@@ -19,6 +23,7 @@ import {
|
|
|
19
23
|
SIGN_UP_V2_RESEND_CODE,
|
|
20
24
|
SIGN_UP_V2_SUBMIT_ATTRIBUTES,
|
|
21
25
|
SIGN_UP_V2_SUBMIT_CODE,
|
|
26
|
+
SIGN_UP_V2_SUBMIT_PASSWORD,
|
|
22
27
|
} from "./PublicApiId.js";
|
|
23
28
|
|
|
24
29
|
export type FlowStepV2 =
|
|
@@ -50,15 +55,33 @@ const FLOW_STEP_API_IDS_V2: Partial<
|
|
|
50
55
|
[CustomAuthFlowScenarioV2.SignUp]: {
|
|
51
56
|
requestChallenge: SIGN_UP_V2_CHALLENGE,
|
|
52
57
|
submitCode: SIGN_UP_V2_SUBMIT_CODE,
|
|
58
|
+
submitPassword: SIGN_UP_V2_SUBMIT_PASSWORD,
|
|
53
59
|
resendCode: SIGN_UP_V2_RESEND_CODE,
|
|
54
60
|
submitAttributes: SIGN_UP_V2_SUBMIT_ATTRIBUTES,
|
|
55
61
|
signInWithContinuation: SIGN_UP_V2_COMPLETE,
|
|
56
62
|
},
|
|
57
63
|
};
|
|
58
64
|
|
|
65
|
+
const MFA_STEP_API_IDS_V2: Partial<Record<FlowStepV2, number>> = {
|
|
66
|
+
requestChallenge: MFA_V2_SELECT_AUTH_METHOD,
|
|
67
|
+
submitCode: MFA_V2_SUBMIT_CHALLENGE,
|
|
68
|
+
resendCode: MFA_V2_RESEND_CHALLENGE,
|
|
69
|
+
};
|
|
70
|
+
|
|
59
71
|
export function getPublicApiIdV2(
|
|
60
72
|
scenario: CustomAuthFlowScenarioV2,
|
|
61
|
-
step: FlowStepV2
|
|
73
|
+
step: FlowStepV2,
|
|
74
|
+
authenticationFactor?: AuthenticationFactorV2
|
|
62
75
|
): number | undefined {
|
|
76
|
+
if (
|
|
77
|
+
(scenario === CustomAuthFlowScenarioV2.SignIn ||
|
|
78
|
+
scenario === CustomAuthFlowScenarioV2.PasswordReset) &&
|
|
79
|
+
authenticationFactor === AuthenticationFactorV2.MULTI_FACTOR
|
|
80
|
+
) {
|
|
81
|
+
return (
|
|
82
|
+
MFA_STEP_API_IDS_V2[step] ?? FLOW_STEP_API_IDS_V2[scenario]?.[step]
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
63
86
|
return FLOW_STEP_API_IDS_V2[scenario]?.[step];
|
|
64
87
|
}
|
|
@@ -57,7 +57,14 @@ export const SIGN_IN_V2_COMPLETE = 100209;
|
|
|
57
57
|
export const SIGN_IN_V2_SUBMIT_CODE = 100210;
|
|
58
58
|
export const SIGN_UP_V2_START = 100211;
|
|
59
59
|
export const SIGN_UP_V2_CHALLENGE = 100212;
|
|
60
|
+
export const SIGN_UP_V2_SUBMIT_PASSWORD = 100223;
|
|
60
61
|
export const SIGN_UP_V2_SUBMIT_CODE = 100213;
|
|
61
62
|
export const SIGN_UP_V2_SUBMIT_ATTRIBUTES = 100214;
|
|
62
63
|
export const SIGN_UP_V2_RESEND_CODE = 100215;
|
|
63
64
|
export const SIGN_UP_V2_COMPLETE = 100216;
|
|
65
|
+
export const JIT_V2_ENROLL_AUTH_METHOD = 100217;
|
|
66
|
+
export const JIT_V2_SUBMIT_CHALLENGE = 100218;
|
|
67
|
+
export const JIT_V2_RESEND_CHALLENGE = 100219;
|
|
68
|
+
export const MFA_V2_SELECT_AUTH_METHOD = 100220;
|
|
69
|
+
export const MFA_V2_SUBMIT_CHALLENGE = 100221;
|
|
70
|
+
export const MFA_V2_RESEND_CHALLENGE = 100222;
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import type { Logger } from "@azure/msal-common/browser";
|
|
7
|
+
import type { UserAccountAttributes } from "../../UserAccountAttributes.js";
|
|
6
8
|
import { InvalidArgumentError } from "../error/InvalidArgumentError.js";
|
|
7
9
|
|
|
8
10
|
export function ensureArgumentIsNotNullOrUndefined<T>(
|
|
@@ -59,3 +61,27 @@ export function ensureArgumentIsStringArray(
|
|
|
59
61
|
throw new InvalidArgumentError(argName, correlationId);
|
|
60
62
|
}
|
|
61
63
|
}
|
|
64
|
+
|
|
65
|
+
export function filterReservedSignUpAttributesV2(
|
|
66
|
+
attributes: Readonly<UserAccountAttributes> | undefined,
|
|
67
|
+
logger: Logger,
|
|
68
|
+
correlationId: string
|
|
69
|
+
): UserAccountAttributes {
|
|
70
|
+
const reservedSignUpAttributeNames = new Set(["email", "password"]);
|
|
71
|
+
const reservedSignUpAttributeWarning =
|
|
72
|
+
"Ignoring app-supplied sign-up attribute because it uses a reserved SDK attribute name.";
|
|
73
|
+
const filteredAttributes: Array<[string, string]> = [];
|
|
74
|
+
|
|
75
|
+
for (const [attributeId, value] of Object.entries(attributes ?? {})) {
|
|
76
|
+
if (reservedSignUpAttributeNames.has(attributeId.toLowerCase())) {
|
|
77
|
+
logger.warning(reservedSignUpAttributeWarning, correlationId);
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (value !== undefined) {
|
|
82
|
+
filteredAttributes.push([attributeId, value]);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return Object.fromEntries(filteredAttributes);
|
|
87
|
+
}
|