@azure/msal-browser 4.23.0 → 4.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientNext.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +15 -15
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +24 -51
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
- package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
- package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/TokenCache.mjs +1 -1
- package/dist/custom-auth-path/config/Configuration.mjs +1 -1
- package/dist/custom-auth-path/controllers/ControllerFactory.mjs +1 -1
- package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.mjs +24 -51
- package/dist/custom-auth-path/controllers/StandardController.mjs.map +1 -1
- package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
- package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
- package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +2 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +2 -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.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +2 -1
- 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 +11 -3
- 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.mjs +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/jit/error_type/AuthMethodRegistrationError.d.ts +5 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +9 -2
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +22 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +36 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +30 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +7 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +7 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +59 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +19 -0
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +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.mjs +2 -2
- 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 +2 -8
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +4 -26
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +0 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +2 -11
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +2 -9
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +21 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +14 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +23 -0
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.map +1 -0
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +1 -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 +3 -2
- 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/RegisterApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +7 -2
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +14 -3
- 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 +5 -0
- 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 +5 -1
- 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 +4 -3
- 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 +4 -5
- 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.mjs +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.mjs +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.mjs +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/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.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +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 +13 -4
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +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.mjs +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/interaction_client/SignInClient.d.ts +8 -6
- 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 +51 -29
- 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 +6 -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.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +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.mjs +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/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/navigation/NavigationClient.mjs +1 -1
- package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
- package/dist/custom-auth-path/packageMetadata.mjs +2 -2
- package/dist/custom-auth-path/protocol/Authorize.mjs +1 -1
- package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
- package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
- package/dist/custom-auth-path/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.d.ts +2 -1
- package/dist/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +2 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +5 -0
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +22 -0
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +36 -0
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +30 -0
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +7 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +7 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +59 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +19 -0
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +1 -0
- package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts +2 -8
- package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +0 -1
- package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -1
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +2 -11
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +21 -0
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -0
- package/dist/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +14 -0
- package/dist/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +1 -0
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +23 -0
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.map +1 -0
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +1 -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/SignInApiClient.d.ts +7 -2
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +5 -0
- 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 +5 -1
- 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 +4 -3
- package/dist/custom_auth/core/telemetry/PublicApiId.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/interaction_client/SignInClient.d.ts +8 -6
- 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 +6 -0
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.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/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +3 -3
- package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/lib/custom-auth-path/msal-custom-auth.cjs +230 -215
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +2 -1
- package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +2 -1
- 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/jit/error_type/AuthMethodRegistrationError.d.ts +5 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +22 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +36 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +30 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +7 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +7 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +59 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +19 -0
- package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts +2 -8
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +0 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +2 -11
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +21 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +14 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +23 -0
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.map +1 -0
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +1 -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/SignInApiClient.d.ts +7 -2
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +5 -0
- 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 +5 -1
- 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 +4 -3
- package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.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/interaction_client/SignInClient.d.ts +8 -6
- 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 +6 -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/packageMetadata.d.ts +1 -1
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/lib/msal-browser.cjs +133 -136
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +133 -136
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +60 -60
- package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/custom_auth/CustomAuthConstants.d.ts +2 -1
- package/lib/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +2 -1
- package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +5 -0
- package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -1
- package/lib/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +22 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +36 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +30 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +7 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +7 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +59 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +19 -0
- package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +1 -0
- package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts +2 -8
- package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +0 -1
- package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -1
- package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +2 -11
- package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -1
- package/lib/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +21 -0
- package/lib/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -0
- package/lib/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +14 -0
- package/lib/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +1 -0
- package/lib/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +23 -0
- package/lib/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.map +1 -0
- package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +1 -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/SignInApiClient.d.ts +7 -2
- package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +5 -0
- 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 +5 -1
- 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 +4 -3
- package/lib/types/custom_auth/core/telemetry/PublicApiId.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/interaction_client/SignInClient.d.ts +8 -6
- 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 +6 -0
- package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/controllers/NestedAppAuthController.ts +40 -23
- package/src/controllers/StandardController.ts +97 -79
- package/src/custom_auth/CustomAuthConstants.ts +1 -0
- package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +15 -2
- package/src/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.ts +9 -1
- package/src/custom_auth/core/auth_flow/mfa/error_type/MfaError.ts +32 -0
- package/src/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.ts +59 -0
- package/src/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.ts +52 -0
- package/src/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.ts +11 -0
- package/src/custom_auth/core/auth_flow/mfa/state/MfaFailedState.ts +11 -0
- package/src/custom_auth/core/auth_flow/mfa/state/MfaState.ts +188 -0
- package/src/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.ts +28 -0
- package/src/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.ts +1 -1
- package/src/custom_auth/core/interaction_client/jit/JitClient.ts +1 -42
- package/src/custom_auth/core/interaction_client/jit/parameter/JitParams.ts +0 -2
- package/src/custom_auth/core/interaction_client/jit/result/JitActionResult.ts +2 -22
- package/src/custom_auth/core/interaction_client/mfa/MfaClient.ts +148 -0
- package/src/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.ts +20 -0
- package/src/custom_auth/core/interaction_client/mfa/result/MfaActionResult.ts +48 -0
- package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +1 -0
- package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +27 -1
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts +6 -0
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.ts +6 -1
- package/src/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.ts +1 -0
- package/src/custom_auth/core/telemetry/PublicApiId.ts +6 -3
- package/src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts +22 -12
- package/src/custom_auth/sign_in/interaction_client/SignInClient.ts +123 -41
- package/src/custom_auth/sign_in/interaction_client/result/SignInActionResult.ts +15 -0
- package/src/packageMetadata.ts +1 -1
- package/src/telemetry/BrowserPerformanceClient.ts +5 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.24.0 2025-09-24 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v15.
|
|
5
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
279
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
290
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
325
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
375
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
449
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
488
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
679
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
680
680
|
/* eslint-disable header/header */
|
|
681
681
|
const name$1 = "@azure/msal-common";
|
|
682
|
-
const version$1 = "15.
|
|
682
|
+
const version$1 = "15.13.0";
|
|
683
683
|
|
|
684
|
-
/*! @azure/msal-common v15.
|
|
684
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
693
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
722
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
767
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
864
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
1059
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
1141
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
1202
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
1318
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
1482
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
1621
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
1629
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
1674
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
2782
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
2806
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
3073
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
3152
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
3252
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
3262
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
3302
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
3352
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
3732
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
3747
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
3759
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
3769
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
3779
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
3875
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
3981
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
4046
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
4308
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
5147
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
5178
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
5197
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
5218
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
5305
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
5336
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
5484
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
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.
|
|
5506
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
5507
5507
|
|
|
5508
5508
|
/*
|
|
5509
5509
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5551,6 +5551,7 @@ class AccountEntity {
|
|
|
5551
5551
|
tenantProfiles: new Map((this.tenantProfiles || []).map((tenantProfile) => {
|
|
5552
5552
|
return [tenantProfile.tenantId, tenantProfile];
|
|
5553
5553
|
})),
|
|
5554
|
+
dataBoundary: this.dataBoundary,
|
|
5554
5555
|
};
|
|
5555
5556
|
}
|
|
5556
5557
|
/**
|
|
@@ -5577,6 +5578,10 @@ class AccountEntity {
|
|
|
5577
5578
|
let clientInfo;
|
|
5578
5579
|
if (accountDetails.clientInfo && base64Decode) {
|
|
5579
5580
|
clientInfo = buildClientInfo(accountDetails.clientInfo, base64Decode);
|
|
5581
|
+
if (clientInfo.xms_tdbr) {
|
|
5582
|
+
account.dataBoundary =
|
|
5583
|
+
clientInfo.xms_tdbr === "EU" ? "EU" : "None";
|
|
5584
|
+
}
|
|
5580
5585
|
}
|
|
5581
5586
|
account.clientInfo = accountDetails.clientInfo;
|
|
5582
5587
|
account.homeAccountId = accountDetails.homeAccountId;
|
|
@@ -5645,6 +5650,7 @@ class AccountEntity {
|
|
|
5645
5650
|
account.msGraphHost = msGraphHost;
|
|
5646
5651
|
// Serialize tenant profiles map into an array
|
|
5647
5652
|
account.tenantProfiles = Array.from(accountInfo.tenantProfiles?.values() || []);
|
|
5653
|
+
account.dataBoundary = accountInfo.dataBoundary;
|
|
5648
5654
|
return account;
|
|
5649
5655
|
}
|
|
5650
5656
|
/**
|
|
@@ -5718,7 +5724,7 @@ class AccountEntity {
|
|
|
5718
5724
|
}
|
|
5719
5725
|
}
|
|
5720
5726
|
|
|
5721
|
-
/*! @azure/msal-common v15.
|
|
5727
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
5722
5728
|
/*
|
|
5723
5729
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5724
5730
|
* Licensed under the MIT License.
|
|
@@ -5734,7 +5740,7 @@ const consentRequired = "consent_required";
|
|
|
5734
5740
|
const loginRequired = "login_required";
|
|
5735
5741
|
const badToken = "bad_token";
|
|
5736
5742
|
|
|
5737
|
-
/*! @azure/msal-common v15.
|
|
5743
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
5738
5744
|
|
|
5739
5745
|
/*
|
|
5740
5746
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5806,7 +5812,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
5806
5812
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
5807
5813
|
}
|
|
5808
5814
|
|
|
5809
|
-
/*! @azure/msal-common v15.
|
|
5815
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
5810
5816
|
|
|
5811
5817
|
/*
|
|
5812
5818
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5878,7 +5884,7 @@ class ProtocolUtils {
|
|
|
5878
5884
|
}
|
|
5879
5885
|
}
|
|
5880
5886
|
|
|
5881
|
-
/*! @azure/msal-common v15.
|
|
5887
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
5882
5888
|
|
|
5883
5889
|
/*
|
|
5884
5890
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5960,7 +5966,7 @@ class PopTokenGenerator {
|
|
|
5960
5966
|
}
|
|
5961
5967
|
}
|
|
5962
5968
|
|
|
5963
|
-
/*! @azure/msal-common v15.
|
|
5969
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
5964
5970
|
/*
|
|
5965
5971
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5966
5972
|
* Licensed under the MIT License.
|
|
@@ -5987,7 +5993,7 @@ class PopTokenGenerator {
|
|
|
5987
5993
|
}
|
|
5988
5994
|
}
|
|
5989
5995
|
|
|
5990
|
-
/*! @azure/msal-common v15.
|
|
5996
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
5991
5997
|
|
|
5992
5998
|
/*
|
|
5993
5999
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6318,7 +6324,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6318
6324
|
return baseAccount;
|
|
6319
6325
|
}
|
|
6320
6326
|
|
|
6321
|
-
/*! @azure/msal-common v15.
|
|
6327
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
6322
6328
|
/*
|
|
6323
6329
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6324
6330
|
* Licensed under the MIT License.
|
|
@@ -6336,7 +6342,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
6336
6342
|
}
|
|
6337
6343
|
}
|
|
6338
6344
|
|
|
6339
|
-
/*! @azure/msal-common v15.
|
|
6345
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
6340
6346
|
|
|
6341
6347
|
/*
|
|
6342
6348
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6571,7 +6577,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
6571
6577
|
}
|
|
6572
6578
|
}
|
|
6573
6579
|
|
|
6574
|
-
/*! @azure/msal-common v15.
|
|
6580
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
6575
6581
|
|
|
6576
6582
|
/*
|
|
6577
6583
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6780,7 +6786,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
6780
6786
|
}
|
|
6781
6787
|
}
|
|
6782
6788
|
|
|
6783
|
-
/*! @azure/msal-common v15.
|
|
6789
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
6784
6790
|
|
|
6785
6791
|
/*
|
|
6786
6792
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6878,7 +6884,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
6878
6884
|
}
|
|
6879
6885
|
}
|
|
6880
6886
|
|
|
6881
|
-
/*! @azure/msal-common v15.
|
|
6887
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
6882
6888
|
|
|
6883
6889
|
/*
|
|
6884
6890
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6893,7 +6899,7 @@ const StubbedNetworkModule = {
|
|
|
6893
6899
|
},
|
|
6894
6900
|
};
|
|
6895
6901
|
|
|
6896
|
-
/*! @azure/msal-common v15.
|
|
6902
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
6897
6903
|
|
|
6898
6904
|
/*
|
|
6899
6905
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7117,7 +7123,7 @@ function extractLoginHint(account) {
|
|
|
7117
7123
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7118
7124
|
}
|
|
7119
7125
|
|
|
7120
|
-
/*! @azure/msal-common v15.
|
|
7126
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
7121
7127
|
|
|
7122
7128
|
/*
|
|
7123
7129
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7380,7 +7386,7 @@ class ServerTelemetryManager {
|
|
|
7380
7386
|
}
|
|
7381
7387
|
}
|
|
7382
7388
|
|
|
7383
|
-
/*! @azure/msal-common v15.
|
|
7389
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
7384
7390
|
/*
|
|
7385
7391
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7386
7392
|
* Licensed under the MIT License.
|
|
@@ -7388,7 +7394,7 @@ class ServerTelemetryManager {
|
|
|
7388
7394
|
const missingKidError = "missing_kid_error";
|
|
7389
7395
|
const missingAlgError = "missing_alg_error";
|
|
7390
7396
|
|
|
7391
|
-
/*! @azure/msal-common v15.
|
|
7397
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
7392
7398
|
|
|
7393
7399
|
/*
|
|
7394
7400
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7413,7 +7419,7 @@ function createJoseHeaderError(code) {
|
|
|
7413
7419
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
7414
7420
|
}
|
|
7415
7421
|
|
|
7416
|
-
/*! @azure/msal-common v15.
|
|
7422
|
+
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
7417
7423
|
|
|
7418
7424
|
/*
|
|
7419
7425
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7645,7 +7651,8 @@ const PASSWORD_BANNED = "password_banned";
|
|
|
7645
7651
|
const PASSWORD_IS_INVALID = "password_is_invalid";
|
|
7646
7652
|
const INVALID_OOB_VALUE = "invalid_oob_value";
|
|
7647
7653
|
const ATTRIBUTE_VALIATION_FAILED = "attribute_validation_failed";
|
|
7648
|
-
const REGISTRATION_REQUIRED = "registration_required";
|
|
7654
|
+
const REGISTRATION_REQUIRED = "registration_required";
|
|
7655
|
+
const MFA_REQUIRED = "mfa_required";
|
|
7649
7656
|
|
|
7650
7657
|
/*
|
|
7651
7658
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7689,7 +7696,9 @@ class AuthFlowErrorBase {
|
|
|
7689
7696
|
this.errorData.subError ===
|
|
7690
7697
|
INVALID_OOB_VALUE) ||
|
|
7691
7698
|
(this.errorData instanceof InvalidArgumentError &&
|
|
7692
|
-
this.errorData.errorDescription?.includes("code")
|
|
7699
|
+
(this.errorData.errorDescription?.includes("code") ||
|
|
7700
|
+
this.errorData.errorDescription?.includes("challenge")) ===
|
|
7701
|
+
true));
|
|
7693
7702
|
}
|
|
7694
7703
|
isRedirectError() {
|
|
7695
7704
|
return this.errorData instanceof RedirectError;
|
|
@@ -7740,11 +7749,17 @@ class AuthFlowErrorBase {
|
|
|
7740
7749
|
this.errorData.error === INVALID_REQUEST &&
|
|
7741
7750
|
this.errorData.errorCodes?.includes(50142) === true);
|
|
7742
7751
|
}
|
|
7743
|
-
|
|
7752
|
+
isInvalidInputError() {
|
|
7744
7753
|
return (this.errorData instanceof CustomAuthApiError &&
|
|
7745
7754
|
this.errorData.error === INVALID_REQUEST &&
|
|
7746
7755
|
this.errorData.errorCodes?.includes(901001) === true);
|
|
7747
7756
|
}
|
|
7757
|
+
isVerificationContactBlockedError() {
|
|
7758
|
+
return (this.errorData instanceof CustomAuthApiError &&
|
|
7759
|
+
this.errorData.error === INVALID_REQUEST &&
|
|
7760
|
+
this.errorData.errorCodes?.includes(550024) === true &&
|
|
7761
|
+
this.errorData.errorDescription?.includes("multi-factor authentication method is blocked") === true);
|
|
7762
|
+
}
|
|
7748
7763
|
}
|
|
7749
7764
|
class AuthActionErrorBase extends AuthFlowErrorBase {
|
|
7750
7765
|
/**
|
|
@@ -7837,7 +7852,7 @@ function ensureArgumentIsJSONString(argName, argValue, correlationId) {
|
|
|
7837
7852
|
|
|
7838
7853
|
/* eslint-disable header/header */
|
|
7839
7854
|
const name = "@azure/msal-browser";
|
|
7840
|
-
const version = "4.
|
|
7855
|
+
const version = "4.24.0";
|
|
7841
7856
|
|
|
7842
7857
|
/*
|
|
7843
7858
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7849,6 +7864,7 @@ const GrantType = {
|
|
|
7849
7864
|
CONTINUATION_TOKEN: "continuation_token",
|
|
7850
7865
|
REDIRECT: "redirect",
|
|
7851
7866
|
ATTRIBUTES: "attributes",
|
|
7867
|
+
MFA_OOB: "mfa_oob",
|
|
7852
7868
|
};
|
|
7853
7869
|
const ChallengeType = {
|
|
7854
7870
|
PASSWORD: "password",
|
|
@@ -8370,6 +8386,46 @@ class SignInState extends AuthFlowActionRequiredStateBase {
|
|
|
8370
8386
|
}
|
|
8371
8387
|
}
|
|
8372
8388
|
|
|
8389
|
+
/*
|
|
8390
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8391
|
+
* Licensed under the MIT License.
|
|
8392
|
+
*/
|
|
8393
|
+
const SIGN_IN_CODE_SEND_RESULT_TYPE = "SignInCodeSendResult";
|
|
8394
|
+
const SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE = "SignInPasswordRequiredResult";
|
|
8395
|
+
const SIGN_IN_COMPLETED_RESULT_TYPE = "SignInCompletedResult";
|
|
8396
|
+
const SIGN_IN_JIT_REQUIRED_RESULT_TYPE = "SignInJitRequiredResult";
|
|
8397
|
+
const SIGN_IN_MFA_REQUIRED_RESULT_TYPE = "SignInMfaRequiredResult";
|
|
8398
|
+
function createSignInCompleteResult(input) {
|
|
8399
|
+
return {
|
|
8400
|
+
type: SIGN_IN_COMPLETED_RESULT_TYPE,
|
|
8401
|
+
...input,
|
|
8402
|
+
};
|
|
8403
|
+
}
|
|
8404
|
+
function createSignInPasswordRequiredResult(input) {
|
|
8405
|
+
return {
|
|
8406
|
+
type: SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE,
|
|
8407
|
+
...input,
|
|
8408
|
+
};
|
|
8409
|
+
}
|
|
8410
|
+
function createSignInCodeSendResult(input) {
|
|
8411
|
+
return {
|
|
8412
|
+
type: SIGN_IN_CODE_SEND_RESULT_TYPE,
|
|
8413
|
+
...input,
|
|
8414
|
+
};
|
|
8415
|
+
}
|
|
8416
|
+
function createSignInJitRequiredResult(input) {
|
|
8417
|
+
return {
|
|
8418
|
+
type: SIGN_IN_JIT_REQUIRED_RESULT_TYPE,
|
|
8419
|
+
...input,
|
|
8420
|
+
};
|
|
8421
|
+
}
|
|
8422
|
+
function createSignInMfaRequiredResult(input) {
|
|
8423
|
+
return {
|
|
8424
|
+
type: SIGN_IN_MFA_REQUIRED_RESULT_TYPE,
|
|
8425
|
+
...input,
|
|
8426
|
+
};
|
|
8427
|
+
}
|
|
8428
|
+
|
|
8373
8429
|
/*
|
|
8374
8430
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8375
8431
|
* Licensed under the MIT License.
|
|
@@ -8398,10 +8454,18 @@ class SignInCodeRequiredState extends SignInState {
|
|
|
8398
8454
|
claims: this.stateParameters.claims,
|
|
8399
8455
|
};
|
|
8400
8456
|
this.stateParameters.logger.verbose("Submitting code for sign-in.", this.stateParameters.correlationId);
|
|
8401
|
-
const
|
|
8457
|
+
const submitCodeResult = await this.stateParameters.signInClient.submitCode(submitCodeParams);
|
|
8402
8458
|
this.stateParameters.logger.verbose("Code submitted for sign-in.", this.stateParameters.correlationId);
|
|
8403
|
-
|
|
8404
|
-
|
|
8459
|
+
if (submitCodeResult.type === SIGN_IN_COMPLETED_RESULT_TYPE) {
|
|
8460
|
+
const accountInfo = new CustomAuthAccountData(submitCodeResult.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
|
|
8461
|
+
return new SignInSubmitCodeResult(new SignInCompletedState(), accountInfo);
|
|
8462
|
+
}
|
|
8463
|
+
else {
|
|
8464
|
+
// Unexpected result type
|
|
8465
|
+
const result = submitCodeResult;
|
|
8466
|
+
const error = new Error(`Unexpected result type: ${result.type}`);
|
|
8467
|
+
return SignInSubmitCodeResult.createWithError(error);
|
|
8468
|
+
}
|
|
8405
8469
|
}
|
|
8406
8470
|
catch (error) {
|
|
8407
8471
|
this.stateParameters.logger.errorPii(`Failed to submit code for sign-in. Error: ${error}.`, this.stateParameters.correlationId);
|
|
@@ -8462,15 +8526,8 @@ class SignInCodeRequiredState extends SignInState {
|
|
|
8462
8526
|
* Licensed under the MIT License.
|
|
8463
8527
|
*/
|
|
8464
8528
|
// Result type constants
|
|
8465
|
-
const JIT_GET_AUTH_METHODS_RESULT_TYPE = "JitGetAuthMethodsResult";
|
|
8466
8529
|
const JIT_VERIFICATION_REQUIRED_RESULT_TYPE = "JitVerificationRequiredResult";
|
|
8467
8530
|
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
8531
|
function createJitVerificationRequiredResult(input) {
|
|
8475
8532
|
return {
|
|
8476
8533
|
type: JIT_VERIFICATION_REQUIRED_RESULT_TYPE,
|
|
@@ -8497,7 +8554,14 @@ class AuthMethodRegistrationChallengeMethodError extends AuthActionErrorBase {
|
|
|
8497
8554
|
* @returns true if the input is incorrect, false otherwise.
|
|
8498
8555
|
*/
|
|
8499
8556
|
isInvalidInput() {
|
|
8500
|
-
return this.
|
|
8557
|
+
return this.isInvalidInputError();
|
|
8558
|
+
}
|
|
8559
|
+
/**
|
|
8560
|
+
* Checks if the error is due to the verification contact (e.g., phone number or email) being blocked. Consider using a different email/phone number or a different authentication method.
|
|
8561
|
+
* @returns true if the error is due to the verification contact being blocked, false otherwise.
|
|
8562
|
+
*/
|
|
8563
|
+
isVerificationContactBlocked() {
|
|
8564
|
+
return this.isVerificationContactBlockedError();
|
|
8501
8565
|
}
|
|
8502
8566
|
}
|
|
8503
8567
|
/**
|
|
@@ -8798,39 +8862,6 @@ class SignInSubmitPasswordResult extends AuthFlowResultBase {
|
|
|
8798
8862
|
}
|
|
8799
8863
|
}
|
|
8800
8864
|
|
|
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
|
-
};
|
|
8832
|
-
}
|
|
8833
|
-
|
|
8834
8865
|
/*
|
|
8835
8866
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8836
8867
|
* Licensed under the MIT License.
|
|
@@ -11007,7 +11038,7 @@ class CustomAuthInteractionClientBase extends StandardInteractionClient {
|
|
|
11007
11038
|
async handleTokenResponse(tokenResponse, requestScopes, correlationId) {
|
|
11008
11039
|
this.logger.verbose("Processing token response.", correlationId);
|
|
11009
11040
|
const requestTimestamp = Math.round(new Date().getTime() / 1000.0);
|
|
11010
|
-
// Save tokens and create authentication result
|
|
11041
|
+
// Save tokens and create authentication result
|
|
11011
11042
|
const result = await this.tokenResponseHandler.handleServerTokenResponse(tokenResponse, this.customAuthAuthority, requestTimestamp, {
|
|
11012
11043
|
authority: this.customAuthAuthority.canonicalAuthority,
|
|
11013
11044
|
correlationId: tokenResponse.correlation_id ?? correlationId,
|
|
@@ -11059,9 +11090,8 @@ const PASSWORD_RESET_SUBMIT_PASSWORD = 100043;
|
|
|
11059
11090
|
const PASSWORD_RESET_RESEND_CODE = 100044;
|
|
11060
11091
|
const ACCOUNT_GET_ACCESS_TOKEN = 100063;
|
|
11061
11092
|
// JIT (Just-In-Time) Auth Method Registration
|
|
11062
|
-
const
|
|
11063
|
-
const
|
|
11064
|
-
const JIT_SUBMIT_CHALLENGE = 100083;
|
|
11093
|
+
const JIT_CHALLENGE_AUTH_METHOD = 100081;
|
|
11094
|
+
const JIT_SUBMIT_CHALLENGE = 100082;
|
|
11065
11095
|
|
|
11066
11096
|
/*
|
|
11067
11097
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11129,6 +11159,7 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
11129
11159
|
const request = {
|
|
11130
11160
|
continuation_token: parameters.continuationToken,
|
|
11131
11161
|
oob: parameters.code,
|
|
11162
|
+
grant_type: GrantType.OOB,
|
|
11132
11163
|
scope: scopes.join(" "),
|
|
11133
11164
|
correlationId: parameters.correlationId,
|
|
11134
11165
|
telemetryManager: telemetryManager,
|
|
@@ -11136,9 +11167,7 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
11136
11167
|
claims: parameters.claims,
|
|
11137
11168
|
}),
|
|
11138
11169
|
};
|
|
11139
|
-
|
|
11140
|
-
);
|
|
11141
|
-
return result;
|
|
11170
|
+
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithOob(request), scopes, parameters.correlationId, telemetryManager);
|
|
11142
11171
|
}
|
|
11143
11172
|
/**
|
|
11144
11173
|
* Submits the password for sign-in flow.
|
|
@@ -11160,8 +11189,7 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
11160
11189
|
claims: parameters.claims,
|
|
11161
11190
|
}),
|
|
11162
11191
|
};
|
|
11163
|
-
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithPassword(request), scopes, parameters.correlationId, telemetryManager
|
|
11164
|
-
);
|
|
11192
|
+
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithPassword(request), scopes, parameters.correlationId, telemetryManager);
|
|
11165
11193
|
}
|
|
11166
11194
|
/**
|
|
11167
11195
|
* Signs in with continuation token.
|
|
@@ -11184,18 +11212,17 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
11184
11212
|
}),
|
|
11185
11213
|
};
|
|
11186
11214
|
// Call token endpoint.
|
|
11187
|
-
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(request), scopes, parameters.correlationId, telemetryManager
|
|
11188
|
-
);
|
|
11215
|
+
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(request), scopes, parameters.correlationId, telemetryManager);
|
|
11189
11216
|
}
|
|
11190
11217
|
/**
|
|
11191
11218
|
* Common method to handle token endpoint calls and create sign-in results.
|
|
11192
11219
|
* @param tokenEndpointCaller Function that calls the specific token endpoint
|
|
11193
11220
|
* @param scopes Scopes for the token request
|
|
11194
11221
|
* @param correlationId Correlation ID for logging and result
|
|
11195
|
-
* @param
|
|
11196
|
-
* @returns SignInCompletedResult with authentication result
|
|
11222
|
+
* @param telemetryManager Telemetry manager for telemetry logging
|
|
11223
|
+
* @returns SignInCompletedResult | SignInJitRequiredResult | SignInMfaRequiredResult with authentication result
|
|
11197
11224
|
*/
|
|
11198
|
-
async performTokenRequest(tokenEndpointCaller, scopes, correlationId, telemetryManager
|
|
11225
|
+
async performTokenRequest(tokenEndpointCaller, scopes, correlationId, telemetryManager) {
|
|
11199
11226
|
this.logger.verbose("Calling token endpoint for sign in.", correlationId);
|
|
11200
11227
|
try {
|
|
11201
11228
|
const tokenResponse = await tokenEndpointCaller();
|
|
@@ -11207,22 +11234,13 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
11207
11234
|
});
|
|
11208
11235
|
}
|
|
11209
11236
|
catch (error) {
|
|
11210
|
-
if (
|
|
11211
|
-
error instanceof CustomAuthApiError &&
|
|
11237
|
+
if (error instanceof CustomAuthApiError &&
|
|
11212
11238
|
error.subError === REGISTRATION_REQUIRED) {
|
|
11213
|
-
this.
|
|
11214
|
-
|
|
11215
|
-
|
|
11216
|
-
|
|
11217
|
-
|
|
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
|
-
});
|
|
11239
|
+
return this.handleJitRequiredError(error, telemetryManager, correlationId);
|
|
11240
|
+
}
|
|
11241
|
+
else if (error instanceof CustomAuthApiError &&
|
|
11242
|
+
error.subError === MFA_REQUIRED) {
|
|
11243
|
+
return this.handleMfaRequiredError(error, telemetryManager, correlationId);
|
|
11226
11244
|
}
|
|
11227
11245
|
// Re-throw any other errors or JIT errors when handleJit is false
|
|
11228
11246
|
throw error;
|
|
@@ -11266,6 +11284,40 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
11266
11284
|
throw new UnexpectedError(`Unsupported sign-in scenario '${scenario}'.`, correlationId);
|
|
11267
11285
|
}
|
|
11268
11286
|
}
|
|
11287
|
+
async handleJitRequiredError(error, telemetryManager, correlationId) {
|
|
11288
|
+
this.logger.verbose("Auth method registration required for sign in.", correlationId);
|
|
11289
|
+
// Call register introspect endpoint to get available authentication methods
|
|
11290
|
+
const introspectRequest = {
|
|
11291
|
+
continuation_token: error.continuationToken ?? "",
|
|
11292
|
+
correlationId: error.correlationId ?? correlationId,
|
|
11293
|
+
telemetryManager,
|
|
11294
|
+
};
|
|
11295
|
+
this.logger.verbose("Calling introspect endpoint for getting auth methods.", correlationId);
|
|
11296
|
+
const introspectResponse = await this.customAuthApiClient.registerApi.introspect(introspectRequest);
|
|
11297
|
+
this.logger.verbose("Introspect endpoint called for getting auth methods.", introspectResponse.correlation_id ?? correlationId);
|
|
11298
|
+
return createSignInJitRequiredResult({
|
|
11299
|
+
correlationId: introspectResponse.correlation_id ?? correlationId,
|
|
11300
|
+
continuationToken: introspectResponse.continuation_token ?? "",
|
|
11301
|
+
authMethods: introspectResponse.methods,
|
|
11302
|
+
});
|
|
11303
|
+
}
|
|
11304
|
+
async handleMfaRequiredError(error, telemetryManager, correlationId) {
|
|
11305
|
+
this.logger.verbose("MFA required for sign in.", correlationId);
|
|
11306
|
+
// Call sign-in introspect endpoint to get available MFA methods
|
|
11307
|
+
const introspectRequest = {
|
|
11308
|
+
continuation_token: error.continuationToken ?? "",
|
|
11309
|
+
correlationId: error.correlationId ?? correlationId,
|
|
11310
|
+
telemetryManager,
|
|
11311
|
+
};
|
|
11312
|
+
this.logger.verbose("Calling introspect endpoint for MFA auth methods.", correlationId);
|
|
11313
|
+
const introspectResponse = await this.customAuthApiClient.signInApi.requestAuthMethods(introspectRequest);
|
|
11314
|
+
this.logger.verbose("Introspect endpoint called for MFA auth methods.", introspectResponse.correlation_id ?? correlationId);
|
|
11315
|
+
return createSignInMfaRequiredResult({
|
|
11316
|
+
correlationId: introspectResponse.correlation_id ?? correlationId,
|
|
11317
|
+
continuationToken: introspectResponse.continuation_token ?? "",
|
|
11318
|
+
authMethods: introspectResponse.methods,
|
|
11319
|
+
});
|
|
11320
|
+
}
|
|
11269
11321
|
}
|
|
11270
11322
|
|
|
11271
11323
|
/*
|
|
@@ -11660,6 +11712,7 @@ class ResetPasswordStartResult extends AuthFlowResultBase {
|
|
|
11660
11712
|
const SIGNIN_INITIATE = "/oauth2/v2.0/initiate";
|
|
11661
11713
|
const SIGNIN_CHALLENGE = "/oauth2/v2.0/challenge";
|
|
11662
11714
|
const SIGNIN_TOKEN = "/oauth2/v2.0/token";
|
|
11715
|
+
const SIGNIN_INTROSPECT = "/oauth2/v2.0/introspect";
|
|
11663
11716
|
const SIGNUP_START = "/signup/v1.0/start";
|
|
11664
11717
|
const SIGNUP_CHALLENGE = "/signup/v1.0/challenge";
|
|
11665
11718
|
const SIGNUP_CONTINUE = "/signup/v1.0/continue";
|
|
@@ -12331,7 +12384,7 @@ class SignInApiClient extends BaseApiClient {
|
|
|
12331
12384
|
continuation_token: params.continuation_token,
|
|
12332
12385
|
scope: params.scope,
|
|
12333
12386
|
oob: params.oob,
|
|
12334
|
-
grant_type:
|
|
12387
|
+
grant_type: params.grant_type,
|
|
12335
12388
|
...(params.claims && { claims: params.claims }),
|
|
12336
12389
|
}, params.telemetryManager, params.correlationId);
|
|
12337
12390
|
}
|
|
@@ -12345,6 +12398,17 @@ class SignInApiClient extends BaseApiClient {
|
|
|
12345
12398
|
...(params.username && { username: params.username }),
|
|
12346
12399
|
}, params.telemetryManager, params.correlationId);
|
|
12347
12400
|
}
|
|
12401
|
+
/**
|
|
12402
|
+
* Requests available authentication methods for MFA
|
|
12403
|
+
* @param continuationToken Token from previous response
|
|
12404
|
+
*/
|
|
12405
|
+
async requestAuthMethods(params) {
|
|
12406
|
+
const result = await this.request(SIGNIN_INTROSPECT, {
|
|
12407
|
+
continuation_token: params.continuation_token,
|
|
12408
|
+
}, params.telemetryManager, params.correlationId);
|
|
12409
|
+
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
|
12410
|
+
return result;
|
|
12411
|
+
}
|
|
12348
12412
|
async requestTokens(requestData, telemetryManager, correlationId) {
|
|
12349
12413
|
// The client_info parameter is required for MSAL to return the uid and utid in the response.
|
|
12350
12414
|
requestData.client_info = true;
|
|
@@ -12669,28 +12733,6 @@ class ResetPasswordClient extends CustomAuthInteractionClientBase {
|
|
|
12669
12733
|
* JIT client for handling just-in-time authentication method registration flows.
|
|
12670
12734
|
*/
|
|
12671
12735
|
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
12736
|
/**
|
|
12695
12737
|
* Challenges an authentication method for JIT registration.
|
|
12696
12738
|
* @param parameters The parameters for challenging the auth method.
|
|
@@ -12771,7 +12813,7 @@ class JitClient extends CustomAuthInteractionClientBase {
|
|
|
12771
12813
|
}),
|
|
12772
12814
|
};
|
|
12773
12815
|
const tokenResponse = await this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(tokenRequest);
|
|
12774
|
-
const authResult = await this.handleTokenResponse(tokenResponse, scopes, continueResponse.correlation_id);
|
|
12816
|
+
const authResult = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || continueResponse.correlation_id);
|
|
12775
12817
|
return createJitCompletedResult({
|
|
12776
12818
|
correlationId: continueResponse.correlation_id,
|
|
12777
12819
|
authenticationResult: authResult,
|
|
@@ -18892,25 +18934,12 @@ function collectInstanceStats(currentClientId, performanceEvent, logger) {
|
|
|
18892
18934
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
18893
18935
|
* Licensed under the MIT License.
|
|
18894
18936
|
*/
|
|
18895
|
-
function
|
|
18896
|
-
const idTokenClaims = account?.idTokenClaims;
|
|
18897
|
-
if (idTokenClaims?.tfp || idTokenClaims?.acr) {
|
|
18898
|
-
return "B2C";
|
|
18899
|
-
}
|
|
18900
|
-
if (!idTokenClaims?.tid) {
|
|
18901
|
-
return undefined;
|
|
18902
|
-
}
|
|
18903
|
-
else if (idTokenClaims?.tid === "9188040d-6c67-4c5b-b112-36a304b66dad") {
|
|
18904
|
-
return "MSA";
|
|
18905
|
-
}
|
|
18906
|
-
return "AAD";
|
|
18907
|
-
}
|
|
18908
|
-
function preflightCheck(initialized, performanceEvent) {
|
|
18937
|
+
function preflightCheck(initialized, performanceEvent, account) {
|
|
18909
18938
|
try {
|
|
18910
18939
|
preflightCheck$1(initialized);
|
|
18911
18940
|
}
|
|
18912
18941
|
catch (e) {
|
|
18913
|
-
performanceEvent.end({ success: false }, e);
|
|
18942
|
+
performanceEvent.end({ success: false }, e, account);
|
|
18914
18943
|
throw e;
|
|
18915
18944
|
}
|
|
18916
18945
|
}
|
|
@@ -19141,8 +19170,7 @@ class StandardController {
|
|
|
19141
19170
|
}
|
|
19142
19171
|
rootMeasurement.end({
|
|
19143
19172
|
success: true,
|
|
19144
|
-
|
|
19145
|
-
});
|
|
19173
|
+
}, undefined, result.account);
|
|
19146
19174
|
}
|
|
19147
19175
|
else {
|
|
19148
19176
|
/*
|
|
@@ -19150,7 +19178,7 @@ class StandardController {
|
|
|
19150
19178
|
* is empty and the error code is missing.
|
|
19151
19179
|
*/
|
|
19152
19180
|
if (rootMeasurement.event.errorCode) {
|
|
19153
|
-
rootMeasurement.end({ success: false });
|
|
19181
|
+
rootMeasurement.end({ success: false }, undefined);
|
|
19154
19182
|
}
|
|
19155
19183
|
else {
|
|
19156
19184
|
rootMeasurement.discard();
|
|
@@ -19191,7 +19219,6 @@ class StandardController {
|
|
|
19191
19219
|
this.logger.verbose("acquireTokenRedirect called", correlationId);
|
|
19192
19220
|
const atrMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenPreRedirect, correlationId);
|
|
19193
19221
|
atrMeasurement.add({
|
|
19194
|
-
accountType: getAccountType(request.account),
|
|
19195
19222
|
scenarioId: request.scenarioId,
|
|
19196
19223
|
});
|
|
19197
19224
|
// Override on request only if set, as onRedirectNavigate field is deprecated
|
|
@@ -19205,8 +19232,7 @@ class StandardController {
|
|
|
19205
19232
|
navigateCallbackResult: navigate !== false,
|
|
19206
19233
|
});
|
|
19207
19234
|
atrMeasurement.event =
|
|
19208
|
-
atrMeasurement.end({ success: true }) ||
|
|
19209
|
-
atrMeasurement.event;
|
|
19235
|
+
atrMeasurement.end({ success: true }, undefined, request.account) || atrMeasurement.event;
|
|
19210
19236
|
return navigate;
|
|
19211
19237
|
};
|
|
19212
19238
|
}
|
|
@@ -19220,8 +19246,7 @@ class StandardController {
|
|
|
19220
19246
|
navigateCallbackResult: navigate !== false,
|
|
19221
19247
|
});
|
|
19222
19248
|
atrMeasurement.event =
|
|
19223
|
-
atrMeasurement.end({ success: true }) ||
|
|
19224
|
-
atrMeasurement.event;
|
|
19249
|
+
atrMeasurement.end({ success: true }, undefined, request.account) || atrMeasurement.event;
|
|
19225
19250
|
return navigate;
|
|
19226
19251
|
};
|
|
19227
19252
|
}
|
|
@@ -19276,10 +19301,10 @@ class StandardController {
|
|
|
19276
19301
|
if (atrMeasurement.event.status === 2) {
|
|
19277
19302
|
this.performanceClient
|
|
19278
19303
|
.startMeasurement(PerformanceEvents.AcquireTokenRedirect, correlationId)
|
|
19279
|
-
.end({ success: false }, e);
|
|
19304
|
+
.end({ success: false }, e, request.account);
|
|
19280
19305
|
}
|
|
19281
19306
|
else {
|
|
19282
|
-
atrMeasurement.end({ success: false }, e);
|
|
19307
|
+
atrMeasurement.end({ success: false }, e, request.account);
|
|
19283
19308
|
}
|
|
19284
19309
|
if (isLoggedIn) {
|
|
19285
19310
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Redirect, null, e);
|
|
@@ -19304,11 +19329,10 @@ class StandardController {
|
|
|
19304
19329
|
const atPopupMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenPopup, correlationId);
|
|
19305
19330
|
atPopupMeasurement.add({
|
|
19306
19331
|
scenarioId: request.scenarioId,
|
|
19307
|
-
accountType: getAccountType(request.account),
|
|
19308
19332
|
});
|
|
19309
19333
|
try {
|
|
19310
19334
|
this.logger.verbose("acquireTokenPopup called", correlationId);
|
|
19311
|
-
preflightCheck(this.initialized, atPopupMeasurement);
|
|
19335
|
+
preflightCheck(this.initialized, atPopupMeasurement, request.account);
|
|
19312
19336
|
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
|
|
19313
19337
|
}
|
|
19314
19338
|
catch (e) {
|
|
@@ -19336,8 +19360,7 @@ class StandardController {
|
|
|
19336
19360
|
.then((response) => {
|
|
19337
19361
|
atPopupMeasurement.end({
|
|
19338
19362
|
success: true,
|
|
19339
|
-
|
|
19340
|
-
});
|
|
19363
|
+
}, undefined, response.account);
|
|
19341
19364
|
return response;
|
|
19342
19365
|
})
|
|
19343
19366
|
.catch((e) => {
|
|
@@ -19379,8 +19402,7 @@ class StandardController {
|
|
|
19379
19402
|
success: true,
|
|
19380
19403
|
accessTokenSize: result.accessToken.length,
|
|
19381
19404
|
idTokenSize: result.idToken.length,
|
|
19382
|
-
|
|
19383
|
-
});
|
|
19405
|
+
}, undefined, result.account);
|
|
19384
19406
|
return result;
|
|
19385
19407
|
})
|
|
19386
19408
|
.catch((e) => {
|
|
@@ -19392,7 +19414,7 @@ class StandardController {
|
|
|
19392
19414
|
}
|
|
19393
19415
|
atPopupMeasurement.end({
|
|
19394
19416
|
success: false,
|
|
19395
|
-
}, e);
|
|
19417
|
+
}, e, request.account);
|
|
19396
19418
|
// Since this function is syncronous we need to reject
|
|
19397
19419
|
return Promise.reject(e);
|
|
19398
19420
|
})
|
|
@@ -19442,9 +19464,8 @@ class StandardController {
|
|
|
19442
19464
|
this.ssoSilentMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.SsoSilent, correlationId);
|
|
19443
19465
|
this.ssoSilentMeasurement?.add({
|
|
19444
19466
|
scenarioId: request.scenarioId,
|
|
19445
|
-
accountType: getAccountType(request.account),
|
|
19446
19467
|
});
|
|
19447
|
-
preflightCheck(this.initialized, this.ssoSilentMeasurement);
|
|
19468
|
+
preflightCheck(this.initialized, this.ssoSilentMeasurement, request.account);
|
|
19448
19469
|
this.ssoSilentMeasurement?.increment({
|
|
19449
19470
|
visibilityChangeCount: 0,
|
|
19450
19471
|
});
|
|
@@ -19481,15 +19502,14 @@ class StandardController {
|
|
|
19481
19502
|
success: true,
|
|
19482
19503
|
accessTokenSize: response.accessToken.length,
|
|
19483
19504
|
idTokenSize: response.idToken.length,
|
|
19484
|
-
|
|
19485
|
-
});
|
|
19505
|
+
}, undefined, response.account);
|
|
19486
19506
|
return response;
|
|
19487
19507
|
})
|
|
19488
19508
|
.catch((e) => {
|
|
19489
19509
|
this.eventHandler.emitEvent(EventType.SSO_SILENT_FAILURE, InteractionType.Silent, null, e);
|
|
19490
19510
|
this.ssoSilentMeasurement?.end({
|
|
19491
19511
|
success: false,
|
|
19492
|
-
}, e);
|
|
19512
|
+
}, e, request.account);
|
|
19493
19513
|
throw e;
|
|
19494
19514
|
})
|
|
19495
19515
|
.finally(() => {
|
|
@@ -19534,8 +19554,7 @@ class StandardController {
|
|
|
19534
19554
|
success: true,
|
|
19535
19555
|
accessTokenSize: result.accessToken.length,
|
|
19536
19556
|
idTokenSize: result.idToken.length,
|
|
19537
|
-
|
|
19538
|
-
});
|
|
19557
|
+
}, undefined, result.account);
|
|
19539
19558
|
return result;
|
|
19540
19559
|
})
|
|
19541
19560
|
.catch((error) => {
|
|
@@ -19575,9 +19594,8 @@ class StandardController {
|
|
|
19575
19594
|
throw e;
|
|
19576
19595
|
});
|
|
19577
19596
|
atbcMeasurement.end({
|
|
19578
|
-
accountType: getAccountType(result.account),
|
|
19579
19597
|
success: true,
|
|
19580
|
-
});
|
|
19598
|
+
}, undefined, result.account);
|
|
19581
19599
|
return result;
|
|
19582
19600
|
}
|
|
19583
19601
|
else {
|
|
@@ -20101,13 +20119,12 @@ class StandardController {
|
|
|
20101
20119
|
cacheLookupPolicy: request.cacheLookupPolicy,
|
|
20102
20120
|
scenarioId: request.scenarioId,
|
|
20103
20121
|
});
|
|
20104
|
-
preflightCheck(this.initialized, atsMeasurement);
|
|
20122
|
+
preflightCheck(this.initialized, atsMeasurement, request.account);
|
|
20105
20123
|
this.logger.verbose("acquireTokenSilent called", correlationId);
|
|
20106
20124
|
const account = request.account || this.getActiveAccount();
|
|
20107
20125
|
if (!account) {
|
|
20108
20126
|
throw createBrowserAuthError(noAccountError);
|
|
20109
20127
|
}
|
|
20110
|
-
atsMeasurement.add({ accountType: getAccountType(account) });
|
|
20111
20128
|
return this.acquireTokenSilentDeduped(request, account, correlationId)
|
|
20112
20129
|
.then((result) => {
|
|
20113
20130
|
atsMeasurement.end({
|
|
@@ -20115,7 +20132,7 @@ class StandardController {
|
|
|
20115
20132
|
fromCache: result.fromCache,
|
|
20116
20133
|
accessTokenSize: result.accessToken.length,
|
|
20117
20134
|
idTokenSize: result.idToken.length,
|
|
20118
|
-
});
|
|
20135
|
+
}, undefined, result.account);
|
|
20119
20136
|
return {
|
|
20120
20137
|
...result,
|
|
20121
20138
|
state: request.state,
|
|
@@ -20129,7 +20146,7 @@ class StandardController {
|
|
|
20129
20146
|
}
|
|
20130
20147
|
atsMeasurement.end({
|
|
20131
20148
|
success: false,
|
|
20132
|
-
}, error);
|
|
20149
|
+
}, error, account);
|
|
20133
20150
|
throw error;
|
|
20134
20151
|
});
|
|
20135
20152
|
}
|
|
@@ -20242,11 +20259,9 @@ class StandardController {
|
|
|
20242
20259
|
return result
|
|
20243
20260
|
.then((response) => {
|
|
20244
20261
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, response);
|
|
20245
|
-
|
|
20246
|
-
|
|
20247
|
-
|
|
20248
|
-
}, request.correlationId);
|
|
20249
|
-
}
|
|
20262
|
+
this.performanceClient.addFields({
|
|
20263
|
+
fromCache: response.fromCache,
|
|
20264
|
+
}, request.correlationId);
|
|
20250
20265
|
return response;
|
|
20251
20266
|
})
|
|
20252
20267
|
.catch((tokenRenewalError) => {
|