@azure/msal-browser 4.22.0 → 4.23.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 +2 -1
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.mjs +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.mjs +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 +2 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +3 -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 +1 -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 +6 -1
- 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 +22 -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 +35 -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/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 +27 -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 +127 -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 +21 -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 +31 -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 +31 -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/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 +3 -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 +6 -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.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +3 -2
- 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 +16 -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 +22 -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 +1 -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 +4 -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 +3 -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 +7 -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 +2 -1
- 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 +11 -12
- 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 +50 -30
- 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 +7 -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 +9 -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/utils/BrowserConstants.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.d.ts +2 -1
- package/dist/custom-auth-path/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.mjs.map +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 +2 -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 +1 -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 +22 -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/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 +27 -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 +21 -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 +31 -0
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.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 +3 -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.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -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 +22 -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 +1 -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 +3 -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 +11 -12
- 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 +7 -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.mjs +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.d.ts +2 -1
- package/dist/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/utils/BrowserUtils.mjs +5 -4
- package/dist/utils/BrowserUtils.mjs.map +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 +794 -154
- 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/custom_auth/CustomAuthConstants.d.ts +2 -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 +1 -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 +22 -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/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 +27 -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 +21 -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 +31 -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/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 +3 -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.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -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 +22 -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 +1 -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 +3 -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 +11 -12
- 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 +7 -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/utils/BrowserUtils.d.ts +2 -1
- package/lib/custom-auth-path/types/utils/BrowserUtils.d.ts.map +1 -1
- package/lib/msal-browser.cjs +73 -70
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +73 -70
- 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/custom_auth/CustomAuthConstants.d.ts +2 -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 +1 -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 +22 -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/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 +27 -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 +21 -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 +31 -0
- package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.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 +3 -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.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -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 +22 -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 +1 -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 +3 -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 +11 -12
- 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 +7 -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/utils/BrowserUtils.d.ts +2 -1
- package/lib/types/utils/BrowserUtils.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/controllers/NestedAppAuthController.ts +1 -0
- package/src/custom_auth/CustomAuthConstants.ts +1 -0
- package/src/custom_auth/controller/CustomAuthStandardController.ts +62 -14
- package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +8 -0
- 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 +32 -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/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 +206 -0
- package/src/custom_auth/core/interaction_client/jit/parameter/JitParams.ts +29 -0
- package/src/custom_auth/core/interaction_client/jit/result/JitActionResult.ts +67 -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 +4 -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 +2 -1
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts +20 -1
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.ts +27 -0
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.ts +1 -0
- package/src/custom_auth/core/telemetry/PublicApiId.ts +5 -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 +1 -0
- 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 +85 -83
- package/src/custom_auth/sign_in/interaction_client/result/SignInActionResult.ts +16 -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/utils/BrowserUtils.ts +8 -1
- 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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.23.0 2025-09-17 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -276,7 +276,7 @@ const JsonWebTokenTypes = {
|
|
|
276
276
|
// Token renewal offset default in seconds
|
|
277
277
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
278
278
|
|
|
279
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
279
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
280
280
|
/*
|
|
281
281
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
282
282
|
* Licensed under the MIT License.
|
|
@@ -287,7 +287,7 @@ const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
|
287
287
|
const unexpectedError = "unexpected_error";
|
|
288
288
|
const postRequestFailed$1 = "post_request_failed";
|
|
289
289
|
|
|
290
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
290
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
291
291
|
|
|
292
292
|
/*
|
|
293
293
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -322,7 +322,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
322
322
|
: AuthErrorMessages[code]);
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
325
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
326
326
|
/*
|
|
327
327
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
328
328
|
* Licensed under the MIT License.
|
|
@@ -372,7 +372,7 @@ const missingTenantIdError = "missing_tenant_id_error";
|
|
|
372
372
|
const methodNotImplemented = "method_not_implemented";
|
|
373
373
|
const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
|
|
374
374
|
|
|
375
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
375
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
376
376
|
|
|
377
377
|
/*
|
|
378
378
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -446,7 +446,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
446
446
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
449
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
450
450
|
|
|
451
451
|
/*
|
|
452
452
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -485,7 +485,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
485
485
|
},
|
|
486
486
|
};
|
|
487
487
|
|
|
488
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
488
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
489
489
|
|
|
490
490
|
/*
|
|
491
491
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -676,12 +676,12 @@ class Logger {
|
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
679
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
680
680
|
/* eslint-disable header/header */
|
|
681
681
|
const name$1 = "@azure/msal-common";
|
|
682
682
|
const version$1 = "15.12.0";
|
|
683
683
|
|
|
684
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
684
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
685
685
|
/*
|
|
686
686
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
687
687
|
* Licensed under the MIT License.
|
|
@@ -690,7 +690,7 @@ const AzureCloudInstance = {
|
|
|
690
690
|
// AzureCloudInstance is not specified.
|
|
691
691
|
None: "none"};
|
|
692
692
|
|
|
693
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
693
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
694
694
|
/*
|
|
695
695
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
696
696
|
* Licensed under the MIT License.
|
|
@@ -719,7 +719,7 @@ const authorityMismatch = "authority_mismatch";
|
|
|
719
719
|
const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
|
|
720
720
|
const invalidAuthorizePostBodyParameters = "invalid_authorize_post_body_parameters";
|
|
721
721
|
|
|
722
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
722
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
723
723
|
|
|
724
724
|
/*
|
|
725
725
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -764,7 +764,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
764
764
|
return new ClientConfigurationError(errorCode);
|
|
765
765
|
}
|
|
766
766
|
|
|
767
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
767
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
768
768
|
/*
|
|
769
769
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
770
770
|
* Licensed under the MIT License.
|
|
@@ -861,7 +861,7 @@ class StringUtils {
|
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
863
|
|
|
864
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
864
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
865
865
|
|
|
866
866
|
/*
|
|
867
867
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1056,7 +1056,7 @@ class ScopeSet {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
1058
1058
|
|
|
1059
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
1059
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
1060
1060
|
/*
|
|
1061
1061
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1062
1062
|
* Licensed under the MIT License.
|
|
@@ -1138,7 +1138,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
1138
1138
|
return updatedAccountInfo;
|
|
1139
1139
|
}
|
|
1140
1140
|
|
|
1141
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
1141
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
1142
1142
|
|
|
1143
1143
|
/*
|
|
1144
1144
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1199,7 +1199,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
1201
|
|
|
1202
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
1202
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
1203
1203
|
|
|
1204
1204
|
/*
|
|
1205
1205
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1315,7 +1315,7 @@ function normalizeUrlForComparison(url) {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
|
|
1318
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
1318
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
1319
1319
|
|
|
1320
1320
|
/*
|
|
1321
1321
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1479,7 +1479,7 @@ class UrlString {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
1481
|
|
|
1482
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
1482
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
1483
1483
|
|
|
1484
1484
|
/*
|
|
1485
1485
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1618,7 +1618,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1618
1618
|
return null;
|
|
1619
1619
|
}
|
|
1620
1620
|
|
|
1621
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
1621
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
1622
1622
|
/*
|
|
1623
1623
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1624
1624
|
* Licensed under the MIT License.
|
|
@@ -1626,7 +1626,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1626
1626
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
1627
1627
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
1628
1628
|
|
|
1629
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
1629
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
1630
1630
|
|
|
1631
1631
|
/*
|
|
1632
1632
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1671,7 +1671,7 @@ function createCacheError(e) {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
1673
|
|
|
1674
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
1674
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
1675
1675
|
|
|
1676
1676
|
/*
|
|
1677
1677
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2779,7 +2779,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
2779
2779
|
}
|
|
2780
2780
|
}
|
|
2781
2781
|
|
|
2782
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
2782
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
2783
2783
|
/*
|
|
2784
2784
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2785
2785
|
* Licensed under the MIT License.
|
|
@@ -2803,7 +2803,7 @@ const ProtocolMode = {
|
|
|
2803
2803
|
EAR: "EAR",
|
|
2804
2804
|
};
|
|
2805
2805
|
|
|
2806
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
2806
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
2807
2807
|
/*
|
|
2808
2808
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2809
2809
|
* Licensed under the MIT License.
|
|
@@ -3070,7 +3070,7 @@ const PerformanceEvents = {
|
|
|
3070
3070
|
const PerformanceEventStatus = {
|
|
3071
3071
|
InProgress: 1};
|
|
3072
3072
|
|
|
3073
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
3073
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
3074
3074
|
|
|
3075
3075
|
/*
|
|
3076
3076
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3149,7 +3149,7 @@ class StubPerformanceClient {
|
|
|
3149
3149
|
}
|
|
3150
3150
|
}
|
|
3151
3151
|
|
|
3152
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
3152
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
3153
3153
|
|
|
3154
3154
|
/*
|
|
3155
3155
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3249,7 +3249,7 @@ function isOidcProtocolMode(config) {
|
|
|
3249
3249
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3250
3250
|
}
|
|
3251
3251
|
|
|
3252
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
3252
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
3253
3253
|
/*
|
|
3254
3254
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3255
3255
|
* Licensed under the MIT License.
|
|
@@ -3259,7 +3259,7 @@ const CcsCredentialType = {
|
|
|
3259
3259
|
UPN: "UPN",
|
|
3260
3260
|
};
|
|
3261
3261
|
|
|
3262
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
3262
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
3263
3263
|
|
|
3264
3264
|
/*
|
|
3265
3265
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3299,7 +3299,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
3299
3299
|
};
|
|
3300
3300
|
}
|
|
3301
3301
|
|
|
3302
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
3302
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
3303
3303
|
/*
|
|
3304
3304
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3305
3305
|
* Licensed under the MIT License.
|
|
@@ -3349,7 +3349,7 @@ const INSTANCE_AWARE = "instance_aware";
|
|
|
3349
3349
|
const EAR_JWK = "ear_jwk";
|
|
3350
3350
|
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
3351
3351
|
|
|
3352
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
3352
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
3353
3353
|
|
|
3354
3354
|
/*
|
|
3355
3355
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3729,7 +3729,7 @@ function addPostBodyParameters(parameters, bodyParameters) {
|
|
|
3729
3729
|
});
|
|
3730
3730
|
}
|
|
3731
3731
|
|
|
3732
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
3732
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
3733
3733
|
/*
|
|
3734
3734
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3735
3735
|
* Licensed under the MIT License.
|
|
@@ -3744,7 +3744,7 @@ const AuthorityType = {
|
|
|
3744
3744
|
Ciam: 3,
|
|
3745
3745
|
};
|
|
3746
3746
|
|
|
3747
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
3747
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
3748
3748
|
/*
|
|
3749
3749
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3750
3750
|
* Licensed under the MIT License.
|
|
@@ -3756,7 +3756,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
3756
3756
|
response.hasOwnProperty("jwks_uri"));
|
|
3757
3757
|
}
|
|
3758
3758
|
|
|
3759
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
3759
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
3760
3760
|
/*
|
|
3761
3761
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3762
3762
|
* Licensed under the MIT License.
|
|
@@ -3766,7 +3766,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
3766
3766
|
response.hasOwnProperty("metadata"));
|
|
3767
3767
|
}
|
|
3768
3768
|
|
|
3769
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
3769
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
3770
3770
|
/*
|
|
3771
3771
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3772
3772
|
* Licensed under the MIT License.
|
|
@@ -3776,7 +3776,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
3776
3776
|
response.hasOwnProperty("error_description"));
|
|
3777
3777
|
}
|
|
3778
3778
|
|
|
3779
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
3779
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
3780
3780
|
/*
|
|
3781
3781
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3782
3782
|
* Licensed under the MIT License.
|
|
@@ -3872,7 +3872,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
3872
3872
|
};
|
|
3873
3873
|
};
|
|
3874
3874
|
|
|
3875
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
3875
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
3876
3876
|
|
|
3877
3877
|
/*
|
|
3878
3878
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3978,7 +3978,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
3978
3978
|
},
|
|
3979
3979
|
};
|
|
3980
3980
|
|
|
3981
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
3981
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
3982
3982
|
/*
|
|
3983
3983
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3984
3984
|
* Licensed under the MIT License.
|
|
@@ -4043,7 +4043,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
4043
4043
|
return cachedAtSec > nowSeconds();
|
|
4044
4044
|
}
|
|
4045
4045
|
|
|
4046
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
4046
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
4047
4047
|
|
|
4048
4048
|
/*
|
|
4049
4049
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4305,7 +4305,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
4305
4305
|
return metadata.expiresAt <= nowSeconds();
|
|
4306
4306
|
}
|
|
4307
4307
|
|
|
4308
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
4308
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
4309
4309
|
|
|
4310
4310
|
/*
|
|
4311
4311
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5144,7 +5144,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
5144
5144
|
};
|
|
5145
5145
|
}
|
|
5146
5146
|
|
|
5147
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5147
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5148
5148
|
|
|
5149
5149
|
/*
|
|
5150
5150
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5175,7 +5175,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
5175
5175
|
}
|
|
5176
5176
|
}
|
|
5177
5177
|
|
|
5178
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5178
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5179
5179
|
|
|
5180
5180
|
/*
|
|
5181
5181
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5194,7 +5194,7 @@ class ServerError extends AuthError {
|
|
|
5194
5194
|
}
|
|
5195
5195
|
}
|
|
5196
5196
|
|
|
5197
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5197
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5198
5198
|
/*
|
|
5199
5199
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5200
5200
|
* Licensed under the MIT License.
|
|
@@ -5215,7 +5215,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
5215
5215
|
};
|
|
5216
5216
|
}
|
|
5217
5217
|
|
|
5218
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5218
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5219
5219
|
|
|
5220
5220
|
/*
|
|
5221
5221
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5302,7 +5302,7 @@ class ThrottlingUtils {
|
|
|
5302
5302
|
}
|
|
5303
5303
|
}
|
|
5304
5304
|
|
|
5305
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5305
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5306
5306
|
|
|
5307
5307
|
/*
|
|
5308
5308
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5333,7 +5333,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
5333
5333
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
5334
5334
|
}
|
|
5335
5335
|
|
|
5336
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5336
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5337
5337
|
|
|
5338
5338
|
/*
|
|
5339
5339
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5481,7 +5481,7 @@ class BaseClient {
|
|
|
5481
5481
|
}
|
|
5482
5482
|
}
|
|
5483
5483
|
|
|
5484
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5484
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5485
5485
|
/*
|
|
5486
5486
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5487
5487
|
* Licensed under the MIT License.
|
|
@@ -5503,7 +5503,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
5503
5503
|
return null;
|
|
5504
5504
|
}
|
|
5505
5505
|
|
|
5506
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5506
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5507
5507
|
|
|
5508
5508
|
/*
|
|
5509
5509
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5718,7 +5718,7 @@ class AccountEntity {
|
|
|
5718
5718
|
}
|
|
5719
5719
|
}
|
|
5720
5720
|
|
|
5721
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5721
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5722
5722
|
/*
|
|
5723
5723
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5724
5724
|
* Licensed under the MIT License.
|
|
@@ -5734,7 +5734,7 @@ const consentRequired = "consent_required";
|
|
|
5734
5734
|
const loginRequired = "login_required";
|
|
5735
5735
|
const badToken = "bad_token";
|
|
5736
5736
|
|
|
5737
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5737
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5738
5738
|
|
|
5739
5739
|
/*
|
|
5740
5740
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5806,7 +5806,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
5806
5806
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
5807
5807
|
}
|
|
5808
5808
|
|
|
5809
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5809
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5810
5810
|
|
|
5811
5811
|
/*
|
|
5812
5812
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5878,7 +5878,7 @@ class ProtocolUtils {
|
|
|
5878
5878
|
}
|
|
5879
5879
|
}
|
|
5880
5880
|
|
|
5881
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5881
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5882
5882
|
|
|
5883
5883
|
/*
|
|
5884
5884
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5960,7 +5960,7 @@ class PopTokenGenerator {
|
|
|
5960
5960
|
}
|
|
5961
5961
|
}
|
|
5962
5962
|
|
|
5963
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5963
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5964
5964
|
/*
|
|
5965
5965
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5966
5966
|
* Licensed under the MIT License.
|
|
@@ -5987,7 +5987,7 @@ class PopTokenGenerator {
|
|
|
5987
5987
|
}
|
|
5988
5988
|
}
|
|
5989
5989
|
|
|
5990
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
5990
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
5991
5991
|
|
|
5992
5992
|
/*
|
|
5993
5993
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6318,7 +6318,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6318
6318
|
return baseAccount;
|
|
6319
6319
|
}
|
|
6320
6320
|
|
|
6321
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
6321
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
6322
6322
|
/*
|
|
6323
6323
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6324
6324
|
* Licensed under the MIT License.
|
|
@@ -6336,7 +6336,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
6336
6336
|
}
|
|
6337
6337
|
}
|
|
6338
6338
|
|
|
6339
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
6339
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
6340
6340
|
|
|
6341
6341
|
/*
|
|
6342
6342
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6571,7 +6571,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
6571
6571
|
}
|
|
6572
6572
|
}
|
|
6573
6573
|
|
|
6574
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
6574
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
6575
6575
|
|
|
6576
6576
|
/*
|
|
6577
6577
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6780,7 +6780,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
6780
6780
|
}
|
|
6781
6781
|
}
|
|
6782
6782
|
|
|
6783
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
6783
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
6784
6784
|
|
|
6785
6785
|
/*
|
|
6786
6786
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6878,7 +6878,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
6878
6878
|
}
|
|
6879
6879
|
}
|
|
6880
6880
|
|
|
6881
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
6881
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
6882
6882
|
|
|
6883
6883
|
/*
|
|
6884
6884
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6893,7 +6893,7 @@ const StubbedNetworkModule = {
|
|
|
6893
6893
|
},
|
|
6894
6894
|
};
|
|
6895
6895
|
|
|
6896
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
6896
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
6897
6897
|
|
|
6898
6898
|
/*
|
|
6899
6899
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7117,7 +7117,7 @@ function extractLoginHint(account) {
|
|
|
7117
7117
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7118
7118
|
}
|
|
7119
7119
|
|
|
7120
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
7120
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
7121
7121
|
|
|
7122
7122
|
/*
|
|
7123
7123
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7380,7 +7380,7 @@ class ServerTelemetryManager {
|
|
|
7380
7380
|
}
|
|
7381
7381
|
}
|
|
7382
7382
|
|
|
7383
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
7383
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
7384
7384
|
/*
|
|
7385
7385
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7386
7386
|
* Licensed under the MIT License.
|
|
@@ -7388,7 +7388,7 @@ class ServerTelemetryManager {
|
|
|
7388
7388
|
const missingKidError = "missing_kid_error";
|
|
7389
7389
|
const missingAlgError = "missing_alg_error";
|
|
7390
7390
|
|
|
7391
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
7391
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
7392
7392
|
|
|
7393
7393
|
/*
|
|
7394
7394
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7413,7 +7413,7 @@ function createJoseHeaderError(code) {
|
|
|
7413
7413
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
7414
7414
|
}
|
|
7415
7415
|
|
|
7416
|
-
/*! @azure/msal-common v15.12.0 2025-09-
|
|
7416
|
+
/*! @azure/msal-common v15.12.0 2025-09-17 */
|
|
7417
7417
|
|
|
7418
7418
|
/*
|
|
7419
7419
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7476,10 +7476,9 @@ class CustomAuthError extends Error {
|
|
|
7476
7476
|
* Licensed under the MIT License.
|
|
7477
7477
|
*/
|
|
7478
7478
|
class MsalCustomAuthError extends CustomAuthError {
|
|
7479
|
-
constructor(error, errorDescription, subError, correlationId) {
|
|
7480
|
-
super(error, errorDescription, correlationId);
|
|
7479
|
+
constructor(error, errorDescription, subError, errorCodes, correlationId) {
|
|
7480
|
+
super(error, errorDescription, correlationId, errorCodes, subError);
|
|
7481
7481
|
Object.setPrototypeOf(this, MsalCustomAuthError.prototype);
|
|
7482
|
-
this.subError = subError || "";
|
|
7483
7482
|
}
|
|
7484
7483
|
}
|
|
7485
7484
|
|
|
@@ -7537,7 +7536,19 @@ class AuthFlowResultBase {
|
|
|
7537
7536
|
return error;
|
|
7538
7537
|
}
|
|
7539
7538
|
else if (error instanceof AuthError) {
|
|
7540
|
-
|
|
7539
|
+
const errorCodes = [];
|
|
7540
|
+
if ("errorNo" in error) {
|
|
7541
|
+
if (typeof error.errorNo === "string") {
|
|
7542
|
+
const code = Number(error.errorNo);
|
|
7543
|
+
if (!isNaN(code)) {
|
|
7544
|
+
errorCodes.push(code);
|
|
7545
|
+
}
|
|
7546
|
+
}
|
|
7547
|
+
else if (typeof error.errorNo === "number") {
|
|
7548
|
+
errorCodes.push(error.errorNo);
|
|
7549
|
+
}
|
|
7550
|
+
}
|
|
7551
|
+
return new MsalCustomAuthError(error.errorCode, error.errorMessage, error.subError, errorCodes, error.correlationId);
|
|
7541
7552
|
}
|
|
7542
7553
|
else {
|
|
7543
7554
|
return new UnexpectedError(error);
|
|
@@ -7633,7 +7644,8 @@ const PASSWORD_RECENTLY_USED = "password_recently_used";
|
|
|
7633
7644
|
const PASSWORD_BANNED = "password_banned";
|
|
7634
7645
|
const PASSWORD_IS_INVALID = "password_is_invalid";
|
|
7635
7646
|
const INVALID_OOB_VALUE = "invalid_oob_value";
|
|
7636
|
-
const ATTRIBUTE_VALIATION_FAILED = "attribute_validation_failed";
|
|
7647
|
+
const ATTRIBUTE_VALIATION_FAILED = "attribute_validation_failed";
|
|
7648
|
+
const REGISTRATION_REQUIRED = "registration_required";
|
|
7637
7649
|
|
|
7638
7650
|
/*
|
|
7639
7651
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7728,6 +7740,11 @@ class AuthFlowErrorBase {
|
|
|
7728
7740
|
this.errorData.error === INVALID_REQUEST &&
|
|
7729
7741
|
this.errorData.errorCodes?.includes(50142) === true);
|
|
7730
7742
|
}
|
|
7743
|
+
isInvalidAuthMethodRegistrationInputError() {
|
|
7744
|
+
return (this.errorData instanceof CustomAuthApiError &&
|
|
7745
|
+
this.errorData.error === INVALID_REQUEST &&
|
|
7746
|
+
this.errorData.errorCodes?.includes(901001) === true);
|
|
7747
|
+
}
|
|
7731
7748
|
}
|
|
7732
7749
|
class AuthActionErrorBase extends AuthFlowErrorBase {
|
|
7733
7750
|
/**
|
|
@@ -7820,7 +7837,7 @@ function ensureArgumentIsJSONString(argName, argValue, correlationId) {
|
|
|
7820
7837
|
|
|
7821
7838
|
/* eslint-disable header/header */
|
|
7822
7839
|
const name = "@azure/msal-browser";
|
|
7823
|
-
const version = "4.
|
|
7840
|
+
const version = "4.23.0";
|
|
7824
7841
|
|
|
7825
7842
|
/*
|
|
7826
7843
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7830,12 +7847,14 @@ const GrantType = {
|
|
|
7830
7847
|
PASSWORD: "password",
|
|
7831
7848
|
OOB: "oob",
|
|
7832
7849
|
CONTINUATION_TOKEN: "continuation_token",
|
|
7850
|
+
REDIRECT: "redirect",
|
|
7833
7851
|
ATTRIBUTES: "attributes",
|
|
7834
7852
|
};
|
|
7835
7853
|
const ChallengeType = {
|
|
7836
7854
|
PASSWORD: "password",
|
|
7837
7855
|
OOB: "oob",
|
|
7838
7856
|
REDIRECT: "redirect",
|
|
7857
|
+
PREVERIFIED: "preverified",
|
|
7839
7858
|
};
|
|
7840
7859
|
const DefaultScopes = [
|
|
7841
7860
|
Constants.OPENID_SCOPE,
|
|
@@ -8300,24 +8319,6 @@ class SignInResendCodeResult extends AuthFlowResultBase {
|
|
|
8300
8319
|
class SignInCompletedState extends AuthFlowStateBase {
|
|
8301
8320
|
}
|
|
8302
8321
|
|
|
8303
|
-
/*
|
|
8304
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8305
|
-
* Licensed under the MIT License.
|
|
8306
|
-
*/
|
|
8307
|
-
/*
|
|
8308
|
-
* Result of a sign-in submit credential operation.
|
|
8309
|
-
*/
|
|
8310
|
-
class SignInSubmitCredentialResult extends AuthFlowResultBase {
|
|
8311
|
-
/**
|
|
8312
|
-
* Creates a new instance of SignInSubmitCredentialResult.
|
|
8313
|
-
* @param state The state of the result.
|
|
8314
|
-
* @param resultData The result data.
|
|
8315
|
-
*/
|
|
8316
|
-
constructor(state, resultData) {
|
|
8317
|
-
super(state, resultData);
|
|
8318
|
-
}
|
|
8319
|
-
}
|
|
8320
|
-
|
|
8321
8322
|
/*
|
|
8322
8323
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8323
8324
|
* Licensed under the MIT License.
|
|
@@ -8325,7 +8326,7 @@ class SignInSubmitCredentialResult extends AuthFlowResultBase {
|
|
|
8325
8326
|
/*
|
|
8326
8327
|
* Result of a sign-in submit code operation.
|
|
8327
8328
|
*/
|
|
8328
|
-
class SignInSubmitCodeResult extends
|
|
8329
|
+
class SignInSubmitCodeResult extends AuthFlowResultBase {
|
|
8329
8330
|
/**
|
|
8330
8331
|
* Creates a new instance of SignInSubmitCodeResult with error data.
|
|
8331
8332
|
* @param error The error that occurred.
|
|
@@ -8430,6 +8431,7 @@ class SignInCodeRequiredState extends SignInState {
|
|
|
8430
8431
|
config: this.stateParameters.config,
|
|
8431
8432
|
signInClient: this.stateParameters.signInClient,
|
|
8432
8433
|
cacheClient: this.stateParameters.cacheClient,
|
|
8434
|
+
jitClient: this.stateParameters.jitClient,
|
|
8433
8435
|
username: this.stateParameters.username,
|
|
8434
8436
|
codeLength: result.codeLength,
|
|
8435
8437
|
scopes: this.stateParameters.scopes,
|
|
@@ -8455,6 +8457,313 @@ class SignInCodeRequiredState extends SignInState {
|
|
|
8455
8457
|
}
|
|
8456
8458
|
}
|
|
8457
8459
|
|
|
8460
|
+
/*
|
|
8461
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8462
|
+
* Licensed under the MIT License.
|
|
8463
|
+
*/
|
|
8464
|
+
// Result type constants
|
|
8465
|
+
const JIT_GET_AUTH_METHODS_RESULT_TYPE = "JitGetAuthMethodsResult";
|
|
8466
|
+
const JIT_VERIFICATION_REQUIRED_RESULT_TYPE = "JitVerificationRequiredResult";
|
|
8467
|
+
const JIT_COMPLETED_RESULT_TYPE = "JitCompletedResult";
|
|
8468
|
+
function createJitGetAuthMethodsResult(input) {
|
|
8469
|
+
return {
|
|
8470
|
+
type: JIT_GET_AUTH_METHODS_RESULT_TYPE,
|
|
8471
|
+
...input,
|
|
8472
|
+
};
|
|
8473
|
+
}
|
|
8474
|
+
function createJitVerificationRequiredResult(input) {
|
|
8475
|
+
return {
|
|
8476
|
+
type: JIT_VERIFICATION_REQUIRED_RESULT_TYPE,
|
|
8477
|
+
...input,
|
|
8478
|
+
};
|
|
8479
|
+
}
|
|
8480
|
+
function createJitCompletedResult(input) {
|
|
8481
|
+
return {
|
|
8482
|
+
type: JIT_COMPLETED_RESULT_TYPE,
|
|
8483
|
+
...input,
|
|
8484
|
+
};
|
|
8485
|
+
}
|
|
8486
|
+
|
|
8487
|
+
/*
|
|
8488
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8489
|
+
* Licensed under the MIT License.
|
|
8490
|
+
*/
|
|
8491
|
+
/**
|
|
8492
|
+
* Error that occurred during authentication method challenge request.
|
|
8493
|
+
*/
|
|
8494
|
+
class AuthMethodRegistrationChallengeMethodError extends AuthActionErrorBase {
|
|
8495
|
+
/**
|
|
8496
|
+
* Checks if the input for auth method registration is incorrect.
|
|
8497
|
+
* @returns true if the input is incorrect, false otherwise.
|
|
8498
|
+
*/
|
|
8499
|
+
isInvalidInput() {
|
|
8500
|
+
return this.isInvalidAuthMethodRegistrationInputError();
|
|
8501
|
+
}
|
|
8502
|
+
}
|
|
8503
|
+
/**
|
|
8504
|
+
* Error that occurred during authentication method challenge submission.
|
|
8505
|
+
*/
|
|
8506
|
+
class AuthMethodRegistrationSubmitChallengeError extends AuthActionErrorBase {
|
|
8507
|
+
/**
|
|
8508
|
+
* Checks if the submitted challenge code is incorrect.
|
|
8509
|
+
* @returns true if the challenge code is incorrect, false otherwise.
|
|
8510
|
+
*/
|
|
8511
|
+
isIncorrectChallenge() {
|
|
8512
|
+
return this.isInvalidCodeError();
|
|
8513
|
+
}
|
|
8514
|
+
}
|
|
8515
|
+
|
|
8516
|
+
/*
|
|
8517
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8518
|
+
* Licensed under the MIT License.
|
|
8519
|
+
*/
|
|
8520
|
+
class AuthMethodRegistrationFailedState extends AuthFlowStateBase {
|
|
8521
|
+
}
|
|
8522
|
+
|
|
8523
|
+
/*
|
|
8524
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8525
|
+
* Licensed under the MIT License.
|
|
8526
|
+
*/
|
|
8527
|
+
/**
|
|
8528
|
+
* Result of challenging an authentication method for registration.
|
|
8529
|
+
* Uses base state type to avoid circular dependencies.
|
|
8530
|
+
*/
|
|
8531
|
+
class AuthMethodRegistrationChallengeMethodResult extends AuthFlowResultBase {
|
|
8532
|
+
/**
|
|
8533
|
+
* Creates an AuthMethodRegistrationChallengeMethodResult with an error.
|
|
8534
|
+
* @param error The error that occurred.
|
|
8535
|
+
* @returns The AuthMethodRegistrationChallengeMethodResult with error.
|
|
8536
|
+
*/
|
|
8537
|
+
static createWithError(error) {
|
|
8538
|
+
const result = new AuthMethodRegistrationChallengeMethodResult(new AuthMethodRegistrationFailedState());
|
|
8539
|
+
result.error = new AuthMethodRegistrationChallengeMethodError(AuthMethodRegistrationChallengeMethodResult.createErrorData(error));
|
|
8540
|
+
return result;
|
|
8541
|
+
}
|
|
8542
|
+
/**
|
|
8543
|
+
* Checks if the result indicates that verification is required.
|
|
8544
|
+
* @returns true if verification is required, false otherwise.
|
|
8545
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8546
|
+
*/
|
|
8547
|
+
isVerificationRequired() {
|
|
8548
|
+
return (this.state.constructor?.name ===
|
|
8549
|
+
"AuthMethodVerificationRequiredState");
|
|
8550
|
+
}
|
|
8551
|
+
/**
|
|
8552
|
+
* Checks if the result indicates that registration is completed (fast-pass scenario).
|
|
8553
|
+
* @returns true if registration is completed, false otherwise.
|
|
8554
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8555
|
+
*/
|
|
8556
|
+
isCompleted() {
|
|
8557
|
+
return (this.state.constructor?.name ===
|
|
8558
|
+
"AuthMethodRegistrationCompletedState");
|
|
8559
|
+
}
|
|
8560
|
+
/**
|
|
8561
|
+
* Checks if the result is in a failed state.
|
|
8562
|
+
* @returns true if the result is failed, false otherwise.
|
|
8563
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8564
|
+
*/
|
|
8565
|
+
isFailed() {
|
|
8566
|
+
return this.state instanceof AuthMethodRegistrationFailedState;
|
|
8567
|
+
}
|
|
8568
|
+
}
|
|
8569
|
+
|
|
8570
|
+
/*
|
|
8571
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8572
|
+
* Licensed under the MIT License.
|
|
8573
|
+
*/
|
|
8574
|
+
/**
|
|
8575
|
+
* Result of submitting a challenge for authentication method registration.
|
|
8576
|
+
*/
|
|
8577
|
+
class AuthMethodRegistrationSubmitChallengeResult extends AuthFlowResultBase {
|
|
8578
|
+
/**
|
|
8579
|
+
* Creates an AuthMethodRegistrationSubmitChallengeResult with an error.
|
|
8580
|
+
* @param error The error that occurred.
|
|
8581
|
+
* @returns The AuthMethodRegistrationSubmitChallengeResult with error.
|
|
8582
|
+
*/
|
|
8583
|
+
static createWithError(error) {
|
|
8584
|
+
const result = new AuthMethodRegistrationSubmitChallengeResult(new AuthMethodRegistrationFailedState());
|
|
8585
|
+
result.error = new AuthMethodRegistrationSubmitChallengeError(AuthMethodRegistrationSubmitChallengeResult.createErrorData(error));
|
|
8586
|
+
return result;
|
|
8587
|
+
}
|
|
8588
|
+
/**
|
|
8589
|
+
* Checks if the result indicates that registration is completed.
|
|
8590
|
+
* @returns true if registration is completed, false otherwise.
|
|
8591
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8592
|
+
*/
|
|
8593
|
+
isCompleted() {
|
|
8594
|
+
return (this.state.constructor?.name ===
|
|
8595
|
+
"AuthMethodRegistrationCompletedState");
|
|
8596
|
+
}
|
|
8597
|
+
/**
|
|
8598
|
+
* Checks if the result is in a failed state.
|
|
8599
|
+
* @returns true if the result is failed, false otherwise.
|
|
8600
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8601
|
+
*/
|
|
8602
|
+
isFailed() {
|
|
8603
|
+
return this.state instanceof AuthMethodRegistrationFailedState;
|
|
8604
|
+
}
|
|
8605
|
+
}
|
|
8606
|
+
|
|
8607
|
+
/*
|
|
8608
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8609
|
+
* Licensed under the MIT License.
|
|
8610
|
+
*/
|
|
8611
|
+
class AuthMethodRegistrationCompletedState extends AuthFlowStateBase {
|
|
8612
|
+
}
|
|
8613
|
+
|
|
8614
|
+
/*
|
|
8615
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8616
|
+
* Licensed under the MIT License.
|
|
8617
|
+
*/
|
|
8618
|
+
/**
|
|
8619
|
+
* Abstract base class for authentication method registration states.
|
|
8620
|
+
*/
|
|
8621
|
+
class AuthMethodRegistrationState extends AuthFlowActionRequiredStateBase {
|
|
8622
|
+
/**
|
|
8623
|
+
* Internal method to challenge an authentication method.
|
|
8624
|
+
* @param authMethodDetails The authentication method details to challenge.
|
|
8625
|
+
* @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
|
|
8626
|
+
*/
|
|
8627
|
+
async challengeAuthMethodInternal(authMethodDetails) {
|
|
8628
|
+
try {
|
|
8629
|
+
this.stateParameters.logger.verbose(`Challenging authentication method - '${authMethodDetails.authMethodType.id}' for auth method registration.`, this.stateParameters.correlationId);
|
|
8630
|
+
const challengeParams = {
|
|
8631
|
+
correlationId: this.stateParameters.correlationId,
|
|
8632
|
+
continuationToken: this.stateParameters.continuationToken ?? "",
|
|
8633
|
+
authMethod: authMethodDetails.authMethodType,
|
|
8634
|
+
verificationContact: authMethodDetails.verificationContact,
|
|
8635
|
+
scopes: this.stateParameters.scopes ?? [],
|
|
8636
|
+
username: this.stateParameters.username,
|
|
8637
|
+
claims: this.stateParameters.claims,
|
|
8638
|
+
};
|
|
8639
|
+
const result = await this.stateParameters.jitClient.challengeAuthMethod(challengeParams);
|
|
8640
|
+
this.stateParameters.logger.verbose("Authentication method challenged successfully for auth method registration.", this.stateParameters.correlationId);
|
|
8641
|
+
if (result.type === JIT_VERIFICATION_REQUIRED_RESULT_TYPE) {
|
|
8642
|
+
// Verification required
|
|
8643
|
+
this.stateParameters.logger.verbose("Auth method verification required.", this.stateParameters.correlationId);
|
|
8644
|
+
return new AuthMethodRegistrationChallengeMethodResult(new AuthMethodVerificationRequiredState({
|
|
8645
|
+
correlationId: result.correlationId,
|
|
8646
|
+
continuationToken: result.continuationToken,
|
|
8647
|
+
config: this.stateParameters.config,
|
|
8648
|
+
logger: this.stateParameters.logger,
|
|
8649
|
+
jitClient: this.stateParameters.jitClient,
|
|
8650
|
+
cacheClient: this.stateParameters.cacheClient,
|
|
8651
|
+
challengeChannel: result.challengeChannel,
|
|
8652
|
+
challengeTargetLabel: result.challengeTargetLabel,
|
|
8653
|
+
codeLength: result.codeLength,
|
|
8654
|
+
scopes: this.stateParameters.scopes ?? [],
|
|
8655
|
+
username: this.stateParameters.username,
|
|
8656
|
+
claims: this.stateParameters.claims,
|
|
8657
|
+
}));
|
|
8658
|
+
}
|
|
8659
|
+
else if (result.type === JIT_COMPLETED_RESULT_TYPE) {
|
|
8660
|
+
// Registration completed (fast-pass scenario)
|
|
8661
|
+
this.stateParameters.logger.verbose("Auth method registration completed via fast-pass.", this.stateParameters.correlationId);
|
|
8662
|
+
const accountInfo = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
|
|
8663
|
+
return new AuthMethodRegistrationChallengeMethodResult(new AuthMethodRegistrationCompletedState(), accountInfo);
|
|
8664
|
+
}
|
|
8665
|
+
else {
|
|
8666
|
+
// Handle unexpected result type with proper typing
|
|
8667
|
+
this.stateParameters.logger.error("Unexpected result type from auth challenge method", this.stateParameters.correlationId);
|
|
8668
|
+
throw new UnexpectedError("Unexpected result type from auth challenge method");
|
|
8669
|
+
}
|
|
8670
|
+
}
|
|
8671
|
+
catch (error) {
|
|
8672
|
+
this.stateParameters.logger.error("Failed to challenge authentication method for auth method registration.", this.stateParameters.correlationId);
|
|
8673
|
+
return AuthMethodRegistrationChallengeMethodResult.createWithError(error);
|
|
8674
|
+
}
|
|
8675
|
+
}
|
|
8676
|
+
}
|
|
8677
|
+
/**
|
|
8678
|
+
* State indicating that authentication method registration is required.
|
|
8679
|
+
*/
|
|
8680
|
+
class AuthMethodRegistrationRequiredState extends AuthMethodRegistrationState {
|
|
8681
|
+
/**
|
|
8682
|
+
* Gets the available authentication methods for registration.
|
|
8683
|
+
* @returns Array of available authentication methods.
|
|
8684
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8685
|
+
*/
|
|
8686
|
+
getAuthMethods() {
|
|
8687
|
+
return this.stateParameters.authMethods;
|
|
8688
|
+
}
|
|
8689
|
+
/**
|
|
8690
|
+
* Challenges an authentication method for registration.
|
|
8691
|
+
* @param authMethodDetails The authentication method details to challenge.
|
|
8692
|
+
* @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
|
|
8693
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8694
|
+
*/
|
|
8695
|
+
async challengeAuthMethod(authMethodDetails) {
|
|
8696
|
+
return this.challengeAuthMethodInternal(authMethodDetails);
|
|
8697
|
+
}
|
|
8698
|
+
}
|
|
8699
|
+
/**
|
|
8700
|
+
* State indicating that verification is required for the challenged authentication method.
|
|
8701
|
+
*/
|
|
8702
|
+
class AuthMethodVerificationRequiredState extends AuthMethodRegistrationState {
|
|
8703
|
+
/**
|
|
8704
|
+
* Gets the length of the expected verification code.
|
|
8705
|
+
* @returns The code length.
|
|
8706
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8707
|
+
*/
|
|
8708
|
+
getCodeLength() {
|
|
8709
|
+
return this.stateParameters.codeLength;
|
|
8710
|
+
}
|
|
8711
|
+
/**
|
|
8712
|
+
* Gets the channel through which the challenge was sent.
|
|
8713
|
+
* @returns The challenge channel (e.g., "email").
|
|
8714
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8715
|
+
*/
|
|
8716
|
+
getChannel() {
|
|
8717
|
+
return this.stateParameters.challengeChannel;
|
|
8718
|
+
}
|
|
8719
|
+
/**
|
|
8720
|
+
* Gets the target label indicating where the challenge was sent.
|
|
8721
|
+
* @returns The challenge target label (e.g., masked email address).
|
|
8722
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8723
|
+
*/
|
|
8724
|
+
getSentTo() {
|
|
8725
|
+
return this.stateParameters.challengeTargetLabel;
|
|
8726
|
+
}
|
|
8727
|
+
/**
|
|
8728
|
+
* Submits the verification challenge to complete the authentication method registration.
|
|
8729
|
+
* @param code The verification code entered by the user.
|
|
8730
|
+
* @returns Promise that resolves to AuthMethodRegistrationSubmitChallengeResult.
|
|
8731
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8732
|
+
*/
|
|
8733
|
+
async submitChallenge(code) {
|
|
8734
|
+
try {
|
|
8735
|
+
this.ensureCodeIsValid(code, this.getCodeLength());
|
|
8736
|
+
this.stateParameters.logger.verbose("Submitting auth method challenge.", this.stateParameters.correlationId);
|
|
8737
|
+
const submitParams = {
|
|
8738
|
+
correlationId: this.stateParameters.correlationId,
|
|
8739
|
+
continuationToken: this.stateParameters.continuationToken ?? "",
|
|
8740
|
+
scopes: this.stateParameters.scopes ?? [],
|
|
8741
|
+
grantType: GrantType.OOB,
|
|
8742
|
+
challenge: code,
|
|
8743
|
+
username: this.stateParameters.username,
|
|
8744
|
+
claims: this.stateParameters.claims,
|
|
8745
|
+
};
|
|
8746
|
+
const result = await this.stateParameters.jitClient.submitChallenge(submitParams);
|
|
8747
|
+
this.stateParameters.logger.verbose("Auth method challenge submitted successfully.", this.stateParameters.correlationId);
|
|
8748
|
+
const accountInfo = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
|
|
8749
|
+
return new AuthMethodRegistrationSubmitChallengeResult(new AuthMethodRegistrationCompletedState(), accountInfo);
|
|
8750
|
+
}
|
|
8751
|
+
catch (error) {
|
|
8752
|
+
this.stateParameters.logger.error("Failed to submit auth method challenge.", this.stateParameters.correlationId);
|
|
8753
|
+
return AuthMethodRegistrationSubmitChallengeResult.createWithError(error);
|
|
8754
|
+
}
|
|
8755
|
+
}
|
|
8756
|
+
/**
|
|
8757
|
+
* Challenges a different authentication method for registration.
|
|
8758
|
+
* @param authMethodDetails The authentication method details to challenge.
|
|
8759
|
+
* @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
|
|
8760
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8761
|
+
*/
|
|
8762
|
+
async challengeAuthMethod(authMethodDetails) {
|
|
8763
|
+
return this.challengeAuthMethodInternal(authMethodDetails);
|
|
8764
|
+
}
|
|
8765
|
+
}
|
|
8766
|
+
|
|
8458
8767
|
/*
|
|
8459
8768
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8460
8769
|
* Licensed under the MIT License.
|
|
@@ -8462,7 +8771,7 @@ class SignInCodeRequiredState extends SignInState {
|
|
|
8462
8771
|
/*
|
|
8463
8772
|
* Result of a sign-in submit password operation.
|
|
8464
8773
|
*/
|
|
8465
|
-
class SignInSubmitPasswordResult extends
|
|
8774
|
+
class SignInSubmitPasswordResult extends AuthFlowResultBase {
|
|
8466
8775
|
static createWithError(error) {
|
|
8467
8776
|
const result = new SignInSubmitPasswordResult(new SignInFailedState());
|
|
8468
8777
|
result.error = new SignInSubmitPasswordError(SignInSubmitPasswordResult.createErrorData(error));
|
|
@@ -8480,6 +8789,46 @@ class SignInSubmitPasswordResult extends SignInSubmitCredentialResult {
|
|
|
8480
8789
|
isCompleted() {
|
|
8481
8790
|
return this.state instanceof SignInCompletedState;
|
|
8482
8791
|
}
|
|
8792
|
+
/**
|
|
8793
|
+
* Checks if the result requires authentication method registration.
|
|
8794
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8795
|
+
*/
|
|
8796
|
+
isAuthMethodRegistrationRequired() {
|
|
8797
|
+
return this.state instanceof AuthMethodRegistrationRequiredState;
|
|
8798
|
+
}
|
|
8799
|
+
}
|
|
8800
|
+
|
|
8801
|
+
/*
|
|
8802
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8803
|
+
* Licensed under the MIT License.
|
|
8804
|
+
*/
|
|
8805
|
+
const SIGN_IN_CODE_SEND_RESULT_TYPE = "SignInCodeSendResult";
|
|
8806
|
+
const SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE = "SignInPasswordRequiredResult";
|
|
8807
|
+
const SIGN_IN_COMPLETED_RESULT_TYPE = "SignInCompletedResult";
|
|
8808
|
+
const SIGN_IN_JIT_REQUIRED_RESULT_TYPE = "SignInJitRequiredResult";
|
|
8809
|
+
function createSignInCompleteResult(input) {
|
|
8810
|
+
return {
|
|
8811
|
+
type: SIGN_IN_COMPLETED_RESULT_TYPE,
|
|
8812
|
+
...input,
|
|
8813
|
+
};
|
|
8814
|
+
}
|
|
8815
|
+
function createSignInPasswordRequiredResult(input) {
|
|
8816
|
+
return {
|
|
8817
|
+
type: SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE,
|
|
8818
|
+
...input,
|
|
8819
|
+
};
|
|
8820
|
+
}
|
|
8821
|
+
function createSignInCodeSendResult(input) {
|
|
8822
|
+
return {
|
|
8823
|
+
type: SIGN_IN_CODE_SEND_RESULT_TYPE,
|
|
8824
|
+
...input,
|
|
8825
|
+
};
|
|
8826
|
+
}
|
|
8827
|
+
function createSignInJitRequiredResult(input) {
|
|
8828
|
+
return {
|
|
8829
|
+
type: SIGN_IN_JIT_REQUIRED_RESULT_TYPE,
|
|
8830
|
+
...input,
|
|
8831
|
+
};
|
|
8483
8832
|
}
|
|
8484
8833
|
|
|
8485
8834
|
/*
|
|
@@ -8509,10 +8858,34 @@ class SignInPasswordRequiredState extends SignInState {
|
|
|
8509
8858
|
claims: this.stateParameters.claims,
|
|
8510
8859
|
};
|
|
8511
8860
|
this.stateParameters.logger.verbose("Submitting password for sign-in.", this.stateParameters.correlationId);
|
|
8512
|
-
const
|
|
8861
|
+
const submitPasswordResult = await this.stateParameters.signInClient.submitPassword(submitPasswordParams);
|
|
8513
8862
|
this.stateParameters.logger.verbose("Password submitted for sign-in.", this.stateParameters.correlationId);
|
|
8514
|
-
|
|
8515
|
-
|
|
8863
|
+
if (submitPasswordResult.type === SIGN_IN_COMPLETED_RESULT_TYPE) {
|
|
8864
|
+
const accountInfo = new CustomAuthAccountData(submitPasswordResult.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
|
|
8865
|
+
return new SignInSubmitPasswordResult(new SignInCompletedState(), accountInfo);
|
|
8866
|
+
}
|
|
8867
|
+
else if (submitPasswordResult.type === SIGN_IN_JIT_REQUIRED_RESULT_TYPE) {
|
|
8868
|
+
// JIT is required - return AuthMethodRegistrationRequiredState
|
|
8869
|
+
this.stateParameters.logger.verbose("Authentication method registration required after password submission.", this.stateParameters.correlationId);
|
|
8870
|
+
return new SignInSubmitPasswordResult(new AuthMethodRegistrationRequiredState({
|
|
8871
|
+
correlationId: this.stateParameters.correlationId,
|
|
8872
|
+
continuationToken: submitPasswordResult.continuationToken,
|
|
8873
|
+
logger: this.stateParameters.logger,
|
|
8874
|
+
config: this.stateParameters.config,
|
|
8875
|
+
jitClient: this.stateParameters.jitClient,
|
|
8876
|
+
cacheClient: this.stateParameters.cacheClient,
|
|
8877
|
+
authMethods: submitPasswordResult.authMethods,
|
|
8878
|
+
username: this.stateParameters.username,
|
|
8879
|
+
scopes: this.stateParameters.scopes ?? [],
|
|
8880
|
+
claims: this.stateParameters.claims,
|
|
8881
|
+
}));
|
|
8882
|
+
}
|
|
8883
|
+
else {
|
|
8884
|
+
// Unexpected result type
|
|
8885
|
+
const result = submitPasswordResult;
|
|
8886
|
+
const error = new Error(`Unexpected result type: ${result.type}`);
|
|
8887
|
+
return SignInSubmitPasswordResult.createWithError(error);
|
|
8888
|
+
}
|
|
8516
8889
|
}
|
|
8517
8890
|
catch (error) {
|
|
8518
8891
|
this.stateParameters.logger.errorPii(`Failed to sign in after submitting password. Error: ${error}.`, this.stateParameters.correlationId);
|
|
@@ -8577,6 +8950,13 @@ class SignInResult extends AuthFlowResultBase {
|
|
|
8577
8950
|
isCompleted() {
|
|
8578
8951
|
return this.state instanceof SignInCompletedState;
|
|
8579
8952
|
}
|
|
8953
|
+
/**
|
|
8954
|
+
* Checks if the result requires authentication method registration.
|
|
8955
|
+
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
|
8956
|
+
*/
|
|
8957
|
+
isAuthMethodRegistrationRequired() {
|
|
8958
|
+
return this.state instanceof AuthMethodRegistrationRequiredState;
|
|
8959
|
+
}
|
|
8580
8960
|
}
|
|
8581
8961
|
|
|
8582
8962
|
/*
|
|
@@ -8726,10 +9106,37 @@ class SignInContinuationState extends SignInState {
|
|
|
8726
9106
|
claims: signInWithContinuationTokenInputs?.claims,
|
|
8727
9107
|
};
|
|
8728
9108
|
this.stateParameters.logger.verbose("Signing in with continuation token.", this.stateParameters.correlationId);
|
|
8729
|
-
const
|
|
9109
|
+
const signInResult = await this.stateParameters.signInClient.signInWithContinuationToken(continuationTokenParams);
|
|
8730
9110
|
this.stateParameters.logger.verbose("Signed in with continuation token.", this.stateParameters.correlationId);
|
|
8731
|
-
|
|
8732
|
-
|
|
9111
|
+
if (signInResult.type === SIGN_IN_COMPLETED_RESULT_TYPE) {
|
|
9112
|
+
// Sign-in completed successfully
|
|
9113
|
+
const accountInfo = new CustomAuthAccountData(signInResult.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
|
|
9114
|
+
return new SignInResult(new SignInCompletedState(), accountInfo);
|
|
9115
|
+
}
|
|
9116
|
+
else if (signInResult.type === SIGN_IN_JIT_REQUIRED_RESULT_TYPE) {
|
|
9117
|
+
// JIT is required
|
|
9118
|
+
this.stateParameters.logger.warning("Auth method registration required during continuation token sign-in.", this.stateParameters.correlationId);
|
|
9119
|
+
// Return AuthMethodRegistrationRequiredState to handle JIT scenario
|
|
9120
|
+
const authMethodRegistrationState = new AuthMethodRegistrationRequiredState({
|
|
9121
|
+
correlationId: this.stateParameters.correlationId,
|
|
9122
|
+
continuationToken: signInResult.continuationToken,
|
|
9123
|
+
logger: this.stateParameters.logger,
|
|
9124
|
+
config: this.stateParameters.config,
|
|
9125
|
+
jitClient: this.stateParameters.jitClient,
|
|
9126
|
+
cacheClient: this.stateParameters.cacheClient,
|
|
9127
|
+
authMethods: signInResult.authMethods,
|
|
9128
|
+
username: this.stateParameters.username,
|
|
9129
|
+
scopes: signInWithContinuationTokenInputs?.scopes ?? [],
|
|
9130
|
+
claims: this.stateParameters.claims,
|
|
9131
|
+
});
|
|
9132
|
+
return new SignInResult(authMethodRegistrationState);
|
|
9133
|
+
}
|
|
9134
|
+
else {
|
|
9135
|
+
// Unexpected result type
|
|
9136
|
+
const result = signInResult;
|
|
9137
|
+
const error = new Error(`Unexpected result type: ${result.type}`);
|
|
9138
|
+
return SignInResult.createWithError(error);
|
|
9139
|
+
}
|
|
8733
9140
|
}
|
|
8734
9141
|
catch (error) {
|
|
8735
9142
|
this.stateParameters.logger.errorPii(`Failed to sign in with continuation token. Error: ${error}.`, this.stateParameters.correlationId);
|
|
@@ -8867,6 +9274,7 @@ class SignUpAttributesRequiredState extends SignUpState {
|
|
|
8867
9274
|
config: this.stateParameters.config,
|
|
8868
9275
|
signInClient: this.stateParameters.signInClient,
|
|
8869
9276
|
cacheClient: this.stateParameters.cacheClient,
|
|
9277
|
+
jitClient: this.stateParameters.jitClient,
|
|
8870
9278
|
username: this.stateParameters.username,
|
|
8871
9279
|
signInScenario: SignInScenario.SignInAfterSignUp,
|
|
8872
9280
|
}));
|
|
@@ -9013,6 +9421,7 @@ class SignUpPasswordRequiredState extends SignUpState {
|
|
|
9013
9421
|
signInClient: this.stateParameters.signInClient,
|
|
9014
9422
|
signUpClient: this.stateParameters.signUpClient,
|
|
9015
9423
|
cacheClient: this.stateParameters.cacheClient,
|
|
9424
|
+
jitClient: this.stateParameters.jitClient,
|
|
9016
9425
|
username: this.stateParameters.username,
|
|
9017
9426
|
requiredAttributes: result.requiredAttributes,
|
|
9018
9427
|
}));
|
|
@@ -9027,6 +9436,7 @@ class SignUpPasswordRequiredState extends SignUpState {
|
|
|
9027
9436
|
config: this.stateParameters.config,
|
|
9028
9437
|
signInClient: this.stateParameters.signInClient,
|
|
9029
9438
|
cacheClient: this.stateParameters.cacheClient,
|
|
9439
|
+
jitClient: this.stateParameters.jitClient,
|
|
9030
9440
|
username: this.stateParameters.username,
|
|
9031
9441
|
signInScenario: SignInScenario.SignInAfterSignUp,
|
|
9032
9442
|
}));
|
|
@@ -9128,6 +9538,7 @@ class SignUpCodeRequiredState extends SignUpState {
|
|
|
9128
9538
|
signInClient: this.stateParameters.signInClient,
|
|
9129
9539
|
signUpClient: this.stateParameters.signUpClient,
|
|
9130
9540
|
cacheClient: this.stateParameters.cacheClient,
|
|
9541
|
+
jitClient: this.stateParameters.jitClient,
|
|
9131
9542
|
username: this.stateParameters.username,
|
|
9132
9543
|
}));
|
|
9133
9544
|
}
|
|
@@ -9142,6 +9553,7 @@ class SignUpCodeRequiredState extends SignUpState {
|
|
|
9142
9553
|
signInClient: this.stateParameters.signInClient,
|
|
9143
9554
|
signUpClient: this.stateParameters.signUpClient,
|
|
9144
9555
|
cacheClient: this.stateParameters.cacheClient,
|
|
9556
|
+
jitClient: this.stateParameters.jitClient,
|
|
9145
9557
|
username: this.stateParameters.username,
|
|
9146
9558
|
requiredAttributes: result.requiredAttributes,
|
|
9147
9559
|
}));
|
|
@@ -9156,6 +9568,7 @@ class SignUpCodeRequiredState extends SignUpState {
|
|
|
9156
9568
|
config: this.stateParameters.config,
|
|
9157
9569
|
signInClient: this.stateParameters.signInClient,
|
|
9158
9570
|
cacheClient: this.stateParameters.cacheClient,
|
|
9571
|
+
jitClient: this.stateParameters.jitClient,
|
|
9159
9572
|
username: this.stateParameters.username,
|
|
9160
9573
|
signInScenario: SignInScenario.SignInAfterSignUp,
|
|
9161
9574
|
}));
|
|
@@ -9190,6 +9603,7 @@ class SignUpCodeRequiredState extends SignUpState {
|
|
|
9190
9603
|
signInClient: this.stateParameters.signInClient,
|
|
9191
9604
|
signUpClient: this.stateParameters.signUpClient,
|
|
9192
9605
|
cacheClient: this.stateParameters.cacheClient,
|
|
9606
|
+
jitClient: this.stateParameters.jitClient,
|
|
9193
9607
|
username: this.stateParameters.username,
|
|
9194
9608
|
codeLength: result.codeLength,
|
|
9195
9609
|
codeResendInterval: result.interval,
|
|
@@ -10564,6 +10978,7 @@ class CustomAuthInteractionClientBase extends StandardInteractionClient {
|
|
|
10564
10978
|
super(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient);
|
|
10565
10979
|
this.customAuthApiClient = customAuthApiClient;
|
|
10566
10980
|
this.customAuthAuthority = customAuthAuthority;
|
|
10981
|
+
this.tokenResponseHandler = new ResponseHandler(this.config.auth.clientId, this.browserStorage, this.browserCrypto, this.logger, null, null);
|
|
10567
10982
|
}
|
|
10568
10983
|
getChallengeTypes(configuredChallengeTypes) {
|
|
10569
10984
|
const challengeType = configuredChallengeTypes ?? [];
|
|
@@ -10582,6 +10997,24 @@ class CustomAuthInteractionClientBase extends StandardInteractionClient {
|
|
|
10582
10997
|
Constants.OFFLINE_ACCESS_SCOPE,
|
|
10583
10998
|
];
|
|
10584
10999
|
}
|
|
11000
|
+
/**
|
|
11001
|
+
* Common method to handle token response processing.
|
|
11002
|
+
* @param tokenResponse The token response from the API
|
|
11003
|
+
* @param requestScopes Scopes for the token request
|
|
11004
|
+
* @param correlationId Correlation ID for logging
|
|
11005
|
+
* @returns Authentication result from the token response
|
|
11006
|
+
*/
|
|
11007
|
+
async handleTokenResponse(tokenResponse, requestScopes, correlationId) {
|
|
11008
|
+
this.logger.verbose("Processing token response.", correlationId);
|
|
11009
|
+
const requestTimestamp = Math.round(new Date().getTime() / 1000.0);
|
|
11010
|
+
// Save tokens and create authentication result 44s
|
|
11011
|
+
const result = await this.tokenResponseHandler.handleServerTokenResponse(tokenResponse, this.customAuthAuthority, requestTimestamp, {
|
|
11012
|
+
authority: this.customAuthAuthority.canonicalAuthority,
|
|
11013
|
+
correlationId: tokenResponse.correlation_id ?? correlationId,
|
|
11014
|
+
scopes: requestScopes,
|
|
11015
|
+
});
|
|
11016
|
+
return result;
|
|
11017
|
+
}
|
|
10585
11018
|
// It is not necessary to implement this method from base class.
|
|
10586
11019
|
acquireToken(
|
|
10587
11020
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -10596,32 +11029,6 @@ class CustomAuthInteractionClientBase extends StandardInteractionClient {
|
|
|
10596
11029
|
}
|
|
10597
11030
|
}
|
|
10598
11031
|
|
|
10599
|
-
/*
|
|
10600
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
10601
|
-
* Licensed under the MIT License.
|
|
10602
|
-
*/
|
|
10603
|
-
const SIGN_IN_CODE_SEND_RESULT_TYPE = "SignInCodeSendResult";
|
|
10604
|
-
const SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE = "SignInPasswordRequiredResult";
|
|
10605
|
-
const SIGN_IN_COMPLETED_RESULT_TYPE = "SignInCompletedResult";
|
|
10606
|
-
function createSignInCompleteResult(input) {
|
|
10607
|
-
return {
|
|
10608
|
-
type: SIGN_IN_COMPLETED_RESULT_TYPE,
|
|
10609
|
-
...input,
|
|
10610
|
-
};
|
|
10611
|
-
}
|
|
10612
|
-
function createSignInPasswordRequiredResult(input) {
|
|
10613
|
-
return {
|
|
10614
|
-
type: SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE,
|
|
10615
|
-
...input,
|
|
10616
|
-
};
|
|
10617
|
-
}
|
|
10618
|
-
function createSignInCodeSendResult(input) {
|
|
10619
|
-
return {
|
|
10620
|
-
type: SIGN_IN_CODE_SEND_RESULT_TYPE,
|
|
10621
|
-
...input,
|
|
10622
|
-
};
|
|
10623
|
-
}
|
|
10624
|
-
|
|
10625
11032
|
/*
|
|
10626
11033
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
10627
11034
|
* Licensed under the MIT License.
|
|
@@ -10650,17 +11057,17 @@ const PASSWORD_RESET_START = 100041;
|
|
|
10650
11057
|
const PASSWORD_RESET_SUBMIT_CODE = 100042;
|
|
10651
11058
|
const PASSWORD_RESET_SUBMIT_PASSWORD = 100043;
|
|
10652
11059
|
const PASSWORD_RESET_RESEND_CODE = 100044;
|
|
10653
|
-
const ACCOUNT_GET_ACCESS_TOKEN = 100063;
|
|
11060
|
+
const ACCOUNT_GET_ACCESS_TOKEN = 100063;
|
|
11061
|
+
// JIT (Just-In-Time) Auth Method Registration
|
|
11062
|
+
const JIT_GET_AUTH_METHODS = 100081;
|
|
11063
|
+
const JIT_CHALLENGE_AUTH_METHOD = 100082;
|
|
11064
|
+
const JIT_SUBMIT_CHALLENGE = 100083;
|
|
10654
11065
|
|
|
10655
11066
|
/*
|
|
10656
11067
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
10657
11068
|
* Licensed under the MIT License.
|
|
10658
11069
|
*/
|
|
10659
11070
|
class SignInClient extends CustomAuthInteractionClientBase {
|
|
10660
|
-
constructor(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, customAuthApiClient, customAuthAuthority) {
|
|
10661
|
-
super(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, customAuthApiClient, customAuthAuthority);
|
|
10662
|
-
this.tokenResponseHandler = new ResponseHandler(this.config.auth.clientId, this.browserStorage, this.browserCrypto, this.logger, null, null);
|
|
10663
|
-
}
|
|
10664
11071
|
/**
|
|
10665
11072
|
* Starts the signin flow.
|
|
10666
11073
|
* @param parameters The parameters required to start the sign-in flow.
|
|
@@ -10729,7 +11136,9 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
10729
11136
|
claims: parameters.claims,
|
|
10730
11137
|
}),
|
|
10731
11138
|
};
|
|
10732
|
-
|
|
11139
|
+
const result = this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithOob(request), scopes, parameters.correlationId, telemetryManager, false // Don't handle JIT for code submission
|
|
11140
|
+
);
|
|
11141
|
+
return result;
|
|
10733
11142
|
}
|
|
10734
11143
|
/**
|
|
10735
11144
|
* Submits the password for sign-in flow.
|
|
@@ -10751,7 +11160,8 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
10751
11160
|
claims: parameters.claims,
|
|
10752
11161
|
}),
|
|
10753
11162
|
};
|
|
10754
|
-
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithPassword(request), scopes
|
|
11163
|
+
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithPassword(request), scopes, parameters.correlationId, telemetryManager, true // Handle JIT for password submission
|
|
11164
|
+
);
|
|
10755
11165
|
}
|
|
10756
11166
|
/**
|
|
10757
11167
|
* Signs in with continuation token.
|
|
@@ -10774,28 +11184,49 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
10774
11184
|
}),
|
|
10775
11185
|
};
|
|
10776
11186
|
// Call token endpoint.
|
|
10777
|
-
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(request), scopes)
|
|
11187
|
+
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(request), scopes, parameters.correlationId, telemetryManager, true // Handle JIT for continuation token sign-in (e.g., after sign-up or SSPR)
|
|
11188
|
+
);
|
|
10778
11189
|
}
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
|
|
11190
|
+
/**
|
|
11191
|
+
* Common method to handle token endpoint calls and create sign-in results.
|
|
11192
|
+
* @param tokenEndpointCaller Function that calls the specific token endpoint
|
|
11193
|
+
* @param scopes Scopes for the token request
|
|
11194
|
+
* @param correlationId Correlation ID for logging and result
|
|
11195
|
+
* @param handleJit Whether to handle JIT required errors or throw them
|
|
11196
|
+
* @returns SignInCompletedResult with authentication result
|
|
11197
|
+
*/
|
|
11198
|
+
async performTokenRequest(tokenEndpointCaller, scopes, correlationId, telemetryManager, handleJit) {
|
|
11199
|
+
this.logger.verbose("Calling token endpoint for sign in.", correlationId);
|
|
11200
|
+
try {
|
|
11201
|
+
const tokenResponse = await tokenEndpointCaller();
|
|
11202
|
+
this.logger.verbose("Token endpoint response received for sign in.", correlationId);
|
|
11203
|
+
const authResult = await this.handleTokenResponse(tokenResponse, scopes, correlationId);
|
|
11204
|
+
return createSignInCompleteResult({
|
|
11205
|
+
correlationId: tokenResponse.correlation_id ?? correlationId,
|
|
11206
|
+
authenticationResult: authResult,
|
|
11207
|
+
});
|
|
11208
|
+
}
|
|
11209
|
+
catch (error) {
|
|
11210
|
+
if (handleJit &&
|
|
11211
|
+
error instanceof CustomAuthApiError &&
|
|
11212
|
+
error.subError === REGISTRATION_REQUIRED) {
|
|
11213
|
+
this.logger.verbose("Auth method registration required for sign in.", correlationId);
|
|
11214
|
+
// Call register introspect endpoint to get available authentication methods
|
|
11215
|
+
const introspectRequest = {
|
|
11216
|
+
continuation_token: error.continuationToken ?? "",
|
|
11217
|
+
correlationId: error.correlationId ?? correlationId,
|
|
11218
|
+
telemetryManager,
|
|
11219
|
+
};
|
|
11220
|
+
const introspectResponse = await this.customAuthApiClient.registerApi.introspect(introspectRequest);
|
|
11221
|
+
return createSignInJitRequiredResult({
|
|
11222
|
+
correlationId: introspectResponse.correlation_id ?? correlationId,
|
|
11223
|
+
continuationToken: introspectResponse.continuation_token ?? "",
|
|
11224
|
+
authMethods: introspectResponse.methods,
|
|
11225
|
+
});
|
|
11226
|
+
}
|
|
11227
|
+
// Re-throw any other errors or JIT errors when handleJit is false
|
|
11228
|
+
throw error;
|
|
11229
|
+
}
|
|
10799
11230
|
}
|
|
10800
11231
|
async performChallengeRequest(request) {
|
|
10801
11232
|
this.logger.verbose("Calling challenge endpoint for sign in.", request.correlationId);
|
|
@@ -11046,6 +11477,7 @@ class ResetPasswordPasswordRequiredState extends ResetPasswordState {
|
|
|
11046
11477
|
username: this.stateParameters.username,
|
|
11047
11478
|
signInClient: this.stateParameters.signInClient,
|
|
11048
11479
|
cacheClient: this.stateParameters.cacheClient,
|
|
11480
|
+
jitClient: this.stateParameters.jitClient,
|
|
11049
11481
|
signInScenario: SignInScenario.SignInAfterPasswordReset,
|
|
11050
11482
|
}));
|
|
11051
11483
|
}
|
|
@@ -11130,6 +11562,7 @@ class ResetPasswordCodeRequiredState extends ResetPasswordState {
|
|
|
11130
11562
|
resetPasswordClient: this.stateParameters.resetPasswordClient,
|
|
11131
11563
|
signInClient: this.stateParameters.signInClient,
|
|
11132
11564
|
cacheClient: this.stateParameters.cacheClient,
|
|
11565
|
+
jitClient: this.stateParameters.jitClient,
|
|
11133
11566
|
username: this.stateParameters.username,
|
|
11134
11567
|
}));
|
|
11135
11568
|
}
|
|
@@ -11162,6 +11595,7 @@ class ResetPasswordCodeRequiredState extends ResetPasswordState {
|
|
|
11162
11595
|
resetPasswordClient: this.stateParameters.resetPasswordClient,
|
|
11163
11596
|
signInClient: this.stateParameters.signInClient,
|
|
11164
11597
|
cacheClient: this.stateParameters.cacheClient,
|
|
11598
|
+
jitClient: this.stateParameters.jitClient,
|
|
11165
11599
|
username: this.stateParameters.username,
|
|
11166
11600
|
codeLength: result.codeLength,
|
|
11167
11601
|
}));
|
|
@@ -11233,7 +11667,10 @@ const RESET_PWD_START = "/resetpassword/v1.0/start";
|
|
|
11233
11667
|
const RESET_PWD_CHALLENGE = "/resetpassword/v1.0/challenge";
|
|
11234
11668
|
const RESET_PWD_CONTINUE = "/resetpassword/v1.0/continue";
|
|
11235
11669
|
const RESET_PWD_SUBMIT = "/resetpassword/v1.0/submit";
|
|
11236
|
-
const RESET_PWD_POLL = "/resetpassword/v1.0/poll_completion";
|
|
11670
|
+
const RESET_PWD_POLL = "/resetpassword/v1.0/poll_completion";
|
|
11671
|
+
const REGISTER_INTROSPECT = "/register/v1.0/introspect";
|
|
11672
|
+
const REGISTER_CHALLENGE = "/register/v1.0/challenge";
|
|
11673
|
+
const REGISTER_CONTINUE = "/register/v1.0/continue";
|
|
11237
11674
|
|
|
11238
11675
|
/*
|
|
11239
11676
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11869,6 +12306,7 @@ class SignInApiClient extends BaseApiClient {
|
|
|
11869
12306
|
const result = await this.request(SIGNIN_CHALLENGE, {
|
|
11870
12307
|
continuation_token: params.continuation_token,
|
|
11871
12308
|
challenge_type: params.challenge_type,
|
|
12309
|
+
...(params.id && { id: params.id }),
|
|
11872
12310
|
}, params.telemetryManager, params.correlationId);
|
|
11873
12311
|
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
|
11874
12312
|
return result;
|
|
@@ -11900,11 +12338,11 @@ class SignInApiClient extends BaseApiClient {
|
|
|
11900
12338
|
async requestTokenWithContinuationToken(params) {
|
|
11901
12339
|
return this.requestTokens({
|
|
11902
12340
|
continuation_token: params.continuation_token,
|
|
11903
|
-
username: params.username,
|
|
11904
12341
|
scope: params.scope,
|
|
11905
12342
|
grant_type: GrantType.CONTINUATION_TOKEN,
|
|
11906
12343
|
client_info: true,
|
|
11907
12344
|
...(params.claims && { claims: params.claims }),
|
|
12345
|
+
...(params.username && { username: params.username }),
|
|
11908
12346
|
}, params.telemetryManager, params.correlationId);
|
|
11909
12347
|
}
|
|
11910
12348
|
async requestTokens(requestData, telemetryManager, correlationId) {
|
|
@@ -11948,6 +12386,50 @@ class SignInApiClient extends BaseApiClient {
|
|
|
11948
12386
|
}
|
|
11949
12387
|
}
|
|
11950
12388
|
|
|
12389
|
+
/*
|
|
12390
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12391
|
+
* Licensed under the MIT License.
|
|
12392
|
+
*/
|
|
12393
|
+
class RegisterApiClient extends BaseApiClient {
|
|
12394
|
+
/**
|
|
12395
|
+
* Gets available authentication methods for registration
|
|
12396
|
+
*/
|
|
12397
|
+
async introspect(params) {
|
|
12398
|
+
const result = await this.request(REGISTER_INTROSPECT, {
|
|
12399
|
+
continuation_token: params.continuation_token,
|
|
12400
|
+
}, params.telemetryManager, params.correlationId);
|
|
12401
|
+
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
|
12402
|
+
return result;
|
|
12403
|
+
}
|
|
12404
|
+
/**
|
|
12405
|
+
* Sends challenge to specified authentication method
|
|
12406
|
+
*/
|
|
12407
|
+
async challenge(params) {
|
|
12408
|
+
const result = await this.request(REGISTER_CHALLENGE, {
|
|
12409
|
+
continuation_token: params.continuation_token,
|
|
12410
|
+
challenge_type: params.challenge_type,
|
|
12411
|
+
challenge_target: params.challenge_target,
|
|
12412
|
+
...(params.challenge_channel && {
|
|
12413
|
+
challenge_channel: params.challenge_channel,
|
|
12414
|
+
}),
|
|
12415
|
+
}, params.telemetryManager, params.correlationId);
|
|
12416
|
+
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
|
12417
|
+
return result;
|
|
12418
|
+
}
|
|
12419
|
+
/**
|
|
12420
|
+
* Submits challenge response and continues registration
|
|
12421
|
+
*/
|
|
12422
|
+
async continue(params) {
|
|
12423
|
+
const result = await this.request(REGISTER_CONTINUE, {
|
|
12424
|
+
continuation_token: params.continuation_token,
|
|
12425
|
+
grant_type: params.grant_type,
|
|
12426
|
+
...(params.oob && { oob: params.oob }),
|
|
12427
|
+
}, params.telemetryManager, params.correlationId);
|
|
12428
|
+
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
|
12429
|
+
return result;
|
|
12430
|
+
}
|
|
12431
|
+
}
|
|
12432
|
+
|
|
11951
12433
|
/*
|
|
11952
12434
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11953
12435
|
* Licensed under the MIT License.
|
|
@@ -11957,6 +12439,7 @@ class CustomAuthApiClient {
|
|
|
11957
12439
|
this.signInApi = new SignInApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams);
|
|
11958
12440
|
this.signUpApi = new SignupApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams);
|
|
11959
12441
|
this.resetPasswordApi = new ResetPasswordApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams);
|
|
12442
|
+
this.registerApi = new RegisterApiClient(customAuthApiBaseUrl, clientId, httpClient);
|
|
11960
12443
|
}
|
|
11961
12444
|
}
|
|
11962
12445
|
|
|
@@ -12178,6 +12661,124 @@ class ResetPasswordClient extends CustomAuthInteractionClientBase {
|
|
|
12178
12661
|
}
|
|
12179
12662
|
}
|
|
12180
12663
|
|
|
12664
|
+
/*
|
|
12665
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12666
|
+
* Licensed under the MIT License.
|
|
12667
|
+
*/
|
|
12668
|
+
/**
|
|
12669
|
+
* JIT client for handling just-in-time authentication method registration flows.
|
|
12670
|
+
*/
|
|
12671
|
+
class JitClient extends CustomAuthInteractionClientBase {
|
|
12672
|
+
/**
|
|
12673
|
+
* Gets available authentication methods for JIT registration.
|
|
12674
|
+
* @param parameters The parameters for getting auth methods.
|
|
12675
|
+
* @returns Promise that resolves to JitGetAuthMethodsResult.
|
|
12676
|
+
*/
|
|
12677
|
+
async getAuthMethods(parameters) {
|
|
12678
|
+
const apiId = JIT_GET_AUTH_METHODS;
|
|
12679
|
+
const telemetryManager = this.initializeServerTelemetryManager(apiId);
|
|
12680
|
+
this.logger.verbose("Calling introspect endpoint for getting auth methods.", parameters.correlationId);
|
|
12681
|
+
const request = {
|
|
12682
|
+
continuation_token: parameters.continuationToken,
|
|
12683
|
+
correlationId: parameters.correlationId,
|
|
12684
|
+
telemetryManager: telemetryManager,
|
|
12685
|
+
};
|
|
12686
|
+
const introspectResponse = await this.customAuthApiClient.registerApi.introspect(request);
|
|
12687
|
+
this.logger.verbose("Introspect endpoint called for getting auth methods.", parameters.correlationId);
|
|
12688
|
+
return createJitGetAuthMethodsResult({
|
|
12689
|
+
correlationId: introspectResponse.correlation_id,
|
|
12690
|
+
continuationToken: introspectResponse.continuation_token,
|
|
12691
|
+
authMethods: introspectResponse.methods,
|
|
12692
|
+
});
|
|
12693
|
+
}
|
|
12694
|
+
/**
|
|
12695
|
+
* Challenges an authentication method for JIT registration.
|
|
12696
|
+
* @param parameters The parameters for challenging the auth method.
|
|
12697
|
+
* @returns Promise that resolves to either JitVerificationRequiredResult or JitCompletedResult.
|
|
12698
|
+
*/
|
|
12699
|
+
async challengeAuthMethod(parameters) {
|
|
12700
|
+
const apiId = JIT_CHALLENGE_AUTH_METHOD;
|
|
12701
|
+
const telemetryManager = this.initializeServerTelemetryManager(apiId);
|
|
12702
|
+
this.logger.verbose("Calling challenge endpoint for getting auth method.", parameters.correlationId);
|
|
12703
|
+
const challengeReq = {
|
|
12704
|
+
continuation_token: parameters.continuationToken,
|
|
12705
|
+
challenge_type: parameters.authMethod.challenge_type,
|
|
12706
|
+
challenge_target: parameters.verificationContact,
|
|
12707
|
+
challenge_channel: parameters.authMethod.challenge_channel,
|
|
12708
|
+
correlationId: parameters.correlationId,
|
|
12709
|
+
telemetryManager: telemetryManager,
|
|
12710
|
+
};
|
|
12711
|
+
const challengeResponse = await this.customAuthApiClient.registerApi.challenge(challengeReq);
|
|
12712
|
+
this.logger.verbose("Challenge endpoint called for auth method registration.", parameters.correlationId);
|
|
12713
|
+
/*
|
|
12714
|
+
* Handle fast-pass scenario (preverified)
|
|
12715
|
+
* This occurs when the user selects the same email used during sign-up
|
|
12716
|
+
* Since the email was already verified during sign-up, no additional verification is needed
|
|
12717
|
+
*/
|
|
12718
|
+
if (challengeResponse.challenge_type === ChallengeType.PREVERIFIED) {
|
|
12719
|
+
this.logger.verbose("Fast-pass scenario detected - completing registration without additional verification.", challengeResponse.correlation_id);
|
|
12720
|
+
// Use submitChallenge for fast-pass scenario with continuation_token grant type
|
|
12721
|
+
const fastPassParams = {
|
|
12722
|
+
correlationId: challengeResponse.correlation_id,
|
|
12723
|
+
continuationToken: challengeResponse.continuation_token,
|
|
12724
|
+
grantType: GrantType.CONTINUATION_TOKEN,
|
|
12725
|
+
scopes: parameters.scopes,
|
|
12726
|
+
username: parameters.username,
|
|
12727
|
+
claims: parameters.claims,
|
|
12728
|
+
};
|
|
12729
|
+
const completedResult = await this.submitChallenge(fastPassParams);
|
|
12730
|
+
return completedResult;
|
|
12731
|
+
}
|
|
12732
|
+
// Verification required
|
|
12733
|
+
return createJitVerificationRequiredResult({
|
|
12734
|
+
correlationId: challengeResponse.correlation_id,
|
|
12735
|
+
continuationToken: challengeResponse.continuation_token,
|
|
12736
|
+
challengeChannel: challengeResponse.challenge_channel,
|
|
12737
|
+
challengeTargetLabel: challengeResponse.challenge_target,
|
|
12738
|
+
codeLength: challengeResponse.code_length || DefaultCustomAuthApiCodeLength,
|
|
12739
|
+
});
|
|
12740
|
+
}
|
|
12741
|
+
/**
|
|
12742
|
+
* Submits challenge response and completes JIT registration.
|
|
12743
|
+
* @param parameters The parameters for submitting the challenge.
|
|
12744
|
+
* @returns Promise that resolves to JitCompletedResult.
|
|
12745
|
+
*/
|
|
12746
|
+
async submitChallenge(parameters) {
|
|
12747
|
+
const apiId = JIT_SUBMIT_CHALLENGE;
|
|
12748
|
+
const telemetryManager = this.initializeServerTelemetryManager(apiId);
|
|
12749
|
+
this.logger.verbose("Calling continue endpoint for auth method challenge submission.", parameters.correlationId);
|
|
12750
|
+
// Submit challenge to complete registration
|
|
12751
|
+
const continueReq = {
|
|
12752
|
+
continuation_token: parameters.continuationToken,
|
|
12753
|
+
grant_type: parameters.grantType,
|
|
12754
|
+
...(parameters.challenge && {
|
|
12755
|
+
oob: parameters.challenge,
|
|
12756
|
+
}),
|
|
12757
|
+
correlationId: parameters.correlationId,
|
|
12758
|
+
telemetryManager: telemetryManager,
|
|
12759
|
+
};
|
|
12760
|
+
const continueResponse = await this.customAuthApiClient.registerApi.continue(continueReq);
|
|
12761
|
+
this.logger.verbose("Continue endpoint called for auth method challenge submission.", parameters.correlationId);
|
|
12762
|
+
// Use continuation token to get authentication tokens
|
|
12763
|
+
const scopes = this.getScopes(parameters.scopes);
|
|
12764
|
+
const tokenRequest = {
|
|
12765
|
+
continuation_token: continueResponse.continuation_token,
|
|
12766
|
+
scope: scopes.join(" "),
|
|
12767
|
+
correlationId: continueResponse.correlation_id,
|
|
12768
|
+
telemetryManager: telemetryManager,
|
|
12769
|
+
...(parameters.claims && {
|
|
12770
|
+
claims: parameters.claims,
|
|
12771
|
+
}),
|
|
12772
|
+
};
|
|
12773
|
+
const tokenResponse = await this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(tokenRequest);
|
|
12774
|
+
const authResult = await this.handleTokenResponse(tokenResponse, scopes, continueResponse.correlation_id);
|
|
12775
|
+
return createJitCompletedResult({
|
|
12776
|
+
correlationId: continueResponse.correlation_id,
|
|
12777
|
+
authenticationResult: authResult,
|
|
12778
|
+
});
|
|
12779
|
+
}
|
|
12780
|
+
}
|
|
12781
|
+
|
|
12181
12782
|
/*
|
|
12182
12783
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12183
12784
|
* Licensed under the MIT License.
|
|
@@ -19792,6 +20393,7 @@ class CustomAuthStandardController extends StandardController {
|
|
|
19792
20393
|
this.signUpClient = interactionClientFactory.create(SignUpClient);
|
|
19793
20394
|
this.resetPasswordClient =
|
|
19794
20395
|
interactionClientFactory.create(ResetPasswordClient);
|
|
20396
|
+
this.jitClient = interactionClientFactory.create(JitClient);
|
|
19795
20397
|
this.cacheClient = interactionClientFactory.create(CustomAuthSilentCacheClient);
|
|
19796
20398
|
}
|
|
19797
20399
|
/*
|
|
@@ -19850,6 +20452,7 @@ class CustomAuthStandardController extends StandardController {
|
|
|
19850
20452
|
config: this.customAuthConfig,
|
|
19851
20453
|
signInClient: this.signInClient,
|
|
19852
20454
|
cacheClient: this.cacheClient,
|
|
20455
|
+
jitClient: this.jitClient,
|
|
19853
20456
|
username: signInInputs.username,
|
|
19854
20457
|
codeLength: startResult.codeLength,
|
|
19855
20458
|
scopes: signInInputs.scopes ?? [],
|
|
@@ -19868,6 +20471,7 @@ class CustomAuthStandardController extends StandardController {
|
|
|
19868
20471
|
config: this.customAuthConfig,
|
|
19869
20472
|
signInClient: this.signInClient,
|
|
19870
20473
|
cacheClient: this.cacheClient,
|
|
20474
|
+
jitClient: this.jitClient,
|
|
19871
20475
|
username: signInInputs.username,
|
|
19872
20476
|
scopes: signInInputs.scopes ?? [],
|
|
19873
20477
|
claims: signInInputs.claims,
|
|
@@ -19885,10 +20489,35 @@ class CustomAuthStandardController extends StandardController {
|
|
|
19885
20489
|
username: signInInputs.username,
|
|
19886
20490
|
claims: signInInputs.claims,
|
|
19887
20491
|
};
|
|
19888
|
-
const
|
|
20492
|
+
const submitPasswordResult = await this.signInClient.submitPassword(submitPasswordParams);
|
|
19889
20493
|
this.logger.verbose("Sign-in flow completed.", correlationId);
|
|
19890
|
-
|
|
19891
|
-
|
|
20494
|
+
if (submitPasswordResult.type === SIGN_IN_COMPLETED_RESULT_TYPE) {
|
|
20495
|
+
const accountInfo = new CustomAuthAccountData(submitPasswordResult.authenticationResult.account, this.customAuthConfig, this.cacheClient, this.logger, correlationId);
|
|
20496
|
+
return new SignInResult(new SignInCompletedState(), accountInfo);
|
|
20497
|
+
}
|
|
20498
|
+
else if (submitPasswordResult.type ===
|
|
20499
|
+
SIGN_IN_JIT_REQUIRED_RESULT_TYPE) {
|
|
20500
|
+
// Authentication method registration is required - create AuthMethodRegistrationRequiredState
|
|
20501
|
+
this.logger.verbose("Authentication method registration required for sign-in.", correlationId);
|
|
20502
|
+
return new SignInResult(new AuthMethodRegistrationRequiredState({
|
|
20503
|
+
correlationId: correlationId,
|
|
20504
|
+
continuationToken: submitPasswordResult.continuationToken,
|
|
20505
|
+
logger: this.logger,
|
|
20506
|
+
config: this.customAuthConfig,
|
|
20507
|
+
jitClient: this.jitClient,
|
|
20508
|
+
cacheClient: this.cacheClient,
|
|
20509
|
+
authMethods: submitPasswordResult.authMethods,
|
|
20510
|
+
username: signInInputs.username,
|
|
20511
|
+
scopes: signInInputs.scopes ?? [],
|
|
20512
|
+
claims: signInInputs.claims,
|
|
20513
|
+
}));
|
|
20514
|
+
}
|
|
20515
|
+
else {
|
|
20516
|
+
// Unexpected result type
|
|
20517
|
+
const result = submitPasswordResult;
|
|
20518
|
+
const error = new Error(`Unexpected result type: ${result.type}`);
|
|
20519
|
+
return SignInResult.createWithError(error);
|
|
20520
|
+
}
|
|
19892
20521
|
}
|
|
19893
20522
|
this.logger.error("Unexpected sign-in result type. Returning error.", correlationId);
|
|
19894
20523
|
throw new UnexpectedError("Unknow sign-in result type", correlationId);
|
|
@@ -19934,6 +20563,7 @@ class CustomAuthStandardController extends StandardController {
|
|
|
19934
20563
|
signInClient: this.signInClient,
|
|
19935
20564
|
signUpClient: this.signUpClient,
|
|
19936
20565
|
cacheClient: this.cacheClient,
|
|
20566
|
+
jitClient: this.jitClient,
|
|
19937
20567
|
username: signUpInputs.username,
|
|
19938
20568
|
codeLength: startResult.codeLength,
|
|
19939
20569
|
codeResendInterval: startResult.interval,
|
|
@@ -19950,6 +20580,7 @@ class CustomAuthStandardController extends StandardController {
|
|
|
19950
20580
|
signInClient: this.signInClient,
|
|
19951
20581
|
signUpClient: this.signUpClient,
|
|
19952
20582
|
cacheClient: this.cacheClient,
|
|
20583
|
+
jitClient: this.jitClient,
|
|
19953
20584
|
username: signUpInputs.username,
|
|
19954
20585
|
}));
|
|
19955
20586
|
}
|
|
@@ -19988,6 +20619,7 @@ class CustomAuthStandardController extends StandardController {
|
|
|
19988
20619
|
signInClient: this.signInClient,
|
|
19989
20620
|
resetPasswordClient: this.resetPasswordClient,
|
|
19990
20621
|
cacheClient: this.cacheClient,
|
|
20622
|
+
jitClient: this.jitClient,
|
|
19991
20623
|
username: resetPasswordInputs.username,
|
|
19992
20624
|
codeLength: startResult.codeLength,
|
|
19993
20625
|
}));
|
|
@@ -20874,6 +21506,14 @@ class UserAccountAttributeError extends CustomAuthError {
|
|
|
20874
21506
|
|
|
20875
21507
|
exports.AuthFlowActionRequiredStateBase = AuthFlowActionRequiredStateBase;
|
|
20876
21508
|
exports.AuthFlowStateBase = AuthFlowStateBase;
|
|
21509
|
+
exports.AuthMethodRegistrationChallengeMethodError = AuthMethodRegistrationChallengeMethodError;
|
|
21510
|
+
exports.AuthMethodRegistrationChallengeMethodResult = AuthMethodRegistrationChallengeMethodResult;
|
|
21511
|
+
exports.AuthMethodRegistrationCompletedState = AuthMethodRegistrationCompletedState;
|
|
21512
|
+
exports.AuthMethodRegistrationFailedState = AuthMethodRegistrationFailedState;
|
|
21513
|
+
exports.AuthMethodRegistrationRequiredState = AuthMethodRegistrationRequiredState;
|
|
21514
|
+
exports.AuthMethodRegistrationSubmitChallengeError = AuthMethodRegistrationSubmitChallengeError;
|
|
21515
|
+
exports.AuthMethodRegistrationSubmitChallengeResult = AuthMethodRegistrationSubmitChallengeResult;
|
|
21516
|
+
exports.AuthMethodVerificationRequiredState = AuthMethodVerificationRequiredState;
|
|
20877
21517
|
exports.CustomAuthAccountData = CustomAuthAccountData;
|
|
20878
21518
|
exports.CustomAuthApiError = CustomAuthApiError;
|
|
20879
21519
|
exports.CustomAuthError = CustomAuthError;
|