@azure/msal-browser 4.28.0 → 4.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientNext.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +3 -3
- 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 +18 -13
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +3 -3
- 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/cache/TokenCache.mjs +18 -13
- package/dist/custom-auth-path/cache/TokenCache.mjs.map +1 -1
- package/dist/custom-auth-path/config/Configuration.mjs +1 -1
- package/dist/custom-auth-path/controllers/ControllerFactory.mjs +1 -1
- package/dist/custom-auth-path/controllers/StandardController.mjs +1 -1
- package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
- package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
- package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +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.mjs +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.mjs +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.mjs +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.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/index.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.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.mjs +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.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
- package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
- package/dist/custom-auth-path/packageMetadata.mjs +2 -2
- package/dist/custom-auth-path/protocol/Authorize.d.ts.map +1 -1
- package/dist/custom-auth-path/protocol/Authorize.mjs +5 -1
- 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/utils/BrowserConstants.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +5 -1
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/lib/custom-auth-path/msal-custom-auth.cjs +147 -83
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +147 -83
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/custom-auth-path/types/cache/TokenCache.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +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/msal-browser.cjs +149 -85
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +149 -85
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +62 -62
- package/lib/types/cache/TokenCache.d.ts.map +1 -1
- package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/protocol/Authorize.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/cache/BrowserCacheManager.ts +3 -3
- package/src/cache/TokenCache.ts +37 -25
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +14 -0
package/lib/msal-browser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.28.
|
|
1
|
+
/*! @azure/msal-browser v4.28.2 2026-02-10 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v15.14.
|
|
5
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -279,7 +279,7 @@ const JsonWebTokenTypes = {
|
|
|
279
279
|
// Token renewal offset default in seconds
|
|
280
280
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
281
281
|
|
|
282
|
-
/*! @azure/msal-common v15.14.
|
|
282
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
283
283
|
/*
|
|
284
284
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
285
285
|
* Licensed under the MIT License.
|
|
@@ -296,7 +296,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
296
296
|
unexpectedError: unexpectedError
|
|
297
297
|
});
|
|
298
298
|
|
|
299
|
-
/*! @azure/msal-common v15.14.
|
|
299
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
300
300
|
|
|
301
301
|
/*
|
|
302
302
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -345,7 +345,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
345
345
|
: AuthErrorMessages[code]);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
/*! @azure/msal-common v15.14.
|
|
348
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
349
349
|
/*
|
|
350
350
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
351
351
|
* Licensed under the MIT License.
|
|
@@ -445,7 +445,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
445
445
|
userTimeoutReached: userTimeoutReached
|
|
446
446
|
});
|
|
447
447
|
|
|
448
|
-
/*! @azure/msal-common v15.14.
|
|
448
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
449
449
|
|
|
450
450
|
/*
|
|
451
451
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -702,7 +702,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
702
702
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
703
703
|
}
|
|
704
704
|
|
|
705
|
-
/*! @azure/msal-common v15.14.
|
|
705
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
706
706
|
|
|
707
707
|
/*
|
|
708
708
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -741,7 +741,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
741
741
|
},
|
|
742
742
|
};
|
|
743
743
|
|
|
744
|
-
/*! @azure/msal-common v15.14.
|
|
744
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
745
745
|
|
|
746
746
|
/*
|
|
747
747
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -932,12 +932,12 @@ class Logger {
|
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
|
|
935
|
-
/*! @azure/msal-common v15.14.
|
|
935
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
936
936
|
/* eslint-disable header/header */
|
|
937
937
|
const name$1 = "@azure/msal-common";
|
|
938
|
-
const version$1 = "15.14.
|
|
938
|
+
const version$1 = "15.14.2";
|
|
939
939
|
|
|
940
|
-
/*! @azure/msal-common v15.14.
|
|
940
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
941
941
|
/*
|
|
942
942
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
943
943
|
* Licensed under the MIT License.
|
|
@@ -957,7 +957,7 @@ const AzureCloudInstance = {
|
|
|
957
957
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
958
958
|
};
|
|
959
959
|
|
|
960
|
-
/*! @azure/msal-common v15.14.
|
|
960
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
961
961
|
/*
|
|
962
962
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
963
963
|
* Licensed under the MIT License.
|
|
@@ -1015,7 +1015,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
1015
1015
|
urlParseError: urlParseError
|
|
1016
1016
|
});
|
|
1017
1017
|
|
|
1018
|
-
/*! @azure/msal-common v15.14.
|
|
1018
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1019
1019
|
|
|
1020
1020
|
/*
|
|
1021
1021
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1163,7 +1163,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
1163
1163
|
return new ClientConfigurationError(errorCode);
|
|
1164
1164
|
}
|
|
1165
1165
|
|
|
1166
|
-
/*! @azure/msal-common v15.14.
|
|
1166
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1167
1167
|
/*
|
|
1168
1168
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1169
1169
|
* Licensed under the MIT License.
|
|
@@ -1260,7 +1260,7 @@ class StringUtils {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
1262
|
|
|
1263
|
-
/*! @azure/msal-common v15.14.
|
|
1263
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1264
1264
|
|
|
1265
1265
|
/*
|
|
1266
1266
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1455,7 +1455,7 @@ class ScopeSet {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
1457
|
|
|
1458
|
-
/*! @azure/msal-common v15.14.
|
|
1458
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1459
1459
|
|
|
1460
1460
|
/*
|
|
1461
1461
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1495,7 +1495,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
1495
1495
|
};
|
|
1496
1496
|
}
|
|
1497
1497
|
|
|
1498
|
-
/*! @azure/msal-common v15.14.
|
|
1498
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1499
1499
|
/*
|
|
1500
1500
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1501
1501
|
* Licensed under the MIT License.
|
|
@@ -1577,7 +1577,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
1577
1577
|
return updatedAccountInfo;
|
|
1578
1578
|
}
|
|
1579
1579
|
|
|
1580
|
-
/*! @azure/msal-common v15.14.
|
|
1580
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1581
1581
|
/*
|
|
1582
1582
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1583
1583
|
* Licensed under the MIT License.
|
|
@@ -1592,7 +1592,7 @@ const AuthorityType = {
|
|
|
1592
1592
|
Ciam: 3,
|
|
1593
1593
|
};
|
|
1594
1594
|
|
|
1595
|
-
/*! @azure/msal-common v15.14.
|
|
1595
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1596
1596
|
/*
|
|
1597
1597
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1598
1598
|
* Licensed under the MIT License.
|
|
@@ -1614,7 +1614,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
1614
1614
|
return null;
|
|
1615
1615
|
}
|
|
1616
1616
|
|
|
1617
|
-
/*! @azure/msal-common v15.14.
|
|
1617
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1618
1618
|
/*
|
|
1619
1619
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1620
1620
|
* Licensed under the MIT License.
|
|
@@ -1638,7 +1638,7 @@ const ProtocolMode = {
|
|
|
1638
1638
|
EAR: "EAR",
|
|
1639
1639
|
};
|
|
1640
1640
|
|
|
1641
|
-
/*! @azure/msal-common v15.14.
|
|
1641
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1642
1642
|
|
|
1643
1643
|
/*
|
|
1644
1644
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1672,6 +1672,13 @@ class AccountEntity {
|
|
|
1672
1672
|
* Returns the AccountInfo interface for this account.
|
|
1673
1673
|
*/
|
|
1674
1674
|
static getAccountInfo(accountEntity) {
|
|
1675
|
+
const tenantProfiles = accountEntity.tenantProfiles || [];
|
|
1676
|
+
// Ensure at least the home tenant profile exists
|
|
1677
|
+
if (tenantProfiles.length === 0 &&
|
|
1678
|
+
accountEntity.realm &&
|
|
1679
|
+
accountEntity.localAccountId) {
|
|
1680
|
+
tenantProfiles.push(buildTenantProfile(accountEntity.homeAccountId, accountEntity.localAccountId, accountEntity.realm));
|
|
1681
|
+
}
|
|
1675
1682
|
return {
|
|
1676
1683
|
homeAccountId: accountEntity.homeAccountId,
|
|
1677
1684
|
environment: accountEntity.environment,
|
|
@@ -1683,7 +1690,7 @@ class AccountEntity {
|
|
|
1683
1690
|
nativeAccountId: accountEntity.nativeAccountId,
|
|
1684
1691
|
authorityType: accountEntity.authorityType,
|
|
1685
1692
|
// Deserialize tenant profiles array into a Map
|
|
1686
|
-
tenantProfiles: new Map(
|
|
1693
|
+
tenantProfiles: new Map(tenantProfiles.map((tenantProfile) => {
|
|
1687
1694
|
return [tenantProfile.tenantId, tenantProfile];
|
|
1688
1695
|
})),
|
|
1689
1696
|
dataBoundary: accountEntity.dataBoundary,
|
|
@@ -1784,7 +1791,14 @@ class AccountEntity {
|
|
|
1784
1791
|
account.cloudGraphHostName = cloudGraphHostName;
|
|
1785
1792
|
account.msGraphHost = msGraphHost;
|
|
1786
1793
|
// Serialize tenant profiles map into an array
|
|
1787
|
-
|
|
1794
|
+
const tenantProfiles = Array.from(accountInfo.tenantProfiles?.values() || []);
|
|
1795
|
+
// Ensure at least the home tenant profile exists
|
|
1796
|
+
if (tenantProfiles.length === 0 &&
|
|
1797
|
+
accountInfo.tenantId &&
|
|
1798
|
+
accountInfo.localAccountId) {
|
|
1799
|
+
tenantProfiles.push(buildTenantProfile(accountInfo.homeAccountId, accountInfo.localAccountId, accountInfo.tenantId, accountInfo.idTokenClaims));
|
|
1800
|
+
}
|
|
1801
|
+
account.tenantProfiles = tenantProfiles;
|
|
1788
1802
|
account.dataBoundary = accountInfo.dataBoundary;
|
|
1789
1803
|
return account;
|
|
1790
1804
|
}
|
|
@@ -1859,7 +1873,7 @@ class AccountEntity {
|
|
|
1859
1873
|
}
|
|
1860
1874
|
}
|
|
1861
1875
|
|
|
1862
|
-
/*! @azure/msal-common v15.14.
|
|
1876
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1863
1877
|
|
|
1864
1878
|
/*
|
|
1865
1879
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1940,7 +1954,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1940
1954
|
}
|
|
1941
1955
|
}
|
|
1942
1956
|
|
|
1943
|
-
/*! @azure/msal-common v15.14.
|
|
1957
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1944
1958
|
|
|
1945
1959
|
/*
|
|
1946
1960
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2056,7 +2070,7 @@ function normalizeUrlForComparison(url) {
|
|
|
2056
2070
|
}
|
|
2057
2071
|
}
|
|
2058
2072
|
|
|
2059
|
-
/*! @azure/msal-common v15.14.
|
|
2073
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
2060
2074
|
|
|
2061
2075
|
/*
|
|
2062
2076
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2220,7 +2234,7 @@ class UrlString {
|
|
|
2220
2234
|
}
|
|
2221
2235
|
}
|
|
2222
2236
|
|
|
2223
|
-
/*! @azure/msal-common v15.14.
|
|
2237
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
2224
2238
|
|
|
2225
2239
|
/*
|
|
2226
2240
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2249,6 +2263,27 @@ const rawMetdataJSON = {
|
|
|
2249
2263
|
authorization_endpoint: "https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",
|
|
2250
2264
|
end_session_endpoint: "https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout",
|
|
2251
2265
|
},
|
|
2266
|
+
"login.sovcloud-identity.fr": {
|
|
2267
|
+
token_endpoint: "https://login.sovcloud-identity.fr/{tenantid}/oauth2/v2.0/token",
|
|
2268
|
+
jwks_uri: "https://login.sovcloud-identity.fr/{tenantid}/discovery/v2.0/keys",
|
|
2269
|
+
issuer: "https://login.sovcloud-identity.fr/{tenantid}/v2.0",
|
|
2270
|
+
authorization_endpoint: "https://login.sovcloud-identity.fr/{tenantid}/oauth2/v2.0/authorize",
|
|
2271
|
+
end_session_endpoint: "https://login.sovcloud-identity.fr/{tenantid}/oauth2/v2.0/logout",
|
|
2272
|
+
},
|
|
2273
|
+
"login.sovcloud-identity.de": {
|
|
2274
|
+
token_endpoint: "https://login.sovcloud-identity.de/{tenantid}/oauth2/v2.0/token",
|
|
2275
|
+
jwks_uri: "https://login.sovcloud-identity.de/{tenantid}/discovery/v2.0/keys",
|
|
2276
|
+
issuer: "https://login.sovcloud-identity.de/{tenantid}/v2.0",
|
|
2277
|
+
authorization_endpoint: "https://login.sovcloud-identity.de/{tenantid}/oauth2/v2.0/authorize",
|
|
2278
|
+
end_session_endpoint: "https://login.sovcloud-identity.de/{tenantid}/oauth2/v2.0/logout",
|
|
2279
|
+
},
|
|
2280
|
+
"login.sovcloud-identity.sg": {
|
|
2281
|
+
token_endpoint: "https://login.sovcloud-identity.sg/common/oauth2/v2.0/token",
|
|
2282
|
+
jwks_uri: "https://login.sovcloud-identity.sg/common/discovery/v2.0/keys",
|
|
2283
|
+
issuer: "https://login.sovcloud-identity.sg/{tenantid}/v2.0",
|
|
2284
|
+
authorization_endpoint: "https://login.sovcloud-identity.sg/common/oauth2/v2.0/authorize",
|
|
2285
|
+
end_session_endpoint: "https://login.sovcloud-identity.sg/common/oauth2/v2.0/logout",
|
|
2286
|
+
},
|
|
2252
2287
|
},
|
|
2253
2288
|
instanceDiscoveryMetadata: {
|
|
2254
2289
|
metadata: [
|
|
@@ -2288,6 +2323,21 @@ const rawMetdataJSON = {
|
|
|
2288
2323
|
preferred_cache: "login-us.microsoftonline.com",
|
|
2289
2324
|
aliases: ["login-us.microsoftonline.com"],
|
|
2290
2325
|
},
|
|
2326
|
+
{
|
|
2327
|
+
preferred_network: "login.sovcloud-identity.fr",
|
|
2328
|
+
preferred_cache: "login.sovcloud-identity.fr",
|
|
2329
|
+
aliases: ["login.sovcloud-identity.fr"],
|
|
2330
|
+
},
|
|
2331
|
+
{
|
|
2332
|
+
preferred_network: "login.sovcloud-identity.de",
|
|
2333
|
+
preferred_cache: "login.sovcloud-identity.de",
|
|
2334
|
+
aliases: ["login.sovcloud-identity.de"],
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
preferred_network: "login.sovcloud-identity.sg",
|
|
2338
|
+
preferred_cache: "login.sovcloud-identity.sg",
|
|
2339
|
+
aliases: ["login.sovcloud-identity.sg"],
|
|
2340
|
+
},
|
|
2291
2341
|
],
|
|
2292
2342
|
},
|
|
2293
2343
|
};
|
|
@@ -2359,7 +2409,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2359
2409
|
return null;
|
|
2360
2410
|
}
|
|
2361
2411
|
|
|
2362
|
-
/*! @azure/msal-common v15.14.
|
|
2412
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
2363
2413
|
/*
|
|
2364
2414
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2365
2415
|
* Licensed under the MIT License.
|
|
@@ -2367,7 +2417,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2367
2417
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
2368
2418
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
2369
2419
|
|
|
2370
|
-
/*! @azure/msal-common v15.14.
|
|
2420
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
2371
2421
|
|
|
2372
2422
|
/*
|
|
2373
2423
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2412,7 +2462,7 @@ function createCacheError(e) {
|
|
|
2412
2462
|
}
|
|
2413
2463
|
}
|
|
2414
2464
|
|
|
2415
|
-
/*! @azure/msal-common v15.14.
|
|
2465
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
2416
2466
|
|
|
2417
2467
|
/*
|
|
2418
2468
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3523,7 +3573,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3523
3573
|
}
|
|
3524
3574
|
}
|
|
3525
3575
|
|
|
3526
|
-
/*! @azure/msal-common v15.14.
|
|
3576
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
3527
3577
|
/*
|
|
3528
3578
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3529
3579
|
* Licensed under the MIT License.
|
|
@@ -4050,7 +4100,7 @@ const IntFields = new Set([
|
|
|
4050
4100
|
"upgradedCacheCount",
|
|
4051
4101
|
]);
|
|
4052
4102
|
|
|
4053
|
-
/*! @azure/msal-common v15.14.
|
|
4103
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4054
4104
|
|
|
4055
4105
|
/*
|
|
4056
4106
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4129,7 +4179,7 @@ class StubPerformanceClient {
|
|
|
4129
4179
|
}
|
|
4130
4180
|
}
|
|
4131
4181
|
|
|
4132
|
-
/*! @azure/msal-common v15.14.
|
|
4182
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4133
4183
|
|
|
4134
4184
|
/*
|
|
4135
4185
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4229,7 +4279,7 @@ function isOidcProtocolMode(config) {
|
|
|
4229
4279
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
4230
4280
|
}
|
|
4231
4281
|
|
|
4232
|
-
/*! @azure/msal-common v15.14.
|
|
4282
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4233
4283
|
/*
|
|
4234
4284
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4235
4285
|
* Licensed under the MIT License.
|
|
@@ -4239,7 +4289,7 @@ const CcsCredentialType = {
|
|
|
4239
4289
|
UPN: "UPN",
|
|
4240
4290
|
};
|
|
4241
4291
|
|
|
4242
|
-
/*! @azure/msal-common v15.14.
|
|
4292
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4243
4293
|
/*
|
|
4244
4294
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4245
4295
|
* Licensed under the MIT License.
|
|
@@ -4289,7 +4339,7 @@ const INSTANCE_AWARE = "instance_aware";
|
|
|
4289
4339
|
const EAR_JWK = "ear_jwk";
|
|
4290
4340
|
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
4291
4341
|
|
|
4292
|
-
/*! @azure/msal-common v15.14.
|
|
4342
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4293
4343
|
|
|
4294
4344
|
/*
|
|
4295
4345
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4669,7 +4719,7 @@ function addPostBodyParameters(parameters, bodyParameters) {
|
|
|
4669
4719
|
});
|
|
4670
4720
|
}
|
|
4671
4721
|
|
|
4672
|
-
/*! @azure/msal-common v15.14.
|
|
4722
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4673
4723
|
/*
|
|
4674
4724
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4675
4725
|
* Licensed under the MIT License.
|
|
@@ -4681,7 +4731,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
4681
4731
|
response.hasOwnProperty("jwks_uri"));
|
|
4682
4732
|
}
|
|
4683
4733
|
|
|
4684
|
-
/*! @azure/msal-common v15.14.
|
|
4734
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4685
4735
|
/*
|
|
4686
4736
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4687
4737
|
* Licensed under the MIT License.
|
|
@@ -4691,7 +4741,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
4691
4741
|
response.hasOwnProperty("metadata"));
|
|
4692
4742
|
}
|
|
4693
4743
|
|
|
4694
|
-
/*! @azure/msal-common v15.14.
|
|
4744
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4695
4745
|
/*
|
|
4696
4746
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4697
4747
|
* Licensed under the MIT License.
|
|
@@ -4701,7 +4751,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
4701
4751
|
response.hasOwnProperty("error_description"));
|
|
4702
4752
|
}
|
|
4703
4753
|
|
|
4704
|
-
/*! @azure/msal-common v15.14.
|
|
4754
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4705
4755
|
/*
|
|
4706
4756
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4707
4757
|
* Licensed under the MIT License.
|
|
@@ -4797,7 +4847,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
4797
4847
|
};
|
|
4798
4848
|
};
|
|
4799
4849
|
|
|
4800
|
-
/*! @azure/msal-common v15.14.
|
|
4850
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4801
4851
|
|
|
4802
4852
|
/*
|
|
4803
4853
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4903,7 +4953,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
4903
4953
|
},
|
|
4904
4954
|
};
|
|
4905
4955
|
|
|
4906
|
-
/*! @azure/msal-common v15.14.
|
|
4956
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4907
4957
|
/*
|
|
4908
4958
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4909
4959
|
* Licensed under the MIT License.
|
|
@@ -4968,7 +5018,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
4968
5018
|
return cachedAtSec > nowSeconds();
|
|
4969
5019
|
}
|
|
4970
5020
|
|
|
4971
|
-
/*! @azure/msal-common v15.14.
|
|
5021
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4972
5022
|
|
|
4973
5023
|
/*
|
|
4974
5024
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5230,7 +5280,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
5230
5280
|
return metadata.expiresAt <= nowSeconds();
|
|
5231
5281
|
}
|
|
5232
5282
|
|
|
5233
|
-
/*! @azure/msal-common v15.14.
|
|
5283
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
5234
5284
|
|
|
5235
5285
|
/*
|
|
5236
5286
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6069,7 +6119,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
6069
6119
|
};
|
|
6070
6120
|
}
|
|
6071
6121
|
|
|
6072
|
-
/*! @azure/msal-common v15.14.
|
|
6122
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6073
6123
|
|
|
6074
6124
|
/*
|
|
6075
6125
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6100,7 +6150,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
6100
6150
|
}
|
|
6101
6151
|
}
|
|
6102
6152
|
|
|
6103
|
-
/*! @azure/msal-common v15.14.
|
|
6153
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6104
6154
|
|
|
6105
6155
|
/*
|
|
6106
6156
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6119,7 +6169,7 @@ class ServerError extends AuthError {
|
|
|
6119
6169
|
}
|
|
6120
6170
|
}
|
|
6121
6171
|
|
|
6122
|
-
/*! @azure/msal-common v15.14.
|
|
6172
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6123
6173
|
/*
|
|
6124
6174
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6125
6175
|
* Licensed under the MIT License.
|
|
@@ -6140,7 +6190,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
6140
6190
|
};
|
|
6141
6191
|
}
|
|
6142
6192
|
|
|
6143
|
-
/*! @azure/msal-common v15.14.
|
|
6193
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6144
6194
|
|
|
6145
6195
|
/*
|
|
6146
6196
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6227,7 +6277,7 @@ class ThrottlingUtils {
|
|
|
6227
6277
|
}
|
|
6228
6278
|
}
|
|
6229
6279
|
|
|
6230
|
-
/*! @azure/msal-common v15.14.
|
|
6280
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6231
6281
|
|
|
6232
6282
|
/*
|
|
6233
6283
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6258,7 +6308,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
6258
6308
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6259
6309
|
}
|
|
6260
6310
|
|
|
6261
|
-
/*! @azure/msal-common v15.14.
|
|
6311
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6262
6312
|
|
|
6263
6313
|
/*
|
|
6264
6314
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6406,7 +6456,7 @@ class BaseClient {
|
|
|
6406
6456
|
}
|
|
6407
6457
|
}
|
|
6408
6458
|
|
|
6409
|
-
/*! @azure/msal-common v15.14.
|
|
6459
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6410
6460
|
/*
|
|
6411
6461
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6412
6462
|
* Licensed under the MIT License.
|
|
@@ -6434,7 +6484,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6434
6484
|
uxNotAllowed: uxNotAllowed
|
|
6435
6485
|
});
|
|
6436
6486
|
|
|
6437
|
-
/*! @azure/msal-common v15.14.
|
|
6487
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6438
6488
|
|
|
6439
6489
|
/*
|
|
6440
6490
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6524,7 +6574,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
6524
6574
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6525
6575
|
}
|
|
6526
6576
|
|
|
6527
|
-
/*! @azure/msal-common v15.14.
|
|
6577
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6528
6578
|
|
|
6529
6579
|
/*
|
|
6530
6580
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6596,7 +6646,7 @@ class ProtocolUtils {
|
|
|
6596
6646
|
}
|
|
6597
6647
|
}
|
|
6598
6648
|
|
|
6599
|
-
/*! @azure/msal-common v15.14.
|
|
6649
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6600
6650
|
|
|
6601
6651
|
/*
|
|
6602
6652
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6678,7 +6728,7 @@ class PopTokenGenerator {
|
|
|
6678
6728
|
}
|
|
6679
6729
|
}
|
|
6680
6730
|
|
|
6681
|
-
/*! @azure/msal-common v15.14.
|
|
6731
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6682
6732
|
/*
|
|
6683
6733
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6684
6734
|
* Licensed under the MIT License.
|
|
@@ -6705,7 +6755,7 @@ class PopTokenGenerator {
|
|
|
6705
6755
|
}
|
|
6706
6756
|
}
|
|
6707
6757
|
|
|
6708
|
-
/*! @azure/msal-common v15.14.
|
|
6758
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6709
6759
|
|
|
6710
6760
|
/*
|
|
6711
6761
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6817,10 +6867,15 @@ class ResponseHandler {
|
|
|
6817
6867
|
if (handlingRefreshTokenResponse &&
|
|
6818
6868
|
!forceCacheRefreshTokenResponse &&
|
|
6819
6869
|
cacheRecord.account) {
|
|
6820
|
-
const
|
|
6821
|
-
|
|
6822
|
-
|
|
6870
|
+
const cachedAccounts = this.cacheStorage.getAllAccounts({
|
|
6871
|
+
homeAccountId: cacheRecord.account.homeAccountId,
|
|
6872
|
+
environment: cacheRecord.account.environment,
|
|
6873
|
+
}, request.correlationId);
|
|
6874
|
+
if (cachedAccounts.length < 1) {
|
|
6823
6875
|
this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache");
|
|
6876
|
+
this.performanceClient?.addFields({
|
|
6877
|
+
acntLoggedOut: true,
|
|
6878
|
+
}, request.correlationId);
|
|
6824
6879
|
return await ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, idTokenClaims, requestStateObj, undefined, serverRequestId);
|
|
6825
6880
|
}
|
|
6826
6881
|
}
|
|
@@ -7039,7 +7094,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
7039
7094
|
return baseAccount;
|
|
7040
7095
|
}
|
|
7041
7096
|
|
|
7042
|
-
/*! @azure/msal-common v15.14.
|
|
7097
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
7043
7098
|
/*
|
|
7044
7099
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7045
7100
|
* Licensed under the MIT License.
|
|
@@ -7057,7 +7112,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
7057
7112
|
}
|
|
7058
7113
|
}
|
|
7059
7114
|
|
|
7060
|
-
/*! @azure/msal-common v15.14.
|
|
7115
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
7061
7116
|
|
|
7062
7117
|
/*
|
|
7063
7118
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7293,7 +7348,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
7293
7348
|
}
|
|
7294
7349
|
}
|
|
7295
7350
|
|
|
7296
|
-
/*! @azure/msal-common v15.14.
|
|
7351
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
7297
7352
|
|
|
7298
7353
|
/*
|
|
7299
7354
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7505,7 +7560,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7505
7560
|
}
|
|
7506
7561
|
}
|
|
7507
7562
|
|
|
7508
|
-
/*! @azure/msal-common v15.14.
|
|
7563
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
7509
7564
|
|
|
7510
7565
|
/*
|
|
7511
7566
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7603,7 +7658,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
7603
7658
|
}
|
|
7604
7659
|
}
|
|
7605
7660
|
|
|
7606
|
-
/*! @azure/msal-common v15.14.
|
|
7661
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
7607
7662
|
|
|
7608
7663
|
/*
|
|
7609
7664
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7618,7 +7673,7 @@ const StubbedNetworkModule = {
|
|
|
7618
7673
|
},
|
|
7619
7674
|
};
|
|
7620
7675
|
|
|
7621
|
-
/*! @azure/msal-common v15.14.
|
|
7676
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
7622
7677
|
|
|
7623
7678
|
/*
|
|
7624
7679
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7842,7 +7897,7 @@ function extractLoginHint(account) {
|
|
|
7842
7897
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7843
7898
|
}
|
|
7844
7899
|
|
|
7845
|
-
/*! @azure/msal-common v15.14.
|
|
7900
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
7846
7901
|
|
|
7847
7902
|
/*
|
|
7848
7903
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7900,7 +7955,7 @@ class AuthenticationHeaderParser {
|
|
|
7900
7955
|
}
|
|
7901
7956
|
}
|
|
7902
7957
|
|
|
7903
|
-
/*! @azure/msal-common v15.14.
|
|
7958
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
7904
7959
|
|
|
7905
7960
|
/*
|
|
7906
7961
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8163,7 +8218,7 @@ class ServerTelemetryManager {
|
|
|
8163
8218
|
}
|
|
8164
8219
|
}
|
|
8165
8220
|
|
|
8166
|
-
/*! @azure/msal-common v15.14.
|
|
8221
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
8167
8222
|
/*
|
|
8168
8223
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8169
8224
|
* Licensed under the MIT License.
|
|
@@ -8171,7 +8226,7 @@ class ServerTelemetryManager {
|
|
|
8171
8226
|
const missingKidError = "missing_kid_error";
|
|
8172
8227
|
const missingAlgError = "missing_alg_error";
|
|
8173
8228
|
|
|
8174
|
-
/*! @azure/msal-common v15.14.
|
|
8229
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
8175
8230
|
|
|
8176
8231
|
/*
|
|
8177
8232
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8196,7 +8251,7 @@ function createJoseHeaderError(code) {
|
|
|
8196
8251
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
8197
8252
|
}
|
|
8198
8253
|
|
|
8199
|
-
/*! @azure/msal-common v15.14.
|
|
8254
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
8200
8255
|
|
|
8201
8256
|
/*
|
|
8202
8257
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8236,7 +8291,7 @@ class JoseHeader {
|
|
|
8236
8291
|
}
|
|
8237
8292
|
}
|
|
8238
8293
|
|
|
8239
|
-
/*! @azure/msal-common v15.14.
|
|
8294
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
8240
8295
|
|
|
8241
8296
|
/*
|
|
8242
8297
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10377,7 +10432,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
10377
10432
|
|
|
10378
10433
|
/* eslint-disable header/header */
|
|
10379
10434
|
const name = "@azure/msal-browser";
|
|
10380
|
-
const version = "4.28.
|
|
10435
|
+
const version = "4.28.2";
|
|
10381
10436
|
|
|
10382
10437
|
/*
|
|
10383
10438
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -13166,7 +13221,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
13166
13221
|
* @param request
|
|
13167
13222
|
*/
|
|
13168
13223
|
async hydrateCache(result, request) {
|
|
13169
|
-
const idTokenEntity = createIdTokenEntity(result.account
|
|
13224
|
+
const idTokenEntity = createIdTokenEntity(result.account.homeAccountId, result.account.environment, result.idToken, this.clientId, result.tenantId);
|
|
13170
13225
|
let claimsHash;
|
|
13171
13226
|
if (request.claims) {
|
|
13172
13227
|
claimsHash = await this.cryptoImpl.hashString(request.claims);
|
|
@@ -13178,7 +13233,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
13178
13233
|
*
|
|
13179
13234
|
* The next MSAL VFuture should map these both to same value if possible
|
|
13180
13235
|
*/
|
|
13181
|
-
const accessTokenEntity = createAccessTokenEntity(result.account
|
|
13236
|
+
const accessTokenEntity = createAccessTokenEntity(result.account.homeAccountId, result.account.environment, result.accessToken, this.clientId, result.tenantId, result.scopes.join(" "),
|
|
13182
13237
|
// Access token expiresOn stored in seconds, converting from AuthenticationResult expiresOn stored as Date
|
|
13183
13238
|
result.expiresOn
|
|
13184
13239
|
? toSecondsFromDate(result.expiresOn)
|
|
@@ -14874,6 +14929,8 @@ async function getEARForm(frame, config, authority, request, logger, performance
|
|
|
14874
14929
|
addCodeChallengeParams(parameters, request.codeChallenge, Constants.S256_CODE_CHALLENGE_METHOD);
|
|
14875
14930
|
const queryParams = new Map();
|
|
14876
14931
|
addExtraQueryParameters(queryParams, request.extraQueryParameters || {});
|
|
14932
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
14933
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
14877
14934
|
const url = getAuthorizeUrl(authority, queryParams, config.auth.encodeExtraQueryParams, request.extraQueryParameters);
|
|
14878
14935
|
return createForm(frame, url, parameters);
|
|
14879
14936
|
}
|
|
@@ -14887,6 +14944,8 @@ async function getCodeForm(frame, config, authority, request, logger, performanc
|
|
|
14887
14944
|
addPostBodyParameters(parameters, request.authorizePostBodyParameters || {});
|
|
14888
14945
|
const queryParams = new Map();
|
|
14889
14946
|
addExtraQueryParameters(queryParams, request.extraQueryParameters || {});
|
|
14947
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
14948
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
14890
14949
|
const url = getAuthorizeUrl(authority, queryParams, config.auth.encodeExtraQueryParams, request.extraQueryParameters);
|
|
14891
14950
|
return createForm(frame, url, parameters);
|
|
14892
14951
|
}
|
|
@@ -16903,10 +16962,9 @@ class TokenCache {
|
|
|
16903
16962
|
authorityMetadata: this.config.auth.authorityMetadata,
|
|
16904
16963
|
skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache,
|
|
16905
16964
|
};
|
|
16906
|
-
const
|
|
16907
|
-
|
|
16908
|
-
|
|
16909
|
-
const cacheRecordAccount = await invokeAsync(this.loadAccount.bind(this), PerformanceEvents.LoadAccount, this.logger, this.performanceClient, correlationId)(request, options.clientInfo || response.client_info || "", correlationId, idTokenClaims, authority);
|
|
16965
|
+
const authorityString = request.authority || this.config.auth.authority;
|
|
16966
|
+
const authority = await createDiscoveredInstance(Authority.generateAuthority(authorityString, request.azureCloudOptions), this.config.system.networkClient, this.storage, authorityOptions, this.logger, correlationId, this.performanceClient);
|
|
16967
|
+
const cacheRecordAccount = await invokeAsync(this.loadAccount.bind(this), PerformanceEvents.LoadAccount, this.logger, this.performanceClient, correlationId)(request, options.clientInfo || response.client_info || "", correlationId, authority, idTokenClaims);
|
|
16910
16968
|
const idToken = await invokeAsync(this.loadIdToken.bind(this), PerformanceEvents.LoadIdToken, this.logger, this.performanceClient, correlationId)(response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, cacheRecordAccount.realm, correlationId, kmsi);
|
|
16911
16969
|
const accessToken = await invokeAsync(this.loadAccessToken.bind(this), PerformanceEvents.LoadAccessToken, this.logger, this.performanceClient, correlationId)(request, response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, cacheRecordAccount.realm, options, correlationId, kmsi);
|
|
16912
16970
|
const refreshToken = await invokeAsync(this.loadRefreshToken.bind(this), PerformanceEvents.LoadRefreshToken, this.logger, this.performanceClient, correlationId)(response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, correlationId, kmsi);
|
|
@@ -16916,7 +16974,7 @@ class TokenCache {
|
|
|
16916
16974
|
idToken,
|
|
16917
16975
|
accessToken,
|
|
16918
16976
|
refreshToken,
|
|
16919
|
-
},
|
|
16977
|
+
}, authority, idTokenClaims);
|
|
16920
16978
|
}
|
|
16921
16979
|
catch (error) {
|
|
16922
16980
|
rootMeasurement.end({ success: false }, error);
|
|
@@ -16932,20 +16990,20 @@ class TokenCache {
|
|
|
16932
16990
|
* @param requestHomeAccountId
|
|
16933
16991
|
* @returns `AccountEntity`
|
|
16934
16992
|
*/
|
|
16935
|
-
async loadAccount(request, clientInfo, correlationId,
|
|
16993
|
+
async loadAccount(request, clientInfo, correlationId, authority, idTokenClaims) {
|
|
16936
16994
|
this.logger.verbose("TokenCache - loading account");
|
|
16937
16995
|
if (request.account) {
|
|
16938
16996
|
const accountEntity = AccountEntity.createFromAccountInfo(request.account);
|
|
16939
16997
|
await this.storage.setAccount(accountEntity, correlationId, isKmsi(idTokenClaims || {}), ApiId.loadExternalTokens);
|
|
16940
16998
|
return accountEntity;
|
|
16941
16999
|
}
|
|
16942
|
-
else if (!
|
|
16943
|
-
this.logger.error("TokenCache - if an account is not provided on the request,
|
|
17000
|
+
else if (!clientInfo && !idTokenClaims) {
|
|
17001
|
+
this.logger.error("TokenCache - if an account is not provided on the request, clientInfo or idToken must be provided instead.");
|
|
16944
17002
|
throw createBrowserAuthError(unableToLoadToken);
|
|
16945
17003
|
}
|
|
16946
17004
|
const homeAccountId = AccountEntity.generateHomeAccountId(clientInfo, authority.authorityType, this.logger, this.cryptoObj, idTokenClaims);
|
|
16947
17005
|
const claimsTenantId = idTokenClaims?.tid;
|
|
16948
|
-
const cachedAccount = buildAccountToCache(this.storage, authority, homeAccountId, base64Decode, correlationId, idTokenClaims, clientInfo, authority.
|
|
17006
|
+
const cachedAccount = buildAccountToCache(this.storage, authority, homeAccountId, base64Decode, correlationId, idTokenClaims, clientInfo, authority.getPreferredCache(), claimsTenantId, undefined, // authCodePayload
|
|
16949
17007
|
undefined, // nativeAccountId
|
|
16950
17008
|
this.logger);
|
|
16951
17009
|
await this.storage.setAccount(cachedAccount, correlationId, isKmsi(idTokenClaims || {}), ApiId.loadExternalTokens);
|
|
@@ -17017,9 +17075,15 @@ class TokenCache {
|
|
|
17017
17075
|
this.logger.verbose("TokenCache - no refresh token found in response");
|
|
17018
17076
|
return null;
|
|
17019
17077
|
}
|
|
17078
|
+
const expiresOn = response.refresh_token_expires_in
|
|
17079
|
+
? response.refresh_token_expires_in + nowSeconds()
|
|
17080
|
+
: undefined;
|
|
17081
|
+
this.performanceClient.addFields({
|
|
17082
|
+
extRtExpiresOnSeconds: expiresOn,
|
|
17083
|
+
}, correlationId);
|
|
17020
17084
|
this.logger.verbose("TokenCache - loading refresh token");
|
|
17021
17085
|
const refreshTokenEntity = createRefreshTokenEntity(homeAccountId, environment, response.refresh_token, this.config.auth.clientId, response.foci, undefined, // userAssertionHash
|
|
17022
|
-
|
|
17086
|
+
expiresOn);
|
|
17023
17087
|
await this.storage.setRefreshTokenCredential(refreshTokenEntity, correlationId, kmsi);
|
|
17024
17088
|
return refreshTokenEntity;
|
|
17025
17089
|
}
|
|
@@ -17031,7 +17095,7 @@ class TokenCache {
|
|
|
17031
17095
|
* @param authority
|
|
17032
17096
|
* @returns `AuthenticationResult`
|
|
17033
17097
|
*/
|
|
17034
|
-
generateAuthenticationResult(request, cacheRecord,
|
|
17098
|
+
generateAuthenticationResult(request, cacheRecord, authority, idTokenClaims) {
|
|
17035
17099
|
let accessToken = "";
|
|
17036
17100
|
let responseScopes = [];
|
|
17037
17101
|
let expiresOn = null;
|