@azure/msal-browser 5.25.0 → 5.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +7 -2
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.mjs +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +49 -19
- 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 +1 -1
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +8 -7
- package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +4 -3
- 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 +174 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +67 -17
- package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +3 -4
- 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 +7 -15
- 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 +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +1 -5
- package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
- 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 +61 -52
- package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +6 -3
- package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -1
- package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -2
- 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 +12 -10
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +3 -3
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs.map +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 +3 -7
- 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 +2 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +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 +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +8 -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 +2 -11
- 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 +1 -3
- package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
- 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/PasswordRequiredStateV2.mjs +5 -5
- package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +5 -16
- 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 +35 -0
- package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.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/state/AttributesRequiredStateV2.mjs +1 -3
- 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/SignUpAttributesRequiredStateBaseV2.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +1 -3
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +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 +1 -1
- package/dist/interaction_client/PopupClient.mjs +4 -3
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +4 -3
- 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 +4 -3
- 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 +1027 -1027
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/popup_relay/constants.mjs +1 -1
- package/dist/popup_relay/index.mjs +1 -1
- package/dist/popup_relay/relayClient.mjs +1 -1
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/request/SilentRequestHelpers.mjs +9 -3
- 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 +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 +53 -0
- package/dist/utils/BrowserDetection.mjs.map +1 -0
- 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 +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 +519 -519
- package/lib/custom-auth-path/msal-custom-auth.cjs +601 -657
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +602 -658
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +7 -3
- package/lib/msal-browser.cjs +136 -78
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +136 -78
- 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/controllers/NestedAppAuthController.ts +6 -1
- package/src/custom_auth/CustomAuthActionInputs.ts +16 -6
- package/src/custom_auth/controller/CustomAuthStandardController.ts +78 -17
- package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +18 -30
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +1 -0
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +239 -0
- package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +2 -5
- package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +0 -2
- package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +13 -10
- package/src/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.ts +19 -0
- package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +3 -6
- package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +4 -6
- package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +114 -17
- package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +6 -3
- package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +17 -19
- package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +5 -5
- package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +0 -4
- package/src/custom_auth/core/error/CustomAuthApiError.ts +2 -1
- package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +3 -4
- package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +75 -68
- package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +6 -3
- package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +2 -4
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +0 -1
- package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +17 -15
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.ts +1 -1
- package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +3 -11
- package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +2 -3
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.ts +1 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +2 -0
- package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +1 -1
- package/src/custom_auth/core/utils/ArgumentValidator.ts +13 -0
- package/src/custom_auth/index.ts +4 -14
- package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +6 -10
- package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +0 -2
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +3 -6
- package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +2 -4
- package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +2 -4
- package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +5 -4
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +4 -23
- package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.ts +56 -0
- package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +1 -5
- package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +2 -5
- package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +0 -2
- package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +0 -2
- package/src/interaction_client/PopupClient.ts +9 -1
- package/src/interaction_client/RedirectClient.ts +9 -4
- package/src/interaction_client/SilentIframeClient.ts +9 -2
- package/src/packageMetadata.ts +1 -1
- package/src/request/SilentRequestHelpers.ts +11 -2
- package/src/utils/BrowserDetection.ts +85 -0
- package/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthActionInputs.d.ts +16 -5
- package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
- package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +9 -11
- 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 +1 -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 +90 -0
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +1 -2
- package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +1 -2
- 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/ResendCodeResultV2.d.ts +13 -0
- package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts.map +1 -0
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +2 -3
- package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +5 -6
- package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +9 -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/ChallengeVerificationStateBaseV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +2 -2
- package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +5 -3
- package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/core/error/CustomAuthApiError.d.ts +2 -1
- package/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +1 -3
- 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 +2 -2
- 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 +2 -2
- package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -1
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +2 -4
- package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts +0 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +2 -2
- package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -2
- 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 +2 -0
- 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 +1 -1
- package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
- package/types/custom_auth/core/utils/ArgumentValidator.d.ts +1 -0
- package/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
- package/types/custom_auth/index.d.ts +3 -12
- package/types/custom_auth/index.d.ts.map +1 -1
- package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +5 -7
- 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.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +4 -6
- 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 +3 -4
- 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/result/SubmitPasswordResultV2.d.ts +3 -4
- package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -1
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +4 -9
- 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/SignInStateTransitionHandlerV2.d.ts +9 -0
- package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts.map +1 -0
- package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +1 -2
- 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 +1 -2
- 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.map +1 -1
- package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.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/request/SilentRequestHelpers.d.ts +1 -1
- package/types/request/SilentRequestHelpers.d.ts.map +1 -1
- package/types/utils/BrowserDetection.d.ts +17 -0
- package/types/utils/BrowserDetection.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs +0 -102
- package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs.map +0 -1
- package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs +0 -20
- package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs.map +0 -1
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +0 -36
- package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs.map +0 -1
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +0 -29
- package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs.map +0 -1
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +0 -36
- package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs.map +0 -1
- package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs +0 -61
- package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs.map +0 -1
- package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs +0 -29
- package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs.map +0 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs +0 -18
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs.map +0 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +0 -37
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs.map +0 -1
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +0 -23
- package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs.map +0 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs +0 -25
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs.map +0 -1
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs +0 -33
- package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs.map +0 -1
- package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.ts +0 -146
- package/src/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.ts +0 -15
- package/src/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.ts +0 -33
- package/src/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.ts +0 -25
- package/src/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.ts +0 -18
- package/src/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.ts +0 -59
- package/src/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.ts +0 -76
- package/src/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.ts +0 -25
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.ts +0 -13
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.ts +0 -35
- package/src/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.ts +0 -19
- package/src/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.ts +0 -21
- package/src/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.ts +0 -32
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts +0 -40
- package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts +0 -11
- package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts +0 -23
- package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts +0 -18
- package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts +0 -7
- package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts +0 -17
- package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts.map +0 -1
- package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts +0 -18
- package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts.map +0 -1
- package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts +0 -18
- package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts.map +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts +0 -9
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts.map +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts +0 -22
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts.map +0 -1
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts +0 -12
- package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts.map +0 -1
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts +0 -14
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts.map +0 -1
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts +0 -20
- package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts.map +0 -1
package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.26.0 2026-10-21 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthFlowResultBase } from '../../AuthFlowResultBase.mjs';
|
|
4
4
|
import { AuthMethodRegistrationChallengeMethodError } from '../error_type/AuthMethodRegistrationError.mjs';
|
package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.26.0 2026-10-21 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthFlowResultBase } from '../../AuthFlowResultBase.mjs';
|
|
4
4
|
import { AuthMethodRegistrationSubmitChallengeError } from '../error_type/AuthMethodRegistrationError.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.26.0 2026-10-21 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { CustomAuthAccountData } from '../../../../get_account/auth_flow/CustomAuthAccountData.mjs';
|
|
4
4
|
import { JIT_VERIFICATION_REQUIRED_RESULT_TYPE, JIT_COMPLETED_RESULT_TYPE } from '../../../interaction_client/jit/result/JitActionResult.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.26.0 2026-10-21 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { MfaSubmitChallengeResult } from '../result/MfaSubmitChallengeResult.mjs';
|
|
4
4
|
import { MfaRequestChallengeResult } from '../result/MfaRequestChallengeResult.mjs';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.26.0 2026-10-21 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthError } from '@azure/msal-common/browser';
|
|
4
4
|
import { CustomAuthError } from '../../error/CustomAuthError.mjs';
|
|
5
5
|
import { MsalCustomAuthError } from '../../error/MsalCustomAuthError.mjs';
|
|
6
6
|
import { UnexpectedError } from '../../error/UnexpectedError.mjs';
|
|
7
7
|
import { FailedStateV2 } from './state/FailedStateV2.mjs';
|
|
8
|
+
import { AuthFlowErrorV2 } from './error/AuthFlowErrorV2.mjs';
|
|
8
9
|
import { CustomAuthFlowScenarioV2 } from './CustomAuthFlowScenarioV2.mjs';
|
|
9
10
|
|
|
10
11
|
/*
|
|
@@ -32,7 +33,7 @@ class CustomAuthResultV2 {
|
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
35
|
* Checks whether the result is in the terminal failed state. A failed result
|
|
35
|
-
* contains the flow
|
|
36
|
+
* contains the unified V2 flow error.
|
|
36
37
|
* @returns True (and narrows `state`) when the operation failed.
|
|
37
38
|
*/
|
|
38
39
|
isFailed() {
|
|
@@ -40,15 +41,15 @@ class CustomAuthResultV2 {
|
|
|
40
41
|
}
|
|
41
42
|
/**
|
|
42
43
|
* Creates a failed result from the supplied error. The result uses the
|
|
43
|
-
* shared {@link FailedStateV2} terminal state.
|
|
44
|
+
* shared {@link FailedStateV2} terminal state and unified V2 flow error.
|
|
44
45
|
* @param error - The error that occurred.
|
|
45
|
-
* @param options - The flow-error
|
|
46
|
-
* @returns A failed result carrying the flow
|
|
46
|
+
* @param options - The flow-error context.
|
|
47
|
+
* @returns A failed result carrying the unified V2 flow error.
|
|
47
48
|
*/
|
|
48
49
|
static createWithError(error, options) {
|
|
49
|
-
const {
|
|
50
|
+
const { scenario = CustomAuthFlowScenarioV2.Unknown, correlationId } = options;
|
|
50
51
|
const errorData = CustomAuthResultV2.createErrorData(error, correlationId);
|
|
51
|
-
const flowError = new
|
|
52
|
+
const flowError = new AuthFlowErrorV2(errorData, scenario);
|
|
52
53
|
const result = new CustomAuthResultV2(new FailedStateV2(), undefined, scenario);
|
|
53
54
|
result.error = flowError;
|
|
54
55
|
return result;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAuthResultV2.mjs","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomAuthResultV2.mjs","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;AAGG;AAgBH;;;AAGG;MACU,kBAAkB,CAAA;AAI3B,IAAA,WAAA,CACoB,KAAa,EACb,IAAY,EACZ,QAAA,GAAqC,wBAAwB,CAAC,OAAO,EAAA;QAFrE,IAAA,CAAA,KAAK,GAAL,KAAK,CAAQ;QACb,IAAA,CAAA,IAAI,GAAJ,IAAI,CAAQ;QACZ,IAAA,CAAA,QAAQ,GAAR,QAAQ,CAA6D;IACtF,CAAC;AAIJ;;;;;AAKG;AACH,IAAA,OAAO,CACH,SAAgB,EAAA;AAEhB,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC;IAC9C,CAAC;AAED;;;;AAIG;IACH,Q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K,CAAC,OAAO,CAAC,CAAC;AAClC,gBAAA,CAAA;AACJ,YAAA,CAAA;YAED,OAAO,IAAI,mBAAmB,CAC1B,KAAK,CAAC,SAAS,EACf,KAAK,CAAC,YAAY,EAClB,KAAK,CAAC,QAAQ,EACd,UAAU,EACV,KAAK,CAAC,aAAa,CACtB,CAAC;AACL,QAAA,CAAA;AAED,QAAA,OAAO,IAAI,eAAe,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;IACrD,CAAC;AACJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.26.0 2026-10-21 */
|
|
2
2
|
'use strict';
|
|
3
3
|
/*
|
|
4
4
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
const INVALID_ONE_TIME_CODE = "invalidOneTimeCode";
|
|
8
8
|
const INVALID_USERNAME_OR_PASSWORD = "invalidUserNameOrPassword";
|
|
9
|
-
const PASSWORD_TOO_WEAK = "passwordTooWeak";
|
|
9
|
+
const PASSWORD_TOO_WEAK = "passwordTooWeak";
|
|
10
|
+
const USER_NOT_FOUND = "userNotFound";
|
|
10
11
|
|
|
11
|
-
export { INVALID_ONE_TIME_CODE, INVALID_USERNAME_OR_PASSWORD, PASSWORD_TOO_WEAK };
|
|
12
|
+
export { INVALID_ONE_TIME_CODE, INVALID_USERNAME_OR_PASSWORD, PASSWORD_TOO_WEAK, USER_NOT_FOUND };
|
|
12
13
|
//# sourceMappingURL=AuthFlowErrorSubcodesV2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthFlowErrorSubcodesV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEI,MAAM,qBAAqB,GAAG,qBAAqB;AACnD,MAAM,4BAA4B,GAAG,4BAA4B;AACjE,MAAM,iBAAiB,GAAG;;;;"}
|
|
1
|
+
{"version":3,"file":"AuthFlowErrorSubcodesV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEI,MAAM,qBAAqB,GAAG,qBAAqB;AACnD,MAAM,4BAA4B,GAAG,4BAA4B;AACjE,MAAM,iBAAiB,GAAG,kBAAkB;AAC5C,MAAM,cAAc,GAAG;;;;"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/*! @azure/msal-browser v5.26.0 2026-10-21 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { CustomAuthApiError } from '../../../error/CustomAuthApiError.mjs';
|
|
4
|
+
import { InvalidArgumentError } from '../../../error/InvalidArgumentError.mjs';
|
|
5
|
+
import { WEB_REDIRECT_REQUIRED } from '../../../network_client/custom_auth_api/v2/ErrorCodesV2.mjs';
|
|
6
|
+
import { USER_NOT_FOUND, INVALID_ONE_TIME_CODE, PASSWORD_TOO_WEAK, INVALID_USERNAME_OR_PASSWORD } from './AuthFlowErrorSubcodesV2.mjs';
|
|
7
|
+
import { CustomAuthFlowScenarioV2 } from '../CustomAuthFlowScenarioV2.mjs';
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Error returned by a native authentication V2 operation. Use its classifiers
|
|
15
|
+
* to handle known failures while retaining raw diagnostics through `errorData`.
|
|
16
|
+
*/
|
|
17
|
+
class AuthFlowErrorV2 {
|
|
18
|
+
constructor(errorData, scenario = CustomAuthFlowScenarioV2.Unknown) {
|
|
19
|
+
this.errorData = errorData;
|
|
20
|
+
this.scenario = scenario;
|
|
21
|
+
}
|
|
22
|
+
get correlationId() {
|
|
23
|
+
return this.errorData.correlationId;
|
|
24
|
+
}
|
|
25
|
+
get errorCodes() {
|
|
26
|
+
return this.errorData.errorCodes;
|
|
27
|
+
}
|
|
28
|
+
get errorDescription() {
|
|
29
|
+
return this.errorData.errorDescription;
|
|
30
|
+
}
|
|
31
|
+
get innerErrorCode() {
|
|
32
|
+
return this.errorData instanceof CustomAuthApiError
|
|
33
|
+
? this.errorData.innerErrorCode
|
|
34
|
+
: undefined;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Gets the attribute ids that the service reports as required.
|
|
38
|
+
*/
|
|
39
|
+
get requiredAttributes() {
|
|
40
|
+
return this.getAttributeIdsByCode("attributeRequired");
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Gets the attribute ids whose submitted values failed validation.
|
|
44
|
+
*/
|
|
45
|
+
get invalidAttributes() {
|
|
46
|
+
return this.getAttributeIdsByCode("attributeValidationFailed");
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Checks if the error requires the flow to continue in the browser. The
|
|
50
|
+
* server surfaces this as the `web_redirect_required` OAuth suberror, so a
|
|
51
|
+
* browser hand-off arrives as a `FailedStateV2` on which this detector
|
|
52
|
+
* returns true.
|
|
53
|
+
* @returns True if the browser is required, false otherwise.
|
|
54
|
+
*/
|
|
55
|
+
isBrowserRequired() {
|
|
56
|
+
return this.errorData.subError === WEB_REDIRECT_REQUIRED;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Checks if the error is due to a caller-supplied argument failing
|
|
60
|
+
* client-side validation before the request was issued (for example an empty
|
|
61
|
+
* username, code, or password, or an unknown method id). Use it to prompt the
|
|
62
|
+
* user to correct the input rather than treating it as a server failure.
|
|
63
|
+
* @returns True if the input was invalid, false otherwise.
|
|
64
|
+
*/
|
|
65
|
+
isInvalidInput() {
|
|
66
|
+
return this.errorData instanceof InvalidArgumentError;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Checks whether the service rejected the username parameter. Use it to ask
|
|
70
|
+
* the user to correct the supplied username.
|
|
71
|
+
* @returns True when the username is invalid, otherwise false.
|
|
72
|
+
*/
|
|
73
|
+
isInvalidUsername() {
|
|
74
|
+
return this.isUserInvalidError();
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Checks whether the supplied username does not identify an account. Use it
|
|
78
|
+
* to distinguish a missing account from other request failures.
|
|
79
|
+
* @returns True when the service reports that the user was not found.
|
|
80
|
+
*/
|
|
81
|
+
isUserNotFound() {
|
|
82
|
+
return this.isUserNotFoundError();
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Checks whether the service rejected the supplied sign-in credentials. This
|
|
86
|
+
* classifier does not identify new-password policy failures.
|
|
87
|
+
* @returns True when the username or password is incorrect.
|
|
88
|
+
*/
|
|
89
|
+
isInvalidCredentials() {
|
|
90
|
+
return this.isPasswordIncorrectError();
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Checks whether the service rejected a one-time code. Use it to prompt the
|
|
94
|
+
* user to re-enter the code or request a new one.
|
|
95
|
+
* @returns True when the one-time code is invalid, otherwise false.
|
|
96
|
+
*/
|
|
97
|
+
isInvalidCode() {
|
|
98
|
+
return this.isInvalidCodeError();
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Checks whether a new password violates password policy. It recognizes
|
|
102
|
+
* both weak-password responses and password-targeted validation details.
|
|
103
|
+
* @returns True when the new password is invalid, otherwise false.
|
|
104
|
+
*/
|
|
105
|
+
isInvalidPassword() {
|
|
106
|
+
return (this.isInvalidPasswordError() ||
|
|
107
|
+
this.isPasswordPolicyViolationError());
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Checks whether an account already exists for the supplied identifier.
|
|
111
|
+
* This can occur at different stages while completing sign-up.
|
|
112
|
+
* @returns True if the account already exists, otherwise false.
|
|
113
|
+
*/
|
|
114
|
+
isUserAlreadyExists() {
|
|
115
|
+
return this.getAttributeValidationDetails().some((detail) => detail.code === "userAlreadyExists");
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Checks whether the service requires attributes omitted from the request.
|
|
119
|
+
* Use it to collect the required attributes before resubmitting.
|
|
120
|
+
* @returns True when required attributes are missing, otherwise false.
|
|
121
|
+
*/
|
|
122
|
+
isMissingRequiredAttributes() {
|
|
123
|
+
return this.requiredAttributes.length > 0;
|
|
124
|
+
}
|
|
125
|
+
isUserNotFoundError() {
|
|
126
|
+
return (this.errorData.error === "invalidRequest" &&
|
|
127
|
+
(this.innerErrorCode === USER_NOT_FOUND ||
|
|
128
|
+
this.errorData.errorDescription?.includes("AADSTS50034") ===
|
|
129
|
+
true));
|
|
130
|
+
}
|
|
131
|
+
isUserInvalidError() {
|
|
132
|
+
return (this.errorData.error === "invalidRequest" &&
|
|
133
|
+
this.errorData.errorDescription?.includes("AADSTS90100") === true &&
|
|
134
|
+
this.errorData.errorDescription
|
|
135
|
+
.toLowerCase()
|
|
136
|
+
.includes("username parameter"));
|
|
137
|
+
}
|
|
138
|
+
isInvalidCodeError() {
|
|
139
|
+
return (this.errorData.error === "invalidGrant" &&
|
|
140
|
+
this.innerErrorCode === INVALID_ONE_TIME_CODE);
|
|
141
|
+
}
|
|
142
|
+
isInvalidPasswordError() {
|
|
143
|
+
return (this.errorData.error === "invalidRequest" &&
|
|
144
|
+
this.innerErrorCode === PASSWORD_TOO_WEAK);
|
|
145
|
+
}
|
|
146
|
+
isPasswordPolicyViolationError() {
|
|
147
|
+
return this.getAttributeValidationDetails().some((detail) => {
|
|
148
|
+
const attributeIds = detail.attributeIds;
|
|
149
|
+
return (detail.code === "passwordPolicyViolation" &&
|
|
150
|
+
Array.isArray(attributeIds) &&
|
|
151
|
+
attributeIds.some((attributeId) => typeof attributeId === "string" &&
|
|
152
|
+
attributeId.toLowerCase() === "password"));
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
isPasswordIncorrectError() {
|
|
156
|
+
return (this.errorData.error === "invalidGrant" &&
|
|
157
|
+
this.innerErrorCode === INVALID_USERNAME_OR_PASSWORD);
|
|
158
|
+
}
|
|
159
|
+
getAttributeValidationDetails() {
|
|
160
|
+
const details = this.errorData.attributeValidationDetails;
|
|
161
|
+
return Array.isArray(details)
|
|
162
|
+
? details.filter((detail) => typeof detail === "object" && detail !== null)
|
|
163
|
+
: [];
|
|
164
|
+
}
|
|
165
|
+
getAttributeIdsByCode(code) {
|
|
166
|
+
const attributeIds = this.getAttributeValidationDetails().flatMap((detail) => detail.code === code && Array.isArray(detail.attributeIds)
|
|
167
|
+
? detail.attributeIds.filter((attributeId) => typeof attributeId === "string")
|
|
168
|
+
: []);
|
|
169
|
+
return [...new Set(attributeIds)];
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export { AuthFlowErrorV2 };
|
|
174
|
+
//# sourceMappingURL=AuthFlowErrorV2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthFlowErrorV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;AAeH;;;AAGG;MACU,eAAe,CAAA;AAGxB,IAAA,WAAA,CACW,SAA0B,EACjC,QAAA,GAAqC,wBAAwB,CAAC,OAAO,EAAA;QAD9D,IAAA,CAAA,SAAS,GAAT,SAAS,CAAiB;AAGjC,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;AAED,IAAA,IAAI,aAAa,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;IACxC,CAAC;AAED,IAAA,IAAI,UAAU,GAAA;AACV,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;IACrC,CAAC;AAED,IAAA,IAAI,gBAAgB,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC;IAC3C,CAAC;AAED,IAA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Y,CAAC,IAAI,CACb,CAAC,WAAoB,KACjB,OAAO,WAAW,KAAK,QAAQ;AAC/B,oBAAA,WAAW,CAAC,WAAW,EAAE,KAAK,UAAU,CAC/C,EACH;AACN,QAAA,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,wBAAwB,GAAA;AAC5B,QAAA,QACI,IAAI,CAAC,SAAS,CAAC,KAAK,KAAK,cAAc;AACvC,YAAA,IAAI,CAAC,cAAc,KAAK,4BAA4B,EACtD;IACN,CAAC;IAEO,6BAA6B,GAAA;AACjC,QAAA,MAAM,OAAO,GACT,IAAI,CAAC,SAGR,CAAC,0BAA0B,CAAC;AAE7B,QAAA,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;AACzB,cAAE,OAAO,CAAC,MAAM,CACV,CAAC,MAAM,KACH,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,CACpD;cACD,EAAE,CAAC;IACb,CAAC;AAEO,IAAA,qBAAqB,CAAC,IAAY,EAAA;QACtC,MAAM,YAAY,GAAG,IAAI,CAAC,6BAA6B,EAAE,CAAC,OAAO,CAC7D,CAAC,MAAM,KACH,MAAM,CAAC,IAAI,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC;AACtD,cAAE,MAAM,CAAC,YAAY,CAAC,MAAM,CACtB,CAAC,WAAW,KACR,OAAO,WAAW,KAAK,QAAQ,CACtC;cACD,EAAE,CACf,CAAC;QAEF,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;IACtC,CAAC;AACJ;;;;"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.26.0 2026-10-21 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { CustomAuthResultV2 } from '../CustomAuthResultV2.mjs';
|
|
4
|
-
import {
|
|
4
|
+
import { AuthFlowActionRequiredStateBase } from '../../AuthFlowState.mjs';
|
|
5
5
|
import { CodeRequiredStateV2 } from './CodeRequiredStateV2.mjs';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { MFAVerificationRequiredStateV2 } from './MFAVerificationRequiredStateV2.mjs';
|
|
7
|
+
import { FLOW_CODE_REQUIRED_V2, FLOW_PASSWORD_REQUIRED_V2 } from '../../../interaction_client/v2/result/FlowActionResultV2.mjs';
|
|
8
8
|
import { AuthenticationMethodTypeV2 } from '../../../network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs';
|
|
9
9
|
import { CustomAuthError } from '../../../error/CustomAuthError.mjs';
|
|
10
|
+
import { InvalidArgumentError } from '../../../error/InvalidArgumentError.mjs';
|
|
10
11
|
import { UNSUPPORTED_FLOW_TRANSITION } from '../../../network_client/custom_auth_api/v2/ErrorCodesV2.mjs';
|
|
12
|
+
import { AuthenticationFactorV2 } from '../../../network_client/custom_auth_api/v2/result/BaseResultsV2.mjs';
|
|
13
|
+
import { CustomAuthFlowScenarioV2 } from '../CustomAuthFlowScenarioV2.mjs';
|
|
11
14
|
|
|
12
15
|
/*
|
|
13
16
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -19,23 +22,23 @@ import { UNSUPPORTED_FLOW_TRANSITION } from '../../../network_client/custom_auth
|
|
|
19
22
|
* methods and lets the app request a challenge for the chosen one. The flow
|
|
20
23
|
* stays on this state until a challenge is successfully requested.
|
|
21
24
|
*/
|
|
22
|
-
class AuthMethodSelectionRequiredStateV2 extends
|
|
23
|
-
constructor() {
|
|
24
|
-
super(
|
|
25
|
+
class AuthMethodSelectionRequiredStateV2 extends AuthFlowActionRequiredStateBase {
|
|
26
|
+
constructor(stateParameters) {
|
|
27
|
+
super(stateParameters);
|
|
25
28
|
this.stateType = "authMethodSelectionRequired";
|
|
29
|
+
this.methods = stateParameters.methods;
|
|
26
30
|
}
|
|
27
31
|
/**
|
|
28
|
-
*
|
|
32
|
+
* Selects an authentication method and requests its challenge. The returned
|
|
29
33
|
* state identifies the credential the application must collect.
|
|
30
|
-
* @param method - The method to
|
|
31
|
-
* @returns The result of
|
|
34
|
+
* @param method - The method to select, from {@link methods}.
|
|
35
|
+
* @returns The result of selecting the method and requesting its challenge.
|
|
32
36
|
*/
|
|
33
|
-
async
|
|
34
|
-
const { correlationId, logger, continuationState, flowClient } = this.stateParameters;
|
|
37
|
+
async selectAuthMethod(method) {
|
|
38
|
+
const { authenticationFactor, correlationId, logger, continuationState, flowClient, signInStateTransitionHandler, } = this.stateParameters;
|
|
35
39
|
try {
|
|
36
40
|
logger.verbose("1r2ypl", correlationId);
|
|
37
41
|
const { result, selectedMethod } = await this.requestSelectedMethodChallenge(method);
|
|
38
|
-
const resultType = result.type;
|
|
39
42
|
const commonStateParameters = {
|
|
40
43
|
correlationId: result.correlationId,
|
|
41
44
|
logger,
|
|
@@ -44,32 +47,79 @@ class AuthMethodSelectionRequiredStateV2 extends AuthenticationMethodSelectionSt
|
|
|
44
47
|
continuationState: result.continuationState,
|
|
45
48
|
cacheClient: this.stateParameters.cacheClient,
|
|
46
49
|
};
|
|
47
|
-
if (
|
|
50
|
+
if (authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR &&
|
|
51
|
+
result.type === FLOW_CODE_REQUIRED_V2 &&
|
|
48
52
|
(result.channel?.toLowerCase() ===
|
|
49
53
|
AuthenticationMethodTypeV2.EMAIL ||
|
|
50
54
|
result.channel?.toLowerCase() ===
|
|
51
55
|
AuthenticationMethodTypeV2.SMS)) {
|
|
52
56
|
return new CustomAuthResultV2(new CodeRequiredStateV2({
|
|
53
57
|
...commonStateParameters,
|
|
58
|
+
signInStateTransitionHandler,
|
|
54
59
|
method: selectedMethod,
|
|
55
60
|
sentTo: result.sentTo,
|
|
56
61
|
channel: result.channel,
|
|
57
62
|
codeLength: result.codeLength,
|
|
58
63
|
}), undefined, result.continuationState.scenario);
|
|
59
64
|
}
|
|
60
|
-
|
|
65
|
+
if (continuationState.scenario ===
|
|
66
|
+
CustomAuthFlowScenarioV2.SignIn &&
|
|
67
|
+
authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR &&
|
|
68
|
+
result.type === FLOW_PASSWORD_REQUIRED_V2) {
|
|
69
|
+
if (!signInStateTransitionHandler) {
|
|
70
|
+
throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, "Sign-in method selection cannot map a password challenge without a sign-in transition handler.", correlationId);
|
|
71
|
+
}
|
|
72
|
+
return signInStateTransitionHandler.handlePasswordRequired(result, commonStateParameters);
|
|
73
|
+
}
|
|
74
|
+
if (authenticationFactor === AuthenticationFactorV2.MULTI_FACTOR &&
|
|
75
|
+
result.type === FLOW_CODE_REQUIRED_V2) {
|
|
76
|
+
return new CustomAuthResultV2(new MFAVerificationRequiredStateV2({
|
|
77
|
+
...commonStateParameters,
|
|
78
|
+
method: selectedMethod,
|
|
79
|
+
sentTo: result.sentTo,
|
|
80
|
+
channel: result.channel,
|
|
81
|
+
codeLength: result.codeLength,
|
|
82
|
+
}), undefined, result.continuationState.scenario);
|
|
83
|
+
}
|
|
84
|
+
const expectedChallenge = authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR
|
|
85
|
+
? continuationState.scenario ===
|
|
86
|
+
CustomAuthFlowScenarioV2.SignIn
|
|
87
|
+
? "an email or SMS code challenge or a password challenge for single-factor sign-in"
|
|
88
|
+
: "an email or SMS code challenge for single-factor authentication"
|
|
89
|
+
: "a code challenge for multi-factor authentication";
|
|
90
|
+
const returnedChallenge = result.type === FLOW_CODE_REQUIRED_V2
|
|
61
91
|
? result.channel
|
|
62
|
-
|
|
92
|
+
? `a '${result.channel}' code challenge`
|
|
93
|
+
: "a code challenge without a channel"
|
|
94
|
+
: "a password challenge";
|
|
95
|
+
throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, `Authentication method selection expected ${expectedChallenge}, but the server returned ${returnedChallenge}.`, correlationId);
|
|
63
96
|
}
|
|
64
97
|
catch (error) {
|
|
65
98
|
logger.errorPii(`0z5x7r ${error}`, correlationId);
|
|
66
99
|
return CustomAuthResultV2.createWithError(error, {
|
|
67
|
-
errorType: RequestChallengeErrorV2,
|
|
68
100
|
scenario: continuationState.scenario,
|
|
69
101
|
correlationId,
|
|
70
102
|
});
|
|
71
103
|
}
|
|
72
104
|
}
|
|
105
|
+
async requestSelectedMethodChallenge(method) {
|
|
106
|
+
const { correlationId, continuationState, flowClient } = this.stateParameters;
|
|
107
|
+
const selectedMethod = this.methods.find((candidate) => candidate.id === method.id);
|
|
108
|
+
if (!selectedMethod) {
|
|
109
|
+
throw new InvalidArgumentError("method", correlationId);
|
|
110
|
+
}
|
|
111
|
+
const result = await flowClient.requestChallenge({
|
|
112
|
+
correlationId,
|
|
113
|
+
continuationState: {
|
|
114
|
+
...continuationState,
|
|
115
|
+
links: {
|
|
116
|
+
...continuationState.links,
|
|
117
|
+
challenge: selectedMethod.challengeHref,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
return { result, selectedMethod };
|
|
122
|
+
}
|
|
73
123
|
}
|
|
74
124
|
|
|
75
125
|
export { AuthMethodSelectionRequiredStateV2 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthMethodSelectionRequiredStateV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthMethodSelectionRequiredStateV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;AAGG;AAsBH;;;;;AAKG;AACG,MAAO,kCAAmC,SAAQ,+BAA6E,CAAA;AAIjI,IAAA,WAAA,CAAY,eAA6D,EAAA;QACrE,KAAK,CAAC,eAAe,CAAC,CAAC;QAJlB,IAAA,CAAA,SAAS,GAAG,6BAA6B,CAAC;AAK/C,Q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
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.26.0 2026-10-21 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthFlowActionRequiredStateBase } from '../../AuthFlowState.mjs';
|
|
4
|
+
import { ensureArgumentIsNotNullOrUndefined } from '../../../utils/ArgumentValidator.mjs';
|
|
4
5
|
|
|
5
6
|
/*
|
|
6
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -15,9 +16,7 @@ class ChallengeVerificationStateBaseV2 extends AuthFlowActionRequiredStateBase {
|
|
|
15
16
|
this.codeLength = stateParameters.codeLength;
|
|
16
17
|
}
|
|
17
18
|
async submitCodeCore(code) {
|
|
18
|
-
|
|
19
|
-
this.ensureCodeIsValid(code, this.codeLength);
|
|
20
|
-
}
|
|
19
|
+
ensureArgumentIsNotNullOrUndefined("code", code, this.stateParameters.correlationId);
|
|
21
20
|
return this.stateParameters.flowClient.submitCode({
|
|
22
21
|
correlationId: this.stateParameters.correlationId,
|
|
23
22
|
continuationState: this.stateParameters.continuationState,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChallengeVerificationStateBaseV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChallengeVerificationStateBaseV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAWG,MAAgB,gCAEpB,SAAQ,+BAA4C,CAAA;AASlD,IAAA,WAAA,CAAY,eAA4B,EAAA;QACpC,KAAK,CAAC,eAAe,CAAC,CAAC;AACvB,QAAA,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;AACrC,QAAA,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;AACrC,QAAA,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC;AACvC,QAAA,IAAI,CAAC,UAAU,GAAG,eAAe,CAAC,UAAU,CAAC;IACjD,CAAC;IAES,MAAM,cAAc,CAC1B,IAAY,EAAA;QAEZ,kCAAkC,CAC9B,MAAM,EACN,IAAI,EACJ,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AAEF,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,UAAU,CAAC;AAC9C,YAAA,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa;AACjD,YAAA,iBAAiB,EAAE,IAAI,CAAC,eAAe,CAAC,iBAAiB;YACzD,IAAI;AACP,SAAA,CAAC,CAAC;IACP,CAAC;AAES,IAAA,MAAM,cAAc,GAAA;AAC1B,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,UAAU,CAAC;AAC9C,YAAA,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa;AACjD,YAAA,iBAAiB,EAAE,IAAI,CAAC,eAAe,CAAC,iBAAiB;AAC5D,SAAA,CAAC,CAAC;IACP,CAAC;AACJ;;;;"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.26.0 2026-10-21 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { CustomAuthResultV2 } from '../CustomAuthResultV2.mjs';
|
|
4
|
-
import { VerifyChallengeErrorV2 } from '../error/VerifyChallengeErrorV2.mjs';
|
|
5
|
-
import { RequestChallengeErrorV2 } from '../error/RequestChallengeErrorV2.mjs';
|
|
6
4
|
import { NewPasswordRequiredStateV2 } from '../../../../reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs';
|
|
7
5
|
import { CompletedStateV2 } from './CompletedStateV2.mjs';
|
|
8
|
-
import { MFARequiredStateV2 } from './MFARequiredStateV2.mjs';
|
|
9
6
|
import { CustomAuthAccountData } from '../../../../get_account/auth_flow/CustomAuthAccountData.mjs';
|
|
10
7
|
import { FLOW_NEW_PASSWORD_REQUIRED_V2, FLOW_ATTRIBUTES_REQUIRED_V2, FLOW_SIGN_UP_PASSWORD_REQUIRED_V2, FLOW_SIGN_IN_CONTINUATION_REQUIRED_V2, FLOW_MFA_REQUIRED_V2, FLOW_COMPLETED_V2 } from '../../../interaction_client/v2/result/FlowActionResultV2.mjs';
|
|
11
8
|
import { CustomAuthError } from '../../../error/CustomAuthError.mjs';
|
|
@@ -70,15 +67,11 @@ class CodeRequiredStateV2 extends ChallengeVerificationStateBaseV2 {
|
|
|
70
67
|
}), undefined, result.continuationState.scenario);
|
|
71
68
|
}
|
|
72
69
|
if (result.type === FLOW_MFA_REQUIRED_V2) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
continuationState: result.continuationState,
|
|
79
|
-
cacheClient: this.stateParameters.cacheClient,
|
|
80
|
-
methods: result.methods,
|
|
81
|
-
}), undefined, result.continuationState.scenario);
|
|
70
|
+
const signInStateTransitionHandler = this.stateParameters.signInStateTransitionHandler;
|
|
71
|
+
if (!signInStateTransitionHandler) {
|
|
72
|
+
throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, "Sign-in state transition handler is missing.", correlationId);
|
|
73
|
+
}
|
|
74
|
+
return signInStateTransitionHandler.handleMfaRequired(result, this.stateParameters);
|
|
82
75
|
}
|
|
83
76
|
if (result.type === FLOW_COMPLETED_V2) {
|
|
84
77
|
const account = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, logger, correlationId);
|
|
@@ -89,7 +82,6 @@ class CodeRequiredStateV2 extends ChallengeVerificationStateBaseV2 {
|
|
|
89
82
|
catch (error) {
|
|
90
83
|
logger.errorPii(`0br9qy ${error}`, correlationId);
|
|
91
84
|
return CustomAuthResultV2.createWithError(error, {
|
|
92
|
-
errorType: VerifyChallengeErrorV2,
|
|
93
85
|
scenario: continuationState.scenario,
|
|
94
86
|
correlationId,
|
|
95
87
|
});
|
|
@@ -113,6 +105,7 @@ class CodeRequiredStateV2 extends ChallengeVerificationStateBaseV2 {
|
|
|
113
105
|
continuationState: result.continuationState,
|
|
114
106
|
cacheClient: this.stateParameters.cacheClient,
|
|
115
107
|
signUpStateTransitionHandler: this.stateParameters.signUpStateTransitionHandler,
|
|
108
|
+
signInStateTransitionHandler: this.stateParameters.signInStateTransitionHandler,
|
|
116
109
|
method: this.method,
|
|
117
110
|
sentTo: result.sentTo,
|
|
118
111
|
channel: result.channel,
|
|
@@ -122,7 +115,6 @@ class CodeRequiredStateV2 extends ChallengeVerificationStateBaseV2 {
|
|
|
122
115
|
catch (error) {
|
|
123
116
|
logger.errorPii(`0eq23q ${error}`, correlationId);
|
|
124
117
|
return CustomAuthResultV2.createWithError(error, {
|
|
125
|
-
errorType: RequestChallengeErrorV2,
|
|
126
118
|
scenario: continuationState.scenario,
|
|
127
119
|
correlationId,
|
|
128
120
|
});
|