@azure/msal-browser 5.0.2 → 5.1.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 +14 -9
- 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 +3 -3
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +2 -2
- 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 +14 -9
- 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 +2 -2
- 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.mjs +1 -1
- package/dist/custom-auth-path/event/EventType.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.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.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +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/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 +3 -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.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.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.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +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.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +3 -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/interaction_client/PlatformAuthInteractionClient.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/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 +163 -113
- 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/interaction_client/PlatformAuthInteractionClient.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/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 +177 -122
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +177 -122
- 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/interaction_client/PlatformAuthInteractionClient.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/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 +22 -6
- package/src/cache/TokenCache.ts +47 -31
- package/src/controllers/NestedAppAuthController.ts +3 -1
- package/src/controllers/StandardController.ts +2 -1
- 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/interaction_client/PlatformAuthInteractionClient.ts +3 -1
- 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/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +2 -1
- package/src/utils/BrowserConstants.ts +27 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.0
|
|
1
|
+
/*! @azure/msal-browser v5.1.0 2026-01-28 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v16.0.
|
|
5
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3";
|
|
1489
1489
|
|
|
1490
|
-
/*! @azure/msal-common v16.0.
|
|
1490
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
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.3 2026-01-28 */
|
|
1819
1819
|
|
|
1820
1820
|
/*
|
|
1821
1821
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1957,7 +1957,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1957
1957
|
return null;
|
|
1958
1958
|
}
|
|
1959
1959
|
|
|
1960
|
-
/*! @azure/msal-common v16.0.
|
|
1960
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
1961
1961
|
/*
|
|
1962
1962
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1963
1963
|
* Licensed under the MIT License.
|
|
@@ -1965,7 +1965,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1965
1965
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
1966
1966
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
1967
1967
|
|
|
1968
|
-
/*! @azure/msal-common v16.0.
|
|
1968
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
1969
1969
|
|
|
1970
1970
|
/*
|
|
1971
1971
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2003,7 +2003,7 @@ function createCacheError(e) {
|
|
|
2003
2003
|
}
|
|
2004
2004
|
}
|
|
2005
2005
|
|
|
2006
|
-
/*! @azure/msal-common v16.0.
|
|
2006
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
2007
2007
|
|
|
2008
2008
|
/*
|
|
2009
2009
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2041,7 +2041,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2041
2041
|
};
|
|
2042
2042
|
}
|
|
2043
2043
|
|
|
2044
|
-
/*! @azure/msal-common v16.0.
|
|
2044
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
2045
2045
|
/*
|
|
2046
2046
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2047
2047
|
* Licensed under the MIT License.
|
|
@@ -2056,7 +2056,7 @@ const AuthorityType = {
|
|
|
2056
2056
|
Ciam: 3,
|
|
2057
2057
|
};
|
|
2058
2058
|
|
|
2059
|
-
/*! @azure/msal-common v16.0.
|
|
2059
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
2060
2060
|
/*
|
|
2061
2061
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2062
2062
|
* Licensed under the MIT License.
|
|
@@ -2078,7 +2078,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
2078
2078
|
return null;
|
|
2079
2079
|
}
|
|
2080
2080
|
|
|
2081
|
-
/*! @azure/msal-common v16.0.
|
|
2081
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
2082
2082
|
/*
|
|
2083
2083
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2084
2084
|
* Licensed under the MIT License.
|
|
@@ -2102,11 +2102,18 @@ const ProtocolMode = {
|
|
|
2102
2102
|
EAR: "EAR",
|
|
2103
2103
|
};
|
|
2104
2104
|
|
|
2105
|
-
/*! @azure/msal-common v16.0.
|
|
2105
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
2106
2106
|
/**
|
|
2107
2107
|
* Returns the AccountInfo interface for this account.
|
|
2108
2108
|
*/
|
|
2109
2109
|
function getAccountInfo(accountEntity) {
|
|
2110
|
+
const tenantProfiles = accountEntity.tenantProfiles || [];
|
|
2111
|
+
// Ensure at least the home tenant profile exists
|
|
2112
|
+
if (tenantProfiles.length === 0 &&
|
|
2113
|
+
accountEntity.realm &&
|
|
2114
|
+
accountEntity.localAccountId) {
|
|
2115
|
+
tenantProfiles.push(buildTenantProfile(accountEntity.homeAccountId, accountEntity.localAccountId, accountEntity.realm));
|
|
2116
|
+
}
|
|
2110
2117
|
return {
|
|
2111
2118
|
homeAccountId: accountEntity.homeAccountId,
|
|
2112
2119
|
environment: accountEntity.environment,
|
|
@@ -2118,7 +2125,7 @@ function getAccountInfo(accountEntity) {
|
|
|
2118
2125
|
nativeAccountId: accountEntity.nativeAccountId,
|
|
2119
2126
|
authorityType: accountEntity.authorityType,
|
|
2120
2127
|
// Deserialize tenant profiles array into a Map
|
|
2121
|
-
tenantProfiles: new Map(
|
|
2128
|
+
tenantProfiles: new Map(tenantProfiles.map((tenantProfile) => {
|
|
2122
2129
|
return [tenantProfile.tenantId, tenantProfile];
|
|
2123
2130
|
})),
|
|
2124
2131
|
dataBoundary: accountEntity.dataBoundary,
|
|
@@ -2207,6 +2214,14 @@ function createAccountEntity(accountDetails, authority, base64Decode) {
|
|
|
2207
2214
|
* @returns
|
|
2208
2215
|
*/
|
|
2209
2216
|
function createAccountEntityFromAccountInfo(accountInfo, cloudGraphHostName, msGraphHost) {
|
|
2217
|
+
// Serialize tenant profiles map into an array
|
|
2218
|
+
const tenantProfiles = Array.from(accountInfo.tenantProfiles?.values() || []);
|
|
2219
|
+
// Ensure at least the home tenant profile exists
|
|
2220
|
+
if (tenantProfiles.length === 0 &&
|
|
2221
|
+
accountInfo.tenantId &&
|
|
2222
|
+
accountInfo.localAccountId) {
|
|
2223
|
+
tenantProfiles.push(buildTenantProfile(accountInfo.homeAccountId, accountInfo.localAccountId, accountInfo.tenantId, accountInfo.idTokenClaims));
|
|
2224
|
+
}
|
|
2210
2225
|
return {
|
|
2211
2226
|
authorityType: accountInfo.authorityType || CACHE_ACCOUNT_TYPE_GENERIC,
|
|
2212
2227
|
homeAccountId: accountInfo.homeAccountId,
|
|
@@ -2219,7 +2234,7 @@ function createAccountEntityFromAccountInfo(accountInfo, cloudGraphHostName, msG
|
|
|
2219
2234
|
name: accountInfo.name,
|
|
2220
2235
|
cloudGraphHostName: cloudGraphHostName,
|
|
2221
2236
|
msGraphHost: msGraphHost,
|
|
2222
|
-
tenantProfiles:
|
|
2237
|
+
tenantProfiles: tenantProfiles,
|
|
2223
2238
|
dataBoundary: accountInfo.dataBoundary,
|
|
2224
2239
|
};
|
|
2225
2240
|
}
|
|
@@ -2262,7 +2277,7 @@ function isAccountEntity(entity) {
|
|
|
2262
2277
|
entity.hasOwnProperty("authorityType"));
|
|
2263
2278
|
}
|
|
2264
2279
|
|
|
2265
|
-
/*! @azure/msal-common v16.0.
|
|
2280
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
2266
2281
|
|
|
2267
2282
|
/*
|
|
2268
2283
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2428,13 +2443,13 @@ class CacheManager {
|
|
|
2428
2443
|
* @param storeInCache {?StoreInCache}
|
|
2429
2444
|
* @param correlationId {?string} correlation id
|
|
2430
2445
|
*/
|
|
2431
|
-
async saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache) {
|
|
2446
|
+
async saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache) {
|
|
2432
2447
|
if (!cacheRecord) {
|
|
2433
2448
|
throw createClientAuthError(invalidCacheRecord);
|
|
2434
2449
|
}
|
|
2435
2450
|
try {
|
|
2436
2451
|
if (!!cacheRecord.account) {
|
|
2437
|
-
await this.setAccount(cacheRecord.account, correlationId, kmsi);
|
|
2452
|
+
await this.setAccount(cacheRecord.account, correlationId, kmsi, apiId);
|
|
2438
2453
|
}
|
|
2439
2454
|
if (!!cacheRecord.idToken && storeInCache?.idToken !== false) {
|
|
2440
2455
|
await this.setIdTokenCredential(cacheRecord.idToken, correlationId, kmsi);
|
|
@@ -3358,7 +3373,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3358
3373
|
}
|
|
3359
3374
|
}
|
|
3360
3375
|
|
|
3361
|
-
/*! @azure/msal-common v16.0.
|
|
3376
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
3362
3377
|
/*
|
|
3363
3378
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3364
3379
|
* Licensed under the MIT License.
|
|
@@ -3372,7 +3387,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3372
3387
|
const PerformanceEventStatus = {
|
|
3373
3388
|
InProgress: 1};
|
|
3374
3389
|
|
|
3375
|
-
/*! @azure/msal-common v16.0.
|
|
3390
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
3376
3391
|
|
|
3377
3392
|
/*
|
|
3378
3393
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3427,7 +3442,7 @@ class StubPerformanceClient {
|
|
|
3427
3442
|
}
|
|
3428
3443
|
}
|
|
3429
3444
|
|
|
3430
|
-
/*! @azure/msal-common v16.0.
|
|
3445
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
3431
3446
|
|
|
3432
3447
|
/*
|
|
3433
3448
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3521,7 +3536,7 @@ function isOidcProtocolMode(config) {
|
|
|
3521
3536
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3522
3537
|
}
|
|
3523
3538
|
|
|
3524
|
-
/*! @azure/msal-common v16.0.
|
|
3539
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
3525
3540
|
|
|
3526
3541
|
/*
|
|
3527
3542
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3540,7 +3555,7 @@ class ServerError extends AuthError {
|
|
|
3540
3555
|
}
|
|
3541
3556
|
}
|
|
3542
3557
|
|
|
3543
|
-
/*! @azure/msal-common v16.0.
|
|
3558
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
3544
3559
|
/*
|
|
3545
3560
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3546
3561
|
* Licensed under the MIT License.
|
|
@@ -3556,7 +3571,7 @@ const consentRequired = "consent_required";
|
|
|
3556
3571
|
const loginRequired = "login_required";
|
|
3557
3572
|
const badToken = "bad_token";
|
|
3558
3573
|
|
|
3559
|
-
/*! @azure/msal-common v16.0.
|
|
3574
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
3560
3575
|
|
|
3561
3576
|
/*
|
|
3562
3577
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3622,7 +3637,7 @@ function createInteractionRequiredAuthError(errorCode, errorMessage) {
|
|
|
3622
3637
|
return new InteractionRequiredAuthError(errorCode, errorMessage);
|
|
3623
3638
|
}
|
|
3624
3639
|
|
|
3625
|
-
/*! @azure/msal-common v16.0.
|
|
3640
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
3626
3641
|
|
|
3627
3642
|
/*
|
|
3628
3643
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3690,7 +3705,7 @@ function parseRequestState(base64Decode, state) {
|
|
|
3690
3705
|
}
|
|
3691
3706
|
}
|
|
3692
3707
|
|
|
3693
|
-
/*! @azure/msal-common v16.0.
|
|
3708
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
3694
3709
|
/*
|
|
3695
3710
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3696
3711
|
* Licensed under the MIT License.
|
|
@@ -3755,7 +3770,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
3755
3770
|
return cachedAtSec > nowSeconds();
|
|
3756
3771
|
}
|
|
3757
3772
|
|
|
3758
|
-
/*! @azure/msal-common v16.0.
|
|
3773
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
3759
3774
|
/*
|
|
3760
3775
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3761
3776
|
* Licensed under the MIT License.
|
|
@@ -3826,7 +3841,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
3826
3841
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
3827
3842
|
const SetUserData = "setUserData";
|
|
3828
3843
|
|
|
3829
|
-
/*! @azure/msal-common v16.0.
|
|
3844
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
3830
3845
|
/*
|
|
3831
3846
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3832
3847
|
* Licensed under the MIT License.
|
|
@@ -3921,7 +3936,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
3921
3936
|
};
|
|
3922
3937
|
};
|
|
3923
3938
|
|
|
3924
|
-
/*! @azure/msal-common v16.0.
|
|
3939
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
3925
3940
|
|
|
3926
3941
|
/*
|
|
3927
3942
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4001,7 +4016,7 @@ class PopTokenGenerator {
|
|
|
4001
4016
|
}
|
|
4002
4017
|
}
|
|
4003
4018
|
|
|
4004
|
-
/*! @azure/msal-common v16.0.
|
|
4019
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
4005
4020
|
/*
|
|
4006
4021
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4007
4022
|
* Licensed under the MIT License.
|
|
@@ -4028,7 +4043,7 @@ class PopTokenGenerator {
|
|
|
4028
4043
|
}
|
|
4029
4044
|
}
|
|
4030
4045
|
|
|
4031
|
-
/*! @azure/msal-common v16.0.
|
|
4046
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
4032
4047
|
|
|
4033
4048
|
/*
|
|
4034
4049
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4287,7 +4302,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
4287
4302
|
return metadata.expiresAt <= nowSeconds();
|
|
4288
4303
|
}
|
|
4289
4304
|
|
|
4290
|
-
/*! @azure/msal-common v16.0.
|
|
4305
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
4291
4306
|
|
|
4292
4307
|
/*
|
|
4293
4308
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4354,7 +4369,7 @@ class ResponseHandler {
|
|
|
4354
4369
|
* @param serverTokenResponse
|
|
4355
4370
|
* @param authority
|
|
4356
4371
|
*/
|
|
4357
|
-
async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
|
|
4372
|
+
async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, apiId, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
|
|
4358
4373
|
// create an idToken object (not entity)
|
|
4359
4374
|
let idTokenClaims;
|
|
4360
4375
|
if (serverTokenResponse.id_token) {
|
|
@@ -4401,14 +4416,19 @@ class ResponseHandler {
|
|
|
4401
4416
|
if (handlingRefreshTokenResponse &&
|
|
4402
4417
|
!forceCacheRefreshTokenResponse &&
|
|
4403
4418
|
cacheRecord.account) {
|
|
4404
|
-
const
|
|
4405
|
-
|
|
4406
|
-
|
|
4419
|
+
const cachedAccounts = this.cacheStorage.getAllAccounts({
|
|
4420
|
+
homeAccountId: cacheRecord.account.homeAccountId,
|
|
4421
|
+
environment: cacheRecord.account.environment,
|
|
4422
|
+
}, request.correlationId);
|
|
4423
|
+
if (cachedAccounts.length < 1) {
|
|
4407
4424
|
this.logger.warning("1gmt66", request.correlationId);
|
|
4425
|
+
this.performanceClient?.addFields({
|
|
4426
|
+
acntLoggedOut: true,
|
|
4427
|
+
}, request.correlationId);
|
|
4408
4428
|
return await ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, this.performanceClient, idTokenClaims, requestStateObj, undefined, serverRequestId);
|
|
4409
4429
|
}
|
|
4410
4430
|
}
|
|
4411
|
-
await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), request.storeInCache);
|
|
4431
|
+
await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), apiId, request.storeInCache);
|
|
4412
4432
|
}
|
|
4413
4433
|
finally {
|
|
4414
4434
|
if (this.persistencePlugin &&
|
|
@@ -4618,7 +4638,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
4618
4638
|
return baseAccount;
|
|
4619
4639
|
}
|
|
4620
4640
|
|
|
4621
|
-
/*! @azure/msal-common v16.0.
|
|
4641
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
4622
4642
|
/*
|
|
4623
4643
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4624
4644
|
* Licensed under the MIT License.
|
|
@@ -4628,7 +4648,7 @@ const CcsCredentialType = {
|
|
|
4628
4648
|
UPN: "UPN",
|
|
4629
4649
|
};
|
|
4630
4650
|
|
|
4631
|
-
/*! @azure/msal-common v16.0.
|
|
4651
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
4632
4652
|
/*
|
|
4633
4653
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4634
4654
|
* Licensed under the MIT License.
|
|
@@ -4646,7 +4666,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
4646
4666
|
}
|
|
4647
4667
|
}
|
|
4648
4668
|
|
|
4649
|
-
/*! @azure/msal-common v16.0.
|
|
4669
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
4650
4670
|
/*
|
|
4651
4671
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4652
4672
|
* Licensed under the MIT License.
|
|
@@ -4667,7 +4687,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
4667
4687
|
};
|
|
4668
4688
|
}
|
|
4669
4689
|
|
|
4670
|
-
/*! @azure/msal-common v16.0.
|
|
4690
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
4671
4691
|
|
|
4672
4692
|
/*
|
|
4673
4693
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4753,7 +4773,7 @@ class ThrottlingUtils {
|
|
|
4753
4773
|
}
|
|
4754
4774
|
}
|
|
4755
4775
|
|
|
4756
|
-
/*! @azure/msal-common v16.0.
|
|
4776
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
4757
4777
|
|
|
4758
4778
|
/*
|
|
4759
4779
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4784,7 +4804,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
4784
4804
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
4785
4805
|
}
|
|
4786
4806
|
|
|
4787
|
-
/*! @azure/msal-common v16.0.
|
|
4807
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
4788
4808
|
|
|
4789
4809
|
/*
|
|
4790
4810
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4898,7 +4918,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
4898
4918
|
return response;
|
|
4899
4919
|
}
|
|
4900
4920
|
|
|
4901
|
-
/*! @azure/msal-common v16.0.
|
|
4921
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
4902
4922
|
/*
|
|
4903
4923
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4904
4924
|
* Licensed under the MIT License.
|
|
@@ -4910,7 +4930,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
4910
4930
|
response.hasOwnProperty("jwks_uri"));
|
|
4911
4931
|
}
|
|
4912
4932
|
|
|
4913
|
-
/*! @azure/msal-common v16.0.
|
|
4933
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
4914
4934
|
/*
|
|
4915
4935
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4916
4936
|
* Licensed under the MIT License.
|
|
@@ -4920,7 +4940,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
4920
4940
|
response.hasOwnProperty("metadata"));
|
|
4921
4941
|
}
|
|
4922
4942
|
|
|
4923
|
-
/*! @azure/msal-common v16.0.
|
|
4943
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
4924
4944
|
/*
|
|
4925
4945
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4926
4946
|
* Licensed under the MIT License.
|
|
@@ -4930,7 +4950,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
4930
4950
|
response.hasOwnProperty("error_description"));
|
|
4931
4951
|
}
|
|
4932
4952
|
|
|
4933
|
-
/*! @azure/msal-common v16.0.
|
|
4953
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
4934
4954
|
|
|
4935
4955
|
/*
|
|
4936
4956
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5035,7 +5055,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
5035
5055
|
},
|
|
5036
5056
|
};
|
|
5037
5057
|
|
|
5038
|
-
/*! @azure/msal-common v16.0.
|
|
5058
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
5039
5059
|
|
|
5040
5060
|
/*
|
|
5041
5061
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5855,7 +5875,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
5855
5875
|
};
|
|
5856
5876
|
}
|
|
5857
5877
|
|
|
5858
|
-
/*! @azure/msal-common v16.0.
|
|
5878
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
5859
5879
|
|
|
5860
5880
|
/*
|
|
5861
5881
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5889,7 +5909,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
5889
5909
|
}
|
|
5890
5910
|
}
|
|
5891
5911
|
|
|
5892
|
-
/*! @azure/msal-common v16.0.
|
|
5912
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
5893
5913
|
|
|
5894
5914
|
/*
|
|
5895
5915
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5927,7 +5947,7 @@ class AuthorizationCodeClient {
|
|
|
5927
5947
|
* authorization_code_grant
|
|
5928
5948
|
* @param request
|
|
5929
5949
|
*/
|
|
5930
|
-
async acquireToken(request, authCodePayload) {
|
|
5950
|
+
async acquireToken(request, apiId, authCodePayload) {
|
|
5931
5951
|
if (!request.code) {
|
|
5932
5952
|
throw createClientAuthError(requestCannotBeMade);
|
|
5933
5953
|
}
|
|
@@ -5942,7 +5962,7 @@ class AuthorizationCodeClient {
|
|
|
5942
5962
|
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
|
|
5943
5963
|
// Validate response. This function throws a server error if an error is returned by the server.
|
|
5944
5964
|
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);
|
|
5965
|
+
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
5966
|
}
|
|
5947
5967
|
/**
|
|
5948
5968
|
* Used to log out the current user, and redirect the user to the postLogoutRedirectUri.
|
|
@@ -6149,7 +6169,7 @@ class AuthorizationCodeClient {
|
|
|
6149
6169
|
}
|
|
6150
6170
|
}
|
|
6151
6171
|
|
|
6152
|
-
/*! @azure/msal-common v16.0.
|
|
6172
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
6153
6173
|
|
|
6154
6174
|
/*
|
|
6155
6175
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6179,20 +6199,20 @@ class RefreshTokenClient {
|
|
|
6179
6199
|
// set performance telemetry client
|
|
6180
6200
|
this.performanceClient = performanceClient;
|
|
6181
6201
|
}
|
|
6182
|
-
async acquireToken(request) {
|
|
6202
|
+
async acquireToken(request, apiId) {
|
|
6183
6203
|
const reqTimestamp = nowSeconds();
|
|
6184
6204
|
const response = await invokeAsync(this.executeTokenRequest.bind(this), RefreshTokenClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(request, this.authority);
|
|
6185
6205
|
// Retrieve requestId from response headers
|
|
6186
6206
|
const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
|
|
6187
6207
|
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
|
|
6188
6208
|
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);
|
|
6209
|
+
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
6210
|
}
|
|
6191
6211
|
/**
|
|
6192
6212
|
* Gets cached refresh token and attaches to request, then calls acquireToken API
|
|
6193
6213
|
* @param request
|
|
6194
6214
|
*/
|
|
6195
|
-
async acquireTokenByRefreshToken(request) {
|
|
6215
|
+
async acquireTokenByRefreshToken(request, apiId) {
|
|
6196
6216
|
// Cannot renew token if no request object is given.
|
|
6197
6217
|
if (!request) {
|
|
6198
6218
|
throw createClientConfigurationError(tokenRequestEmpty);
|
|
@@ -6206,7 +6226,7 @@ class RefreshTokenClient {
|
|
|
6206
6226
|
// if the app is part of the family, retrive a Family refresh token if present and make a refreshTokenRequest
|
|
6207
6227
|
if (isFOCI) {
|
|
6208
6228
|
try {
|
|
6209
|
-
return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true);
|
|
6229
|
+
return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true, apiId);
|
|
6210
6230
|
}
|
|
6211
6231
|
catch (e) {
|
|
6212
6232
|
const noFamilyRTInCache = e instanceof InteractionRequiredAuthError &&
|
|
@@ -6217,7 +6237,7 @@ class RefreshTokenClient {
|
|
|
6217
6237
|
e.subError === CLIENT_MISMATCH_ERROR;
|
|
6218
6238
|
// if family Refresh Token (FRT) cache acquisition fails or if client_mismatch error is seen with FRT, reattempt with application Refresh Token (ART)
|
|
6219
6239
|
if (noFamilyRTInCache || clientMismatchErrorWithFamilyRT) {
|
|
6220
|
-
return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
|
|
6240
|
+
return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
|
|
6221
6241
|
// throw in all other cases
|
|
6222
6242
|
}
|
|
6223
6243
|
else {
|
|
@@ -6226,13 +6246,13 @@ class RefreshTokenClient {
|
|
|
6226
6246
|
}
|
|
6227
6247
|
}
|
|
6228
6248
|
// fall back to application refresh token acquisition
|
|
6229
|
-
return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
|
|
6249
|
+
return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
|
|
6230
6250
|
}
|
|
6231
6251
|
/**
|
|
6232
6252
|
* makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached
|
|
6233
6253
|
* @param request
|
|
6234
6254
|
*/
|
|
6235
|
-
async acquireTokenWithCachedRefreshToken(request, foci) {
|
|
6255
|
+
async acquireTokenWithCachedRefreshToken(request, foci, apiId) {
|
|
6236
6256
|
// fetches family RT or application RT based on FOCI value
|
|
6237
6257
|
const refreshToken = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci, request.correlationId, undefined);
|
|
6238
6258
|
if (!refreshToken) {
|
|
@@ -6261,7 +6281,7 @@ class RefreshTokenClient {
|
|
|
6261
6281
|
},
|
|
6262
6282
|
};
|
|
6263
6283
|
try {
|
|
6264
|
-
return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest);
|
|
6284
|
+
return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest, apiId);
|
|
6265
6285
|
}
|
|
6266
6286
|
catch (e) {
|
|
6267
6287
|
if (e instanceof InteractionRequiredAuthError) {
|
|
@@ -6374,7 +6394,7 @@ class RefreshTokenClient {
|
|
|
6374
6394
|
}
|
|
6375
6395
|
}
|
|
6376
6396
|
|
|
6377
|
-
/*! @azure/msal-common v16.0.
|
|
6397
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
6378
6398
|
|
|
6379
6399
|
/*
|
|
6380
6400
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6483,7 +6503,7 @@ class SilentFlowClient {
|
|
|
6483
6503
|
}
|
|
6484
6504
|
}
|
|
6485
6505
|
|
|
6486
|
-
/*! @azure/msal-common v16.0.
|
|
6506
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
6487
6507
|
|
|
6488
6508
|
/*
|
|
6489
6509
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6498,7 +6518,7 @@ const StubbedNetworkModule = {
|
|
|
6498
6518
|
},
|
|
6499
6519
|
};
|
|
6500
6520
|
|
|
6501
|
-
/*! @azure/msal-common v16.0.
|
|
6521
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
6502
6522
|
|
|
6503
6523
|
/*
|
|
6504
6524
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6722,7 +6742,7 @@ function extractLoginHint(account) {
|
|
|
6722
6742
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
6723
6743
|
}
|
|
6724
6744
|
|
|
6725
|
-
/*! @azure/msal-common v16.0.
|
|
6745
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
6726
6746
|
/*
|
|
6727
6747
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6728
6748
|
* Licensed under the MIT License.
|
|
@@ -6732,7 +6752,7 @@ function extractLoginHint(account) {
|
|
|
6732
6752
|
*/
|
|
6733
6753
|
const unexpectedError = "unexpected_error";
|
|
6734
6754
|
|
|
6735
|
-
/*! @azure/msal-common v16.0.
|
|
6755
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
6736
6756
|
|
|
6737
6757
|
/*
|
|
6738
6758
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6993,7 +7013,7 @@ class ServerTelemetryManager {
|
|
|
6993
7013
|
}
|
|
6994
7014
|
}
|
|
6995
7015
|
|
|
6996
|
-
/*! @azure/msal-common v16.0.
|
|
7016
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
6997
7017
|
|
|
6998
7018
|
/*
|
|
6999
7019
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7014,7 +7034,7 @@ function createJoseHeaderError(code) {
|
|
|
7014
7034
|
return new JoseHeaderError(code);
|
|
7015
7035
|
}
|
|
7016
7036
|
|
|
7017
|
-
/*! @azure/msal-common v16.0.
|
|
7037
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
7018
7038
|
/*
|
|
7019
7039
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7020
7040
|
* Licensed under the MIT License.
|
|
@@ -7022,7 +7042,7 @@ function createJoseHeaderError(code) {
|
|
|
7022
7042
|
const missingKidError = "missing_kid_error";
|
|
7023
7043
|
const missingAlgError = "missing_alg_error";
|
|
7024
7044
|
|
|
7025
|
-
/*! @azure/msal-common v16.0.
|
|
7045
|
+
/*! @azure/msal-common v16.0.3 2026-01-28 */
|
|
7026
7046
|
|
|
7027
7047
|
/*
|
|
7028
7048
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7457,7 +7477,7 @@ function ensureArgumentIsJSONString(argName, argValue, correlationId) {
|
|
|
7457
7477
|
|
|
7458
7478
|
/* eslint-disable header/header */
|
|
7459
7479
|
const name = "@azure/msal-browser";
|
|
7460
|
-
const version = "5.0
|
|
7480
|
+
const version = "5.1.0";
|
|
7461
7481
|
|
|
7462
7482
|
/*
|
|
7463
7483
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8162,6 +8182,7 @@ const InMemoryCacheKeys = {
|
|
|
8162
8182
|
* Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
|
|
8163
8183
|
* 0-99 Silent Flow
|
|
8164
8184
|
* 800-899 Auth Code Flow
|
|
8185
|
+
* 900-999 Misc
|
|
8165
8186
|
*/
|
|
8166
8187
|
const ApiId = {
|
|
8167
8188
|
acquireTokenRedirect: 861,
|
|
@@ -8173,6 +8194,30 @@ const ApiId = {
|
|
|
8173
8194
|
acquireTokenSilent_silentFlow: 61,
|
|
8174
8195
|
logout: 961,
|
|
8175
8196
|
logoutPopup: 962,
|
|
8197
|
+
hydrateCache: 963,
|
|
8198
|
+
loadExternalTokens: 964,
|
|
8199
|
+
};
|
|
8200
|
+
/**
|
|
8201
|
+
* API Names for Telemetry purposes.
|
|
8202
|
+
*/
|
|
8203
|
+
const ApiName = {
|
|
8204
|
+
861: "acquireTokenRedirect",
|
|
8205
|
+
862: "acquireTokenPopup",
|
|
8206
|
+
863: "ssoSilent",
|
|
8207
|
+
864: "acquireTokenSilent_authCode",
|
|
8208
|
+
865: "handleRedirectPromise",
|
|
8209
|
+
866: "acquireTokenByCode",
|
|
8210
|
+
61: "acquireTokenSilent_silentFlow",
|
|
8211
|
+
961: "logout",
|
|
8212
|
+
962: "logoutPopup",
|
|
8213
|
+
963: "hydrateCache",
|
|
8214
|
+
964: "loadExternalTokens",
|
|
8215
|
+
};
|
|
8216
|
+
const apiIdToName = (id) => {
|
|
8217
|
+
if (typeof id === "number" && id in ApiName) {
|
|
8218
|
+
return ApiName[id];
|
|
8219
|
+
}
|
|
8220
|
+
return "unknown";
|
|
8176
8221
|
};
|
|
8177
8222
|
/*
|
|
8178
8223
|
* Interaction type of the API - used for state and telemetry
|
|
@@ -9453,7 +9498,7 @@ class CustomAuthInteractionClientBase extends StandardInteractionClient {
|
|
|
9453
9498
|
* @param correlationId Correlation ID for logging
|
|
9454
9499
|
* @returns Authentication result from the token response
|
|
9455
9500
|
*/
|
|
9456
|
-
async handleTokenResponse(tokenResponse, requestScopes, correlationId) {
|
|
9501
|
+
async handleTokenResponse(tokenResponse, requestScopes, correlationId, apiId) {
|
|
9457
9502
|
this.logger.verbose("04a00a", correlationId);
|
|
9458
9503
|
const requestTimestamp = Math.round(new Date().getTime() / 1000.0);
|
|
9459
9504
|
// Save tokens and create authentication result
|
|
@@ -9461,7 +9506,7 @@ class CustomAuthInteractionClientBase extends StandardInteractionClient {
|
|
|
9461
9506
|
authority: this.customAuthAuthority.canonicalAuthority,
|
|
9462
9507
|
correlationId: tokenResponse.correlation_id ?? correlationId,
|
|
9463
9508
|
scopes: requestScopes,
|
|
9464
|
-
});
|
|
9509
|
+
}, apiId);
|
|
9465
9510
|
return result;
|
|
9466
9511
|
}
|
|
9467
9512
|
// It is not necessary to implement this method from base class.
|
|
@@ -9640,7 +9685,7 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
9640
9685
|
claims: parameters.claims,
|
|
9641
9686
|
}),
|
|
9642
9687
|
};
|
|
9643
|
-
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithOob(request), scopes, correlationId, telemetryManager);
|
|
9688
|
+
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithOob(request), scopes, correlationId, telemetryManager, apiId);
|
|
9644
9689
|
}
|
|
9645
9690
|
/**
|
|
9646
9691
|
* Submits the password for sign-in flow.
|
|
@@ -9663,7 +9708,7 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
9663
9708
|
claims: parameters.claims,
|
|
9664
9709
|
}),
|
|
9665
9710
|
};
|
|
9666
|
-
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithPassword(request), scopes, correlationId, telemetryManager);
|
|
9711
|
+
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithPassword(request), scopes, correlationId, telemetryManager, apiId);
|
|
9667
9712
|
}
|
|
9668
9713
|
/**
|
|
9669
9714
|
* Signs in with continuation token.
|
|
@@ -9687,7 +9732,7 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
9687
9732
|
}),
|
|
9688
9733
|
};
|
|
9689
9734
|
// Call token endpoint.
|
|
9690
|
-
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(request), scopes, correlationId, telemetryManager);
|
|
9735
|
+
return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(request), scopes, correlationId, telemetryManager, apiId);
|
|
9691
9736
|
}
|
|
9692
9737
|
/**
|
|
9693
9738
|
* Common method to handle token endpoint calls and create sign-in results.
|
|
@@ -9697,12 +9742,12 @@ class SignInClient extends CustomAuthInteractionClientBase {
|
|
|
9697
9742
|
* @param telemetryManager Telemetry manager for telemetry logging
|
|
9698
9743
|
* @returns SignInCompletedResult | SignInJitRequiredResult | SignInMfaRequiredResult with authentication result
|
|
9699
9744
|
*/
|
|
9700
|
-
async performTokenRequest(tokenEndpointCaller, scopes, correlationId, telemetryManager) {
|
|
9745
|
+
async performTokenRequest(tokenEndpointCaller, scopes, correlationId, telemetryManager, apiId) {
|
|
9701
9746
|
this.logger.verbose("14tes8", correlationId);
|
|
9702
9747
|
try {
|
|
9703
9748
|
const tokenResponse = await tokenEndpointCaller();
|
|
9704
9749
|
this.logger.verbose("11zi01", tokenResponse.correlation_id || correlationId);
|
|
9705
|
-
const authResult = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || correlationId);
|
|
9750
|
+
const authResult = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || correlationId, apiId);
|
|
9706
9751
|
return createSignInCompleteResult({
|
|
9707
9752
|
correlationId: tokenResponse.correlation_id || correlationId,
|
|
9708
9753
|
authenticationResult: authResult,
|
|
@@ -11332,7 +11377,7 @@ class JitClient extends CustomAuthInteractionClientBase {
|
|
|
11332
11377
|
const tokenResponse = await this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(tokenRequest);
|
|
11333
11378
|
const authResult = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id ||
|
|
11334
11379
|
continueResponse.correlation_id ||
|
|
11335
|
-
correlationId);
|
|
11380
|
+
correlationId, apiId);
|
|
11336
11381
|
return createJitCompletedResult({
|
|
11337
11382
|
correlationId: continueResponse.correlation_id || correlationId,
|
|
11338
11383
|
authenticationResult: authResult,
|
|
@@ -11427,7 +11472,7 @@ class MfaClient extends CustomAuthInteractionClientBase {
|
|
|
11427
11472
|
this.logger.verbose("1rkonv", correlationId);
|
|
11428
11473
|
const tokenResponse = await this.customAuthApiClient.signInApi.requestTokensWithOob(request);
|
|
11429
11474
|
// Save tokens and create authentication result
|
|
11430
|
-
const result = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || correlationId);
|
|
11475
|
+
const result = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || correlationId, apiId);
|
|
11431
11476
|
return createMfaCompletedResult({
|
|
11432
11477
|
correlationId: tokenResponse.correlation_id || correlationId,
|
|
11433
11478
|
authenticationResult: result,
|
|
@@ -11478,7 +11523,7 @@ class CustomAuthSilentCacheClient extends CustomAuthInteractionClientBase {
|
|
|
11478
11523
|
this.logger.verbose("05sqvp", correlationId);
|
|
11479
11524
|
const refreshTokenClient = new RefreshTokenClient(clientConfig, this.performanceClient);
|
|
11480
11525
|
this.logger.verbose("0ogm3j", correlationId);
|
|
11481
|
-
const refreshTokenResult = await refreshTokenClient.acquireTokenByRefreshToken(silentRequest);
|
|
11526
|
+
const refreshTokenResult = await refreshTokenClient.acquireTokenByRefreshToken(silentRequest, ACCOUNT_GET_ACCESS_TOKEN);
|
|
11482
11527
|
this.logger.verbose("0vydnd", correlationId);
|
|
11483
11528
|
return refreshTokenResult;
|
|
11484
11529
|
}
|
|
@@ -15073,17 +15118,22 @@ class BrowserCacheManager extends CacheManager {
|
|
|
15073
15118
|
!isAccountEntity(parsedAccount)) {
|
|
15074
15119
|
return null;
|
|
15075
15120
|
}
|
|
15076
|
-
|
|
15121
|
+
const account = CacheManager.toObject({}, parsedAccount);
|
|
15122
|
+
this.performanceClient.addFields({
|
|
15123
|
+
accountCachedBy: apiIdToName(account.cachedByApiId),
|
|
15124
|
+
}, correlationId);
|
|
15125
|
+
return account;
|
|
15077
15126
|
}
|
|
15078
15127
|
/**
|
|
15079
15128
|
* set account entity in the platform cache
|
|
15080
15129
|
* @param account
|
|
15081
15130
|
*/
|
|
15082
|
-
async setAccount(account, correlationId, kmsi) {
|
|
15131
|
+
async setAccount(account, correlationId, kmsi, apiId) {
|
|
15083
15132
|
this.logger.trace("1bz3wr", correlationId);
|
|
15084
15133
|
const key = this.generateAccountKey(getAccountInfo(account));
|
|
15085
15134
|
const timestamp = Date.now().toString();
|
|
15086
15135
|
account.lastUpdatedAt = timestamp;
|
|
15136
|
+
account.cachedByApiId = apiId;
|
|
15087
15137
|
await this.setUserData(key, JSON.stringify(account), correlationId, timestamp, kmsi);
|
|
15088
15138
|
this.addAccountKeyToMap(key, correlationId);
|
|
15089
15139
|
this.performanceClient.addFields({ kmsi: kmsi }, correlationId);
|
|
@@ -15794,7 +15844,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
15794
15844
|
* @param request
|
|
15795
15845
|
*/
|
|
15796
15846
|
async hydrateCache(result, request) {
|
|
15797
|
-
const idTokenEntity = createIdTokenEntity(result.account
|
|
15847
|
+
const idTokenEntity = createIdTokenEntity(result.account.homeAccountId, result.account.environment, result.idToken, this.clientId, result.tenantId);
|
|
15798
15848
|
/**
|
|
15799
15849
|
* meta data for cache stores time in seconds from epoch
|
|
15800
15850
|
* AuthenticationResult returns expiresOn and extExpiresOn in milliseconds (as a Date object which is in ms)
|
|
@@ -15802,7 +15852,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
15802
15852
|
*
|
|
15803
15853
|
* The next MSAL VFuture should map these both to same value if possible
|
|
15804
15854
|
*/
|
|
15805
|
-
const accessTokenEntity = createAccessTokenEntity(result.account
|
|
15855
|
+
const accessTokenEntity = createAccessTokenEntity(result.account.homeAccountId, result.account.environment, result.accessToken, this.clientId, result.tenantId, result.scopes.join(" "),
|
|
15806
15856
|
// Access token expiresOn stored in seconds, converting from AuthenticationResult expiresOn stored as Date
|
|
15807
15857
|
result.expiresOn
|
|
15808
15858
|
? toSecondsFromDate(result.expiresOn)
|
|
@@ -15815,7 +15865,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
15815
15865
|
idToken: idTokenEntity,
|
|
15816
15866
|
accessToken: accessTokenEntity,
|
|
15817
15867
|
};
|
|
15818
|
-
return this.saveCacheRecord(cacheRecord, result.correlationId, isKmsi(extractTokenClaims(result.idToken, base64Decode)));
|
|
15868
|
+
return this.saveCacheRecord(cacheRecord, result.correlationId, isKmsi(extractTokenClaims(result.idToken, base64Decode)), ApiId.hydrateCache);
|
|
15819
15869
|
}
|
|
15820
15870
|
/**
|
|
15821
15871
|
* saves a cache record
|
|
@@ -15823,9 +15873,9 @@ class BrowserCacheManager extends CacheManager {
|
|
|
15823
15873
|
* @param storeInCache {?StoreInCache}
|
|
15824
15874
|
* @param correlationId {?string} correlation id
|
|
15825
15875
|
*/
|
|
15826
|
-
async saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache) {
|
|
15876
|
+
async saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache) {
|
|
15827
15877
|
try {
|
|
15828
|
-
await super.saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache);
|
|
15878
|
+
await super.saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache);
|
|
15829
15879
|
}
|
|
15830
15880
|
catch (e) {
|
|
15831
15881
|
if (e instanceof CacheError &&
|
|
@@ -16103,7 +16153,7 @@ class InteractionHandler {
|
|
|
16103
16153
|
* Function to handle response parameters from hash.
|
|
16104
16154
|
* @param locationHash
|
|
16105
16155
|
*/
|
|
16106
|
-
async handleCodeResponse(response, request) {
|
|
16156
|
+
async handleCodeResponse(response, request, apiId) {
|
|
16107
16157
|
let authCodeResponse;
|
|
16108
16158
|
try {
|
|
16109
16159
|
authCodeResponse = getAuthorizationCodePayload(response, request.state);
|
|
@@ -16118,7 +16168,7 @@ class InteractionHandler {
|
|
|
16118
16168
|
throw e;
|
|
16119
16169
|
}
|
|
16120
16170
|
}
|
|
16121
|
-
return invokeAsync(this.handleCodeResponseFromServer.bind(this), HandleCodeResponseFromServer, this.logger, this.performanceClient, request.correlationId)(authCodeResponse, request);
|
|
16171
|
+
return invokeAsync(this.handleCodeResponseFromServer.bind(this), HandleCodeResponseFromServer, this.logger, this.performanceClient, request.correlationId)(authCodeResponse, request, apiId);
|
|
16122
16172
|
}
|
|
16123
16173
|
/**
|
|
16124
16174
|
* Process auth code response from AAD
|
|
@@ -16127,7 +16177,7 @@ class InteractionHandler {
|
|
|
16127
16177
|
* @param validateNonce
|
|
16128
16178
|
* @returns
|
|
16129
16179
|
*/
|
|
16130
|
-
async handleCodeResponseFromServer(authCodeResponse, request, validateNonce = true) {
|
|
16180
|
+
async handleCodeResponseFromServer(authCodeResponse, request, apiId, validateNonce = true) {
|
|
16131
16181
|
this.logger.trace("0mf2hb", request.correlationId);
|
|
16132
16182
|
// Assign code to request
|
|
16133
16183
|
this.authCodeRequest.code = authCodeResponse.code;
|
|
@@ -16148,7 +16198,7 @@ class InteractionHandler {
|
|
|
16148
16198
|
}
|
|
16149
16199
|
}
|
|
16150
16200
|
// 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));
|
|
16201
|
+
const tokenResponse = (await invokeAsync(this.authModule.acquireToken.bind(this.authModule), AuthClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(this.authCodeRequest, apiId, authCodeResponse));
|
|
16152
16202
|
return tokenResponse;
|
|
16153
16203
|
}
|
|
16154
16204
|
/**
|
|
@@ -16681,7 +16731,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
16681
16731
|
*/
|
|
16682
16732
|
async cacheAccount(accountEntity, kmsi) {
|
|
16683
16733
|
// Store the account info and hence `nativeAccountId` in browser cache
|
|
16684
|
-
await this.browserStorage.setAccount(accountEntity, this.correlationId, kmsi);
|
|
16734
|
+
await this.browserStorage.setAccount(accountEntity, this.correlationId, kmsi, this.apiId);
|
|
16685
16735
|
// Remove any existing cached tokens for this account in browser storage
|
|
16686
16736
|
this.browserStorage.removeAccountContext(getAccountInfo(accountEntity), this.correlationId);
|
|
16687
16737
|
}
|
|
@@ -16710,7 +16760,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
16710
16760
|
idToken: cachedIdToken,
|
|
16711
16761
|
accessToken: cachedAccessToken,
|
|
16712
16762
|
};
|
|
16713
|
-
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), request.storeInCache);
|
|
16763
|
+
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId, request.storeInCache);
|
|
16714
16764
|
}
|
|
16715
16765
|
getExpiresInValue(tokenType, expiresIn) {
|
|
16716
16766
|
return tokenType === AuthenticationScheme.POP
|
|
@@ -17089,7 +17139,7 @@ async function handleResponseCode(request, response, codeVerifier, apiId, config
|
|
|
17089
17139
|
// Create popup interaction handler.
|
|
17090
17140
|
const interactionHandler = new InteractionHandler(authClient, browserStorage, authCodeRequest, logger, performanceClient);
|
|
17091
17141
|
// Handle response from hash string.
|
|
17092
|
-
const result = await invokeAsync(interactionHandler.handleCodeResponse.bind(interactionHandler), HandleCodeResponse, logger, performanceClient, request.correlationId)(response, request);
|
|
17142
|
+
const result = await invokeAsync(interactionHandler.handleCodeResponse.bind(interactionHandler), HandleCodeResponse, logger, performanceClient, request.correlationId)(response, request, apiId);
|
|
17093
17143
|
return result;
|
|
17094
17144
|
}
|
|
17095
17145
|
/**
|
|
@@ -17136,7 +17186,7 @@ async function handleResponseEAR(request, response, apiId, config, authority, br
|
|
|
17136
17186
|
cloud_instance_name: decryptedData.cloud_instance_name,
|
|
17137
17187
|
msgraph_host: decryptedData.msgraph_host,
|
|
17138
17188
|
};
|
|
17139
|
-
return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, additionalData, undefined, undefined, undefined, undefined));
|
|
17189
|
+
return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, apiId, additionalData, undefined, undefined, undefined, undefined));
|
|
17140
17190
|
}
|
|
17141
17191
|
|
|
17142
17192
|
/*
|
|
@@ -19026,7 +19076,7 @@ class SilentRefreshClient extends StandardInteractionClient {
|
|
|
19026
19076
|
account: silentRequest.account,
|
|
19027
19077
|
});
|
|
19028
19078
|
// 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) => {
|
|
19079
|
+
return invokeAsync(refreshTokenClient.acquireTokenByRefreshToken.bind(refreshTokenClient), RefreshTokenClientAcquireTokenByRefreshToken, this.logger, this.performanceClient, request.correlationId)(silentRequest, ApiId.acquireTokenSilent_silentFlow).catch((e) => {
|
|
19030
19080
|
e.setCorrelationId(this.correlationId);
|
|
19031
19081
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
19032
19082
|
throw e;
|
|
@@ -19123,7 +19173,7 @@ class SilentAuthCodeClient extends StandardInteractionClient {
|
|
|
19123
19173
|
msgraph_host: request.msGraphHost,
|
|
19124
19174
|
cloud_graph_host_name: request.cloudGraphHostName,
|
|
19125
19175
|
cloud_instance_host_name: request.cloudInstanceHostName,
|
|
19126
|
-
}, silentRequest, false);
|
|
19176
|
+
}, silentRequest, this.apiId, false);
|
|
19127
19177
|
}
|
|
19128
19178
|
catch (e) {
|
|
19129
19179
|
if (e instanceof AuthError) {
|
|
@@ -19936,7 +19986,7 @@ class StandardController {
|
|
|
19936
19986
|
this.logger.verbose("16jycr", result.correlationId);
|
|
19937
19987
|
// Account gets saved to browser storage regardless of native or not
|
|
19938
19988
|
const accountEntity = createAccountEntityFromAccountInfo(result.account, result.cloudGraphHostName, result.msGraphHost);
|
|
19939
|
-
await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims));
|
|
19989
|
+
await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims), ApiId.hydrateCache);
|
|
19940
19990
|
if (result.fromPlatformBroker) {
|
|
19941
19991
|
this.logger.verbose("1fxyu8", result.correlationId);
|
|
19942
19992
|
// Tokens from native broker are stored in-memory
|