@azure/msal-browser 5.0.2 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.d.ts +2 -2
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +15 -10
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +24 -18
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +12 -12
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +36 -36
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/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.d.ts +2 -2
- package/dist/custom-auth-path/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +15 -10
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs.map +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.d.ts.map +1 -1
- package/dist/custom-auth-path/config/Configuration.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 +36 -36
- 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 +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +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.mjs +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/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +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.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- 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.d.ts +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +3 -3
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +3 -3
- 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/result/JitActionResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.mjs +3 -3
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.mjs.map +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- 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.mjs +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.mjs +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/ApiSuberrors.mjs +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.mjs +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.d.ts.map +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +2 -2
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +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.mjs +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.map +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +7 -7
- 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.mjs +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.d.ts +1 -1
- package/dist/custom-auth-path/event/EventHandler.d.ts.map +1 -1
- package/dist/custom-auth-path/event/EventHandler.mjs +3 -2
- package/dist/custom-auth-path/event/EventHandler.mjs.map +1 -1
- package/dist/custom-auth-path/event/EventMessage.d.ts +1 -0
- package/dist/custom-auth-path/event/EventMessage.d.ts.map +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.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +3 -3
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs +9 -9
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +8 -8
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +2 -2
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs.map +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.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +2 -2
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.d.ts +3 -2
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +5 -5
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/custom-auth-path/log-strings-mapping.json +2 -2
- package/dist/custom-auth-path/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
- package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
- package/dist/custom-auth-path/packageMetadata.mjs +2 -2
- package/dist/custom-auth-path/protocol/Authorize.d.ts.map +1 -1
- package/dist/custom-auth-path/protocol/Authorize.mjs +7 -3
- package/dist/custom-auth-path/protocol/Authorize.mjs.map +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/BrowserPerformanceEvents.mjs +1 -1
- package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserConstants.d.ts +20 -0
- package/dist/custom-auth-path/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/custom-auth-path/utils/BrowserConstants.mjs +27 -2
- package/dist/custom-auth-path/utils/BrowserConstants.mjs.map +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 +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.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.d.ts +1 -1
- package/dist/event/EventHandler.d.ts.map +1 -1
- package/dist/event/EventHandler.mjs +3 -2
- package/dist/event/EventHandler.mjs.map +1 -1
- package/dist/event/EventMessage.d.ts +1 -0
- package/dist/event/EventMessage.d.ts.map +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventMessage.mjs.map +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.d.ts.map +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +3 -3
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +9 -9
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +8 -8
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +2 -2
- package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +2 -2
- package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.d.ts +3 -2
- package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +5 -5
- package/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/log-strings-mapping.json +4 -4
- 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.d.ts.map +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +25 -8
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +7 -3
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/redirect-bridge/cache/BrowserCacheManager.d.ts +2 -2
- package/dist/redirect-bridge/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/redirect-bridge/cache/CacheKeys.mjs +1 -1
- package/dist/redirect-bridge/cache/TokenCache.d.ts.map +1 -1
- package/dist/redirect-bridge/config/Configuration.mjs +1 -1
- package/dist/redirect-bridge/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/redirect-bridge/controllers/StandardController.d.ts.map +1 -1
- package/dist/redirect-bridge/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/dist/redirect-bridge/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +1 -1
- package/dist/redirect-bridge/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
- package/dist/redirect-bridge/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/dist/redirect-bridge/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
- package/dist/redirect-bridge/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/dist/redirect-bridge/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/dist/redirect-bridge/encode/Base64Decode.mjs +1 -1
- package/dist/redirect-bridge/error/BrowserAuthError.mjs +1 -1
- package/dist/redirect-bridge/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/redirect-bridge/event/EventHandler.d.ts +1 -1
- package/dist/redirect-bridge/event/EventHandler.d.ts.map +1 -1
- package/dist/redirect-bridge/event/EventMessage.d.ts +1 -0
- package/dist/redirect-bridge/event/EventMessage.d.ts.map +1 -1
- package/dist/redirect-bridge/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/dist/redirect-bridge/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/redirect-bridge/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/redirect-bridge/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/dist/redirect-bridge/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/dist/redirect-bridge/interaction_handler/InteractionHandler.d.ts +3 -2
- package/dist/redirect-bridge/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/redirect-bridge/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/dist/redirect-bridge/navigation/NavigationClient.mjs +1 -1
- package/dist/redirect-bridge/packageMetadata.d.ts +1 -1
- package/dist/redirect-bridge/protocol/Authorize.d.ts.map +1 -1
- package/dist/redirect-bridge/redirect_bridge/index.mjs +1 -1
- package/dist/redirect-bridge/utils/BrowserConstants.d.ts +20 -0
- package/dist/redirect-bridge/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/redirect-bridge/utils/BrowserConstants.mjs +2 -1
- package/dist/redirect-bridge/utils/BrowserConstants.mjs.map +1 -1
- package/dist/redirect-bridge/utils/BrowserUtils.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/utils/BrowserConstants.d.ts +20 -0
- package/dist/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/utils/BrowserConstants.mjs +27 -2
- package/dist/utils/BrowserConstants.mjs.map +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/log-strings-mapping.json +2 -2
- package/lib/custom-auth-path/msal-custom-auth.cjs +234 -164
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/types/cache/BrowserCacheManager.d.ts +2 -2
- package/lib/custom-auth-path/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/lib/custom-auth-path/types/cache/TokenCache.d.ts.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 +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/event/EventHandler.d.ts +1 -1
- package/lib/custom-auth-path/types/event/EventHandler.d.ts.map +1 -1
- package/lib/custom-auth-path/types/event/EventMessage.d.ts +1 -0
- package/lib/custom-auth-path/types/event/EventMessage.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_handler/InteractionHandler.d.ts +3 -2
- package/lib/custom-auth-path/types/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/lib/custom-auth-path/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
- package/lib/custom-auth-path/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/custom-auth-path/types/utils/BrowserConstants.d.ts +20 -0
- package/lib/custom-auth-path/types/utils/BrowserConstants.d.ts.map +1 -1
- package/lib/log-strings-mapping.json +4 -4
- package/lib/msal-browser.cjs +280 -188
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +280 -188
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/redirect-bridge/msal-redirect-bridge.js +11 -10
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
- package/lib/types/cache/BrowserCacheManager.d.ts +2 -2
- package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/lib/types/cache/TokenCache.d.ts.map +1 -1
- 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 +1 -1
- package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +1 -1
- package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
- package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
- package/lib/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
- package/lib/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
- package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
- package/lib/types/event/EventHandler.d.ts +1 -1
- package/lib/types/event/EventHandler.d.ts.map +1 -1
- package/lib/types/event/EventMessage.d.ts +1 -0
- package/lib/types/event/EventMessage.d.ts.map +1 -1
- package/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/lib/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/lib/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/lib/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/lib/types/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/lib/types/interaction_handler/InteractionHandler.d.ts +3 -2
- package/lib/types/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/lib/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/protocol/Authorize.d.ts.map +1 -1
- package/lib/types/utils/BrowserConstants.d.ts +20 -0
- package/lib/types/utils/BrowserConstants.d.ts.map +1 -1
- package/package.json +5 -3
- package/src/cache/BrowserCacheManager.ts +26 -7
- package/src/cache/TokenCache.ts +47 -31
- package/src/controllers/NestedAppAuthController.ts +12 -1
- package/src/controllers/StandardController.ts +48 -18
- package/src/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.ts +4 -2
- package/src/custom_auth/core/interaction_client/jit/JitClient.ts +2 -1
- package/src/custom_auth/core/interaction_client/mfa/MfaClient.ts +2 -1
- package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +2 -1
- package/src/custom_auth/sign_in/interaction_client/SignInClient.ts +10 -5
- package/src/event/EventHandler.ts +2 -0
- package/src/event/EventMessage.ts +1 -0
- package/src/interaction_client/PlatformAuthInteractionClient.ts +3 -1
- package/src/interaction_client/PopupClient.ts +8 -0
- package/src/interaction_client/RedirectClient.ts +7 -0
- package/src/interaction_client/SilentAuthCodeClient.ts +1 -0
- package/src/interaction_client/SilentRefreshClient.ts +7 -5
- package/src/interaction_handler/InteractionHandler.ts +10 -3
- package/src/naa/mapping/NestedAppAuthAdapter.ts +30 -6
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +15 -1
- package/src/utils/BrowserConstants.ts +27 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.0
|
|
1
|
+
/*! @azure/msal-browser v5.2.0 2026-02-10 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v16.0.
|
|
5
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -229,7 +229,7 @@ const JsonWebTokenTypes = {
|
|
|
229
229
|
// Token renewal offset default in seconds
|
|
230
230
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
231
231
|
|
|
232
|
-
/*! @azure/msal-common v16.0.
|
|
232
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
233
233
|
/*
|
|
234
234
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
235
235
|
* Licensed under the MIT License.
|
|
@@ -279,7 +279,7 @@ const INSTANCE_AWARE = "instance_aware";
|
|
|
279
279
|
const EAR_JWK = "ear_jwk";
|
|
280
280
|
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
281
281
|
|
|
282
|
-
/*! @azure/msal-common v16.0.
|
|
282
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
283
283
|
/*
|
|
284
284
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
285
285
|
* Licensed under the MIT License.
|
|
@@ -310,7 +310,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
310
310
|
return new AuthError(code, additionalMessage || getDefaultErrorMessage$1(code));
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
/*! @azure/msal-common v16.0.
|
|
313
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
314
314
|
|
|
315
315
|
/*
|
|
316
316
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -330,7 +330,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
330
330
|
return new ClientConfigurationError(errorCode);
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
/*! @azure/msal-common v16.0.
|
|
333
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
334
334
|
/*
|
|
335
335
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
336
336
|
* Licensed under the MIT License.
|
|
@@ -427,7 +427,7 @@ class StringUtils {
|
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
/*! @azure/msal-common v16.0.
|
|
430
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
431
431
|
|
|
432
432
|
/*
|
|
433
433
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -450,7 +450,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
450
450
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
/*! @azure/msal-common v16.0.
|
|
453
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
454
454
|
/*
|
|
455
455
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
456
456
|
* Licensed under the MIT License.
|
|
@@ -474,7 +474,7 @@ const cannotAllowPlatformBroker = "cannot_allow_platform_broker";
|
|
|
474
474
|
const authorityMismatch = "authority_mismatch";
|
|
475
475
|
const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
|
|
476
476
|
|
|
477
|
-
/*! @azure/msal-common v16.0.
|
|
477
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
478
478
|
/*
|
|
479
479
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
480
480
|
* Licensed under the MIT License.
|
|
@@ -511,7 +511,7 @@ const endSessionEndpointNotSupported = "end_session_endpoint_not_supported";
|
|
|
511
511
|
const keyIdMissing = "key_id_missing";
|
|
512
512
|
const methodNotImplemented = "method_not_implemented";
|
|
513
513
|
|
|
514
|
-
/*! @azure/msal-common v16.0.
|
|
514
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
515
515
|
|
|
516
516
|
/*
|
|
517
517
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -706,7 +706,7 @@ class ScopeSet {
|
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
|
|
709
|
-
/*! @azure/msal-common v16.0.
|
|
709
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
710
710
|
|
|
711
711
|
/*
|
|
712
712
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1073,7 +1073,7 @@ function addEARParameters(parameters, jwk) {
|
|
|
1073
1073
|
parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
|
|
1074
1074
|
}
|
|
1075
1075
|
|
|
1076
|
-
/*! @azure/msal-common v16.0.
|
|
1076
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1077
1077
|
|
|
1078
1078
|
/*
|
|
1079
1079
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1182,7 +1182,7 @@ function normalizeUrlForComparison(url) {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
|
-
/*! @azure/msal-common v16.0.
|
|
1185
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1186
1186
|
|
|
1187
1187
|
/*
|
|
1188
1188
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1221,7 +1221,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
1221
1221
|
},
|
|
1222
1222
|
};
|
|
1223
1223
|
|
|
1224
|
-
/*! @azure/msal-common v16.0.
|
|
1224
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1225
1225
|
/*
|
|
1226
1226
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1227
1227
|
* Licensed under the MIT License.
|
|
@@ -1482,12 +1482,12 @@ class Logger {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
1484
|
|
|
1485
|
-
/*! @azure/msal-common v16.0.
|
|
1485
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1486
1486
|
/* eslint-disable header/header */
|
|
1487
1487
|
const name$1 = "@azure/msal-common";
|
|
1488
|
-
const version$1 = "16.0.
|
|
1488
|
+
const version$1 = "16.0.4";
|
|
1489
1489
|
|
|
1490
|
-
/*! @azure/msal-common v16.0.
|
|
1490
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1491
1491
|
/*
|
|
1492
1492
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1493
1493
|
* Licensed under the MIT License.
|
|
@@ -1496,7 +1496,7 @@ const AzureCloudInstance = {
|
|
|
1496
1496
|
// AzureCloudInstance is not specified.
|
|
1497
1497
|
None: "none"};
|
|
1498
1498
|
|
|
1499
|
-
/*! @azure/msal-common v16.0.
|
|
1499
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1500
1500
|
/*
|
|
1501
1501
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1502
1502
|
* Licensed under the MIT License.
|
|
@@ -1578,7 +1578,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
1578
1578
|
return updatedAccountInfo;
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
|
-
/*! @azure/msal-common v16.0.
|
|
1581
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1582
1582
|
|
|
1583
1583
|
/*
|
|
1584
1584
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1658,7 +1658,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1658
1658
|
}
|
|
1659
1659
|
}
|
|
1660
1660
|
|
|
1661
|
-
/*! @azure/msal-common v16.0.
|
|
1661
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1662
1662
|
|
|
1663
1663
|
/*
|
|
1664
1664
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1815,7 +1815,7 @@ class UrlString {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
}
|
|
1817
1817
|
|
|
1818
|
-
/*! @azure/msal-common v16.0.
|
|
1818
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1819
1819
|
|
|
1820
1820
|
/*
|
|
1821
1821
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1886,6 +1886,21 @@ const rawMetdataJSON = {
|
|
|
1886
1886
|
preferred_cache: "login-us.microsoftonline.com",
|
|
1887
1887
|
aliases: ["login-us.microsoftonline.com"],
|
|
1888
1888
|
},
|
|
1889
|
+
{
|
|
1890
|
+
preferred_network: "login.sovcloud-identity.fr",
|
|
1891
|
+
preferred_cache: "login.sovcloud-identity.fr",
|
|
1892
|
+
aliases: ["login.sovcloud-identity.fr"],
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
preferred_network: "login.sovcloud-identity.de",
|
|
1896
|
+
preferred_cache: "login.sovcloud-identity.de",
|
|
1897
|
+
aliases: ["login.sovcloud-identity.de"],
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
preferred_network: "login.sovcloud-identity.sg",
|
|
1901
|
+
preferred_cache: "login.sovcloud-identity.sg",
|
|
1902
|
+
aliases: ["login.sovcloud-identity.sg"],
|
|
1903
|
+
},
|
|
1889
1904
|
],
|
|
1890
1905
|
},
|
|
1891
1906
|
};
|
|
@@ -1957,7 +1972,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1957
1972
|
return null;
|
|
1958
1973
|
}
|
|
1959
1974
|
|
|
1960
|
-
/*! @azure/msal-common v16.0.
|
|
1975
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1961
1976
|
/*
|
|
1962
1977
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1963
1978
|
* Licensed under the MIT License.
|
|
@@ -1965,7 +1980,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1965
1980
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
1966
1981
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
1967
1982
|
|
|
1968
|
-
/*! @azure/msal-common v16.0.
|
|
1983
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
1969
1984
|
|
|
1970
1985
|
/*
|
|
1971
1986
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2003,7 +2018,7 @@ function createCacheError(e) {
|
|
|
2003
2018
|
}
|
|
2004
2019
|
}
|
|
2005
2020
|
|
|
2006
|
-
/*! @azure/msal-common v16.0.
|
|
2021
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2007
2022
|
|
|
2008
2023
|
/*
|
|
2009
2024
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2041,7 +2056,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2041
2056
|
};
|
|
2042
2057
|
}
|
|
2043
2058
|
|
|
2044
|
-
/*! @azure/msal-common v16.0.
|
|
2059
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2045
2060
|
/*
|
|
2046
2061
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2047
2062
|
* Licensed under the MIT License.
|
|
@@ -2056,7 +2071,7 @@ const AuthorityType = {
|
|
|
2056
2071
|
Ciam: 3,
|
|
2057
2072
|
};
|
|
2058
2073
|
|
|
2059
|
-
/*! @azure/msal-common v16.0.
|
|
2074
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2060
2075
|
/*
|
|
2061
2076
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2062
2077
|
* Licensed under the MIT License.
|
|
@@ -2078,7 +2093,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
2078
2093
|
return null;
|
|
2079
2094
|
}
|
|
2080
2095
|
|
|
2081
|
-
/*! @azure/msal-common v16.0.
|
|
2096
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2082
2097
|
/*
|
|
2083
2098
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2084
2099
|
* Licensed under the MIT License.
|
|
@@ -2102,11 +2117,18 @@ const ProtocolMode = {
|
|
|
2102
2117
|
EAR: "EAR",
|
|
2103
2118
|
};
|
|
2104
2119
|
|
|
2105
|
-
/*! @azure/msal-common v16.0.
|
|
2120
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2106
2121
|
/**
|
|
2107
2122
|
* Returns the AccountInfo interface for this account.
|
|
2108
2123
|
*/
|
|
2109
2124
|
function getAccountInfo(accountEntity) {
|
|
2125
|
+
const tenantProfiles = accountEntity.tenantProfiles || [];
|
|
2126
|
+
// Ensure at least the home tenant profile exists
|
|
2127
|
+
if (tenantProfiles.length === 0 &&
|
|
2128
|
+
accountEntity.realm &&
|
|
2129
|
+
accountEntity.localAccountId) {
|
|
2130
|
+
tenantProfiles.push(buildTenantProfile(accountEntity.homeAccountId, accountEntity.localAccountId, accountEntity.realm));
|
|
2131
|
+
}
|
|
2110
2132
|
return {
|
|
2111
2133
|
homeAccountId: accountEntity.homeAccountId,
|
|
2112
2134
|
environment: accountEntity.environment,
|
|
@@ -2118,7 +2140,7 @@ function getAccountInfo(accountEntity) {
|
|
|
2118
2140
|
nativeAccountId: accountEntity.nativeAccountId,
|
|
2119
2141
|
authorityType: accountEntity.authorityType,
|
|
2120
2142
|
// Deserialize tenant profiles array into a Map
|
|
2121
|
-
tenantProfiles: new Map(
|
|
2143
|
+
tenantProfiles: new Map(tenantProfiles.map((tenantProfile) => {
|
|
2122
2144
|
return [tenantProfile.tenantId, tenantProfile];
|
|
2123
2145
|
})),
|
|
2124
2146
|
dataBoundary: accountEntity.dataBoundary,
|
|
@@ -2207,6 +2229,14 @@ function createAccountEntity(accountDetails, authority, base64Decode) {
|
|
|
2207
2229
|
* @returns
|
|
2208
2230
|
*/
|
|
2209
2231
|
function createAccountEntityFromAccountInfo(accountInfo, cloudGraphHostName, msGraphHost) {
|
|
2232
|
+
// Serialize tenant profiles map into an array
|
|
2233
|
+
const tenantProfiles = Array.from(accountInfo.tenantProfiles?.values() || []);
|
|
2234
|
+
// Ensure at least the home tenant profile exists
|
|
2235
|
+
if (tenantProfiles.length === 0 &&
|
|
2236
|
+
accountInfo.tenantId &&
|
|
2237
|
+
accountInfo.localAccountId) {
|
|
2238
|
+
tenantProfiles.push(buildTenantProfile(accountInfo.homeAccountId, accountInfo.localAccountId, accountInfo.tenantId, accountInfo.idTokenClaims));
|
|
2239
|
+
}
|
|
2210
2240
|
return {
|
|
2211
2241
|
authorityType: accountInfo.authorityType || CACHE_ACCOUNT_TYPE_GENERIC,
|
|
2212
2242
|
homeAccountId: accountInfo.homeAccountId,
|
|
@@ -2219,7 +2249,7 @@ function createAccountEntityFromAccountInfo(accountInfo, cloudGraphHostName, msG
|
|
|
2219
2249
|
name: accountInfo.name,
|
|
2220
2250
|
cloudGraphHostName: cloudGraphHostName,
|
|
2221
2251
|
msGraphHost: msGraphHost,
|
|
2222
|
-
tenantProfiles:
|
|
2252
|
+
tenantProfiles: tenantProfiles,
|
|
2223
2253
|
dataBoundary: accountInfo.dataBoundary,
|
|
2224
2254
|
};
|
|
2225
2255
|
}
|
|
@@ -2262,7 +2292,7 @@ function isAccountEntity(entity) {
|
|
|
2262
2292
|
entity.hasOwnProperty("authorityType"));
|
|
2263
2293
|
}
|
|
2264
2294
|
|
|
2265
|
-
/*! @azure/msal-common v16.0.
|
|
2295
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
2266
2296
|
|
|
2267
2297
|
/*
|
|
2268
2298
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2428,13 +2458,13 @@ class CacheManager {
|
|
|
2428
2458
|
* @param storeInCache {?StoreInCache}
|
|
2429
2459
|
* @param correlationId {?string} correlation id
|
|
2430
2460
|
*/
|
|
2431
|
-
async saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache) {
|
|
2461
|
+
async saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache) {
|
|
2432
2462
|
if (!cacheRecord) {
|
|
2433
2463
|
throw createClientAuthError(invalidCacheRecord);
|
|
2434
2464
|
}
|
|
2435
2465
|
try {
|
|
2436
2466
|
if (!!cacheRecord.account) {
|
|
2437
|
-
await this.setAccount(cacheRecord.account, correlationId, kmsi);
|
|
2467
|
+
await this.setAccount(cacheRecord.account, correlationId, kmsi, apiId);
|
|
2438
2468
|
}
|
|
2439
2469
|
if (!!cacheRecord.idToken && storeInCache?.idToken !== false) {
|
|
2440
2470
|
await this.setIdTokenCredential(cacheRecord.idToken, correlationId, kmsi);
|
|
@@ -3358,7 +3388,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3358
3388
|
}
|
|
3359
3389
|
}
|
|
3360
3390
|
|
|
3361
|
-
/*! @azure/msal-common v16.0.
|
|
3391
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3362
3392
|
/*
|
|
3363
3393
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3364
3394
|
* Licensed under the MIT License.
|
|
@@ -3372,7 +3402,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3372
3402
|
const PerformanceEventStatus = {
|
|
3373
3403
|
InProgress: 1};
|
|
3374
3404
|
|
|
3375
|
-
/*! @azure/msal-common v16.0.
|
|
3405
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3376
3406
|
|
|
3377
3407
|
/*
|
|
3378
3408
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3427,7 +3457,7 @@ class StubPerformanceClient {
|
|
|
3427
3457
|
}
|
|
3428
3458
|
}
|
|
3429
3459
|
|
|
3430
|
-
/*! @azure/msal-common v16.0.
|
|
3460
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3431
3461
|
|
|
3432
3462
|
/*
|
|
3433
3463
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3521,7 +3551,7 @@ function isOidcProtocolMode(config) {
|
|
|
3521
3551
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3522
3552
|
}
|
|
3523
3553
|
|
|
3524
|
-
/*! @azure/msal-common v16.0.
|
|
3554
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3525
3555
|
|
|
3526
3556
|
/*
|
|
3527
3557
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3540,7 +3570,7 @@ class ServerError extends AuthError {
|
|
|
3540
3570
|
}
|
|
3541
3571
|
}
|
|
3542
3572
|
|
|
3543
|
-
/*! @azure/msal-common v16.0.
|
|
3573
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3544
3574
|
/*
|
|
3545
3575
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3546
3576
|
* Licensed under the MIT License.
|
|
@@ -3556,7 +3586,7 @@ const consentRequired = "consent_required";
|
|
|
3556
3586
|
const loginRequired = "login_required";
|
|
3557
3587
|
const badToken = "bad_token";
|
|
3558
3588
|
|
|
3559
|
-
/*! @azure/msal-common v16.0.
|
|
3589
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3560
3590
|
|
|
3561
3591
|
/*
|
|
3562
3592
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3622,7 +3652,7 @@ function createInteractionRequiredAuthError(errorCode, errorMessage) {
|
|
|
3622
3652
|
return new InteractionRequiredAuthError(errorCode, errorMessage);
|
|
3623
3653
|
}
|
|
3624
3654
|
|
|
3625
|
-
/*! @azure/msal-common v16.0.
|
|
3655
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3626
3656
|
|
|
3627
3657
|
/*
|
|
3628
3658
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3690,7 +3720,7 @@ function parseRequestState(base64Decode, state) {
|
|
|
3690
3720
|
}
|
|
3691
3721
|
}
|
|
3692
3722
|
|
|
3693
|
-
/*! @azure/msal-common v16.0.
|
|
3723
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3694
3724
|
/*
|
|
3695
3725
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3696
3726
|
* Licensed under the MIT License.
|
|
@@ -3755,7 +3785,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
3755
3785
|
return cachedAtSec > nowSeconds();
|
|
3756
3786
|
}
|
|
3757
3787
|
|
|
3758
|
-
/*! @azure/msal-common v16.0.
|
|
3788
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3759
3789
|
/*
|
|
3760
3790
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3761
3791
|
* Licensed under the MIT License.
|
|
@@ -3826,7 +3856,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
3826
3856
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
3827
3857
|
const SetUserData = "setUserData";
|
|
3828
3858
|
|
|
3829
|
-
/*! @azure/msal-common v16.0.
|
|
3859
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3830
3860
|
/*
|
|
3831
3861
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3832
3862
|
* Licensed under the MIT License.
|
|
@@ -3921,7 +3951,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
3921
3951
|
};
|
|
3922
3952
|
};
|
|
3923
3953
|
|
|
3924
|
-
/*! @azure/msal-common v16.0.
|
|
3954
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
3925
3955
|
|
|
3926
3956
|
/*
|
|
3927
3957
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4001,7 +4031,7 @@ class PopTokenGenerator {
|
|
|
4001
4031
|
}
|
|
4002
4032
|
}
|
|
4003
4033
|
|
|
4004
|
-
/*! @azure/msal-common v16.0.
|
|
4034
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4005
4035
|
/*
|
|
4006
4036
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4007
4037
|
* Licensed under the MIT License.
|
|
@@ -4028,7 +4058,7 @@ class PopTokenGenerator {
|
|
|
4028
4058
|
}
|
|
4029
4059
|
}
|
|
4030
4060
|
|
|
4031
|
-
/*! @azure/msal-common v16.0.
|
|
4061
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4032
4062
|
|
|
4033
4063
|
/*
|
|
4034
4064
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4287,7 +4317,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
4287
4317
|
return metadata.expiresAt <= nowSeconds();
|
|
4288
4318
|
}
|
|
4289
4319
|
|
|
4290
|
-
/*! @azure/msal-common v16.0.
|
|
4320
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4291
4321
|
|
|
4292
4322
|
/*
|
|
4293
4323
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4354,7 +4384,7 @@ class ResponseHandler {
|
|
|
4354
4384
|
* @param serverTokenResponse
|
|
4355
4385
|
* @param authority
|
|
4356
4386
|
*/
|
|
4357
|
-
async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
|
|
4387
|
+
async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, apiId, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
|
|
4358
4388
|
// create an idToken object (not entity)
|
|
4359
4389
|
let idTokenClaims;
|
|
4360
4390
|
if (serverTokenResponse.id_token) {
|
|
@@ -4401,14 +4431,19 @@ class ResponseHandler {
|
|
|
4401
4431
|
if (handlingRefreshTokenResponse &&
|
|
4402
4432
|
!forceCacheRefreshTokenResponse &&
|
|
4403
4433
|
cacheRecord.account) {
|
|
4404
|
-
const
|
|
4405
|
-
|
|
4406
|
-
|
|
4434
|
+
const cachedAccounts = this.cacheStorage.getAllAccounts({
|
|
4435
|
+
homeAccountId: cacheRecord.account.homeAccountId,
|
|
4436
|
+
environment: cacheRecord.account.environment,
|
|
4437
|
+
}, request.correlationId);
|
|
4438
|
+
if (cachedAccounts.length < 1) {
|
|
4407
4439
|
this.logger.warning("1gmt66", request.correlationId);
|
|
4440
|
+
this.performanceClient?.addFields({
|
|
4441
|
+
acntLoggedOut: true,
|
|
4442
|
+
}, request.correlationId);
|
|
4408
4443
|
return await ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, this.performanceClient, idTokenClaims, requestStateObj, undefined, serverRequestId);
|
|
4409
4444
|
}
|
|
4410
4445
|
}
|
|
4411
|
-
await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), request.storeInCache);
|
|
4446
|
+
await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), apiId, request.storeInCache);
|
|
4412
4447
|
}
|
|
4413
4448
|
finally {
|
|
4414
4449
|
if (this.persistencePlugin &&
|
|
@@ -4618,7 +4653,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
4618
4653
|
return baseAccount;
|
|
4619
4654
|
}
|
|
4620
4655
|
|
|
4621
|
-
/*! @azure/msal-common v16.0.
|
|
4656
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4622
4657
|
/*
|
|
4623
4658
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4624
4659
|
* Licensed under the MIT License.
|
|
@@ -4628,7 +4663,7 @@ const CcsCredentialType = {
|
|
|
4628
4663
|
UPN: "UPN",
|
|
4629
4664
|
};
|
|
4630
4665
|
|
|
4631
|
-
/*! @azure/msal-common v16.0.
|
|
4666
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4632
4667
|
/*
|
|
4633
4668
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4634
4669
|
* Licensed under the MIT License.
|
|
@@ -4646,7 +4681,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
4646
4681
|
}
|
|
4647
4682
|
}
|
|
4648
4683
|
|
|
4649
|
-
/*! @azure/msal-common v16.0.
|
|
4684
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4650
4685
|
/*
|
|
4651
4686
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4652
4687
|
* Licensed under the MIT License.
|
|
@@ -4667,7 +4702,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
4667
4702
|
};
|
|
4668
4703
|
}
|
|
4669
4704
|
|
|
4670
|
-
/*! @azure/msal-common v16.0.
|
|
4705
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4671
4706
|
|
|
4672
4707
|
/*
|
|
4673
4708
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4753,7 +4788,7 @@ class ThrottlingUtils {
|
|
|
4753
4788
|
}
|
|
4754
4789
|
}
|
|
4755
4790
|
|
|
4756
|
-
/*! @azure/msal-common v16.0.
|
|
4791
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4757
4792
|
|
|
4758
4793
|
/*
|
|
4759
4794
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4784,7 +4819,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
4784
4819
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
4785
4820
|
}
|
|
4786
4821
|
|
|
4787
|
-
/*! @azure/msal-common v16.0.
|
|
4822
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4788
4823
|
|
|
4789
4824
|
/*
|
|
4790
4825
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4898,7 +4933,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
4898
4933
|
return response;
|
|
4899
4934
|
}
|
|
4900
4935
|
|
|
4901
|
-
/*! @azure/msal-common v16.0.
|
|
4936
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4902
4937
|
/*
|
|
4903
4938
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4904
4939
|
* Licensed under the MIT License.
|
|
@@ -4910,7 +4945,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
4910
4945
|
response.hasOwnProperty("jwks_uri"));
|
|
4911
4946
|
}
|
|
4912
4947
|
|
|
4913
|
-
/*! @azure/msal-common v16.0.
|
|
4948
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4914
4949
|
/*
|
|
4915
4950
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4916
4951
|
* Licensed under the MIT License.
|
|
@@ -4920,7 +4955,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
4920
4955
|
response.hasOwnProperty("metadata"));
|
|
4921
4956
|
}
|
|
4922
4957
|
|
|
4923
|
-
/*! @azure/msal-common v16.0.
|
|
4958
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4924
4959
|
/*
|
|
4925
4960
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4926
4961
|
* Licensed under the MIT License.
|
|
@@ -4930,7 +4965,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
4930
4965
|
response.hasOwnProperty("error_description"));
|
|
4931
4966
|
}
|
|
4932
4967
|
|
|
4933
|
-
/*! @azure/msal-common v16.0.
|
|
4968
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
4934
4969
|
|
|
4935
4970
|
/*
|
|
4936
4971
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5035,7 +5070,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
5035
5070
|
},
|
|
5036
5071
|
};
|
|
5037
5072
|
|
|
5038
|
-
/*! @azure/msal-common v16.0.
|
|
5073
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
5039
5074
|
|
|
5040
5075
|
/*
|
|
5041
5076
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5855,7 +5890,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
5855
5890
|
};
|
|
5856
5891
|
}
|
|
5857
5892
|
|
|
5858
|
-
/*! @azure/msal-common v16.0.
|
|
5893
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
5859
5894
|
|
|
5860
5895
|
/*
|
|
5861
5896
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5889,7 +5924,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
5889
5924
|
}
|
|
5890
5925
|
}
|
|
5891
5926
|
|
|
5892
|
-
/*! @azure/msal-common v16.0.
|
|
5927
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
5893
5928
|
|
|
5894
5929
|
/*
|
|
5895
5930
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5927,7 +5962,7 @@ class AuthorizationCodeClient {
|
|
|
5927
5962
|
* authorization_code_grant
|
|
5928
5963
|
* @param request
|
|
5929
5964
|
*/
|
|
5930
|
-
async acquireToken(request, authCodePayload) {
|
|
5965
|
+
async acquireToken(request, apiId, authCodePayload) {
|
|
5931
5966
|
if (!request.code) {
|
|
5932
5967
|
throw createClientAuthError(requestCannotBeMade);
|
|
5933
5968
|
}
|
|
@@ -5942,7 +5977,7 @@ class AuthorizationCodeClient {
|
|
|
5942
5977
|
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
|
|
5943
5978
|
// Validate response. This function throws a server error if an error is returned by the server.
|
|
5944
5979
|
responseHandler.validateTokenResponse(response.body, request.correlationId);
|
|
5945
|
-
return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, authCodePayload, undefined, undefined, undefined, requestId);
|
|
5980
|
+
return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, authCodePayload, undefined, undefined, undefined, requestId);
|
|
5946
5981
|
}
|
|
5947
5982
|
/**
|
|
5948
5983
|
* Used to log out the current user, and redirect the user to the postLogoutRedirectUri.
|
|
@@ -6149,7 +6184,7 @@ class AuthorizationCodeClient {
|
|
|
6149
6184
|
}
|
|
6150
6185
|
}
|
|
6151
6186
|
|
|
6152
|
-
/*! @azure/msal-common v16.0.
|
|
6187
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6153
6188
|
|
|
6154
6189
|
/*
|
|
6155
6190
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6179,20 +6214,20 @@ class RefreshTokenClient {
|
|
|
6179
6214
|
// set performance telemetry client
|
|
6180
6215
|
this.performanceClient = performanceClient;
|
|
6181
6216
|
}
|
|
6182
|
-
async acquireToken(request) {
|
|
6217
|
+
async acquireToken(request, apiId) {
|
|
6183
6218
|
const reqTimestamp = nowSeconds();
|
|
6184
6219
|
const response = await invokeAsync(this.executeTokenRequest.bind(this), RefreshTokenClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(request, this.authority);
|
|
6185
6220
|
// Retrieve requestId from response headers
|
|
6186
6221
|
const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
|
|
6187
6222
|
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
|
|
6188
6223
|
responseHandler.validateTokenResponse(response.body, request.correlationId);
|
|
6189
|
-
return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, undefined, undefined, true, request.forceCache, requestId);
|
|
6224
|
+
return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, undefined, undefined, true, request.forceCache, requestId);
|
|
6190
6225
|
}
|
|
6191
6226
|
/**
|
|
6192
6227
|
* Gets cached refresh token and attaches to request, then calls acquireToken API
|
|
6193
6228
|
* @param request
|
|
6194
6229
|
*/
|
|
6195
|
-
async acquireTokenByRefreshToken(request) {
|
|
6230
|
+
async acquireTokenByRefreshToken(request, apiId) {
|
|
6196
6231
|
// Cannot renew token if no request object is given.
|
|
6197
6232
|
if (!request) {
|
|
6198
6233
|
throw createClientConfigurationError(tokenRequestEmpty);
|
|
@@ -6206,7 +6241,7 @@ class RefreshTokenClient {
|
|
|
6206
6241
|
// if the app is part of the family, retrive a Family refresh token if present and make a refreshTokenRequest
|
|
6207
6242
|
if (isFOCI) {
|
|
6208
6243
|
try {
|
|
6209
|
-
return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true);
|
|
6244
|
+
return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true, apiId);
|
|
6210
6245
|
}
|
|
6211
6246
|
catch (e) {
|
|
6212
6247
|
const noFamilyRTInCache = e instanceof InteractionRequiredAuthError &&
|
|
@@ -6217,7 +6252,7 @@ class RefreshTokenClient {
|
|
|
6217
6252
|
e.subError === CLIENT_MISMATCH_ERROR;
|
|
6218
6253
|
// if family Refresh Token (FRT) cache acquisition fails or if client_mismatch error is seen with FRT, reattempt with application Refresh Token (ART)
|
|
6219
6254
|
if (noFamilyRTInCache || clientMismatchErrorWithFamilyRT) {
|
|
6220
|
-
return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
|
|
6255
|
+
return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
|
|
6221
6256
|
// throw in all other cases
|
|
6222
6257
|
}
|
|
6223
6258
|
else {
|
|
@@ -6226,13 +6261,13 @@ class RefreshTokenClient {
|
|
|
6226
6261
|
}
|
|
6227
6262
|
}
|
|
6228
6263
|
// fall back to application refresh token acquisition
|
|
6229
|
-
return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
|
|
6264
|
+
return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
|
|
6230
6265
|
}
|
|
6231
6266
|
/**
|
|
6232
6267
|
* makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached
|
|
6233
6268
|
* @param request
|
|
6234
6269
|
*/
|
|
6235
|
-
async acquireTokenWithCachedRefreshToken(request, foci) {
|
|
6270
|
+
async acquireTokenWithCachedRefreshToken(request, foci, apiId) {
|
|
6236
6271
|
// fetches family RT or application RT based on FOCI value
|
|
6237
6272
|
const refreshToken = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci, request.correlationId, undefined);
|
|
6238
6273
|
if (!refreshToken) {
|
|
@@ -6261,7 +6296,7 @@ class RefreshTokenClient {
|
|
|
6261
6296
|
},
|
|
6262
6297
|
};
|
|
6263
6298
|
try {
|
|
6264
|
-
return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest);
|
|
6299
|
+
return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest, apiId);
|
|
6265
6300
|
}
|
|
6266
6301
|
catch (e) {
|
|
6267
6302
|
if (e instanceof InteractionRequiredAuthError) {
|
|
@@ -6374,7 +6409,7 @@ class RefreshTokenClient {
|
|
|
6374
6409
|
}
|
|
6375
6410
|
}
|
|
6376
6411
|
|
|
6377
|
-
/*! @azure/msal-common v16.0.
|
|
6412
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6378
6413
|
|
|
6379
6414
|
/*
|
|
6380
6415
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6483,7 +6518,7 @@ class SilentFlowClient {
|
|
|
6483
6518
|
}
|
|
6484
6519
|
}
|
|
6485
6520
|
|
|
6486
|
-
/*! @azure/msal-common v16.0.
|
|
6521
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6487
6522
|
|
|
6488
6523
|
/*
|
|
6489
6524
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6498,7 +6533,7 @@ const StubbedNetworkModule = {
|
|
|
6498
6533
|
},
|
|
6499
6534
|
};
|
|
6500
6535
|
|
|
6501
|
-
/*! @azure/msal-common v16.0.
|
|
6536
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6502
6537
|
|
|
6503
6538
|
/*
|
|
6504
6539
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6722,7 +6757,7 @@ function extractLoginHint(account) {
|
|
|
6722
6757
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
6723
6758
|
}
|
|
6724
6759
|
|
|
6725
|
-
/*! @azure/msal-common v16.0.
|
|
6760
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6726
6761
|
/*
|
|
6727
6762
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6728
6763
|
* Licensed under the MIT License.
|
|
@@ -6732,7 +6767,7 @@ function extractLoginHint(account) {
|
|
|
6732
6767
|
*/
|
|
6733
6768
|
const unexpectedError = "unexpected_error";
|
|
6734
6769
|
|
|
6735
|
-
/*! @azure/msal-common v16.0.
|
|
6770
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6736
6771
|
|
|
6737
6772
|
/*
|
|
6738
6773
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6993,7 +7028,7 @@ class ServerTelemetryManager {
|
|
|
6993
7028
|
}
|
|
6994
7029
|
}
|
|
6995
7030
|
|
|
6996
|
-
/*! @azure/msal-common v16.0.
|
|
7031
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
6997
7032
|
|
|
6998
7033
|
/*
|
|
6999
7034
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7014,7 +7049,7 @@ function createJoseHeaderError(code) {
|
|
|
7014
7049
|
return new JoseHeaderError(code);
|
|
7015
7050
|
}
|
|
7016
7051
|
|
|
7017
|
-
/*! @azure/msal-common v16.0.
|
|
7052
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
7018
7053
|
/*
|
|
7019
7054
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7020
7055
|
* Licensed under the MIT License.
|
|
@@ -7022,7 +7057,7 @@ function createJoseHeaderError(code) {
|
|
|
7022
7057
|
const missingKidError = "missing_kid_error";
|
|
7023
7058
|
const missingAlgError = "missing_alg_error";
|
|
7024
7059
|
|
|
7025
|
-
/*! @azure/msal-common v16.0.
|
|
7060
|
+
/*! @azure/msal-common v16.0.4 2026-02-10 */
|
|
7026
7061
|
|
|
7027
7062
|
/*
|
|
7028
7063
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7457,7 +7492,7 @@ function ensureArgumentIsJSONString(argName, argValue, correlationId) {
|
|
|
7457
7492
|
|
|
7458
7493
|
/* eslint-disable header/header */
|
|
7459
7494
|
const name = "@azure/msal-browser";
|
|
7460
|
-
const version = "5.0
|
|
7495
|
+
const version = "5.2.0";
|
|
7461
7496
|
|
|
7462
7497
|
/*
|
|
7463
7498
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8162,6 +8197,7 @@ const InMemoryCacheKeys = {
|
|
|
8162
8197
|
* Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
|
|
8163
8198
|
* 0-99 Silent Flow
|
|
8164
8199
|
* 800-899 Auth Code Flow
|
|
8200
|
+
* 900-999 Misc
|
|
8165
8201
|
*/
|
|
8166
8202
|
const ApiId = {
|
|
8167
8203
|
acquireTokenRedirect: 861,
|
|
@@ -8173,6 +8209,30 @@ const ApiId = {
|
|
|
8173
8209
|
acquireTokenSilent_silentFlow: 61,
|
|
8174
8210
|
logout: 961,
|
|
8175
8211
|
logoutPopup: 962,
|
|
8212
|
+
hydrateCache: 963,
|
|
8213
|
+
loadExternalTokens: 964,
|
|
8214
|
+
};
|
|
8215
|
+
/**
|
|
8216
|
+
* API Names for Telemetry purposes.
|
|
8217
|
+
*/
|
|
8218
|
+
const ApiName = {
|
|
8219
|
+
861: "acquireTokenRedirect",
|
|
8220
|
+
862: "acquireTokenPopup",
|
|
8221
|
+
863: "ssoSilent",
|
|
8222
|
+
864: "acquireTokenSilent_authCode",
|
|
8223
|
+
865: "handleRedirectPromise",
|
|
8224
|
+
866: "acquireTokenByCode",
|
|
8225
|
+
61: "acquireTokenSilent_silentFlow",
|
|
8226
|
+
961: "logout",
|
|
8227
|
+
962: "logoutPopup",
|
|
8228
|
+
963: "hydrateCache",
|
|
8229
|
+
964: "loadExternalTokens",
|
|
8230
|
+
};
|
|
8231
|
+
const apiIdToName = (id) => {
|
|
8232
|
+
if (typeof id === "number" && id in ApiName) {
|
|
8233
|
+
return ApiName[id];
|
|
8234
|
+
}
|
|
8235
|
+
return "unknown";
|
|
8176
8236
|
};
|
|
8177
8237
|
/*
|
|
8178
8238
|
* Interaction type of the API - used for state and telemetry
|
|
@@ -9453,7 +9513,7 @@ class CustomAuthInteractionClientBase extends StandardInteractionClient {
|
|
|
9453
9513
|
* @param correlationId Correlation ID for logging
|
|
9454
9514
|
* @returns Authentication result from the token response
|
|
9455
9515
|
*/
|
|
9456
|
-
async handleTokenResponse(tokenResponse, requestScopes, correlationId) {
|
|
9516
|
+
async handleTokenResponse(tokenResponse, requestScopes, correlationId, apiId) {
|
|
9457
9517
|
this.logger.verbose("04a00a", correlationId);
|
|
9458
9518
|
const requestTimestamp = Math.round(new Date().getTime() / 1000.0);
|
|
9459
9519
|
// Save tokens and create authentication result
|
|
@@ -9461,7 +9521,7 @@ class CustomAuthInteractionClientBase extends StandardInteractionClient {
|
|
|
9461
9521
|
authority: this.customAuthAuthority.canonicalAuthority,
|
|
9462
9522
|
correlationId: tokenResponse.correlation_id ?? correlationId,
|
|
9463
9523
|
scopes: requestScopes,
|
|
9464
|
-
});
|
|
9524
|
+
}, apiId);
|
|
9465
9525
|
return result;
|
|
9466
9526
|
}
|
|
9467
9527
|
// It is not necessary to implement this method from base class.
|
|
@@ -9640,7 +9700,7 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
9640
9700
|
claims: parameters.claims,
|
|
9641
9701
|
}),
|
|
9642
9702
|
};
|
|
9643
|
-
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithOob(request), scopes, correlationId, telemetryManager);
|
|
9703
|
+
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithOob(request), scopes, correlationId, telemetryManager, apiId);
|
|
9644
9704
|
}
|
|
9645
9705
|
/**
|
|
9646
9706
|
* Submits the password for sign-in flow.
|
|
@@ -9663,7 +9723,7 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
9663
9723
|
claims: parameters.claims,
|
|
9664
9724
|
}),
|
|
9665
9725
|
};
|
|
9666
|
-
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithPassword(request), scopes, correlationId, telemetryManager);
|
|
9726
|
+
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithPassword(request), scopes, correlationId, telemetryManager, apiId);
|
|
9667
9727
|
}
|
|
9668
9728
|
/**
|
|
9669
9729
|
* Signs in with continuation token.
|
|
@@ -9687,7 +9747,7 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
9687
9747
|
}),
|
|
9688
9748
|
};
|
|
9689
9749
|
// Call token endpoint.
|
|
9690
|
-
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(request), scopes, correlationId, telemetryManager);
|
|
9750
|
+
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(request), scopes, correlationId, telemetryManager, apiId);
|
|
9691
9751
|
}
|
|
9692
9752
|
/**
|
|
9693
9753
|
* Common method to handle token endpoint calls and create sign-in results.
|
|
@@ -9697,12 +9757,12 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
9697
9757
|
* @param telemetryManager Telemetry manager for telemetry logging
|
|
9698
9758
|
* @returns SignInCompletedResult | SignInJitRequiredResult | SignInMfaRequiredResult with authentication result
|
|
9699
9759
|
*/
|
|
9700
|
-
async performTokenRequest(tokenEndpointCaller, scopes, correlationId, telemetryManager) {
|
|
9760
|
+
async performTokenRequest(tokenEndpointCaller, scopes, correlationId, telemetryManager, apiId) {
|
|
9701
9761
|
this.logger.verbose("14tes8", correlationId);
|
|
9702
9762
|
try {
|
|
9703
9763
|
const tokenResponse = await tokenEndpointCaller();
|
|
9704
9764
|
this.logger.verbose("11zi01", tokenResponse.correlation_id || correlationId);
|
|
9705
|
-
const authResult = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || correlationId);
|
|
9765
|
+
const authResult = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || correlationId, apiId);
|
|
9706
9766
|
return createSignInCompleteResult({
|
|
9707
9767
|
correlationId: tokenResponse.correlation_id || correlationId,
|
|
9708
9768
|
authenticationResult: authResult,
|
|
@@ -11332,7 +11392,7 @@ class JitClient extends CustomAuthInteractionClientBase {
|
|
|
11332
11392
|
const tokenResponse = await this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(tokenRequest);
|
|
11333
11393
|
const authResult = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id ||
|
|
11334
11394
|
continueResponse.correlation_id ||
|
|
11335
|
-
correlationId);
|
|
11395
|
+
correlationId, apiId);
|
|
11336
11396
|
return createJitCompletedResult({
|
|
11337
11397
|
correlationId: continueResponse.correlation_id || correlationId,
|
|
11338
11398
|
authenticationResult: authResult,
|
|
@@ -11427,7 +11487,7 @@ class MfaClient extends CustomAuthInteractionClientBase {
|
|
|
11427
11487
|
this.logger.verbose("1rkonv", correlationId);
|
|
11428
11488
|
const tokenResponse = await this.customAuthApiClient.signInApi.requestTokensWithOob(request);
|
|
11429
11489
|
// Save tokens and create authentication result
|
|
11430
|
-
const result = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || correlationId);
|
|
11490
|
+
const result = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || correlationId, apiId);
|
|
11431
11491
|
return createMfaCompletedResult({
|
|
11432
11492
|
correlationId: tokenResponse.correlation_id || correlationId,
|
|
11433
11493
|
authenticationResult: result,
|
|
@@ -11478,7 +11538,7 @@ class CustomAuthSilentCacheClient extends CustomAuthInteractionClientBase {
|
|
|
11478
11538
|
this.logger.verbose("05sqvp", correlationId);
|
|
11479
11539
|
const refreshTokenClient = new RefreshTokenClient(clientConfig, this.performanceClient);
|
|
11480
11540
|
this.logger.verbose("0ogm3j", correlationId);
|
|
11481
|
-
const refreshTokenResult = await refreshTokenClient.acquireTokenByRefreshToken(silentRequest);
|
|
11541
|
+
const refreshTokenResult = await refreshTokenClient.acquireTokenByRefreshToken(silentRequest, ACCOUNT_GET_ACCESS_TOKEN);
|
|
11482
11542
|
this.logger.verbose("0vydnd", correlationId);
|
|
11483
11543
|
return refreshTokenResult;
|
|
11484
11544
|
}
|
|
@@ -15073,17 +15133,22 @@ class BrowserCacheManager extends CacheManager {
|
|
|
15073
15133
|
!isAccountEntity(parsedAccount)) {
|
|
15074
15134
|
return null;
|
|
15075
15135
|
}
|
|
15076
|
-
|
|
15136
|
+
const account = CacheManager.toObject({}, parsedAccount);
|
|
15137
|
+
this.performanceClient.addFields({
|
|
15138
|
+
accountCachedBy: apiIdToName(account.cachedByApiId),
|
|
15139
|
+
}, correlationId);
|
|
15140
|
+
return account;
|
|
15077
15141
|
}
|
|
15078
15142
|
/**
|
|
15079
15143
|
* set account entity in the platform cache
|
|
15080
15144
|
* @param account
|
|
15081
15145
|
*/
|
|
15082
|
-
async setAccount(account, correlationId, kmsi) {
|
|
15146
|
+
async setAccount(account, correlationId, kmsi, apiId) {
|
|
15083
15147
|
this.logger.trace("1bz3wr", correlationId);
|
|
15084
15148
|
const key = this.generateAccountKey(getAccountInfo(account));
|
|
15085
15149
|
const timestamp = Date.now().toString();
|
|
15086
15150
|
account.lastUpdatedAt = timestamp;
|
|
15151
|
+
account.cachedByApiId = apiId;
|
|
15087
15152
|
await this.setUserData(key, JSON.stringify(account), correlationId, timestamp, kmsi);
|
|
15088
15153
|
this.addAccountKeyToMap(key, correlationId);
|
|
15089
15154
|
this.performanceClient.addFields({ kmsi: kmsi }, correlationId);
|
|
@@ -15509,7 +15574,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
15509
15574
|
this.logger.verbose("1bp5z5", correlationId);
|
|
15510
15575
|
this.browserStorage.removeItem(activeAccountKey);
|
|
15511
15576
|
}
|
|
15512
|
-
this.eventHandler.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED);
|
|
15577
|
+
this.eventHandler.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED, correlationId);
|
|
15513
15578
|
}
|
|
15514
15579
|
/**
|
|
15515
15580
|
* fetch throttling entity from the platform cache
|
|
@@ -15794,7 +15859,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
15794
15859
|
* @param request
|
|
15795
15860
|
*/
|
|
15796
15861
|
async hydrateCache(result, request) {
|
|
15797
|
-
const idTokenEntity = createIdTokenEntity(result.account
|
|
15862
|
+
const idTokenEntity = createIdTokenEntity(result.account.homeAccountId, result.account.environment, result.idToken, this.clientId, result.tenantId);
|
|
15798
15863
|
/**
|
|
15799
15864
|
* meta data for cache stores time in seconds from epoch
|
|
15800
15865
|
* AuthenticationResult returns expiresOn and extExpiresOn in milliseconds (as a Date object which is in ms)
|
|
@@ -15802,7 +15867,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
15802
15867
|
*
|
|
15803
15868
|
* The next MSAL VFuture should map these both to same value if possible
|
|
15804
15869
|
*/
|
|
15805
|
-
const accessTokenEntity = createAccessTokenEntity(result.account
|
|
15870
|
+
const accessTokenEntity = createAccessTokenEntity(result.account.homeAccountId, result.account.environment, result.accessToken, this.clientId, result.tenantId, result.scopes.join(" "),
|
|
15806
15871
|
// Access token expiresOn stored in seconds, converting from AuthenticationResult expiresOn stored as Date
|
|
15807
15872
|
result.expiresOn
|
|
15808
15873
|
? toSecondsFromDate(result.expiresOn)
|
|
@@ -15815,7 +15880,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
15815
15880
|
idToken: idTokenEntity,
|
|
15816
15881
|
accessToken: accessTokenEntity,
|
|
15817
15882
|
};
|
|
15818
|
-
return this.saveCacheRecord(cacheRecord, result.correlationId, isKmsi(extractTokenClaims(result.idToken, base64Decode)));
|
|
15883
|
+
return this.saveCacheRecord(cacheRecord, result.correlationId, isKmsi(extractTokenClaims(result.idToken, base64Decode)), ApiId.hydrateCache);
|
|
15819
15884
|
}
|
|
15820
15885
|
/**
|
|
15821
15886
|
* saves a cache record
|
|
@@ -15823,9 +15888,9 @@ class BrowserCacheManager extends CacheManager {
|
|
|
15823
15888
|
* @param storeInCache {?StoreInCache}
|
|
15824
15889
|
* @param correlationId {?string} correlation id
|
|
15825
15890
|
*/
|
|
15826
|
-
async saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache) {
|
|
15891
|
+
async saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache) {
|
|
15827
15892
|
try {
|
|
15828
|
-
await super.saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache);
|
|
15893
|
+
await super.saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache);
|
|
15829
15894
|
}
|
|
15830
15895
|
catch (e) {
|
|
15831
15896
|
if (e instanceof CacheError &&
|
|
@@ -15972,12 +16037,13 @@ class EventHandler {
|
|
|
15972
16037
|
* @param payload
|
|
15973
16038
|
* @param error
|
|
15974
16039
|
*/
|
|
15975
|
-
emitEvent(eventType, interactionType, payload, error) {
|
|
16040
|
+
emitEvent(eventType, correlationId, interactionType, payload, error) {
|
|
15976
16041
|
const message = {
|
|
15977
16042
|
eventType: eventType,
|
|
15978
16043
|
interactionType: interactionType || null,
|
|
15979
16044
|
payload: payload || null,
|
|
15980
16045
|
error: error || null,
|
|
16046
|
+
correlationId: correlationId,
|
|
15981
16047
|
timestamp: Date.now(),
|
|
15982
16048
|
};
|
|
15983
16049
|
switch (eventType) {
|
|
@@ -16103,7 +16169,7 @@ class InteractionHandler {
|
|
|
16103
16169
|
* Function to handle response parameters from hash.
|
|
16104
16170
|
* @param locationHash
|
|
16105
16171
|
*/
|
|
16106
|
-
async handleCodeResponse(response, request) {
|
|
16172
|
+
async handleCodeResponse(response, request, apiId) {
|
|
16107
16173
|
let authCodeResponse;
|
|
16108
16174
|
try {
|
|
16109
16175
|
authCodeResponse = getAuthorizationCodePayload(response, request.state);
|
|
@@ -16118,7 +16184,7 @@ class InteractionHandler {
|
|
|
16118
16184
|
throw e;
|
|
16119
16185
|
}
|
|
16120
16186
|
}
|
|
16121
|
-
return invokeAsync(this.handleCodeResponseFromServer.bind(this), HandleCodeResponseFromServer, this.logger, this.performanceClient, request.correlationId)(authCodeResponse, request);
|
|
16187
|
+
return invokeAsync(this.handleCodeResponseFromServer.bind(this), HandleCodeResponseFromServer, this.logger, this.performanceClient, request.correlationId)(authCodeResponse, request, apiId);
|
|
16122
16188
|
}
|
|
16123
16189
|
/**
|
|
16124
16190
|
* Process auth code response from AAD
|
|
@@ -16127,7 +16193,7 @@ class InteractionHandler {
|
|
|
16127
16193
|
* @param validateNonce
|
|
16128
16194
|
* @returns
|
|
16129
16195
|
*/
|
|
16130
|
-
async handleCodeResponseFromServer(authCodeResponse, request, validateNonce = true) {
|
|
16196
|
+
async handleCodeResponseFromServer(authCodeResponse, request, apiId, validateNonce = true) {
|
|
16131
16197
|
this.logger.trace("0mf2hb", request.correlationId);
|
|
16132
16198
|
// Assign code to request
|
|
16133
16199
|
this.authCodeRequest.code = authCodeResponse.code;
|
|
@@ -16148,7 +16214,7 @@ class InteractionHandler {
|
|
|
16148
16214
|
}
|
|
16149
16215
|
}
|
|
16150
16216
|
// Acquire token with retrieved code.
|
|
16151
|
-
const tokenResponse = (await invokeAsync(this.authModule.acquireToken.bind(this.authModule), AuthClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(this.authCodeRequest, authCodeResponse));
|
|
16217
|
+
const tokenResponse = (await invokeAsync(this.authModule.acquireToken.bind(this.authModule), AuthClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(this.authCodeRequest, apiId, authCodeResponse));
|
|
16152
16218
|
return tokenResponse;
|
|
16153
16219
|
}
|
|
16154
16220
|
/**
|
|
@@ -16681,7 +16747,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
16681
16747
|
*/
|
|
16682
16748
|
async cacheAccount(accountEntity, kmsi) {
|
|
16683
16749
|
// Store the account info and hence `nativeAccountId` in browser cache
|
|
16684
|
-
await this.browserStorage.setAccount(accountEntity, this.correlationId, kmsi);
|
|
16750
|
+
await this.browserStorage.setAccount(accountEntity, this.correlationId, kmsi, this.apiId);
|
|
16685
16751
|
// Remove any existing cached tokens for this account in browser storage
|
|
16686
16752
|
this.browserStorage.removeAccountContext(getAccountInfo(accountEntity), this.correlationId);
|
|
16687
16753
|
}
|
|
@@ -16710,7 +16776,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
16710
16776
|
idToken: cachedIdToken,
|
|
16711
16777
|
accessToken: cachedAccessToken,
|
|
16712
16778
|
};
|
|
16713
|
-
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), request.storeInCache);
|
|
16779
|
+
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId, request.storeInCache);
|
|
16714
16780
|
}
|
|
16715
16781
|
getExpiresInValue(tokenType, expiresIn) {
|
|
16716
16782
|
return tokenType === AuthenticationScheme.POP
|
|
@@ -16995,6 +17061,8 @@ async function getEARForm(frame, config, authority, request, logger, performance
|
|
|
16995
17061
|
});
|
|
16996
17062
|
const queryParams = new Map();
|
|
16997
17063
|
addExtraParameters(queryParams, request.extraQueryParameters || {});
|
|
17064
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
17065
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
16998
17066
|
const url = getAuthorizeUrl(authority, queryParams);
|
|
16999
17067
|
return createForm(frame, url, parameters);
|
|
17000
17068
|
}
|
|
@@ -17012,6 +17080,8 @@ async function getCodeForm(frame, config, authority, request, logger, performanc
|
|
|
17012
17080
|
// Add extraQueryParameters to be appended to request URL
|
|
17013
17081
|
const queryParams = new Map();
|
|
17014
17082
|
addExtraParameters(queryParams, request.extraQueryParameters || {});
|
|
17083
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
17084
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
17015
17085
|
const url = getAuthorizeUrl(authority, queryParams);
|
|
17016
17086
|
return createForm(frame, url, parameters);
|
|
17017
17087
|
}
|
|
@@ -17089,7 +17159,7 @@ async function handleResponseCode(request, response, codeVerifier, apiId, config
|
|
|
17089
17159
|
// Create popup interaction handler.
|
|
17090
17160
|
const interactionHandler = new InteractionHandler(authClient, browserStorage, authCodeRequest, logger, performanceClient);
|
|
17091
17161
|
// Handle response from hash string.
|
|
17092
|
-
const result = await invokeAsync(interactionHandler.handleCodeResponse.bind(interactionHandler), HandleCodeResponse, logger, performanceClient, request.correlationId)(response, request);
|
|
17162
|
+
const result = await invokeAsync(interactionHandler.handleCodeResponse.bind(interactionHandler), HandleCodeResponse, logger, performanceClient, request.correlationId)(response, request, apiId);
|
|
17093
17163
|
return result;
|
|
17094
17164
|
}
|
|
17095
17165
|
/**
|
|
@@ -17136,7 +17206,7 @@ async function handleResponseEAR(request, response, apiId, config, authority, br
|
|
|
17136
17206
|
cloud_instance_name: decryptedData.cloud_instance_name,
|
|
17137
17207
|
msgraph_host: decryptedData.msgraph_host,
|
|
17138
17208
|
};
|
|
17139
|
-
return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, additionalData, undefined, undefined, undefined, undefined));
|
|
17209
|
+
return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, apiId, additionalData, undefined, undefined, undefined, undefined));
|
|
17140
17210
|
}
|
|
17141
17211
|
|
|
17142
17212
|
/*
|
|
@@ -18081,7 +18151,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
18081
18151
|
const navigateUrl = await invokeAsync(getAuthCodeRequestUrl, GetAuthCodeUrl, this.logger, this.performanceClient, correlationId)(this.config, authClient.authority, popupRequest, this.logger, this.performanceClient);
|
|
18082
18152
|
// Show the UI once the url has been created. Get the window handle for the popup.
|
|
18083
18153
|
const popupWindow = this.initiateAuthRequest(navigateUrl, popupParams);
|
|
18084
|
-
this.eventHandler.emitEvent(EventType.POPUP_OPENED, InteractionType.Popup, { popupWindow }, null);
|
|
18154
|
+
this.eventHandler.emitEvent(EventType.POPUP_OPENED, correlationId, InteractionType.Popup, { popupWindow }, null);
|
|
18085
18155
|
// Wait for the redirect bridge response
|
|
18086
18156
|
const responseString = await waitForBridgeResponse(this.config.system.popupBridgeTimeout, this.logger, this.browserCrypto, request);
|
|
18087
18157
|
const serverParams = invoke(deserializeResponse, DeserializeResponse, this.logger, this.performanceClient, this.correlationId)(responseString, this.config.auth.OIDCOptions.responseMode, this.logger, this.correlationId);
|
|
@@ -18158,7 +18228,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
18158
18228
|
*/
|
|
18159
18229
|
async logoutPopupAsync(validRequest, popupParams, requestAuthority, mainWindowRedirectUri) {
|
|
18160
18230
|
this.logger.verbose("0b7yrk", this.correlationId);
|
|
18161
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_START, InteractionType.Popup, validRequest);
|
|
18231
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_START, this.correlationId, InteractionType.Popup, validRequest);
|
|
18162
18232
|
const serverTelemetryManager = initializeServerTelemetryManager(ApiId.logoutPopup, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger);
|
|
18163
18233
|
try {
|
|
18164
18234
|
// Clear cache on logout
|
|
@@ -18176,7 +18246,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
18176
18246
|
if (validRequest.account?.homeAccountId &&
|
|
18177
18247
|
validRequest.postLogoutRedirectUri &&
|
|
18178
18248
|
authClient.authority.protocolMode === ProtocolMode.OIDC) {
|
|
18179
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, InteractionType.Popup, validRequest);
|
|
18249
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, validRequest.correlationId, InteractionType.Popup, validRequest);
|
|
18180
18250
|
if (mainWindowRedirectUri) {
|
|
18181
18251
|
const navigationOptions = {
|
|
18182
18252
|
apiId: ApiId.logoutPopup,
|
|
@@ -18192,10 +18262,10 @@ class PopupClient extends StandardInteractionClient {
|
|
|
18192
18262
|
}
|
|
18193
18263
|
// Create logout string and navigate user window to logout.
|
|
18194
18264
|
const logoutUri = authClient.getLogoutUri(validRequest);
|
|
18195
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, InteractionType.Popup, validRequest);
|
|
18265
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, validRequest.correlationId, InteractionType.Popup, validRequest);
|
|
18196
18266
|
// Open the popup window to requestUrl.
|
|
18197
18267
|
const popupWindow = this.openPopup(logoutUri, popupParams);
|
|
18198
|
-
this.eventHandler.emitEvent(EventType.POPUP_OPENED, InteractionType.Popup, { popupWindow }, null);
|
|
18268
|
+
this.eventHandler.emitEvent(EventType.POPUP_OPENED, validRequest.correlationId, InteractionType.Popup, { popupWindow }, null);
|
|
18199
18269
|
await waitForBridgeResponse(this.config.system.popupBridgeTimeout, this.logger, this.browserCrypto, validRequest).catch(() => {
|
|
18200
18270
|
// Swallow any errors related to monitoring the window. Server logout is best effort
|
|
18201
18271
|
});
|
|
@@ -18221,11 +18291,11 @@ class PopupClient extends StandardInteractionClient {
|
|
|
18221
18291
|
e.setCorrelationId(this.correlationId);
|
|
18222
18292
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
18223
18293
|
}
|
|
18224
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, InteractionType.Popup, null, e);
|
|
18225
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, InteractionType.Popup);
|
|
18294
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, this.correlationId, InteractionType.Popup, null, e);
|
|
18295
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, InteractionType.Popup);
|
|
18226
18296
|
throw e;
|
|
18227
18297
|
}
|
|
18228
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, InteractionType.Popup);
|
|
18298
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, InteractionType.Popup);
|
|
18229
18299
|
}
|
|
18230
18300
|
/**
|
|
18231
18301
|
* Opens a popup window with given request Url.
|
|
@@ -18388,7 +18458,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
18388
18458
|
if (event.persisted) {
|
|
18389
18459
|
this.logger.verbose("0udvtt", this.correlationId);
|
|
18390
18460
|
this.browserStorage.resetRequestCache(this.correlationId);
|
|
18391
|
-
this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, InteractionType.Redirect);
|
|
18461
|
+
this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, this.correlationId, InteractionType.Redirect);
|
|
18392
18462
|
}
|
|
18393
18463
|
};
|
|
18394
18464
|
const redirectStartPage = this.getRedirectStartPage(request.redirectStartPage);
|
|
@@ -18705,7 +18775,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
18705
18775
|
const validLogoutRequest = this.initializeLogoutRequest(logoutRequest);
|
|
18706
18776
|
const serverTelemetryManager = initializeServerTelemetryManager(ApiId.logout, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger);
|
|
18707
18777
|
try {
|
|
18708
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_START, InteractionType.Redirect, logoutRequest);
|
|
18778
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_START, this.correlationId, InteractionType.Redirect, logoutRequest);
|
|
18709
18779
|
// Clear cache on logout
|
|
18710
18780
|
await clearCacheOnLogout(this.browserStorage, this.browserCrypto, this.logger, this.correlationId, validLogoutRequest.account);
|
|
18711
18781
|
const navigationOptions = {
|
|
@@ -18725,7 +18795,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
18725
18795
|
}
|
|
18726
18796
|
catch {
|
|
18727
18797
|
if (validLogoutRequest.account?.homeAccountId) {
|
|
18728
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, InteractionType.Redirect, validLogoutRequest);
|
|
18798
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, this.correlationId, InteractionType.Redirect, validLogoutRequest);
|
|
18729
18799
|
return;
|
|
18730
18800
|
}
|
|
18731
18801
|
}
|
|
@@ -18733,7 +18803,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
18733
18803
|
// Create logout string and navigate user window to logout.
|
|
18734
18804
|
const logoutUri = authClient.getLogoutUri(validLogoutRequest);
|
|
18735
18805
|
if (validLogoutRequest.account?.homeAccountId) {
|
|
18736
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, InteractionType.Redirect, validLogoutRequest);
|
|
18806
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, this.correlationId, InteractionType.Redirect, validLogoutRequest);
|
|
18737
18807
|
}
|
|
18738
18808
|
// Check if onRedirectNavigate is implemented, and invoke it if so
|
|
18739
18809
|
const onRedirectNavigate = this.config.auth.onRedirectNavigate;
|
|
@@ -18768,11 +18838,11 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
18768
18838
|
e.setCorrelationId(this.correlationId);
|
|
18769
18839
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
18770
18840
|
}
|
|
18771
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, InteractionType.Redirect, null, e);
|
|
18772
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, InteractionType.Redirect);
|
|
18841
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, this.correlationId, InteractionType.Redirect, null, e);
|
|
18842
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, InteractionType.Redirect);
|
|
18773
18843
|
throw e;
|
|
18774
18844
|
}
|
|
18775
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, InteractionType.Redirect);
|
|
18845
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, InteractionType.Redirect);
|
|
18776
18846
|
}
|
|
18777
18847
|
/**
|
|
18778
18848
|
* Use to get the redirectStartPage either from request or use current window
|
|
@@ -19026,7 +19096,7 @@ class SilentRefreshClient extends StandardInteractionClient {
|
|
|
19026
19096
|
account: silentRequest.account,
|
|
19027
19097
|
});
|
|
19028
19098
|
// Send request to renew token. Auth module will throw errors if token cannot be renewed.
|
|
19029
|
-
return invokeAsync(refreshTokenClient.acquireTokenByRefreshToken.bind(refreshTokenClient), RefreshTokenClientAcquireTokenByRefreshToken, this.logger, this.performanceClient, request.correlationId)(silentRequest).catch((e) => {
|
|
19099
|
+
return invokeAsync(refreshTokenClient.acquireTokenByRefreshToken.bind(refreshTokenClient), RefreshTokenClientAcquireTokenByRefreshToken, this.logger, this.performanceClient, request.correlationId)(silentRequest, ApiId.acquireTokenSilent_silentFlow).catch((e) => {
|
|
19030
19100
|
e.setCorrelationId(this.correlationId);
|
|
19031
19101
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
19032
19102
|
throw e;
|
|
@@ -19123,7 +19193,7 @@ class SilentAuthCodeClient extends StandardInteractionClient {
|
|
|
19123
19193
|
msgraph_host: request.msGraphHost,
|
|
19124
19194
|
cloud_graph_host_name: request.cloudGraphHostName,
|
|
19125
19195
|
cloud_instance_host_name: request.cloudInstanceHostName,
|
|
19126
|
-
}, silentRequest, false);
|
|
19196
|
+
}, silentRequest, this.apiId, false);
|
|
19127
19197
|
}
|
|
19128
19198
|
catch (e) {
|
|
19129
19199
|
if (e instanceof AuthError) {
|
|
@@ -19263,23 +19333,22 @@ class StandardController {
|
|
|
19263
19333
|
if (!this.isBrowserEnvironment) {
|
|
19264
19334
|
this.logger.info("19fvpi", correlationId);
|
|
19265
19335
|
this.initialized = true;
|
|
19266
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
19336
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_END, correlationId);
|
|
19267
19337
|
return;
|
|
19268
19338
|
}
|
|
19269
|
-
const initCorrelationId = request?.correlationId || this.getRequestCorrelationId();
|
|
19270
19339
|
const allowPlatformBroker = this.config.system.allowPlatformBroker;
|
|
19271
|
-
const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication,
|
|
19272
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_START);
|
|
19340
|
+
const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication, correlationId);
|
|
19341
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_START, correlationId);
|
|
19273
19342
|
// Broker applications are initialized twice, so we avoid double-counting it
|
|
19274
|
-
this.logMultipleInstances(initMeasurement,
|
|
19275
|
-
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient,
|
|
19343
|
+
this.logMultipleInstances(initMeasurement, correlationId);
|
|
19344
|
+
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient, correlationId)(correlationId);
|
|
19276
19345
|
if (allowPlatformBroker) {
|
|
19277
19346
|
try {
|
|
19278
19347
|
// check if platform authentication is available via DOM or browser extension and create relevant handlers
|
|
19279
|
-
this.platformAuthProvider = await getPlatformAuthProvider(this.logger, this.performanceClient,
|
|
19348
|
+
this.platformAuthProvider = await getPlatformAuthProvider(this.logger, this.performanceClient, correlationId, this.config.system.nativeBrokerHandshakeTimeout);
|
|
19280
19349
|
}
|
|
19281
19350
|
catch (e) {
|
|
19282
|
-
this.logger.verbose(e,
|
|
19351
|
+
this.logger.verbose(e, correlationId);
|
|
19283
19352
|
}
|
|
19284
19353
|
}
|
|
19285
19354
|
if (this.config.cache.cacheLocation ===
|
|
@@ -19287,9 +19356,9 @@ class StandardController {
|
|
|
19287
19356
|
this.eventHandler.subscribeCrossTab();
|
|
19288
19357
|
}
|
|
19289
19358
|
!this.config.system.navigatePopups &&
|
|
19290
|
-
(await this.preGeneratePkceCodes(
|
|
19359
|
+
(await this.preGeneratePkceCodes(correlationId));
|
|
19291
19360
|
this.initialized = true;
|
|
19292
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
19361
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_END, correlationId);
|
|
19293
19362
|
initMeasurement.end({
|
|
19294
19363
|
allowPlatformBroker: allowPlatformBroker,
|
|
19295
19364
|
success: true,
|
|
@@ -19351,11 +19420,11 @@ class StandardController {
|
|
|
19351
19420
|
this.platformAuthProvider &&
|
|
19352
19421
|
!options?.hash;
|
|
19353
19422
|
let rootMeasurement;
|
|
19354
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, InteractionType.Redirect);
|
|
19355
19423
|
let redirectResponse;
|
|
19356
19424
|
try {
|
|
19357
19425
|
if (useNative && this.platformAuthProvider) {
|
|
19358
19426
|
const correlationId = platformBrokerRequest?.correlationId || "";
|
|
19427
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, InteractionType.Redirect);
|
|
19359
19428
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
19360
19429
|
this.logger.trace("12v7is", correlationId);
|
|
19361
19430
|
const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.handleRedirectPromise, this.performanceClient, this.platformAuthProvider, platformBrokerRequest.accountId, this.nativeInternalStorage, platformBrokerRequest.correlationId);
|
|
@@ -19364,6 +19433,7 @@ class StandardController {
|
|
|
19364
19433
|
else {
|
|
19365
19434
|
const [standardRequest, codeVerifier] = this.browserStorage.getCachedRequest("");
|
|
19366
19435
|
const correlationId = standardRequest.correlationId;
|
|
19436
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, InteractionType.Redirect);
|
|
19367
19437
|
// Reset rootMeasurement now that we have correlationId
|
|
19368
19438
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
19369
19439
|
this.logger.trace("0znzs5", correlationId);
|
|
@@ -19379,12 +19449,12 @@ class StandardController {
|
|
|
19379
19449
|
.then((result) => {
|
|
19380
19450
|
if (result) {
|
|
19381
19451
|
this.browserStorage.resetRequestCache(result.correlationId);
|
|
19382
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Redirect, result);
|
|
19452
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, result.correlationId, InteractionType.Redirect, result);
|
|
19383
19453
|
this.logger.verbose("0ui8f5", result.correlationId);
|
|
19384
19454
|
// Emit login event if number of accounts change
|
|
19385
19455
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
19386
19456
|
if (isLoggingIn) {
|
|
19387
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, InteractionType.Redirect, result.account);
|
|
19457
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, result.correlationId, InteractionType.Redirect, result.account);
|
|
19388
19458
|
this.logger.verbose("16im3l", result.correlationId);
|
|
19389
19459
|
}
|
|
19390
19460
|
rootMeasurement.end({
|
|
@@ -19403,14 +19473,14 @@ class StandardController {
|
|
|
19403
19473
|
rootMeasurement.discard();
|
|
19404
19474
|
}
|
|
19405
19475
|
}
|
|
19406
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, InteractionType.Redirect);
|
|
19476
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, rootMeasurement.event.correlationId, InteractionType.Redirect);
|
|
19407
19477
|
return result;
|
|
19408
19478
|
})
|
|
19409
19479
|
.catch((e) => {
|
|
19410
19480
|
this.browserStorage.resetRequestCache(rootMeasurement.event.correlationId);
|
|
19411
19481
|
const eventError = e;
|
|
19412
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Redirect, null, eventError);
|
|
19413
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, InteractionType.Redirect);
|
|
19482
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, rootMeasurement.event.correlationId, InteractionType.Redirect, null, eventError);
|
|
19483
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, rootMeasurement.event.correlationId, InteractionType.Redirect);
|
|
19414
19484
|
rootMeasurement.end({
|
|
19415
19485
|
success: false,
|
|
19416
19486
|
}, eventError);
|
|
@@ -19449,7 +19519,7 @@ class StandardController {
|
|
|
19449
19519
|
try {
|
|
19450
19520
|
redirectPreflightCheck(this.initialized, this.config);
|
|
19451
19521
|
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
|
|
19452
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Redirect, request);
|
|
19522
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Redirect, request);
|
|
19453
19523
|
let result;
|
|
19454
19524
|
if (this.platformAuthProvider &&
|
|
19455
19525
|
this.canUsePlatformBroker(request)) {
|
|
@@ -19491,7 +19561,7 @@ class StandardController {
|
|
|
19491
19561
|
else {
|
|
19492
19562
|
atrMeasurement.end({ success: false }, e, request.account);
|
|
19493
19563
|
}
|
|
19494
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Redirect, null, e);
|
|
19564
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, InteractionType.Redirect, null, e);
|
|
19495
19565
|
throw e;
|
|
19496
19566
|
}
|
|
19497
19567
|
}
|
|
@@ -19521,7 +19591,7 @@ class StandardController {
|
|
|
19521
19591
|
}
|
|
19522
19592
|
// If logged in, emit acquire token events
|
|
19523
19593
|
const loggedInAccounts = this.getAllAccounts();
|
|
19524
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Popup, request);
|
|
19594
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Popup, request);
|
|
19525
19595
|
let result;
|
|
19526
19596
|
const pkce = this.getPreGeneratedPkceCodes(correlationId);
|
|
19527
19597
|
if (this.canUsePlatformBroker(request)) {
|
|
@@ -19561,9 +19631,9 @@ class StandardController {
|
|
|
19561
19631
|
* If logged in, emit acquire token events
|
|
19562
19632
|
*/
|
|
19563
19633
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
19564
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Popup, result);
|
|
19634
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, InteractionType.Popup, result);
|
|
19565
19635
|
if (isLoggingIn) {
|
|
19566
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, InteractionType.Popup, result.account);
|
|
19636
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, correlationId, InteractionType.Popup, result.account);
|
|
19567
19637
|
}
|
|
19568
19638
|
atPopupMeasurement.end({
|
|
19569
19639
|
success: true,
|
|
@@ -19573,7 +19643,7 @@ class StandardController {
|
|
|
19573
19643
|
return result;
|
|
19574
19644
|
})
|
|
19575
19645
|
.catch((e) => {
|
|
19576
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Popup, null, e);
|
|
19646
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, InteractionType.Popup, null, e);
|
|
19577
19647
|
atPopupMeasurement.end({
|
|
19578
19648
|
success: false,
|
|
19579
19649
|
}, e, request.account);
|
|
@@ -19633,7 +19703,7 @@ class StandardController {
|
|
|
19633
19703
|
document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement);
|
|
19634
19704
|
const loggedInAccounts = this.getAllAccounts();
|
|
19635
19705
|
this.logger.verbose("0w1b45", correlationId);
|
|
19636
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, validRequest);
|
|
19706
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Silent, validRequest);
|
|
19637
19707
|
let result;
|
|
19638
19708
|
if (this.canUsePlatformBroker(validRequest)) {
|
|
19639
19709
|
result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch((e) => {
|
|
@@ -19653,9 +19723,9 @@ class StandardController {
|
|
|
19653
19723
|
return result
|
|
19654
19724
|
.then((response) => {
|
|
19655
19725
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
19656
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, response);
|
|
19726
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, InteractionType.Silent, response);
|
|
19657
19727
|
if (isLoggingIn) {
|
|
19658
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, InteractionType.Silent, response.account);
|
|
19728
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, correlationId, InteractionType.Silent, response.account);
|
|
19659
19729
|
}
|
|
19660
19730
|
this.ssoSilentMeasurement?.end({
|
|
19661
19731
|
success: true,
|
|
@@ -19666,7 +19736,7 @@ class StandardController {
|
|
|
19666
19736
|
return response;
|
|
19667
19737
|
})
|
|
19668
19738
|
.catch((e) => {
|
|
19669
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, e);
|
|
19739
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, InteractionType.Silent, null, e);
|
|
19670
19740
|
this.ssoSilentMeasurement?.end({
|
|
19671
19741
|
success: false,
|
|
19672
19742
|
}, e, request.account);
|
|
@@ -19691,7 +19761,7 @@ class StandardController {
|
|
|
19691
19761
|
this.logger.trace("0ch6ga", correlationId);
|
|
19692
19762
|
const atbcMeasurement = this.performanceClient.startMeasurement(AcquireTokenByCode, correlationId);
|
|
19693
19763
|
preflightCheck(this.initialized, atbcMeasurement);
|
|
19694
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, request);
|
|
19764
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Silent, request);
|
|
19695
19765
|
atbcMeasurement.add({ scenarioId: request.scenarioId });
|
|
19696
19766
|
try {
|
|
19697
19767
|
if (request.code && request.nativeAccountId) {
|
|
@@ -19708,7 +19778,7 @@ class StandardController {
|
|
|
19708
19778
|
correlationId,
|
|
19709
19779
|
})
|
|
19710
19780
|
.then((result) => {
|
|
19711
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, result);
|
|
19781
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, InteractionType.Silent, result);
|
|
19712
19782
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
19713
19783
|
atbcMeasurement.end({
|
|
19714
19784
|
success: true,
|
|
@@ -19720,7 +19790,7 @@ class StandardController {
|
|
|
19720
19790
|
})
|
|
19721
19791
|
.catch((error) => {
|
|
19722
19792
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
19723
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, error);
|
|
19793
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, InteractionType.Silent, null, error);
|
|
19724
19794
|
atbcMeasurement.end({
|
|
19725
19795
|
success: false,
|
|
19726
19796
|
}, error);
|
|
@@ -19761,7 +19831,7 @@ class StandardController {
|
|
|
19761
19831
|
}
|
|
19762
19832
|
}
|
|
19763
19833
|
catch (e) {
|
|
19764
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, e);
|
|
19834
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, InteractionType.Silent, null, e);
|
|
19765
19835
|
atbcMeasurement.end({
|
|
19766
19836
|
success: false,
|
|
19767
19837
|
}, e);
|
|
@@ -19936,7 +20006,7 @@ class StandardController {
|
|
|
19936
20006
|
this.logger.verbose("16jycr", result.correlationId);
|
|
19937
20007
|
// Account gets saved to browser storage regardless of native or not
|
|
19938
20008
|
const accountEntity = createAccountEntityFromAccountInfo(result.account, result.cloudGraphHostName, result.msGraphHost);
|
|
19939
|
-
await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims));
|
|
20009
|
+
await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims), ApiId.hydrateCache);
|
|
19940
20010
|
if (result.fromPlatformBroker) {
|
|
19941
20011
|
this.logger.verbose("1fxyu8", result.correlationId);
|
|
19942
20012
|
// Tokens from native broker are stored in-memory
|
|
@@ -20263,7 +20333,7 @@ class StandardController {
|
|
|
20263
20333
|
*/
|
|
20264
20334
|
async acquireTokenSilentAsync(request, account) {
|
|
20265
20335
|
const trackPageVisibility = () => this.trackPageVisibility(request.correlationId);
|
|
20266
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, request);
|
|
20336
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, request.correlationId, InteractionType.Silent, request);
|
|
20267
20337
|
if (request.correlationId) {
|
|
20268
20338
|
this.performanceClient.incrementFields({ visibilityChangeCount: 0 }, request.correlationId);
|
|
20269
20339
|
}
|
|
@@ -20331,7 +20401,7 @@ class StandardController {
|
|
|
20331
20401
|
});
|
|
20332
20402
|
return result
|
|
20333
20403
|
.then((response) => {
|
|
20334
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, response);
|
|
20404
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, request.correlationId, InteractionType.Silent, response);
|
|
20335
20405
|
if (request.correlationId) {
|
|
20336
20406
|
this.performanceClient.addFields({
|
|
20337
20407
|
fromCache: response.fromCache,
|
|
@@ -20341,7 +20411,7 @@ class StandardController {
|
|
|
20341
20411
|
return response;
|
|
20342
20412
|
})
|
|
20343
20413
|
.catch((tokenRenewalError) => {
|
|
20344
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, tokenRenewalError);
|
|
20414
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, request.correlationId, InteractionType.Silent, null, tokenRenewalError);
|
|
20345
20415
|
throw tokenRenewalError;
|
|
20346
20416
|
})
|
|
20347
20417
|
.finally(() => {
|
|
@@ -20380,7 +20450,7 @@ class StandardController {
|
|
|
20380
20450
|
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
20381
20451
|
throw cacheError;
|
|
20382
20452
|
}
|
|
20383
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, InteractionType.Silent, silentRequest);
|
|
20453
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, silentRequest.correlationId, InteractionType.Silent, silentRequest);
|
|
20384
20454
|
return invokeAsync(this.acquireTokenByRefreshToken.bind(this), AcquireTokenByRefreshToken, this.logger, this.performanceClient, silentRequest.correlationId)(silentRequest, cacheLookupPolicy);
|
|
20385
20455
|
});
|
|
20386
20456
|
}
|