@azure/msal-browser 4.22.1 → 4.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientNext.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +16 -15
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +24 -51
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
- package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
- package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/TokenCache.mjs +1 -1
- package/dist/custom-auth-path/config/Configuration.mjs +1 -1
- package/dist/custom-auth-path/controllers/ControllerFactory.mjs +1 -1
- package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.mjs +24 -51
- package/dist/custom-auth-path/controllers/StandardController.mjs.map +1 -1
- package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
- package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
- package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +3 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +4 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +38 -5
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +15 -2
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +14 -2
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +27 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +42 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +55 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +45 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +13 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +13 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +166 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +22 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +36 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +30 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +7 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +7 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +59 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +19 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +3 -4
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +21 -2
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.d.ts +21 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +105 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +20 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +22 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +24 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +21 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +14 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +23 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +3 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +4 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +7 -3
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +51 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +7 -2
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +16 -4
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +21 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +26 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +5 -3
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.d.ts +4 -0
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +6 -3
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/index.d.ts +11 -3
- package/dist/custom-auth-path/custom_auth/index.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/index.mjs +7 -1
- package/dist/custom-auth-path/custom_auth/index.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +3 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +2 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +9 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +3 -3
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +11 -3
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +14 -4
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +33 -4
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +30 -4
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts +14 -13
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +73 -31
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +13 -0
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +16 -2
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +2 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +5 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +3 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
- package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/error/NativeAuthError.mjs +1 -1
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
- package/dist/custom-auth-path/event/EventType.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/custom-auth-path/naa/TokenRequest.d.ts +1 -0
- package/dist/custom-auth-path/naa/TokenRequest.d.ts.map +1 -1
- package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
- package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
- package/dist/custom-auth-path/packageMetadata.mjs +2 -2
- package/dist/custom-auth-path/protocol/Authorize.mjs +1 -1
- package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
- package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
- package/dist/custom-auth-path/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.d.ts +3 -1
- package/dist/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
- package/dist/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +2 -0
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
- package/dist/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +27 -0
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +22 -0
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +36 -0
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +30 -0
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +7 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +7 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +59 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +19 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +1 -0
- package/dist/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
- package/dist/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts +21 -0
- package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
- package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +20 -0
- package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +22 -0
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +21 -0
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -0
- package/dist/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +14 -0
- package/dist/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +1 -0
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +23 -0
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +4 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +7 -2
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +21 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +26 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +2 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.d.ts +4 -0
- package/dist/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
- package/dist/custom_auth/index.d.ts +11 -3
- package/dist/custom_auth/index.d.ts.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
- package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts +14 -13
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +13 -0
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.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 +1 -1
- package/dist/interaction_client/RedirectClient.mjs +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/TokenRequest.d.ts +1 -0
- package/dist/naa/TokenRequest.d.ts.map +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +3 -3
- package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/lib/custom-auth-path/msal-custom-auth.cjs +865 -210
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +3 -1
- package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
- package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +27 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +22 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +36 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +30 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +7 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +7 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +59 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +19 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
- package/lib/custom-auth-path/types/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts +21 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +20 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +22 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +21 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +14 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +23 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +4 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +7 -2
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +21 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +26 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.d.ts +4 -0
- package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/index.d.ts +11 -3
- package/lib/custom-auth-path/types/custom_auth/index.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +14 -13
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +13 -0
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
- package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
- package/lib/custom-auth-path/types/naa/TokenRequest.d.ts +1 -0
- package/lib/custom-auth-path/types/naa/TokenRequest.d.ts.map +1 -1
- package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/lib/msal-browser.cjs +134 -136
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +134 -136
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +60 -60
- package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/custom_auth/CustomAuthConstants.d.ts +3 -1
- package/lib/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
- package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +2 -0
- package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
- package/lib/types/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
- package/lib/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +27 -0
- package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
- package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
- package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
- package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
- package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
- package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
- package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +22 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +36 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +30 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +7 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +7 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +59 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +19 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +1 -0
- package/lib/types/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
- package/lib/types/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
- package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
- package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
- package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts +21 -0
- package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
- package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +20 -0
- package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
- package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +22 -0
- package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
- package/lib/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +21 -0
- package/lib/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -0
- package/lib/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +14 -0
- package/lib/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +1 -0
- package/lib/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +23 -0
- package/lib/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +4 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +7 -2
- package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +21 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +26 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +2 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
- package/lib/types/custom_auth/core/telemetry/PublicApiId.d.ts +4 -0
- package/lib/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
- package/lib/types/custom_auth/index.d.ts +11 -3
- package/lib/types/custom_auth/index.d.ts.map +1 -1
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
- package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
- package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +14 -13
- package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +13 -0
- package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
- package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
- package/lib/types/naa/TokenRequest.d.ts +1 -0
- package/lib/types/naa/TokenRequest.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/controllers/NestedAppAuthController.ts +41 -23
- package/src/controllers/StandardController.ts +97 -79
- package/src/custom_auth/CustomAuthConstants.ts +2 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +62 -14
- package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +22 -1
- package/src/custom_auth/core/auth_flow/AuthFlowResultBase.ts +14 -0
- package/src/custom_auth/core/auth_flow/AuthFlowState.ts +1 -1
- package/src/custom_auth/core/auth_flow/jit/AuthMethodDetails.ts +21 -0
- package/src/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.ts +40 -0
- package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts +79 -0
- package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts +64 -0
- package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.ts +8 -0
- package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.ts +8 -0
- package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts +260 -0
- package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.ts +30 -0
- package/src/custom_auth/core/auth_flow/mfa/error_type/MfaError.ts +32 -0
- package/src/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.ts +59 -0
- package/src/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.ts +52 -0
- package/src/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.ts +11 -0
- package/src/custom_auth/core/auth_flow/mfa/state/MfaFailedState.ts +11 -0
- package/src/custom_auth/core/auth_flow/mfa/state/MfaState.ts +188 -0
- package/src/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.ts +28 -0
- package/src/custom_auth/core/error/MsalCustomAuthError.ts +2 -5
- package/src/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.ts +46 -0
- package/src/custom_auth/core/interaction_client/jit/JitClient.ts +165 -0
- package/src/custom_auth/core/interaction_client/jit/parameter/JitParams.ts +27 -0
- package/src/custom_auth/core/interaction_client/jit/result/JitActionResult.ts +47 -0
- package/src/custom_auth/core/interaction_client/mfa/MfaClient.ts +148 -0
- package/src/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.ts +20 -0
- package/src/custom_auth/core/interaction_client/mfa/result/MfaActionResult.ts +48 -0
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts +7 -0
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +5 -0
- package/src/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.ts +2 -0
- package/src/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.ts +95 -0
- package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +29 -2
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts +26 -1
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.ts +32 -0
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.ts +2 -0
- package/src/custom_auth/core/telemetry/PublicApiId.ts +8 -0
- package/src/custom_auth/index.ts +35 -4
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.ts +2 -0
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.ts +1 -0
- package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.ts +2 -0
- package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +14 -1
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +17 -2
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +30 -2
- package/src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts +23 -12
- package/src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts +50 -9
- package/src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts +50 -12
- package/src/custom_auth/sign_in/auth_flow/state/SignInStateParameters.ts +2 -0
- package/src/custom_auth/sign_in/interaction_client/SignInClient.ts +166 -82
- package/src/custom_auth/sign_in/interaction_client/result/SignInActionResult.ts +31 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.ts +1 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.ts +4 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.ts +2 -0
- package/src/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.ts +2 -0
- package/src/naa/TokenRequest.ts +1 -0
- package/src/packageMetadata.ts +1 -1
- package/src/telemetry/BrowserPerformanceClient.ts +5 -2
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs +0 -24
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs.map +0 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
- package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
- package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
- package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.ts +0 -43
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { CustomAuthInteractionClientBase } from "../CustomAuthInteractionClientBase.js";
|
|
7
|
+
import {
|
|
8
|
+
MfaRequestChallengeParams,
|
|
9
|
+
MfaSubmitChallengeParams,
|
|
10
|
+
} from "./parameter/MfaClientParameters.js";
|
|
11
|
+
import {
|
|
12
|
+
MfaVerificationRequiredResult,
|
|
13
|
+
MfaCompletedResult,
|
|
14
|
+
createMfaVerificationRequiredResult,
|
|
15
|
+
createMfaCompletedResult,
|
|
16
|
+
} from "./result/MfaActionResult.js";
|
|
17
|
+
import {
|
|
18
|
+
DefaultCustomAuthApiCodeLength,
|
|
19
|
+
ChallengeType,
|
|
20
|
+
GrantType,
|
|
21
|
+
} from "../../../CustomAuthConstants.js";
|
|
22
|
+
import * as PublicApiId from "../../telemetry/PublicApiId.js";
|
|
23
|
+
import {
|
|
24
|
+
SignInChallengeRequest,
|
|
25
|
+
SignInOobTokenRequest,
|
|
26
|
+
} from "../../network_client/custom_auth_api/types/ApiRequestTypes.js";
|
|
27
|
+
import { ensureArgumentIsNotEmptyString } from "../../utils/ArgumentValidator.js";
|
|
28
|
+
import { CustomAuthApiError } from "../../error/CustomAuthApiError.js";
|
|
29
|
+
import * as CustomAuthApiErrorCode from "../../network_client/custom_auth_api/types/ApiErrorCodes.js";
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* MFA client for handling multi-factor authentication flows.
|
|
33
|
+
*/
|
|
34
|
+
export class MfaClient extends CustomAuthInteractionClientBase {
|
|
35
|
+
/**
|
|
36
|
+
* Requests an MFA challenge to be sent to the user.
|
|
37
|
+
* @param parameters The parameters for requesting the challenge.
|
|
38
|
+
* @returns Promise that resolves to either MfaVerificationRequiredResult.
|
|
39
|
+
*/
|
|
40
|
+
async requestChallenge(
|
|
41
|
+
parameters: MfaRequestChallengeParams
|
|
42
|
+
): Promise<MfaVerificationRequiredResult> {
|
|
43
|
+
const apiId = PublicApiId.MFA_REQUEST_CHALLENGE;
|
|
44
|
+
const telemetryManager = this.initializeServerTelemetryManager(apiId);
|
|
45
|
+
|
|
46
|
+
this.logger.verbose(
|
|
47
|
+
"Calling challenge endpoint for MFA.",
|
|
48
|
+
parameters.correlationId
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
const challengeReq: SignInChallengeRequest = {
|
|
52
|
+
challenge_type: this.getChallengeTypes(parameters.challengeType),
|
|
53
|
+
continuation_token: parameters.continuationToken,
|
|
54
|
+
id: parameters.authMethodId,
|
|
55
|
+
correlationId: parameters.correlationId,
|
|
56
|
+
telemetryManager: telemetryManager,
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const challengeResponse =
|
|
60
|
+
await this.customAuthApiClient.signInApi.requestChallenge(
|
|
61
|
+
challengeReq
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
this.logger.verbose(
|
|
65
|
+
"Challenge endpoint called for MFA.",
|
|
66
|
+
parameters.correlationId
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
if (challengeResponse.challenge_type === ChallengeType.OOB) {
|
|
70
|
+
// Verification required - code will be sent
|
|
71
|
+
return createMfaVerificationRequiredResult({
|
|
72
|
+
correlationId: challengeResponse.correlation_id,
|
|
73
|
+
continuationToken: challengeResponse.continuation_token ?? "",
|
|
74
|
+
challengeChannel: challengeResponse.challenge_channel ?? "",
|
|
75
|
+
challengeTargetLabel:
|
|
76
|
+
challengeResponse.challenge_target_label ?? "",
|
|
77
|
+
codeLength:
|
|
78
|
+
challengeResponse.code_length ??
|
|
79
|
+
DefaultCustomAuthApiCodeLength,
|
|
80
|
+
bindingMethod: challengeResponse.binding_method ?? "",
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
this.logger.error(
|
|
85
|
+
`Unsupported challenge type '${challengeResponse.challenge_type}' for MFA.`,
|
|
86
|
+
parameters.correlationId
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
throw new CustomAuthApiError(
|
|
90
|
+
CustomAuthApiErrorCode.UNSUPPORTED_CHALLENGE_TYPE,
|
|
91
|
+
`Unsupported challenge type '${challengeResponse.challenge_type}'.`,
|
|
92
|
+
challengeResponse.correlation_id
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Submits the MFA challenge response (e.g., OTP code).
|
|
98
|
+
* @param parameters The parameters for submitting the challenge.
|
|
99
|
+
* @returns Promise that resolves to MfaCompletedResult.
|
|
100
|
+
*/
|
|
101
|
+
async submitChallenge(
|
|
102
|
+
parameters: MfaSubmitChallengeParams
|
|
103
|
+
): Promise<MfaCompletedResult> {
|
|
104
|
+
ensureArgumentIsNotEmptyString(
|
|
105
|
+
"parameters.challenge",
|
|
106
|
+
parameters.challenge,
|
|
107
|
+
parameters.correlationId
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
const apiId = PublicApiId.MFA_SUBMIT_CHALLENGE;
|
|
111
|
+
const telemetryManager = this.initializeServerTelemetryManager(apiId);
|
|
112
|
+
const scopes = this.getScopes(parameters.scopes);
|
|
113
|
+
|
|
114
|
+
const request: SignInOobTokenRequest = {
|
|
115
|
+
continuation_token: parameters.continuationToken,
|
|
116
|
+
oob: parameters.challenge,
|
|
117
|
+
grant_type: GrantType.MFA_OOB,
|
|
118
|
+
scope: scopes.join(" "),
|
|
119
|
+
correlationId: parameters.correlationId,
|
|
120
|
+
telemetryManager: telemetryManager,
|
|
121
|
+
...(parameters.claims && {
|
|
122
|
+
claims: parameters.claims,
|
|
123
|
+
}),
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
this.logger.verbose(
|
|
127
|
+
"Calling token endpoint for MFA challenge submission.",
|
|
128
|
+
parameters.correlationId
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
const tokenResponse =
|
|
132
|
+
await this.customAuthApiClient.signInApi.requestTokensWithOob(
|
|
133
|
+
request
|
|
134
|
+
);
|
|
135
|
+
|
|
136
|
+
// Save tokens and create authentication result
|
|
137
|
+
const result = await this.handleTokenResponse(
|
|
138
|
+
tokenResponse,
|
|
139
|
+
scopes,
|
|
140
|
+
tokenResponse.correlation_id ?? parameters.correlationId
|
|
141
|
+
);
|
|
142
|
+
|
|
143
|
+
return createMfaCompletedResult({
|
|
144
|
+
correlationId: parameters.correlationId,
|
|
145
|
+
authenticationResult: result,
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface MfaClientParametersBase {
|
|
7
|
+
correlationId: string;
|
|
8
|
+
continuationToken: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface MfaRequestChallengeParams extends MfaClientParametersBase {
|
|
12
|
+
challengeType: string[];
|
|
13
|
+
authMethodId: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface MfaSubmitChallengeParams extends MfaClientParametersBase {
|
|
17
|
+
challenge: string;
|
|
18
|
+
scopes: string[];
|
|
19
|
+
claims?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { AuthenticationResult } from "../../../../../response/AuthenticationResult.js";
|
|
7
|
+
|
|
8
|
+
interface MfaActionResult {
|
|
9
|
+
type: string;
|
|
10
|
+
correlationId: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface MfaVerificationRequiredResult extends MfaActionResult {
|
|
14
|
+
type: typeof MFA_VERIFICATION_REQUIRED_RESULT_TYPE;
|
|
15
|
+
continuationToken: string;
|
|
16
|
+
challengeChannel: string;
|
|
17
|
+
challengeTargetLabel: string;
|
|
18
|
+
codeLength: number;
|
|
19
|
+
bindingMethod: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface MfaCompletedResult extends MfaActionResult {
|
|
23
|
+
type: typeof MFA_COMPLETED_RESULT_TYPE;
|
|
24
|
+
authenticationResult: AuthenticationResult;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Result type constants
|
|
28
|
+
export const MFA_VERIFICATION_REQUIRED_RESULT_TYPE =
|
|
29
|
+
"MfaVerificationRequiredResult";
|
|
30
|
+
export const MFA_COMPLETED_RESULT_TYPE = "MfaCompletedResult";
|
|
31
|
+
|
|
32
|
+
export function createMfaVerificationRequiredResult(
|
|
33
|
+
input: Omit<MfaVerificationRequiredResult, "type">
|
|
34
|
+
): MfaVerificationRequiredResult {
|
|
35
|
+
return {
|
|
36
|
+
type: MFA_VERIFICATION_REQUIRED_RESULT_TYPE,
|
|
37
|
+
...input,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function createMfaCompletedResult(
|
|
42
|
+
input: Omit<MfaCompletedResult, "type">
|
|
43
|
+
): MfaCompletedResult {
|
|
44
|
+
return {
|
|
45
|
+
type: MFA_COMPLETED_RESULT_TYPE,
|
|
46
|
+
...input,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { ResetPasswordApiClient } from "./ResetPasswordApiClient.js";
|
|
7
7
|
import { SignupApiClient } from "./SignupApiClient.js";
|
|
8
8
|
import { SignInApiClient } from "./SignInApiClient.js";
|
|
9
|
+
import { RegisterApiClient } from "./RegisterApiClient.js";
|
|
9
10
|
import { ICustomAuthApiClient } from "./ICustomAuthApiClient.js";
|
|
10
11
|
import { IHttpClient } from "../http_client/IHttpClient.js";
|
|
11
12
|
|
|
@@ -13,6 +14,7 @@ export class CustomAuthApiClient implements ICustomAuthApiClient {
|
|
|
13
14
|
signInApi: SignInApiClient;
|
|
14
15
|
signUpApi: SignupApiClient;
|
|
15
16
|
resetPasswordApi: ResetPasswordApiClient;
|
|
17
|
+
registerApi: RegisterApiClient;
|
|
16
18
|
|
|
17
19
|
constructor(
|
|
18
20
|
customAuthApiBaseUrl: string,
|
|
@@ -42,5 +44,10 @@ export class CustomAuthApiClient implements ICustomAuthApiClient {
|
|
|
42
44
|
capabilities,
|
|
43
45
|
customAuthApiQueryParams
|
|
44
46
|
);
|
|
47
|
+
this.registerApi = new RegisterApiClient(
|
|
48
|
+
customAuthApiBaseUrl,
|
|
49
|
+
clientId,
|
|
50
|
+
httpClient
|
|
51
|
+
);
|
|
45
52
|
}
|
|
46
53
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
export const SIGNIN_INITIATE = "/oauth2/v2.0/initiate";
|
|
7
7
|
export const SIGNIN_CHALLENGE = "/oauth2/v2.0/challenge";
|
|
8
8
|
export const SIGNIN_TOKEN = "/oauth2/v2.0/token";
|
|
9
|
+
export const SIGNIN_INTROSPECT = "/oauth2/v2.0/introspect";
|
|
9
10
|
|
|
10
11
|
export const SIGNUP_START = "/signup/v1.0/start";
|
|
11
12
|
export const SIGNUP_CHALLENGE = "/signup/v1.0/challenge";
|
|
@@ -16,3 +17,7 @@ export const RESET_PWD_CHALLENGE = "/resetpassword/v1.0/challenge";
|
|
|
16
17
|
export const RESET_PWD_CONTINUE = "/resetpassword/v1.0/continue";
|
|
17
18
|
export const RESET_PWD_SUBMIT = "/resetpassword/v1.0/submit";
|
|
18
19
|
export const RESET_PWD_POLL = "/resetpassword/v1.0/poll_completion";
|
|
20
|
+
|
|
21
|
+
export const REGISTER_INTROSPECT = "/register/v1.0/introspect";
|
|
22
|
+
export const REGISTER_CHALLENGE = "/register/v1.0/challenge";
|
|
23
|
+
export const REGISTER_CONTINUE = "/register/v1.0/continue";
|
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
import { ResetPasswordApiClient } from "./ResetPasswordApiClient.js";
|
|
7
7
|
import { SignupApiClient } from "./SignupApiClient.js";
|
|
8
8
|
import { SignInApiClient } from "./SignInApiClient.js";
|
|
9
|
+
import { RegisterApiClient } from "./RegisterApiClient.js";
|
|
9
10
|
export interface ICustomAuthApiClient {
|
|
10
11
|
signInApi: SignInApiClient;
|
|
11
12
|
signUpApi: SignupApiClient;
|
|
12
13
|
resetPasswordApi: ResetPasswordApiClient;
|
|
14
|
+
registerApi: RegisterApiClient;
|
|
13
15
|
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { BaseApiClient } from "./BaseApiClient.js";
|
|
7
|
+
import * as CustomAuthApiEndpoint from "./CustomAuthApiEndpoint.js";
|
|
8
|
+
import {
|
|
9
|
+
RegisterIntrospectRequest,
|
|
10
|
+
RegisterChallengeRequest,
|
|
11
|
+
RegisterContinueRequest,
|
|
12
|
+
} from "./types/ApiRequestTypes.js";
|
|
13
|
+
import {
|
|
14
|
+
RegisterIntrospectResponse,
|
|
15
|
+
RegisterChallengeResponse,
|
|
16
|
+
RegisterContinueResponse,
|
|
17
|
+
} from "./types/ApiResponseTypes.js";
|
|
18
|
+
|
|
19
|
+
export class RegisterApiClient extends BaseApiClient {
|
|
20
|
+
/**
|
|
21
|
+
* Gets available authentication methods for registration
|
|
22
|
+
*/
|
|
23
|
+
async introspect(
|
|
24
|
+
params: RegisterIntrospectRequest
|
|
25
|
+
): Promise<RegisterIntrospectResponse> {
|
|
26
|
+
const result = await this.request<RegisterIntrospectResponse>(
|
|
27
|
+
CustomAuthApiEndpoint.REGISTER_INTROSPECT,
|
|
28
|
+
{
|
|
29
|
+
continuation_token: params.continuation_token,
|
|
30
|
+
},
|
|
31
|
+
params.telemetryManager,
|
|
32
|
+
params.correlationId
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
this.ensureContinuationTokenIsValid(
|
|
36
|
+
result.continuation_token,
|
|
37
|
+
params.correlationId
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
return result;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Sends challenge to specified authentication method
|
|
45
|
+
*/
|
|
46
|
+
async challenge(
|
|
47
|
+
params: RegisterChallengeRequest
|
|
48
|
+
): Promise<RegisterChallengeResponse> {
|
|
49
|
+
const result = await this.request<RegisterChallengeResponse>(
|
|
50
|
+
CustomAuthApiEndpoint.REGISTER_CHALLENGE,
|
|
51
|
+
{
|
|
52
|
+
continuation_token: params.continuation_token,
|
|
53
|
+
challenge_type: params.challenge_type,
|
|
54
|
+
challenge_target: params.challenge_target,
|
|
55
|
+
...(params.challenge_channel && {
|
|
56
|
+
challenge_channel: params.challenge_channel,
|
|
57
|
+
}),
|
|
58
|
+
},
|
|
59
|
+
params.telemetryManager,
|
|
60
|
+
params.correlationId
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
this.ensureContinuationTokenIsValid(
|
|
64
|
+
result.continuation_token,
|
|
65
|
+
params.correlationId
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
return result;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Submits challenge response and continues registration
|
|
73
|
+
*/
|
|
74
|
+
async continue(
|
|
75
|
+
params: RegisterContinueRequest
|
|
76
|
+
): Promise<RegisterContinueResponse> {
|
|
77
|
+
const result = await this.request<RegisterContinueResponse>(
|
|
78
|
+
CustomAuthApiEndpoint.REGISTER_CONTINUE,
|
|
79
|
+
{
|
|
80
|
+
continuation_token: params.continuation_token,
|
|
81
|
+
grant_type: params.grant_type,
|
|
82
|
+
...(params.oob && { oob: params.oob }),
|
|
83
|
+
},
|
|
84
|
+
params.telemetryManager,
|
|
85
|
+
params.correlationId
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
this.ensureContinuationTokenIsValid(
|
|
89
|
+
result.continuation_token,
|
|
90
|
+
params.correlationId
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
return result;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -14,12 +14,14 @@ import {
|
|
|
14
14
|
SignInChallengeRequest,
|
|
15
15
|
SignInContinuationTokenRequest,
|
|
16
16
|
SignInInitiateRequest,
|
|
17
|
+
SignInIntrospectRequest,
|
|
17
18
|
SignInOobTokenRequest,
|
|
18
19
|
SignInPasswordTokenRequest,
|
|
19
20
|
} from "./types/ApiRequestTypes.js";
|
|
20
21
|
import {
|
|
21
22
|
SignInChallengeResponse,
|
|
22
23
|
SignInInitiateResponse,
|
|
24
|
+
SignInIntrospectResponse,
|
|
23
25
|
SignInTokenResponse,
|
|
24
26
|
} from "./types/ApiResponseTypes.js";
|
|
25
27
|
|
|
@@ -84,6 +86,7 @@ export class SignInApiClient extends BaseApiClient {
|
|
|
84
86
|
{
|
|
85
87
|
continuation_token: params.continuation_token,
|
|
86
88
|
challenge_type: params.challenge_type,
|
|
89
|
+
...(params.id && { id: params.id }),
|
|
87
90
|
},
|
|
88
91
|
params.telemetryManager,
|
|
89
92
|
params.correlationId
|
|
@@ -127,7 +130,7 @@ export class SignInApiClient extends BaseApiClient {
|
|
|
127
130
|
continuation_token: params.continuation_token,
|
|
128
131
|
scope: params.scope,
|
|
129
132
|
oob: params.oob,
|
|
130
|
-
grant_type:
|
|
133
|
+
grant_type: params.grant_type,
|
|
131
134
|
...(params.claims && { claims: params.claims }),
|
|
132
135
|
},
|
|
133
136
|
params.telemetryManager,
|
|
@@ -141,15 +144,39 @@ export class SignInApiClient extends BaseApiClient {
|
|
|
141
144
|
return this.requestTokens(
|
|
142
145
|
{
|
|
143
146
|
continuation_token: params.continuation_token,
|
|
144
|
-
username: params.username,
|
|
145
147
|
scope: params.scope,
|
|
146
148
|
grant_type: GrantType.CONTINUATION_TOKEN,
|
|
147
149
|
client_info: true,
|
|
148
150
|
...(params.claims && { claims: params.claims }),
|
|
151
|
+
...(params.username && { username: params.username }),
|
|
152
|
+
},
|
|
153
|
+
params.telemetryManager,
|
|
154
|
+
params.correlationId
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Requests available authentication methods for MFA
|
|
160
|
+
* @param continuationToken Token from previous response
|
|
161
|
+
*/
|
|
162
|
+
async requestAuthMethods(
|
|
163
|
+
params: SignInIntrospectRequest
|
|
164
|
+
): Promise<SignInIntrospectResponse> {
|
|
165
|
+
const result = await this.request<SignInIntrospectResponse>(
|
|
166
|
+
CustomAuthApiEndpoint.SIGNIN_INTROSPECT,
|
|
167
|
+
{
|
|
168
|
+
continuation_token: params.continuation_token,
|
|
149
169
|
},
|
|
150
170
|
params.telemetryManager,
|
|
151
171
|
params.correlationId
|
|
152
172
|
);
|
|
173
|
+
|
|
174
|
+
this.ensureContinuationTokenIsValid(
|
|
175
|
+
result.continuation_token,
|
|
176
|
+
params.correlationId
|
|
177
|
+
);
|
|
178
|
+
|
|
179
|
+
return result;
|
|
153
180
|
}
|
|
154
181
|
|
|
155
182
|
private async requestTokens(
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import { GrantType } from "../../../../CustomAuthConstants.js";
|
|
6
7
|
import { ApiRequestBase } from "./ApiTypesBase.js";
|
|
7
8
|
|
|
8
9
|
/* Sign-in API request types */
|
|
@@ -14,6 +15,7 @@ export interface SignInInitiateRequest extends ApiRequestBase {
|
|
|
14
15
|
export interface SignInChallengeRequest extends ApiRequestBase {
|
|
15
16
|
challenge_type: string;
|
|
16
17
|
continuation_token: string;
|
|
18
|
+
id?: string;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
interface SignInTokenRequestBase extends ApiRequestBase {
|
|
@@ -28,10 +30,15 @@ export interface SignInPasswordTokenRequest extends SignInTokenRequestBase {
|
|
|
28
30
|
|
|
29
31
|
export interface SignInOobTokenRequest extends SignInTokenRequestBase {
|
|
30
32
|
oob: string;
|
|
33
|
+
grant_type: typeof GrantType.OOB | typeof GrantType.MFA_OOB;
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
export interface SignInContinuationTokenRequest extends SignInTokenRequestBase {
|
|
34
|
-
username
|
|
37
|
+
username?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface SignInIntrospectRequest extends ApiRequestBase {
|
|
41
|
+
continuation_token: string;
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
/* Sign-up API request types */
|
|
@@ -90,3 +97,21 @@ export interface ResetPasswordSubmitRequest extends ApiRequestBase {
|
|
|
90
97
|
export interface ResetPasswordPollCompletionRequest extends ApiRequestBase {
|
|
91
98
|
continuation_token: string;
|
|
92
99
|
}
|
|
100
|
+
|
|
101
|
+
/* Register API request types */
|
|
102
|
+
export interface RegisterIntrospectRequest extends ApiRequestBase {
|
|
103
|
+
continuation_token: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface RegisterChallengeRequest extends ApiRequestBase {
|
|
107
|
+
continuation_token: string;
|
|
108
|
+
challenge_type: string;
|
|
109
|
+
challenge_target: string;
|
|
110
|
+
challenge_channel?: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface RegisterContinueRequest extends ApiRequestBase {
|
|
114
|
+
continuation_token: string;
|
|
115
|
+
grant_type: string;
|
|
116
|
+
oob?: string;
|
|
117
|
+
}
|
|
@@ -38,6 +38,18 @@ export interface SignInTokenResponse extends ApiResponseBase {
|
|
|
38
38
|
ext_expires_in?: number;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
export interface AuthenticationMethod {
|
|
42
|
+
id: string;
|
|
43
|
+
challenge_type: string;
|
|
44
|
+
challenge_channel: string;
|
|
45
|
+
login_hint?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface SignInIntrospectResponse extends ApiResponseBase {
|
|
49
|
+
continuation_token: string;
|
|
50
|
+
methods: AuthenticationMethod[];
|
|
51
|
+
}
|
|
52
|
+
|
|
41
53
|
/* Sign-up API response types */
|
|
42
54
|
export type SignUpStartResponse = InitiateResponse;
|
|
43
55
|
|
|
@@ -64,3 +76,23 @@ export interface ResetPasswordPollCompletionResponse
|
|
|
64
76
|
extends ContinuousResponse {
|
|
65
77
|
status: string;
|
|
66
78
|
}
|
|
79
|
+
|
|
80
|
+
/* Register API response types */
|
|
81
|
+
export interface RegisterIntrospectResponse extends ApiResponseBase {
|
|
82
|
+
continuation_token: string;
|
|
83
|
+
methods: AuthenticationMethod[];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface RegisterChallengeResponse extends ApiResponseBase {
|
|
87
|
+
continuation_token: string;
|
|
88
|
+
challenge_type: string;
|
|
89
|
+
binding_method: string;
|
|
90
|
+
challenge_target: string;
|
|
91
|
+
challenge_channel: string;
|
|
92
|
+
code_length?: number;
|
|
93
|
+
interval?: number;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface RegisterContinueResponse extends ApiResponseBase {
|
|
97
|
+
continuation_token: string;
|
|
98
|
+
}
|
|
@@ -12,3 +12,5 @@ export const PASSWORD_IS_INVALID = "password_is_invalid";
|
|
|
12
12
|
export const INVALID_OOB_VALUE = "invalid_oob_value";
|
|
13
13
|
export const ATTRIBUTE_VALIATION_FAILED = "attribute_validation_failed";
|
|
14
14
|
export const NATIVEAUTHAPI_DISABLED = "nativeauthapi_disabled";
|
|
15
|
+
export const REGISTRATION_REQUIRED = "registration_required";
|
|
16
|
+
export const MFA_REQUIRED = "mfa_required";
|
|
@@ -35,3 +35,11 @@ export const PASSWORD_RESET_RESEND_CODE = 100044;
|
|
|
35
35
|
export const ACCOUNT_GET_ACCOUNT = 100061;
|
|
36
36
|
export const ACCOUNT_SIGN_OUT = 100062;
|
|
37
37
|
export const ACCOUNT_GET_ACCESS_TOKEN = 100063;
|
|
38
|
+
|
|
39
|
+
// JIT (Just-In-Time) Auth Method Registration
|
|
40
|
+
export const JIT_CHALLENGE_AUTH_METHOD = 100081;
|
|
41
|
+
export const JIT_SUBMIT_CHALLENGE = 100082;
|
|
42
|
+
|
|
43
|
+
// MFA
|
|
44
|
+
export const MFA_REQUEST_CHALLENGE = 100101;
|
|
45
|
+
export const MFA_SUBMIT_CHALLENGE = 100102;
|
package/src/custom_auth/index.ts
CHANGED
|
@@ -20,8 +20,9 @@ export { ICustomAuthPublicClientApplication } from "./ICustomAuthPublicClientApp
|
|
|
20
20
|
// Configuration
|
|
21
21
|
export { CustomAuthConfiguration } from "./configuration/CustomAuthConfiguration.js";
|
|
22
22
|
|
|
23
|
-
//
|
|
23
|
+
// Models
|
|
24
24
|
export { CustomAuthAccountData } from "./get_account/auth_flow/CustomAuthAccountData.js";
|
|
25
|
+
export { AuthenticationMethod } from "./core/network_client/custom_auth_api/types/ApiResponseTypes.js";
|
|
25
26
|
|
|
26
27
|
// Operation Inputs
|
|
27
28
|
export {
|
|
@@ -50,13 +51,18 @@ export {
|
|
|
50
51
|
SignInResult,
|
|
51
52
|
SignInResultState,
|
|
52
53
|
} from "./sign_in/auth_flow/result/SignInResult.js";
|
|
53
|
-
export {
|
|
54
|
+
export {
|
|
55
|
+
SignInSubmitCodeResult,
|
|
56
|
+
SignInSubmitCodeResultState,
|
|
57
|
+
} from "./sign_in/auth_flow/result/SignInSubmitCodeResult.js";
|
|
54
58
|
export {
|
|
55
59
|
SignInResendCodeResult,
|
|
56
60
|
SignInResendCodeResultState,
|
|
57
61
|
} from "./sign_in/auth_flow/result/SignInResendCodeResult.js";
|
|
58
|
-
export {
|
|
59
|
-
|
|
62
|
+
export {
|
|
63
|
+
SignInSubmitPasswordResult,
|
|
64
|
+
SignInSubmitPasswordResultState,
|
|
65
|
+
} from "./sign_in/auth_flow/result/SignInSubmitPasswordResult.js";
|
|
60
66
|
|
|
61
67
|
// Sign-in Errors
|
|
62
68
|
export {
|
|
@@ -181,5 +187,30 @@ export { UnsupportedEnvironmentError } from "./core/error/UnsupportedEnvironment
|
|
|
181
187
|
export { UserAccountAttributeError } from "./core/error/UserAccountAttributeError.js";
|
|
182
188
|
export { UserAlreadySignedInError } from "./core/error/UserAlreadySignedInError.js";
|
|
183
189
|
|
|
190
|
+
// Auth Method Registration State
|
|
191
|
+
export { AuthMethodRegistrationRequiredState } from "./core/auth_flow/jit/state/AuthMethodRegistrationState.js";
|
|
192
|
+
export { AuthMethodVerificationRequiredState } from "./core/auth_flow/jit/state/AuthMethodRegistrationState.js";
|
|
193
|
+
export { AuthMethodRegistrationCompletedState } from "./core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.js";
|
|
194
|
+
export { AuthMethodRegistrationFailedState } from "./core/auth_flow/jit/state/AuthMethodRegistrationFailedState.js";
|
|
195
|
+
|
|
196
|
+
// Auth Method Registration Results
|
|
197
|
+
export {
|
|
198
|
+
AuthMethodRegistrationChallengeMethodResult,
|
|
199
|
+
AuthMethodRegistrationChallengeMethodResultState,
|
|
200
|
+
} from "./core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.js";
|
|
201
|
+
export {
|
|
202
|
+
AuthMethodRegistrationSubmitChallengeResult,
|
|
203
|
+
AuthMethodRegistrationSubmitChallengeResultState,
|
|
204
|
+
} from "./core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.js";
|
|
205
|
+
|
|
206
|
+
// Auth Method Registration Errors
|
|
207
|
+
export {
|
|
208
|
+
AuthMethodRegistrationChallengeMethodError,
|
|
209
|
+
AuthMethodRegistrationSubmitChallengeError,
|
|
210
|
+
} from "./core/auth_flow/jit/error_type/AuthMethodRegistrationError.js";
|
|
211
|
+
|
|
212
|
+
// Auth Method Registration Types
|
|
213
|
+
export { AuthMethodDetails } from "./core/auth_flow/jit/AuthMethodDetails.js";
|
|
214
|
+
|
|
184
215
|
// Components from msal_browser
|
|
185
216
|
export { LogLevel } from "@azure/msal-common/browser";
|
|
@@ -55,6 +55,7 @@ export class ResetPasswordCodeRequiredState extends ResetPasswordState<ResetPass
|
|
|
55
55
|
this.stateParameters.resetPasswordClient,
|
|
56
56
|
signInClient: this.stateParameters.signInClient,
|
|
57
57
|
cacheClient: this.stateParameters.cacheClient,
|
|
58
|
+
jitClient: this.stateParameters.jitClient,
|
|
58
59
|
username: this.stateParameters.username,
|
|
59
60
|
})
|
|
60
61
|
);
|
|
@@ -106,6 +107,7 @@ export class ResetPasswordCodeRequiredState extends ResetPasswordState<ResetPass
|
|
|
106
107
|
this.stateParameters.resetPasswordClient,
|
|
107
108
|
signInClient: this.stateParameters.signInClient,
|
|
108
109
|
cacheClient: this.stateParameters.cacheClient,
|
|
110
|
+
jitClient: this.stateParameters.jitClient,
|
|
109
111
|
username: this.stateParameters.username,
|
|
110
112
|
codeLength: result.codeLength,
|
|
111
113
|
})
|
package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.ts
CHANGED
|
@@ -58,6 +58,7 @@ export class ResetPasswordPasswordRequiredState extends ResetPasswordState<Reset
|
|
|
58
58
|
username: this.stateParameters.username,
|
|
59
59
|
signInClient: this.stateParameters.signInClient,
|
|
60
60
|
cacheClient: this.stateParameters.cacheClient,
|
|
61
|
+
jitClient: this.stateParameters.jitClient,
|
|
61
62
|
signInScenario: SignInScenario.SignInAfterPasswordReset,
|
|
62
63
|
})
|
|
63
64
|
);
|
|
@@ -7,6 +7,7 @@ import { ResetPasswordClient } from "../../interaction_client/ResetPasswordClien
|
|
|
7
7
|
import { SignInClient } from "../../../sign_in/interaction_client/SignInClient.js";
|
|
8
8
|
import { CustomAuthSilentCacheClient } from "../../../get_account/interaction_client/CustomAuthSilentCacheClient.js";
|
|
9
9
|
import { AuthFlowActionRequiredStateParameters } from "../../../core/auth_flow/AuthFlowState.js";
|
|
10
|
+
import { JitClient } from "../../../core/interaction_client/jit/JitClient.js";
|
|
10
11
|
|
|
11
12
|
export interface ResetPasswordStateParameters
|
|
12
13
|
extends AuthFlowActionRequiredStateParameters {
|
|
@@ -14,6 +15,7 @@ export interface ResetPasswordStateParameters
|
|
|
14
15
|
resetPasswordClient: ResetPasswordClient;
|
|
15
16
|
signInClient: SignInClient;
|
|
16
17
|
cacheClient: CustomAuthSilentCacheClient;
|
|
18
|
+
jitClient: JitClient;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export type ResetPasswordPasswordRequiredStateParameters =
|