@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
|
@@ -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.
|
|
@@ -276,7 +276,7 @@ const JsonWebTokenTypes = {
|
|
|
276
276
|
// Token renewal offset default in seconds
|
|
277
277
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
278
278
|
|
|
279
|
-
/*! @azure/msal-common v15.14.
|
|
279
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
280
280
|
/*
|
|
281
281
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
282
282
|
* Licensed under the MIT License.
|
|
@@ -287,7 +287,7 @@ const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
|
287
287
|
const unexpectedError = "unexpected_error";
|
|
288
288
|
const postRequestFailed$1 = "post_request_failed";
|
|
289
289
|
|
|
290
|
-
/*! @azure/msal-common v15.14.
|
|
290
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
291
291
|
|
|
292
292
|
/*
|
|
293
293
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -322,7 +322,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
322
322
|
: AuthErrorMessages[code]);
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
/*! @azure/msal-common v15.14.
|
|
325
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
326
326
|
/*
|
|
327
327
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
328
328
|
* Licensed under the MIT License.
|
|
@@ -373,7 +373,7 @@ const methodNotImplemented = "method_not_implemented";
|
|
|
373
373
|
const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
|
|
374
374
|
const platformBrokerError = "platform_broker_error";
|
|
375
375
|
|
|
376
|
-
/*! @azure/msal-common v15.14.
|
|
376
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
377
377
|
|
|
378
378
|
/*
|
|
379
379
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -448,7 +448,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
448
448
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
449
449
|
}
|
|
450
450
|
|
|
451
|
-
/*! @azure/msal-common v15.14.
|
|
451
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
452
452
|
|
|
453
453
|
/*
|
|
454
454
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -487,7 +487,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
487
487
|
},
|
|
488
488
|
};
|
|
489
489
|
|
|
490
|
-
/*! @azure/msal-common v15.14.
|
|
490
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
491
491
|
|
|
492
492
|
/*
|
|
493
493
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -678,12 +678,12 @@ class Logger {
|
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
|
|
681
|
-
/*! @azure/msal-common v15.14.
|
|
681
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
682
682
|
/* eslint-disable header/header */
|
|
683
683
|
const name$1 = "@azure/msal-common";
|
|
684
|
-
const version$1 = "15.14.
|
|
684
|
+
const version$1 = "15.14.2";
|
|
685
685
|
|
|
686
|
-
/*! @azure/msal-common v15.14.
|
|
686
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
687
687
|
/*
|
|
688
688
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
689
689
|
* Licensed under the MIT License.
|
|
@@ -692,7 +692,7 @@ const AzureCloudInstance = {
|
|
|
692
692
|
// AzureCloudInstance is not specified.
|
|
693
693
|
None: "none"};
|
|
694
694
|
|
|
695
|
-
/*! @azure/msal-common v15.14.
|
|
695
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
696
696
|
/*
|
|
697
697
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
698
698
|
* Licensed under the MIT License.
|
|
@@ -722,7 +722,7 @@ const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
|
|
|
722
722
|
const invalidAuthorizePostBodyParameters = "invalid_authorize_post_body_parameters";
|
|
723
723
|
const invalidPlatformBrokerConfiguration = "invalid_platform_broker_configuration";
|
|
724
724
|
|
|
725
|
-
/*! @azure/msal-common v15.14.
|
|
725
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
726
726
|
|
|
727
727
|
/*
|
|
728
728
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -768,7 +768,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
768
768
|
return new ClientConfigurationError(errorCode);
|
|
769
769
|
}
|
|
770
770
|
|
|
771
|
-
/*! @azure/msal-common v15.14.
|
|
771
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
772
772
|
/*
|
|
773
773
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
774
774
|
* Licensed under the MIT License.
|
|
@@ -865,7 +865,7 @@ class StringUtils {
|
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
|
|
868
|
-
/*! @azure/msal-common v15.14.
|
|
868
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
869
869
|
|
|
870
870
|
/*
|
|
871
871
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1060,7 +1060,7 @@ class ScopeSet {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
-
/*! @azure/msal-common v15.14.
|
|
1063
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1064
1064
|
|
|
1065
1065
|
/*
|
|
1066
1066
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1100,7 +1100,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
1100
1100
|
};
|
|
1101
1101
|
}
|
|
1102
1102
|
|
|
1103
|
-
/*! @azure/msal-common v15.14.
|
|
1103
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1104
1104
|
/*
|
|
1105
1105
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1106
1106
|
* Licensed under the MIT License.
|
|
@@ -1182,7 +1182,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
1182
1182
|
return updatedAccountInfo;
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
|
-
/*! @azure/msal-common v15.14.
|
|
1185
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1186
1186
|
/*
|
|
1187
1187
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1188
1188
|
* Licensed under the MIT License.
|
|
@@ -1197,7 +1197,7 @@ const AuthorityType = {
|
|
|
1197
1197
|
Ciam: 3,
|
|
1198
1198
|
};
|
|
1199
1199
|
|
|
1200
|
-
/*! @azure/msal-common v15.14.
|
|
1200
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1201
1201
|
/*
|
|
1202
1202
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1203
1203
|
* Licensed under the MIT License.
|
|
@@ -1219,7 +1219,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
1219
1219
|
return null;
|
|
1220
1220
|
}
|
|
1221
1221
|
|
|
1222
|
-
/*! @azure/msal-common v15.14.
|
|
1222
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1223
1223
|
/*
|
|
1224
1224
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1225
1225
|
* Licensed under the MIT License.
|
|
@@ -1243,7 +1243,7 @@ const ProtocolMode = {
|
|
|
1243
1243
|
EAR: "EAR",
|
|
1244
1244
|
};
|
|
1245
1245
|
|
|
1246
|
-
/*! @azure/msal-common v15.14.
|
|
1246
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1247
1247
|
|
|
1248
1248
|
/*
|
|
1249
1249
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1277,6 +1277,13 @@ class AccountEntity {
|
|
|
1277
1277
|
* Returns the AccountInfo interface for this account.
|
|
1278
1278
|
*/
|
|
1279
1279
|
static getAccountInfo(accountEntity) {
|
|
1280
|
+
const tenantProfiles = accountEntity.tenantProfiles || [];
|
|
1281
|
+
// Ensure at least the home tenant profile exists
|
|
1282
|
+
if (tenantProfiles.length === 0 &&
|
|
1283
|
+
accountEntity.realm &&
|
|
1284
|
+
accountEntity.localAccountId) {
|
|
1285
|
+
tenantProfiles.push(buildTenantProfile(accountEntity.homeAccountId, accountEntity.localAccountId, accountEntity.realm));
|
|
1286
|
+
}
|
|
1280
1287
|
return {
|
|
1281
1288
|
homeAccountId: accountEntity.homeAccountId,
|
|
1282
1289
|
environment: accountEntity.environment,
|
|
@@ -1288,7 +1295,7 @@ class AccountEntity {
|
|
|
1288
1295
|
nativeAccountId: accountEntity.nativeAccountId,
|
|
1289
1296
|
authorityType: accountEntity.authorityType,
|
|
1290
1297
|
// Deserialize tenant profiles array into a Map
|
|
1291
|
-
tenantProfiles: new Map(
|
|
1298
|
+
tenantProfiles: new Map(tenantProfiles.map((tenantProfile) => {
|
|
1292
1299
|
return [tenantProfile.tenantId, tenantProfile];
|
|
1293
1300
|
})),
|
|
1294
1301
|
dataBoundary: accountEntity.dataBoundary,
|
|
@@ -1389,7 +1396,14 @@ class AccountEntity {
|
|
|
1389
1396
|
account.cloudGraphHostName = cloudGraphHostName;
|
|
1390
1397
|
account.msGraphHost = msGraphHost;
|
|
1391
1398
|
// Serialize tenant profiles map into an array
|
|
1392
|
-
|
|
1399
|
+
const tenantProfiles = Array.from(accountInfo.tenantProfiles?.values() || []);
|
|
1400
|
+
// Ensure at least the home tenant profile exists
|
|
1401
|
+
if (tenantProfiles.length === 0 &&
|
|
1402
|
+
accountInfo.tenantId &&
|
|
1403
|
+
accountInfo.localAccountId) {
|
|
1404
|
+
tenantProfiles.push(buildTenantProfile(accountInfo.homeAccountId, accountInfo.localAccountId, accountInfo.tenantId, accountInfo.idTokenClaims));
|
|
1405
|
+
}
|
|
1406
|
+
account.tenantProfiles = tenantProfiles;
|
|
1393
1407
|
account.dataBoundary = accountInfo.dataBoundary;
|
|
1394
1408
|
return account;
|
|
1395
1409
|
}
|
|
@@ -1464,7 +1478,7 @@ class AccountEntity {
|
|
|
1464
1478
|
}
|
|
1465
1479
|
}
|
|
1466
1480
|
|
|
1467
|
-
/*! @azure/msal-common v15.14.
|
|
1481
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1468
1482
|
|
|
1469
1483
|
/*
|
|
1470
1484
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1545,7 +1559,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1545
1559
|
}
|
|
1546
1560
|
}
|
|
1547
1561
|
|
|
1548
|
-
/*! @azure/msal-common v15.14.
|
|
1562
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1549
1563
|
|
|
1550
1564
|
/*
|
|
1551
1565
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1661,7 +1675,7 @@ function normalizeUrlForComparison(url) {
|
|
|
1661
1675
|
}
|
|
1662
1676
|
}
|
|
1663
1677
|
|
|
1664
|
-
/*! @azure/msal-common v15.14.
|
|
1678
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1665
1679
|
|
|
1666
1680
|
/*
|
|
1667
1681
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1825,7 +1839,7 @@ class UrlString {
|
|
|
1825
1839
|
}
|
|
1826
1840
|
}
|
|
1827
1841
|
|
|
1828
|
-
/*! @azure/msal-common v15.14.
|
|
1842
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1829
1843
|
|
|
1830
1844
|
/*
|
|
1831
1845
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1854,6 +1868,27 @@ const rawMetdataJSON = {
|
|
|
1854
1868
|
authorization_endpoint: "https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",
|
|
1855
1869
|
end_session_endpoint: "https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout",
|
|
1856
1870
|
},
|
|
1871
|
+
"login.sovcloud-identity.fr": {
|
|
1872
|
+
token_endpoint: "https://login.sovcloud-identity.fr/{tenantid}/oauth2/v2.0/token",
|
|
1873
|
+
jwks_uri: "https://login.sovcloud-identity.fr/{tenantid}/discovery/v2.0/keys",
|
|
1874
|
+
issuer: "https://login.sovcloud-identity.fr/{tenantid}/v2.0",
|
|
1875
|
+
authorization_endpoint: "https://login.sovcloud-identity.fr/{tenantid}/oauth2/v2.0/authorize",
|
|
1876
|
+
end_session_endpoint: "https://login.sovcloud-identity.fr/{tenantid}/oauth2/v2.0/logout",
|
|
1877
|
+
},
|
|
1878
|
+
"login.sovcloud-identity.de": {
|
|
1879
|
+
token_endpoint: "https://login.sovcloud-identity.de/{tenantid}/oauth2/v2.0/token",
|
|
1880
|
+
jwks_uri: "https://login.sovcloud-identity.de/{tenantid}/discovery/v2.0/keys",
|
|
1881
|
+
issuer: "https://login.sovcloud-identity.de/{tenantid}/v2.0",
|
|
1882
|
+
authorization_endpoint: "https://login.sovcloud-identity.de/{tenantid}/oauth2/v2.0/authorize",
|
|
1883
|
+
end_session_endpoint: "https://login.sovcloud-identity.de/{tenantid}/oauth2/v2.0/logout",
|
|
1884
|
+
},
|
|
1885
|
+
"login.sovcloud-identity.sg": {
|
|
1886
|
+
token_endpoint: "https://login.sovcloud-identity.sg/common/oauth2/v2.0/token",
|
|
1887
|
+
jwks_uri: "https://login.sovcloud-identity.sg/common/discovery/v2.0/keys",
|
|
1888
|
+
issuer: "https://login.sovcloud-identity.sg/{tenantid}/v2.0",
|
|
1889
|
+
authorization_endpoint: "https://login.sovcloud-identity.sg/common/oauth2/v2.0/authorize",
|
|
1890
|
+
end_session_endpoint: "https://login.sovcloud-identity.sg/common/oauth2/v2.0/logout",
|
|
1891
|
+
},
|
|
1857
1892
|
},
|
|
1858
1893
|
instanceDiscoveryMetadata: {
|
|
1859
1894
|
metadata: [
|
|
@@ -1893,6 +1928,21 @@ const rawMetdataJSON = {
|
|
|
1893
1928
|
preferred_cache: "login-us.microsoftonline.com",
|
|
1894
1929
|
aliases: ["login-us.microsoftonline.com"],
|
|
1895
1930
|
},
|
|
1931
|
+
{
|
|
1932
|
+
preferred_network: "login.sovcloud-identity.fr",
|
|
1933
|
+
preferred_cache: "login.sovcloud-identity.fr",
|
|
1934
|
+
aliases: ["login.sovcloud-identity.fr"],
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
preferred_network: "login.sovcloud-identity.de",
|
|
1938
|
+
preferred_cache: "login.sovcloud-identity.de",
|
|
1939
|
+
aliases: ["login.sovcloud-identity.de"],
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
preferred_network: "login.sovcloud-identity.sg",
|
|
1943
|
+
preferred_cache: "login.sovcloud-identity.sg",
|
|
1944
|
+
aliases: ["login.sovcloud-identity.sg"],
|
|
1945
|
+
},
|
|
1896
1946
|
],
|
|
1897
1947
|
},
|
|
1898
1948
|
};
|
|
@@ -1964,7 +2014,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1964
2014
|
return null;
|
|
1965
2015
|
}
|
|
1966
2016
|
|
|
1967
|
-
/*! @azure/msal-common v15.14.
|
|
2017
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1968
2018
|
/*
|
|
1969
2019
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1970
2020
|
* Licensed under the MIT License.
|
|
@@ -1972,7 +2022,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1972
2022
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
1973
2023
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
1974
2024
|
|
|
1975
|
-
/*! @azure/msal-common v15.14.
|
|
2025
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
1976
2026
|
|
|
1977
2027
|
/*
|
|
1978
2028
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2017,7 +2067,7 @@ function createCacheError(e) {
|
|
|
2017
2067
|
}
|
|
2018
2068
|
}
|
|
2019
2069
|
|
|
2020
|
-
/*! @azure/msal-common v15.14.
|
|
2070
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
2021
2071
|
|
|
2022
2072
|
/*
|
|
2023
2073
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3127,7 +3177,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3127
3177
|
}
|
|
3128
3178
|
}
|
|
3129
3179
|
|
|
3130
|
-
/*! @azure/msal-common v15.14.
|
|
3180
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
3131
3181
|
/*
|
|
3132
3182
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3133
3183
|
* Licensed under the MIT License.
|
|
@@ -3399,7 +3449,7 @@ const PerformanceEvents = {
|
|
|
3399
3449
|
const PerformanceEventStatus = {
|
|
3400
3450
|
InProgress: 1};
|
|
3401
3451
|
|
|
3402
|
-
/*! @azure/msal-common v15.14.
|
|
3452
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
3403
3453
|
|
|
3404
3454
|
/*
|
|
3405
3455
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3478,7 +3528,7 @@ class StubPerformanceClient {
|
|
|
3478
3528
|
}
|
|
3479
3529
|
}
|
|
3480
3530
|
|
|
3481
|
-
/*! @azure/msal-common v15.14.
|
|
3531
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
3482
3532
|
|
|
3483
3533
|
/*
|
|
3484
3534
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3578,7 +3628,7 @@ function isOidcProtocolMode(config) {
|
|
|
3578
3628
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3579
3629
|
}
|
|
3580
3630
|
|
|
3581
|
-
/*! @azure/msal-common v15.14.
|
|
3631
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
3582
3632
|
/*
|
|
3583
3633
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3584
3634
|
* Licensed under the MIT License.
|
|
@@ -3588,7 +3638,7 @@ const CcsCredentialType = {
|
|
|
3588
3638
|
UPN: "UPN",
|
|
3589
3639
|
};
|
|
3590
3640
|
|
|
3591
|
-
/*! @azure/msal-common v15.14.
|
|
3641
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
3592
3642
|
/*
|
|
3593
3643
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3594
3644
|
* Licensed under the MIT License.
|
|
@@ -3638,7 +3688,7 @@ const INSTANCE_AWARE = "instance_aware";
|
|
|
3638
3688
|
const EAR_JWK = "ear_jwk";
|
|
3639
3689
|
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
3640
3690
|
|
|
3641
|
-
/*! @azure/msal-common v15.14.
|
|
3691
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
3642
3692
|
|
|
3643
3693
|
/*
|
|
3644
3694
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4018,7 +4068,7 @@ function addPostBodyParameters(parameters, bodyParameters) {
|
|
|
4018
4068
|
});
|
|
4019
4069
|
}
|
|
4020
4070
|
|
|
4021
|
-
/*! @azure/msal-common v15.14.
|
|
4071
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4022
4072
|
/*
|
|
4023
4073
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4024
4074
|
* Licensed under the MIT License.
|
|
@@ -4030,7 +4080,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
4030
4080
|
response.hasOwnProperty("jwks_uri"));
|
|
4031
4081
|
}
|
|
4032
4082
|
|
|
4033
|
-
/*! @azure/msal-common v15.14.
|
|
4083
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4034
4084
|
/*
|
|
4035
4085
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4036
4086
|
* Licensed under the MIT License.
|
|
@@ -4040,7 +4090,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
4040
4090
|
response.hasOwnProperty("metadata"));
|
|
4041
4091
|
}
|
|
4042
4092
|
|
|
4043
|
-
/*! @azure/msal-common v15.14.
|
|
4093
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4044
4094
|
/*
|
|
4045
4095
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4046
4096
|
* Licensed under the MIT License.
|
|
@@ -4050,7 +4100,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
4050
4100
|
response.hasOwnProperty("error_description"));
|
|
4051
4101
|
}
|
|
4052
4102
|
|
|
4053
|
-
/*! @azure/msal-common v15.14.
|
|
4103
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4054
4104
|
/*
|
|
4055
4105
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4056
4106
|
* Licensed under the MIT License.
|
|
@@ -4146,7 +4196,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
4146
4196
|
};
|
|
4147
4197
|
};
|
|
4148
4198
|
|
|
4149
|
-
/*! @azure/msal-common v15.14.
|
|
4199
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4150
4200
|
|
|
4151
4201
|
/*
|
|
4152
4202
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4252,7 +4302,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
4252
4302
|
},
|
|
4253
4303
|
};
|
|
4254
4304
|
|
|
4255
|
-
/*! @azure/msal-common v15.14.
|
|
4305
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4256
4306
|
/*
|
|
4257
4307
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4258
4308
|
* Licensed under the MIT License.
|
|
@@ -4317,7 +4367,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
4317
4367
|
return cachedAtSec > nowSeconds();
|
|
4318
4368
|
}
|
|
4319
4369
|
|
|
4320
|
-
/*! @azure/msal-common v15.14.
|
|
4370
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4321
4371
|
|
|
4322
4372
|
/*
|
|
4323
4373
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4579,7 +4629,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
4579
4629
|
return metadata.expiresAt <= nowSeconds();
|
|
4580
4630
|
}
|
|
4581
4631
|
|
|
4582
|
-
/*! @azure/msal-common v15.14.
|
|
4632
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
4583
4633
|
|
|
4584
4634
|
/*
|
|
4585
4635
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5418,7 +5468,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
5418
5468
|
};
|
|
5419
5469
|
}
|
|
5420
5470
|
|
|
5421
|
-
/*! @azure/msal-common v15.14.
|
|
5471
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
5422
5472
|
|
|
5423
5473
|
/*
|
|
5424
5474
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5449,7 +5499,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
5449
5499
|
}
|
|
5450
5500
|
}
|
|
5451
5501
|
|
|
5452
|
-
/*! @azure/msal-common v15.14.
|
|
5502
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
5453
5503
|
|
|
5454
5504
|
/*
|
|
5455
5505
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5468,7 +5518,7 @@ class ServerError extends AuthError {
|
|
|
5468
5518
|
}
|
|
5469
5519
|
}
|
|
5470
5520
|
|
|
5471
|
-
/*! @azure/msal-common v15.14.
|
|
5521
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
5472
5522
|
/*
|
|
5473
5523
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5474
5524
|
* Licensed under the MIT License.
|
|
@@ -5489,7 +5539,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
5489
5539
|
};
|
|
5490
5540
|
}
|
|
5491
5541
|
|
|
5492
|
-
/*! @azure/msal-common v15.14.
|
|
5542
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
5493
5543
|
|
|
5494
5544
|
/*
|
|
5495
5545
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5576,7 +5626,7 @@ class ThrottlingUtils {
|
|
|
5576
5626
|
}
|
|
5577
5627
|
}
|
|
5578
5628
|
|
|
5579
|
-
/*! @azure/msal-common v15.14.
|
|
5629
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
5580
5630
|
|
|
5581
5631
|
/*
|
|
5582
5632
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5607,7 +5657,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
5607
5657
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
5608
5658
|
}
|
|
5609
5659
|
|
|
5610
|
-
/*! @azure/msal-common v15.14.
|
|
5660
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
5611
5661
|
|
|
5612
5662
|
/*
|
|
5613
5663
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5755,7 +5805,7 @@ class BaseClient {
|
|
|
5755
5805
|
}
|
|
5756
5806
|
}
|
|
5757
5807
|
|
|
5758
|
-
/*! @azure/msal-common v15.14.
|
|
5808
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
5759
5809
|
/*
|
|
5760
5810
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5761
5811
|
* Licensed under the MIT License.
|
|
@@ -5771,7 +5821,7 @@ const consentRequired = "consent_required";
|
|
|
5771
5821
|
const loginRequired = "login_required";
|
|
5772
5822
|
const badToken = "bad_token";
|
|
5773
5823
|
|
|
5774
|
-
/*! @azure/msal-common v15.14.
|
|
5824
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
5775
5825
|
|
|
5776
5826
|
/*
|
|
5777
5827
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5843,7 +5893,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
5843
5893
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
5844
5894
|
}
|
|
5845
5895
|
|
|
5846
|
-
/*! @azure/msal-common v15.14.
|
|
5896
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
5847
5897
|
|
|
5848
5898
|
/*
|
|
5849
5899
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5915,7 +5965,7 @@ class ProtocolUtils {
|
|
|
5915
5965
|
}
|
|
5916
5966
|
}
|
|
5917
5967
|
|
|
5918
|
-
/*! @azure/msal-common v15.14.
|
|
5968
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
5919
5969
|
|
|
5920
5970
|
/*
|
|
5921
5971
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5997,7 +6047,7 @@ class PopTokenGenerator {
|
|
|
5997
6047
|
}
|
|
5998
6048
|
}
|
|
5999
6049
|
|
|
6000
|
-
/*! @azure/msal-common v15.14.
|
|
6050
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6001
6051
|
/*
|
|
6002
6052
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6003
6053
|
* Licensed under the MIT License.
|
|
@@ -6024,7 +6074,7 @@ class PopTokenGenerator {
|
|
|
6024
6074
|
}
|
|
6025
6075
|
}
|
|
6026
6076
|
|
|
6027
|
-
/*! @azure/msal-common v15.14.
|
|
6077
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6028
6078
|
|
|
6029
6079
|
/*
|
|
6030
6080
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6136,10 +6186,15 @@ class ResponseHandler {
|
|
|
6136
6186
|
if (handlingRefreshTokenResponse &&
|
|
6137
6187
|
!forceCacheRefreshTokenResponse &&
|
|
6138
6188
|
cacheRecord.account) {
|
|
6139
|
-
const
|
|
6140
|
-
|
|
6141
|
-
|
|
6189
|
+
const cachedAccounts = this.cacheStorage.getAllAccounts({
|
|
6190
|
+
homeAccountId: cacheRecord.account.homeAccountId,
|
|
6191
|
+
environment: cacheRecord.account.environment,
|
|
6192
|
+
}, request.correlationId);
|
|
6193
|
+
if (cachedAccounts.length < 1) {
|
|
6142
6194
|
this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache");
|
|
6195
|
+
this.performanceClient?.addFields({
|
|
6196
|
+
acntLoggedOut: true,
|
|
6197
|
+
}, request.correlationId);
|
|
6143
6198
|
return await ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, idTokenClaims, requestStateObj, undefined, serverRequestId);
|
|
6144
6199
|
}
|
|
6145
6200
|
}
|
|
@@ -6358,7 +6413,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6358
6413
|
return baseAccount;
|
|
6359
6414
|
}
|
|
6360
6415
|
|
|
6361
|
-
/*! @azure/msal-common v15.14.
|
|
6416
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6362
6417
|
/*
|
|
6363
6418
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6364
6419
|
* Licensed under the MIT License.
|
|
@@ -6376,7 +6431,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
6376
6431
|
}
|
|
6377
6432
|
}
|
|
6378
6433
|
|
|
6379
|
-
/*! @azure/msal-common v15.14.
|
|
6434
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6380
6435
|
|
|
6381
6436
|
/*
|
|
6382
6437
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6612,7 +6667,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
6612
6667
|
}
|
|
6613
6668
|
}
|
|
6614
6669
|
|
|
6615
|
-
/*! @azure/msal-common v15.14.
|
|
6670
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6616
6671
|
|
|
6617
6672
|
/*
|
|
6618
6673
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6824,7 +6879,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
6824
6879
|
}
|
|
6825
6880
|
}
|
|
6826
6881
|
|
|
6827
|
-
/*! @azure/msal-common v15.14.
|
|
6882
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6828
6883
|
|
|
6829
6884
|
/*
|
|
6830
6885
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6922,7 +6977,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
6922
6977
|
}
|
|
6923
6978
|
}
|
|
6924
6979
|
|
|
6925
|
-
/*! @azure/msal-common v15.14.
|
|
6980
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6926
6981
|
|
|
6927
6982
|
/*
|
|
6928
6983
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6937,7 +6992,7 @@ const StubbedNetworkModule = {
|
|
|
6937
6992
|
},
|
|
6938
6993
|
};
|
|
6939
6994
|
|
|
6940
|
-
/*! @azure/msal-common v15.14.
|
|
6995
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
6941
6996
|
|
|
6942
6997
|
/*
|
|
6943
6998
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7161,7 +7216,7 @@ function extractLoginHint(account) {
|
|
|
7161
7216
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7162
7217
|
}
|
|
7163
7218
|
|
|
7164
|
-
/*! @azure/msal-common v15.14.
|
|
7219
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
7165
7220
|
|
|
7166
7221
|
/*
|
|
7167
7222
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7424,7 +7479,7 @@ class ServerTelemetryManager {
|
|
|
7424
7479
|
}
|
|
7425
7480
|
}
|
|
7426
7481
|
|
|
7427
|
-
/*! @azure/msal-common v15.14.
|
|
7482
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
7428
7483
|
/*
|
|
7429
7484
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7430
7485
|
* Licensed under the MIT License.
|
|
@@ -7432,7 +7487,7 @@ class ServerTelemetryManager {
|
|
|
7432
7487
|
const missingKidError = "missing_kid_error";
|
|
7433
7488
|
const missingAlgError = "missing_alg_error";
|
|
7434
7489
|
|
|
7435
|
-
/*! @azure/msal-common v15.14.
|
|
7490
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
7436
7491
|
|
|
7437
7492
|
/*
|
|
7438
7493
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7457,7 +7512,7 @@ function createJoseHeaderError(code) {
|
|
|
7457
7512
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
7458
7513
|
}
|
|
7459
7514
|
|
|
7460
|
-
/*! @azure/msal-common v15.14.
|
|
7515
|
+
/*! @azure/msal-common v15.14.2 2026-02-10 */
|
|
7461
7516
|
|
|
7462
7517
|
/*
|
|
7463
7518
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7892,7 +7947,7 @@ function ensureArgumentIsJSONString(argName, argValue, correlationId) {
|
|
|
7892
7947
|
|
|
7893
7948
|
/* eslint-disable header/header */
|
|
7894
7949
|
const name = "@azure/msal-browser";
|
|
7895
|
-
const version = "4.28.
|
|
7950
|
+
const version = "4.28.2";
|
|
7896
7951
|
|
|
7897
7952
|
/*
|
|
7898
7953
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -16032,7 +16087,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
16032
16087
|
* @param request
|
|
16033
16088
|
*/
|
|
16034
16089
|
async hydrateCache(result, request) {
|
|
16035
|
-
const idTokenEntity = createIdTokenEntity(result.account
|
|
16090
|
+
const idTokenEntity = createIdTokenEntity(result.account.homeAccountId, result.account.environment, result.idToken, this.clientId, result.tenantId);
|
|
16036
16091
|
let claimsHash;
|
|
16037
16092
|
if (request.claims) {
|
|
16038
16093
|
claimsHash = await this.cryptoImpl.hashString(request.claims);
|
|
@@ -16044,7 +16099,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
16044
16099
|
*
|
|
16045
16100
|
* The next MSAL VFuture should map these both to same value if possible
|
|
16046
16101
|
*/
|
|
16047
|
-
const accessTokenEntity = createAccessTokenEntity(result.account
|
|
16102
|
+
const accessTokenEntity = createAccessTokenEntity(result.account.homeAccountId, result.account.environment, result.accessToken, this.clientId, result.tenantId, result.scopes.join(" "),
|
|
16048
16103
|
// Access token expiresOn stored in seconds, converting from AuthenticationResult expiresOn stored as Date
|
|
16049
16104
|
result.expiresOn
|
|
16050
16105
|
? toSecondsFromDate(result.expiresOn)
|
|
@@ -17341,6 +17396,8 @@ async function getEARForm(frame, config, authority, request, logger, performance
|
|
|
17341
17396
|
addCodeChallengeParams(parameters, request.codeChallenge, Constants.S256_CODE_CHALLENGE_METHOD);
|
|
17342
17397
|
const queryParams = new Map();
|
|
17343
17398
|
addExtraQueryParameters(queryParams, request.extraQueryParameters || {});
|
|
17399
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
17400
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
17344
17401
|
const url = getAuthorizeUrl(authority, queryParams, config.auth.encodeExtraQueryParams, request.extraQueryParameters);
|
|
17345
17402
|
return createForm(frame, url, parameters);
|
|
17346
17403
|
}
|
|
@@ -17354,6 +17411,8 @@ async function getCodeForm(frame, config, authority, request, logger, performanc
|
|
|
17354
17411
|
addPostBodyParameters(parameters, request.authorizePostBodyParameters || {});
|
|
17355
17412
|
const queryParams = new Map();
|
|
17356
17413
|
addExtraQueryParameters(queryParams, request.extraQueryParameters || {});
|
|
17414
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
17415
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
17357
17416
|
const url = getAuthorizeUrl(authority, queryParams, config.auth.encodeExtraQueryParams, request.extraQueryParameters);
|
|
17358
17417
|
return createForm(frame, url, parameters);
|
|
17359
17418
|
}
|
|
@@ -19647,10 +19706,9 @@ class TokenCache {
|
|
|
19647
19706
|
authorityMetadata: this.config.auth.authorityMetadata,
|
|
19648
19707
|
skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache,
|
|
19649
19708
|
};
|
|
19650
|
-
const
|
|
19651
|
-
|
|
19652
|
-
|
|
19653
|
-
const cacheRecordAccount = await invokeAsync(this.loadAccount.bind(this), PerformanceEvents.LoadAccount, this.logger, this.performanceClient, correlationId)(request, options.clientInfo || response.client_info || "", correlationId, idTokenClaims, authority);
|
|
19709
|
+
const authorityString = request.authority || this.config.auth.authority;
|
|
19710
|
+
const authority = await createDiscoveredInstance(Authority.generateAuthority(authorityString, request.azureCloudOptions), this.config.system.networkClient, this.storage, authorityOptions, this.logger, correlationId, this.performanceClient);
|
|
19711
|
+
const cacheRecordAccount = await invokeAsync(this.loadAccount.bind(this), PerformanceEvents.LoadAccount, this.logger, this.performanceClient, correlationId)(request, options.clientInfo || response.client_info || "", correlationId, authority, idTokenClaims);
|
|
19654
19712
|
const idToken = await invokeAsync(this.loadIdToken.bind(this), PerformanceEvents.LoadIdToken, this.logger, this.performanceClient, correlationId)(response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, cacheRecordAccount.realm, correlationId, kmsi);
|
|
19655
19713
|
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);
|
|
19656
19714
|
const refreshToken = await invokeAsync(this.loadRefreshToken.bind(this), PerformanceEvents.LoadRefreshToken, this.logger, this.performanceClient, correlationId)(response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, correlationId, kmsi);
|
|
@@ -19660,7 +19718,7 @@ class TokenCache {
|
|
|
19660
19718
|
idToken,
|
|
19661
19719
|
accessToken,
|
|
19662
19720
|
refreshToken,
|
|
19663
|
-
},
|
|
19721
|
+
}, authority, idTokenClaims);
|
|
19664
19722
|
}
|
|
19665
19723
|
catch (error) {
|
|
19666
19724
|
rootMeasurement.end({ success: false }, error);
|
|
@@ -19676,20 +19734,20 @@ class TokenCache {
|
|
|
19676
19734
|
* @param requestHomeAccountId
|
|
19677
19735
|
* @returns `AccountEntity`
|
|
19678
19736
|
*/
|
|
19679
|
-
async loadAccount(request, clientInfo, correlationId,
|
|
19737
|
+
async loadAccount(request, clientInfo, correlationId, authority, idTokenClaims) {
|
|
19680
19738
|
this.logger.verbose("TokenCache - loading account");
|
|
19681
19739
|
if (request.account) {
|
|
19682
19740
|
const accountEntity = AccountEntity.createFromAccountInfo(request.account);
|
|
19683
19741
|
await this.storage.setAccount(accountEntity, correlationId, isKmsi(idTokenClaims || {}), ApiId.loadExternalTokens);
|
|
19684
19742
|
return accountEntity;
|
|
19685
19743
|
}
|
|
19686
|
-
else if (!
|
|
19687
|
-
this.logger.error("TokenCache - if an account is not provided on the request,
|
|
19744
|
+
else if (!clientInfo && !idTokenClaims) {
|
|
19745
|
+
this.logger.error("TokenCache - if an account is not provided on the request, clientInfo or idToken must be provided instead.");
|
|
19688
19746
|
throw createBrowserAuthError(unableToLoadToken);
|
|
19689
19747
|
}
|
|
19690
19748
|
const homeAccountId = AccountEntity.generateHomeAccountId(clientInfo, authority.authorityType, this.logger, this.cryptoObj, idTokenClaims);
|
|
19691
19749
|
const claimsTenantId = idTokenClaims?.tid;
|
|
19692
|
-
const cachedAccount = buildAccountToCache(this.storage, authority, homeAccountId, base64Decode, correlationId, idTokenClaims, clientInfo, authority.
|
|
19750
|
+
const cachedAccount = buildAccountToCache(this.storage, authority, homeAccountId, base64Decode, correlationId, idTokenClaims, clientInfo, authority.getPreferredCache(), claimsTenantId, undefined, // authCodePayload
|
|
19693
19751
|
undefined, // nativeAccountId
|
|
19694
19752
|
this.logger);
|
|
19695
19753
|
await this.storage.setAccount(cachedAccount, correlationId, isKmsi(idTokenClaims || {}), ApiId.loadExternalTokens);
|
|
@@ -19761,9 +19819,15 @@ class TokenCache {
|
|
|
19761
19819
|
this.logger.verbose("TokenCache - no refresh token found in response");
|
|
19762
19820
|
return null;
|
|
19763
19821
|
}
|
|
19822
|
+
const expiresOn = response.refresh_token_expires_in
|
|
19823
|
+
? response.refresh_token_expires_in + nowSeconds()
|
|
19824
|
+
: undefined;
|
|
19825
|
+
this.performanceClient.addFields({
|
|
19826
|
+
extRtExpiresOnSeconds: expiresOn,
|
|
19827
|
+
}, correlationId);
|
|
19764
19828
|
this.logger.verbose("TokenCache - loading refresh token");
|
|
19765
19829
|
const refreshTokenEntity = createRefreshTokenEntity(homeAccountId, environment, response.refresh_token, this.config.auth.clientId, response.foci, undefined, // userAssertionHash
|
|
19766
|
-
|
|
19830
|
+
expiresOn);
|
|
19767
19831
|
await this.storage.setRefreshTokenCredential(refreshTokenEntity, correlationId, kmsi);
|
|
19768
19832
|
return refreshTokenEntity;
|
|
19769
19833
|
}
|
|
@@ -19775,7 +19839,7 @@ class TokenCache {
|
|
|
19775
19839
|
* @param authority
|
|
19776
19840
|
* @returns `AuthenticationResult`
|
|
19777
19841
|
*/
|
|
19778
|
-
generateAuthenticationResult(request, cacheRecord,
|
|
19842
|
+
generateAuthenticationResult(request, cacheRecord, authority, idTokenClaims) {
|
|
19779
19843
|
let accessToken = "";
|
|
19780
19844
|
let responseScopes = [];
|
|
19781
19845
|
let expiresOn = null;
|