@azure/msal-browser 5.17.3 → 5.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +15 -7
- 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.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +14 -3
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
- package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom_auth/index.mjs +1 -1
- package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +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 +25 -4
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.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/log-strings-mapping.json +1116 -1116
- 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 +4 -2
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/popup_relay/constants.mjs +1 -1
- package/dist/popup_relay/index.mjs +1 -1
- package/dist/popup_relay/relayClient.mjs +1 -1
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/redirect_bridge/index.mjs +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/utils/BrowserConstants.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/log-strings-mapping.json +2 -2
- package/lib/custom-auth-path/msal-custom-auth.cjs +271 -110
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/msal-custom-auth.js +271 -110
- package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/lib/log-strings-mapping.json +2 -2
- package/lib/msal-browser.cjs +275 -112
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +275 -112
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs +2 -2
- package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
- package/lib/popup-relay/msal-popup-relay.js +2 -2
- package/lib/popup-relay/msal-popup-relay.js.map +1 -1
- package/lib/popup-relay/msal-popup-relay.min.js +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
- package/package.json +2 -2
- package/src/broker/nativeBroker/PlatformAuthRequest.ts +2 -1
- package/src/cache/BrowserCacheManager.ts +24 -6
- package/src/controllers/StandardController.ts +20 -2
- package/src/interaction_client/PlatformAuthInteractionClient.ts +35 -3
- package/src/naa/TokenRequest.ts +1 -0
- package/src/naa/mapping/NestedAppAuthAdapter.ts +5 -0
- package/src/packageMetadata.ts +1 -1
- package/src/webBrokerBridge/IWebBrokerBridgeMessage.ts +42 -0
- package/src/webBrokerBridge/PendingRequestRegistry.ts +79 -0
- package/src/webBrokerBridge/WebBrokerBridgeError.ts +69 -0
- package/src/webBrokerBridge/WebBrokerBridgeErrorMap.ts +108 -0
- package/src/webBrokerBridge/index.ts +25 -0
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +1 -0
- package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
- package/types/cache/BrowserCacheManager.d.ts +7 -5
- package/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/types/controllers/StandardController.d.ts.map +1 -1
- package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/types/naa/TokenRequest.d.ts +1 -0
- package/types/naa/TokenRequest.d.ts.map +1 -1
- package/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/webBrokerBridge/IWebBrokerBridgeMessage.d.ts +35 -0
- package/types/webBrokerBridge/IWebBrokerBridgeMessage.d.ts.map +1 -0
- package/types/webBrokerBridge/PendingRequestRegistry.d.ts +27 -0
- package/types/webBrokerBridge/PendingRequestRegistry.d.ts.map +1 -0
- package/types/webBrokerBridge/WebBrokerBridgeError.d.ts +50 -0
- package/types/webBrokerBridge/WebBrokerBridgeError.d.ts.map +1 -0
- package/types/webBrokerBridge/WebBrokerBridgeErrorMap.d.ts +10 -0
- package/types/webBrokerBridge/WebBrokerBridgeErrorMap.d.ts.map +1 -0
- package/types/webBrokerBridge/index.d.ts +16 -0
- package/types/webBrokerBridge/index.d.ts.map +1 -0
package/lib/msal-browser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v5.
|
|
1
|
+
/*! @azure/msal-browser v5.18.0 2026-08-04 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v16.
|
|
5
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -52,9 +52,10 @@ const INSTANCE_AWARE = "instance_aware";
|
|
|
52
52
|
const EAR_JWK = "ear_jwk";
|
|
53
53
|
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
54
54
|
const RESOURCE = "resource";
|
|
55
|
-
const CLI_DATA = "clidata";
|
|
55
|
+
const CLI_DATA = "clidata";
|
|
56
|
+
const ATTRIBUTE_TOKENS = "attribute_tokens";
|
|
56
57
|
|
|
57
|
-
/*! @azure/msal-common v16.
|
|
58
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
58
59
|
/*
|
|
59
60
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
60
61
|
* Licensed under the MIT License.
|
|
@@ -290,7 +291,7 @@ const JsonWebTokenTypes$1 = {
|
|
|
290
291
|
// Token renewal offset default in seconds
|
|
291
292
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
292
293
|
|
|
293
|
-
/*! @azure/msal-common v16.
|
|
294
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
294
295
|
/*
|
|
295
296
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
296
297
|
* Licensed under the MIT License.
|
|
@@ -319,7 +320,7 @@ function createAuthError(code, correlationId, additionalMessage) {
|
|
|
319
320
|
return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
|
|
320
321
|
}
|
|
321
322
|
|
|
322
|
-
/*! @azure/msal-common v16.
|
|
323
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
323
324
|
|
|
324
325
|
/*
|
|
325
326
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -342,7 +343,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
|
|
|
342
343
|
return new ClientAuthError(errorCode, correlationId, additionalMessage);
|
|
343
344
|
}
|
|
344
345
|
|
|
345
|
-
/*! @azure/msal-common v16.
|
|
346
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
346
347
|
/*
|
|
347
348
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
348
349
|
* Licensed under the MIT License.
|
|
@@ -426,7 +427,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
426
427
|
userCanceled: userCanceled
|
|
427
428
|
});
|
|
428
429
|
|
|
429
|
-
/*! @azure/msal-common v16.
|
|
430
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
430
431
|
|
|
431
432
|
/*
|
|
432
433
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -464,7 +465,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
464
465
|
};
|
|
465
466
|
}
|
|
466
467
|
|
|
467
|
-
/*! @azure/msal-common v16.
|
|
468
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
468
469
|
|
|
469
470
|
/*
|
|
470
471
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -530,7 +531,7 @@ function getJWSPayload(authToken, correlationId) {
|
|
|
530
531
|
return matches[2];
|
|
531
532
|
}
|
|
532
533
|
|
|
533
|
-
/*! @azure/msal-common v16.
|
|
534
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
534
535
|
|
|
535
536
|
/*
|
|
536
537
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -618,7 +619,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
618
619
|
return updatedAccountInfo;
|
|
619
620
|
}
|
|
620
621
|
|
|
621
|
-
/*! @azure/msal-common v16.
|
|
622
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
622
623
|
/*
|
|
623
624
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
624
625
|
* Licensed under the MIT License.
|
|
@@ -633,7 +634,7 @@ const AuthorityType = {
|
|
|
633
634
|
Ciam: 3,
|
|
634
635
|
};
|
|
635
636
|
|
|
636
|
-
/*! @azure/msal-common v16.
|
|
637
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
637
638
|
/*
|
|
638
639
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
639
640
|
* Licensed under the MIT License.
|
|
@@ -655,7 +656,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
655
656
|
return null;
|
|
656
657
|
}
|
|
657
658
|
|
|
658
|
-
/*! @azure/msal-common v16.
|
|
659
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
659
660
|
/*
|
|
660
661
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
661
662
|
* Licensed under the MIT License.
|
|
@@ -679,7 +680,7 @@ const ProtocolMode = {
|
|
|
679
680
|
EAR: "EAR",
|
|
680
681
|
};
|
|
681
682
|
|
|
682
|
-
/*! @azure/msal-common v16.
|
|
683
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
683
684
|
/**
|
|
684
685
|
* Returns the AccountInfo interface for this account.
|
|
685
686
|
* @internal
|
|
@@ -868,7 +869,7 @@ function isAccountEntity(entity) {
|
|
|
868
869
|
entity.hasOwnProperty("authorityType"));
|
|
869
870
|
}
|
|
870
871
|
|
|
871
|
-
/*! @azure/msal-common v16.
|
|
872
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
872
873
|
/*
|
|
873
874
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
874
875
|
* Licensed under the MIT License.
|
|
@@ -885,7 +886,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
885
886
|
unexpectedError: unexpectedError
|
|
886
887
|
});
|
|
887
888
|
|
|
888
|
-
/*! @azure/msal-common v16.
|
|
889
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
889
890
|
|
|
890
891
|
/*
|
|
891
892
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -905,7 +906,7 @@ function createClientConfigurationError(errorCode, correlationId) {
|
|
|
905
906
|
return new ClientConfigurationError(errorCode, correlationId);
|
|
906
907
|
}
|
|
907
908
|
|
|
908
|
-
/*! @azure/msal-common v16.
|
|
909
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
909
910
|
/*
|
|
910
911
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
911
912
|
* Licensed under the MIT License.
|
|
@@ -969,7 +970,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
969
970
|
urlParseError: urlParseError
|
|
970
971
|
});
|
|
971
972
|
|
|
972
|
-
/*! @azure/msal-common v16.
|
|
973
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
973
974
|
|
|
974
975
|
/*
|
|
975
976
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1027,7 +1028,7 @@ class AuthenticationHeaderParser {
|
|
|
1027
1028
|
}
|
|
1028
1029
|
}
|
|
1029
1030
|
|
|
1030
|
-
/*! @azure/msal-common v16.
|
|
1031
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
1031
1032
|
/*
|
|
1032
1033
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1033
1034
|
* Licensed under the MIT License.
|
|
@@ -1039,7 +1040,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
1039
1040
|
response.hasOwnProperty("jwks_uri"));
|
|
1040
1041
|
}
|
|
1041
1042
|
|
|
1042
|
-
/*! @azure/msal-common v16.
|
|
1043
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
1043
1044
|
/*
|
|
1044
1045
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1045
1046
|
* Licensed under the MIT License.
|
|
@@ -1119,7 +1120,7 @@ class StringUtils {
|
|
|
1119
1120
|
}
|
|
1120
1121
|
}
|
|
1121
1122
|
|
|
1122
|
-
/*! @azure/msal-common v16.
|
|
1123
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
1123
1124
|
|
|
1124
1125
|
/*
|
|
1125
1126
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1277,7 +1278,7 @@ class UrlString {
|
|
|
1277
1278
|
}
|
|
1278
1279
|
}
|
|
1279
1280
|
|
|
1280
|
-
/*! @azure/msal-common v16.
|
|
1281
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
1281
1282
|
|
|
1282
1283
|
/*
|
|
1283
1284
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1443,7 +1444,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1443
1444
|
return null;
|
|
1444
1445
|
}
|
|
1445
1446
|
|
|
1446
|
-
/*! @azure/msal-common v16.
|
|
1447
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
1447
1448
|
/*
|
|
1448
1449
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1449
1450
|
* Licensed under the MIT License.
|
|
@@ -1463,7 +1464,7 @@ const AzureCloudInstance = {
|
|
|
1463
1464
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1464
1465
|
};
|
|
1465
1466
|
|
|
1466
|
-
/*! @azure/msal-common v16.
|
|
1467
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
1467
1468
|
/*
|
|
1468
1469
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1469
1470
|
* Licensed under the MIT License.
|
|
@@ -1473,7 +1474,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
1473
1474
|
response.hasOwnProperty("metadata"));
|
|
1474
1475
|
}
|
|
1475
1476
|
|
|
1476
|
-
/*! @azure/msal-common v16.
|
|
1477
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
1477
1478
|
/*
|
|
1478
1479
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1479
1480
|
* Licensed under the MIT License.
|
|
@@ -1483,7 +1484,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
1483
1484
|
response.hasOwnProperty("error_description"));
|
|
1484
1485
|
}
|
|
1485
1486
|
|
|
1486
|
-
/*! @azure/msal-common v16.
|
|
1487
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
1487
1488
|
/*
|
|
1488
1489
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1489
1490
|
* Licensed under the MIT License.
|
|
@@ -1554,7 +1555,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
1554
1555
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
1555
1556
|
const SetUserData = "setUserData";
|
|
1556
1557
|
|
|
1557
|
-
/*! @azure/msal-common v16.
|
|
1558
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
1558
1559
|
/*
|
|
1559
1560
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1560
1561
|
* Licensed under the MIT License.
|
|
@@ -1647,7 +1648,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
1647
1648
|
};
|
|
1648
1649
|
};
|
|
1649
1650
|
|
|
1650
|
-
/*! @azure/msal-common v16.
|
|
1651
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
1651
1652
|
|
|
1652
1653
|
/*
|
|
1653
1654
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1758,7 +1759,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
1758
1759
|
},
|
|
1759
1760
|
};
|
|
1760
1761
|
|
|
1761
|
-
/*! @azure/msal-common v16.
|
|
1762
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
1762
1763
|
/*
|
|
1763
1764
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1764
1765
|
* Licensed under the MIT License.
|
|
@@ -1823,7 +1824,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
1823
1824
|
return cachedAtSec > nowSeconds();
|
|
1824
1825
|
}
|
|
1825
1826
|
|
|
1826
|
-
/*! @azure/msal-common v16.
|
|
1827
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
1827
1828
|
|
|
1828
1829
|
/*
|
|
1829
1830
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2088,9 +2089,22 @@ function updateCloudDiscoveryMetadata(authorityMetadata, updatedValues, fromNetw
|
|
|
2088
2089
|
*/
|
|
2089
2090
|
function isAuthorityMetadataExpired(metadata) {
|
|
2090
2091
|
return metadata.expiresAt <= nowSeconds();
|
|
2092
|
+
}
|
|
2093
|
+
/**
|
|
2094
|
+
* Serialize attribute tokens synchronously (sort and join).
|
|
2095
|
+
* This is a sync-only operation for use at request construction time.
|
|
2096
|
+
* @param attributeTokens - array of tokens
|
|
2097
|
+
* @returns serialized partition string or undefined if no tokens
|
|
2098
|
+
*/
|
|
2099
|
+
function serializeAttributeTokens(attributeTokens) {
|
|
2100
|
+
if (!attributeTokens || attributeTokens.length === 0) {
|
|
2101
|
+
return undefined;
|
|
2102
|
+
}
|
|
2103
|
+
// Serialize: sort and join tokens
|
|
2104
|
+
return [...attributeTokens].sort().join(" ");
|
|
2091
2105
|
}
|
|
2092
2106
|
|
|
2093
|
-
/*! @azure/msal-common v16.
|
|
2107
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
2094
2108
|
|
|
2095
2109
|
/*
|
|
2096
2110
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3060,7 +3074,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
3060
3074
|
};
|
|
3061
3075
|
}
|
|
3062
3076
|
|
|
3063
|
-
/*! @azure/msal-common v16.
|
|
3077
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
3064
3078
|
|
|
3065
3079
|
/*
|
|
3066
3080
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3094,7 +3108,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
3094
3108
|
}
|
|
3095
3109
|
}
|
|
3096
3110
|
|
|
3097
|
-
/*! @azure/msal-common v16.
|
|
3111
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
3098
3112
|
|
|
3099
3113
|
/*
|
|
3100
3114
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3290,7 +3304,7 @@ class ScopeSet {
|
|
|
3290
3304
|
}
|
|
3291
3305
|
}
|
|
3292
3306
|
|
|
3293
|
-
/*! @azure/msal-common v16.
|
|
3307
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
3294
3308
|
|
|
3295
3309
|
/*
|
|
3296
3310
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3418,13 +3432,14 @@ function addSid(parameters, sid) {
|
|
|
3418
3432
|
* @param claims - The claims string from the request
|
|
3419
3433
|
* @param clientCapabilities - The client capabilities from configuration
|
|
3420
3434
|
* @param skipBrokerClaims - When true and BROKER_CLIENT_ID is present, excludes clientCapabilities from claims
|
|
3435
|
+
* @param claimsToMerge - Optional client-originated claims JSON string (e.g. `claimsFromClient`) deep-merged into `claims` with precedence on conflicts
|
|
3421
3436
|
*/
|
|
3422
|
-
function addClaims(parameters, correlationId, claims, clientCapabilities, skipBrokerClaims) {
|
|
3437
|
+
function addClaims(parameters, correlationId, claims, clientCapabilities, skipBrokerClaims, claimsToMerge) {
|
|
3423
3438
|
// Skip clientCapabilities if skipBrokerClaims is set to true and this is a brokered authentication flow
|
|
3424
3439
|
const configClaims = skipBrokerClaims && parameters.has(BROKER_CLIENT_ID)
|
|
3425
3440
|
? undefined
|
|
3426
3441
|
: clientCapabilities;
|
|
3427
|
-
const mergedClaims = buildMergedClaims$1(claims, configClaims, correlationId);
|
|
3442
|
+
const mergedClaims = buildMergedClaims$1(claims, configClaims, correlationId, claimsToMerge);
|
|
3428
3443
|
parameters.set(CLAIMS, mergedClaims);
|
|
3429
3444
|
}
|
|
3430
3445
|
/**
|
|
@@ -3590,32 +3605,79 @@ const DEFAULT_ID_TOKEN_CLAIMS = {
|
|
|
3590
3605
|
[ClaimsRequestKeys.LOGIN_HINT]: { essential: false },
|
|
3591
3606
|
};
|
|
3592
3607
|
/**
|
|
3593
|
-
* Parses claims JSON
|
|
3594
|
-
*
|
|
3608
|
+
* Parses a claims JSON string into an object, throwing a ClientConfigurationError
|
|
3609
|
+
* (error code `invalid_claims`) if the value is not a valid JSON object. The raw
|
|
3610
|
+
* claims value is never included in the error - it may contain sensitive data.
|
|
3611
|
+
* @param claims - Claims JSON string. Must be valid JSON representing an object.
|
|
3612
|
+
* @param correlationId - The request correlation id
|
|
3613
|
+
* @returns The parsed claims object
|
|
3614
|
+
*/
|
|
3615
|
+
function parseClaims(claims, correlationId = "") {
|
|
3616
|
+
let parsed;
|
|
3617
|
+
try {
|
|
3618
|
+
parsed = JSON.parse(claims);
|
|
3619
|
+
}
|
|
3620
|
+
catch (e) {
|
|
3621
|
+
// Malformed JSON
|
|
3622
|
+
throw createClientConfigurationError(invalidClaims, correlationId);
|
|
3623
|
+
}
|
|
3624
|
+
if (!isPlainObject(parsed)) {
|
|
3625
|
+
// Valid JSON, but not an object (e.g. an array, a scalar, or the literal `null`).
|
|
3626
|
+
throw createClientConfigurationError(invalidClaims, correlationId);
|
|
3627
|
+
}
|
|
3628
|
+
return parsed;
|
|
3629
|
+
}
|
|
3630
|
+
/**
|
|
3631
|
+
* Type guard for a non-null, non-array object (a JSON "object" value).
|
|
3632
|
+
* @param value - The value to test
|
|
3633
|
+
* @returns True when value is a plain object that can be deep-merged
|
|
3634
|
+
*/
|
|
3635
|
+
function isPlainObject(value) {
|
|
3636
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
3637
|
+
}
|
|
3638
|
+
/**
|
|
3639
|
+
* Recursively deep-merges two parsed claims objects. Nested objects are merged key-by-key;
|
|
3640
|
+
* for any other value type (arrays, scalars, null) the value from `claimsToMerge` replaces
|
|
3641
|
+
* the base. This mirrors the deep merge used by msal-dotnet so that, for example, a server
|
|
3642
|
+
* `access_token` challenge and a client-originated `access_token` claim are combined rather
|
|
3643
|
+
* than one clobbering the other.
|
|
3644
|
+
* @param baseClaims - The parsed base claims object
|
|
3645
|
+
* @param claimsToMerge - The parsed claims object merged in with precedence
|
|
3646
|
+
* @returns The deep-merged claims object
|
|
3647
|
+
*/
|
|
3648
|
+
function deepMergeClaims(baseClaims, claimsToMerge) {
|
|
3649
|
+
const merged = { ...baseClaims };
|
|
3650
|
+
for (const [key, mergeInValue] of Object.entries(claimsToMerge)) {
|
|
3651
|
+
const baseValue = merged[key];
|
|
3652
|
+
if (isPlainObject(baseValue) && isPlainObject(mergeInValue)) {
|
|
3653
|
+
merged[key] = deepMergeClaims(baseValue, mergeInValue);
|
|
3654
|
+
}
|
|
3655
|
+
else {
|
|
3656
|
+
merged[key] = mergeInValue;
|
|
3657
|
+
}
|
|
3658
|
+
}
|
|
3659
|
+
return merged;
|
|
3660
|
+
}
|
|
3661
|
+
/**
|
|
3662
|
+
* Parses claims JSON, optionally deep-merges a second client-originated claims string
|
|
3663
|
+
* (`claimsToMerge`, e.g. `claimsFromClient`) with precedence on conflicting keys, merges
|
|
3664
|
+
* default optional idToken claims (signin_state, login_hint), and appends client
|
|
3665
|
+
* capabilities (xms_cc) to the access_token section.
|
|
3595
3666
|
* Does not overwrite idToken claims already specified by the caller.
|
|
3596
3667
|
* @param claims - Existing claims JSON string from the request (may be undefined)
|
|
3597
3668
|
* @param clientCapabilities - Client capabilities array from configuration
|
|
3669
|
+
* @param correlationId - The request correlation id
|
|
3670
|
+
* @param claimsToMerge - Optional second claims JSON string (e.g. client-originated `claimsFromClient`)
|
|
3671
|
+
* deep-merged into `claims` with precedence on conflicts; parsed and validated when present. Nested
|
|
3672
|
+
* objects are merged recursively; arrays and scalar values are replaced.
|
|
3598
3673
|
* @returns Merged claims JSON string
|
|
3599
3674
|
*/
|
|
3600
|
-
function buildMergedClaims$1(claims, clientCapabilities, correlationId = "") {
|
|
3601
|
-
let mergedClaims;
|
|
3675
|
+
function buildMergedClaims$1(claims, clientCapabilities, correlationId = "", claimsToMerge) {
|
|
3602
3676
|
// Parse provided claims into JSON object or initialize empty object
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
try {
|
|
3608
|
-
const parsed = JSON.parse(claims);
|
|
3609
|
-
if (typeof parsed !== "object" ||
|
|
3610
|
-
parsed === null ||
|
|
3611
|
-
Array.isArray(parsed)) {
|
|
3612
|
-
throw new Error("Claims must be a JSON object");
|
|
3613
|
-
}
|
|
3614
|
-
mergedClaims = parsed;
|
|
3615
|
-
}
|
|
3616
|
-
catch (e) {
|
|
3617
|
-
throw createClientConfigurationError(invalidClaims, correlationId);
|
|
3618
|
-
}
|
|
3677
|
+
let mergedClaims = claims ? parseClaims(claims, correlationId) : {};
|
|
3678
|
+
// Deep-merge client-originated claims (e.g. `claimsFromClient`) with precedence on conflicts
|
|
3679
|
+
if (claimsToMerge?.trim()) {
|
|
3680
|
+
mergedClaims = deepMergeClaims(mergedClaims, parseClaims(claimsToMerge, correlationId));
|
|
3619
3681
|
}
|
|
3620
3682
|
// Add default optional idToken claims
|
|
3621
3683
|
if (!Object.prototype.hasOwnProperty.call(mergedClaims, ClaimsRequestKeys.ID_TOKEN)) {
|
|
@@ -3703,9 +3765,28 @@ function addResource(parameters, resource) {
|
|
|
3703
3765
|
if (resource) {
|
|
3704
3766
|
parameters.set(RESOURCE, resource);
|
|
3705
3767
|
}
|
|
3768
|
+
}
|
|
3769
|
+
/**
|
|
3770
|
+
* Add the `attribute_tokens` parameter to a /token request body.
|
|
3771
|
+
*
|
|
3772
|
+
* When `attributeTokens` is a non-empty array the values are sorted lexicographically and joined
|
|
3773
|
+
* with a single space, then written to the request body. When `attributeTokens` is an empty array
|
|
3774
|
+
* the parameter is deleted from the request body.
|
|
3775
|
+
*
|
|
3776
|
+
* @param parameters - request parameter map that will be serialized into the /token body
|
|
3777
|
+
* @param attributeTokens - caller-provided attribute token strings
|
|
3778
|
+
*/
|
|
3779
|
+
function addAttributeTokens(parameters, attributeTokens) {
|
|
3780
|
+
const serialized = serializeAttributeTokens(attributeTokens);
|
|
3781
|
+
if (serialized) {
|
|
3782
|
+
parameters.set(ATTRIBUTE_TOKENS, serialized);
|
|
3783
|
+
}
|
|
3784
|
+
else {
|
|
3785
|
+
parameters.delete(ATTRIBUTE_TOKENS);
|
|
3786
|
+
}
|
|
3706
3787
|
}
|
|
3707
3788
|
|
|
3708
|
-
/*! @azure/msal-common v16.
|
|
3789
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
3709
3790
|
|
|
3710
3791
|
/*
|
|
3711
3792
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3827,7 +3908,7 @@ function validateUrl(url, logger, correlationId) {
|
|
|
3827
3908
|
}
|
|
3828
3909
|
}
|
|
3829
3910
|
|
|
3830
|
-
/*! @azure/msal-common v16.
|
|
3911
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
3831
3912
|
|
|
3832
3913
|
/*
|
|
3833
3914
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3870,7 +3951,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
3870
3951
|
},
|
|
3871
3952
|
};
|
|
3872
3953
|
|
|
3873
|
-
/*! @azure/msal-common v16.
|
|
3954
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
3874
3955
|
/*
|
|
3875
3956
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3876
3957
|
* Licensed under the MIT License.
|
|
@@ -4159,12 +4240,12 @@ class Logger {
|
|
|
4159
4240
|
}
|
|
4160
4241
|
}
|
|
4161
4242
|
|
|
4162
|
-
/*! @azure/msal-common v16.
|
|
4243
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
4163
4244
|
/* eslint-disable header/header */
|
|
4164
4245
|
const name$1 = "@azure/msal-common";
|
|
4165
|
-
const version$1 = "16.
|
|
4246
|
+
const version$1 = "16.12.0";
|
|
4166
4247
|
|
|
4167
|
-
/*! @azure/msal-common v16.
|
|
4248
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
4168
4249
|
/*
|
|
4169
4250
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4170
4251
|
* Licensed under the MIT License.
|
|
@@ -4172,7 +4253,7 @@ const version$1 = "16.11.3";
|
|
|
4172
4253
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
4173
4254
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
4174
4255
|
|
|
4175
|
-
/*! @azure/msal-common v16.
|
|
4256
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
4176
4257
|
|
|
4177
4258
|
/*
|
|
4178
4259
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4210,7 +4291,7 @@ function createCacheError(e) {
|
|
|
4210
4291
|
}
|
|
4211
4292
|
}
|
|
4212
4293
|
|
|
4213
|
-
/*! @azure/msal-common v16.
|
|
4294
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
4214
4295
|
|
|
4215
4296
|
/*
|
|
4216
4297
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4437,9 +4518,17 @@ class CacheManager {
|
|
|
4437
4518
|
}
|
|
4438
4519
|
/**
|
|
4439
4520
|
* saves access token credential
|
|
4440
|
-
* @param credential
|
|
4521
|
+
* @param credential - the access token entity to save
|
|
4522
|
+
* @param correlationId - unique identifier for the request
|
|
4523
|
+
* @param kmsi - keep me signed in flag
|
|
4441
4524
|
*/
|
|
4442
4525
|
async saveAccessToken(credential, correlationId, kmsi) {
|
|
4526
|
+
// Compute hash from components on the entity itself — no need to thread externally.
|
|
4527
|
+
let additionalCacheKeyHash;
|
|
4528
|
+
if (credential.additionalCacheKeyComponents &&
|
|
4529
|
+
Object.keys(credential.additionalCacheKeyComponents).length > 0) {
|
|
4530
|
+
additionalCacheKeyHash = await this.cryptoImpl.hashString(JSON.stringify(credential.additionalCacheKeyComponents));
|
|
4531
|
+
}
|
|
4443
4532
|
const accessTokenFilter = {
|
|
4444
4533
|
clientId: credential.clientId,
|
|
4445
4534
|
credentialType: credential.credentialType,
|
|
@@ -4463,7 +4552,7 @@ class CacheManager {
|
|
|
4463
4552
|
}
|
|
4464
4553
|
}
|
|
4465
4554
|
});
|
|
4466
|
-
await this.setAccessTokenCredential(credential, correlationId, kmsi);
|
|
4555
|
+
await this.setAccessTokenCredential(credential, correlationId, kmsi, additionalCacheKeyHash);
|
|
4467
4556
|
}
|
|
4468
4557
|
/**
|
|
4469
4558
|
* Retrieve account entities matching all provided tenant-agnostic filters; if no filter is set, get all account entities in the cache
|
|
@@ -4875,6 +4964,12 @@ class CacheManager {
|
|
|
4875
4964
|
AuthenticationScheme$1.BEARER.toLowerCase()
|
|
4876
4965
|
? CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME
|
|
4877
4966
|
: CredentialType.ACCESS_TOKEN;
|
|
4967
|
+
const attributeTokenPartition = serializeAttributeTokens(request.attributeTokens);
|
|
4968
|
+
const additionalCacheKeyComponents = attributeTokenPartition
|
|
4969
|
+
? {
|
|
4970
|
+
attribute_tokens: attributeTokenPartition,
|
|
4971
|
+
}
|
|
4972
|
+
: undefined;
|
|
4878
4973
|
const accessTokenFilter = {
|
|
4879
4974
|
homeAccountId: account.homeAccountId,
|
|
4880
4975
|
environment: account.environment,
|
|
@@ -4884,10 +4979,12 @@ class CacheManager {
|
|
|
4884
4979
|
target: scopes,
|
|
4885
4980
|
tokenType: authScheme,
|
|
4886
4981
|
keyId: request.sshKid,
|
|
4982
|
+
additionalCacheKeyComponents: additionalCacheKeyComponents,
|
|
4887
4983
|
};
|
|
4888
4984
|
const accessTokenKeys = (tokenKeys && tokenKeys.accessToken) ||
|
|
4889
4985
|
this.getTokenKeys().accessToken;
|
|
4890
4986
|
const accessTokens = [];
|
|
4987
|
+
const matchedKeys = [];
|
|
4891
4988
|
accessTokenKeys.forEach((key) => {
|
|
4892
4989
|
// Validate key
|
|
4893
4990
|
if (this.accessTokenKeyMatchesFilter(key, accessTokenFilter, true)) {
|
|
@@ -4896,18 +4993,18 @@ class CacheManager {
|
|
|
4896
4993
|
if (accessToken &&
|
|
4897
4994
|
this.credentialMatchesFilter(accessToken, accessTokenFilter, correlationId)) {
|
|
4898
4995
|
accessTokens.push(accessToken);
|
|
4996
|
+
matchedKeys.push(key);
|
|
4899
4997
|
}
|
|
4900
4998
|
}
|
|
4901
4999
|
});
|
|
4902
|
-
|
|
4903
|
-
if (numAccessTokens < 1) {
|
|
5000
|
+
if (accessTokens.length < 1) {
|
|
4904
5001
|
this.commonLogger.info("1nckna", correlationId);
|
|
4905
5002
|
return null;
|
|
4906
5003
|
}
|
|
4907
|
-
else if (
|
|
5004
|
+
else if (accessTokens.length > 1) {
|
|
4908
5005
|
this.commonLogger.info("1wkfwp", correlationId);
|
|
4909
|
-
|
|
4910
|
-
this.removeAccessToken(
|
|
5006
|
+
matchedKeys.forEach((key) => {
|
|
5007
|
+
this.removeAccessToken(key, correlationId);
|
|
4911
5008
|
});
|
|
4912
5009
|
this.performanceClient.addFields({ multiMatchedAT: accessTokens.length }, correlationId);
|
|
4913
5010
|
return null;
|
|
@@ -5350,7 +5447,9 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5350
5447
|
getTokenKeys() {
|
|
5351
5448
|
throw createClientAuthError(methodNotImplemented, "");
|
|
5352
5449
|
}
|
|
5353
|
-
|
|
5450
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5451
|
+
generateCredentialKey(_credential, _hash) {
|
|
5452
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5354
5453
|
throw createClientAuthError(methodNotImplemented, "");
|
|
5355
5454
|
}
|
|
5356
5455
|
generateAccountKey() {
|
|
@@ -5358,7 +5457,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5358
5457
|
}
|
|
5359
5458
|
}
|
|
5360
5459
|
|
|
5361
|
-
/*! @azure/msal-common v16.
|
|
5460
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
5362
5461
|
/*
|
|
5363
5462
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5364
5463
|
* Licensed under the MIT License.
|
|
@@ -5423,7 +5522,7 @@ const IntFields = new Set([
|
|
|
5423
5522
|
"fetchRetryCount",
|
|
5424
5523
|
]);
|
|
5425
5524
|
|
|
5426
|
-
/*! @azure/msal-common v16.
|
|
5525
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
5427
5526
|
|
|
5428
5527
|
/*
|
|
5429
5528
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5481,7 +5580,7 @@ class StubPerformanceClient {
|
|
|
5481
5580
|
}
|
|
5482
5581
|
}
|
|
5483
5582
|
|
|
5484
|
-
/*! @azure/msal-common v16.
|
|
5583
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
5485
5584
|
|
|
5486
5585
|
/*
|
|
5487
5586
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5577,7 +5676,7 @@ function isOidcProtocolMode(config) {
|
|
|
5577
5676
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
5578
5677
|
}
|
|
5579
5678
|
|
|
5580
|
-
/*! @azure/msal-common v16.
|
|
5679
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
5581
5680
|
/*
|
|
5582
5681
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5583
5682
|
* Licensed under the MIT License.
|
|
@@ -5604,7 +5703,7 @@ function isOidcProtocolMode(config) {
|
|
|
5604
5703
|
}
|
|
5605
5704
|
}
|
|
5606
5705
|
|
|
5607
|
-
/*! @azure/msal-common v16.
|
|
5706
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
5608
5707
|
|
|
5609
5708
|
/*
|
|
5610
5709
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5684,7 +5783,7 @@ class PopTokenGenerator {
|
|
|
5684
5783
|
}
|
|
5685
5784
|
}
|
|
5686
5785
|
|
|
5687
|
-
/*! @azure/msal-common v16.
|
|
5786
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
5688
5787
|
/*
|
|
5689
5788
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5690
5789
|
* Licensed under the MIT License.
|
|
@@ -5748,7 +5847,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
5748
5847
|
uiNotAllowed: uiNotAllowed
|
|
5749
5848
|
});
|
|
5750
5849
|
|
|
5751
|
-
/*! @azure/msal-common v16.
|
|
5850
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
5752
5851
|
|
|
5753
5852
|
/*
|
|
5754
5853
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5815,7 +5914,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
|
|
|
5815
5914
|
return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
|
|
5816
5915
|
}
|
|
5817
5916
|
|
|
5818
|
-
/*! @azure/msal-common v16.
|
|
5917
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
5819
5918
|
|
|
5820
5919
|
/*
|
|
5821
5920
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5834,7 +5933,7 @@ class ServerError extends AuthError {
|
|
|
5834
5933
|
}
|
|
5835
5934
|
}
|
|
5836
5935
|
|
|
5837
|
-
/*! @azure/msal-common v16.
|
|
5936
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
5838
5937
|
|
|
5839
5938
|
/*
|
|
5840
5939
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5905,7 +6004,7 @@ function parseRequestState(base64Decode, state, correlationId) {
|
|
|
5905
6004
|
}
|
|
5906
6005
|
}
|
|
5907
6006
|
|
|
5908
|
-
/*! @azure/msal-common v16.
|
|
6007
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
5909
6008
|
|
|
5910
6009
|
/*
|
|
5911
6010
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5994,7 +6093,15 @@ class ResponseHandler {
|
|
|
5994
6093
|
// Add keyId from request to serverTokenResponse if defined
|
|
5995
6094
|
serverTokenResponse.key_id =
|
|
5996
6095
|
serverTokenResponse.key_id || request.sshKid || undefined;
|
|
5997
|
-
|
|
6096
|
+
// Compute components once for entity storage (fallback if hash not provided by client)
|
|
6097
|
+
const attributeTokenPartition = serializeAttributeTokens(request.attributeTokens);
|
|
6098
|
+
const cacheKeyComponents = additionalCacheKeyComponents ??
|
|
6099
|
+
(attributeTokenPartition
|
|
6100
|
+
? {
|
|
6101
|
+
attribute_tokens: attributeTokenPartition,
|
|
6102
|
+
}
|
|
6103
|
+
: undefined);
|
|
6104
|
+
const cacheRecord = this.generateCacheRecord(serverTokenResponse, authority, reqTimestamp, request, idTokenClaims, userAssertionHash, authCodePayload, cacheKeyComponents);
|
|
5998
6105
|
let cacheContext;
|
|
5999
6106
|
try {
|
|
6000
6107
|
if (this.persistencePlugin && this.serializableCache) {
|
|
@@ -6256,7 +6363,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6256
6363
|
return baseAccount;
|
|
6257
6364
|
}
|
|
6258
6365
|
|
|
6259
|
-
/*! @azure/msal-common v16.
|
|
6366
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
6260
6367
|
/*
|
|
6261
6368
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6262
6369
|
* Licensed under the MIT License.
|
|
@@ -6266,7 +6373,7 @@ const CcsCredentialType = {
|
|
|
6266
6373
|
UPN: "UPN",
|
|
6267
6374
|
};
|
|
6268
6375
|
|
|
6269
|
-
/*! @azure/msal-common v16.
|
|
6376
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
6270
6377
|
/*
|
|
6271
6378
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6272
6379
|
* Licensed under the MIT License.
|
|
@@ -6285,7 +6392,8 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
|
|
|
6285
6392
|
}
|
|
6286
6393
|
}
|
|
6287
6394
|
|
|
6288
|
-
/*! @azure/msal-common v16.
|
|
6395
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
6396
|
+
|
|
6289
6397
|
/*
|
|
6290
6398
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6291
6399
|
* Licensed under the MIT License.
|
|
@@ -6304,10 +6412,11 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
6304
6412
|
sshKid: request.sshKid,
|
|
6305
6413
|
embeddedClientId: request.embeddedClientId || request.extraParameters?.clientId,
|
|
6306
6414
|
resource: request.resource,
|
|
6415
|
+
attributeTokens: serializeAttributeTokens(request.attributeTokens),
|
|
6307
6416
|
};
|
|
6308
6417
|
}
|
|
6309
6418
|
|
|
6310
|
-
/*! @azure/msal-common v16.
|
|
6419
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
6311
6420
|
|
|
6312
6421
|
/*
|
|
6313
6422
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6393,7 +6502,7 @@ class ThrottlingUtils {
|
|
|
6393
6502
|
}
|
|
6394
6503
|
}
|
|
6395
6504
|
|
|
6396
|
-
/*! @azure/msal-common v16.
|
|
6505
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
6397
6506
|
|
|
6398
6507
|
/*
|
|
6399
6508
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6424,7 +6533,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
6424
6533
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6425
6534
|
}
|
|
6426
6535
|
|
|
6427
|
-
/*! @azure/msal-common v16.
|
|
6536
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
6428
6537
|
|
|
6429
6538
|
/*
|
|
6430
6539
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6540,7 +6649,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
6540
6649
|
return response;
|
|
6541
6650
|
}
|
|
6542
6651
|
|
|
6543
|
-
/*! @azure/msal-common v16.
|
|
6652
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
6544
6653
|
|
|
6545
6654
|
/*
|
|
6546
6655
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6661,6 +6770,12 @@ class AuthorizationCodeClient {
|
|
|
6661
6770
|
// Add scope array, parameter builder will add default scopes and dedupe
|
|
6662
6771
|
addScopes(parameters, request.scopes, request.correlationId, true, this.oidcDefaultScopes);
|
|
6663
6772
|
addResource(parameters, request.resource);
|
|
6773
|
+
if (request.attributeTokens) {
|
|
6774
|
+
addAttributeTokens(parameters, request.attributeTokens);
|
|
6775
|
+
}
|
|
6776
|
+
this.performanceClient?.addFields({
|
|
6777
|
+
hasAttributeTokens: !!request.attributeTokens?.length,
|
|
6778
|
+
}, request.correlationId);
|
|
6664
6779
|
// add code: user set, not validated
|
|
6665
6780
|
addAuthorizationCode(parameters, request.code);
|
|
6666
6781
|
// Add library metadata
|
|
@@ -6797,7 +6912,7 @@ class AuthorizationCodeClient {
|
|
|
6797
6912
|
}
|
|
6798
6913
|
}
|
|
6799
6914
|
|
|
6800
|
-
/*! @azure/msal-common v16.
|
|
6915
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
6801
6916
|
|
|
6802
6917
|
/*
|
|
6803
6918
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7024,7 +7139,7 @@ function extractLoginHint(account) {
|
|
|
7024
7139
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7025
7140
|
}
|
|
7026
7141
|
|
|
7027
|
-
/*! @azure/msal-common v16.
|
|
7142
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
7028
7143
|
|
|
7029
7144
|
/*
|
|
7030
7145
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7045,7 +7160,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
7045
7160
|
return new JoseHeaderError(code, correlationId);
|
|
7046
7161
|
}
|
|
7047
7162
|
|
|
7048
|
-
/*! @azure/msal-common v16.
|
|
7163
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
7049
7164
|
/*
|
|
7050
7165
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7051
7166
|
* Licensed under the MIT License.
|
|
@@ -7053,7 +7168,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
7053
7168
|
const missingKidError = "missing_kid_error";
|
|
7054
7169
|
const missingAlgError = "missing_alg_error";
|
|
7055
7170
|
|
|
7056
|
-
/*! @azure/msal-common v16.
|
|
7171
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
7057
7172
|
|
|
7058
7173
|
/*
|
|
7059
7174
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7093,7 +7208,7 @@ class JoseHeader {
|
|
|
7093
7208
|
}
|
|
7094
7209
|
}
|
|
7095
7210
|
|
|
7096
|
-
/*! @azure/msal-common v16.
|
|
7211
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
7097
7212
|
|
|
7098
7213
|
/*
|
|
7099
7214
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7642,7 +7757,7 @@ class PerformanceClient {
|
|
|
7642
7757
|
}
|
|
7643
7758
|
}
|
|
7644
7759
|
|
|
7645
|
-
/*! @azure/msal-common v16.
|
|
7760
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
7646
7761
|
|
|
7647
7762
|
/*
|
|
7648
7763
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7803,6 +7918,12 @@ class RefreshTokenClient {
|
|
|
7803
7918
|
addServerTelemetry(parameters, this.serverTelemetryManager);
|
|
7804
7919
|
}
|
|
7805
7920
|
addRefreshToken(parameters, request.refreshToken);
|
|
7921
|
+
if (request.attributeTokens) {
|
|
7922
|
+
addAttributeTokens(parameters, request.attributeTokens);
|
|
7923
|
+
}
|
|
7924
|
+
this.performanceClient?.addFields({
|
|
7925
|
+
hasAttributeTokens: !!request.attributeTokens?.length,
|
|
7926
|
+
}, request.correlationId);
|
|
7806
7927
|
if (this.config.clientCredentials.clientSecret) {
|
|
7807
7928
|
addClientSecret(parameters, this.config.clientCredentials.clientSecret);
|
|
7808
7929
|
}
|
|
@@ -7863,7 +7984,7 @@ class RefreshTokenClient {
|
|
|
7863
7984
|
}
|
|
7864
7985
|
}
|
|
7865
7986
|
|
|
7866
|
-
/*! @azure/msal-common v16.
|
|
7987
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
7867
7988
|
|
|
7868
7989
|
/*
|
|
7869
7990
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8156,7 +8277,7 @@ class StubServerTelemetryManager extends ServerTelemetryManager {
|
|
|
8156
8277
|
clearNativeBrokerErrorCode() { }
|
|
8157
8278
|
}
|
|
8158
8279
|
|
|
8159
|
-
/*! @azure/msal-common v16.
|
|
8280
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
8160
8281
|
|
|
8161
8282
|
/*
|
|
8162
8283
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8264,7 +8385,7 @@ class SilentFlowClient {
|
|
|
8264
8385
|
}
|
|
8265
8386
|
}
|
|
8266
8387
|
|
|
8267
|
-
/*! @azure/msal-common v16.
|
|
8388
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
8268
8389
|
|
|
8269
8390
|
/*
|
|
8270
8391
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8280,7 +8401,7 @@ const StubbedNetworkModule = {
|
|
|
8280
8401
|
},
|
|
8281
8402
|
};
|
|
8282
8403
|
|
|
8283
|
-
/*! @azure/msal-common v16.
|
|
8404
|
+
/*! @azure/msal-common v16.12.0 2026-08-04 */
|
|
8284
8405
|
|
|
8285
8406
|
/*
|
|
8286
8407
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10783,7 +10904,7 @@ const EventType = {
|
|
|
10783
10904
|
|
|
10784
10905
|
/* eslint-disable header/header */
|
|
10785
10906
|
const name = "@azure/msal-browser";
|
|
10786
|
-
const version = "5.
|
|
10907
|
+
const version = "5.18.0";
|
|
10787
10908
|
|
|
10788
10909
|
/*
|
|
10789
10910
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11676,12 +11797,12 @@ class BrowserCacheManager extends CacheManager {
|
|
|
11676
11797
|
return parsedAccessToken;
|
|
11677
11798
|
}
|
|
11678
11799
|
/**
|
|
11679
|
-
*
|
|
11680
|
-
* @param accessToken
|
|
11800
|
+
* Set accessToken credential to the platform cache
|
|
11801
|
+
* @param accessToken - the access token entity to cache
|
|
11681
11802
|
*/
|
|
11682
|
-
async setAccessTokenCredential(accessToken, correlationId, kmsi) {
|
|
11803
|
+
async setAccessTokenCredential(accessToken, correlationId, kmsi, additionalCacheKeyHash) {
|
|
11683
11804
|
this.logger.trace("1pondb", correlationId);
|
|
11684
|
-
const accessTokenKey = this.generateCredentialKey(accessToken);
|
|
11805
|
+
const accessTokenKey = this.generateCredentialKey(accessToken, additionalCacheKeyHash);
|
|
11685
11806
|
const timestamp = Date.now().toString();
|
|
11686
11807
|
accessToken.lastUpdatedAt = timestamp;
|
|
11687
11808
|
await this.setUserData(accessTokenKey, JSON.stringify(accessToken), correlationId, timestamp, kmsi);
|
|
@@ -11991,11 +12112,13 @@ class BrowserCacheManager extends CacheManager {
|
|
|
11991
12112
|
}
|
|
11992
12113
|
/**
|
|
11993
12114
|
* Generate Credential Key. All changes to the key REQUIRE a schema version update.
|
|
11994
|
-
* Cache Key: msal.<schema_version>|<home_account_id>|<environment>|<credential_type>|<client_id or familyId>|<realm>|<scopes>|<scheme>
|
|
12115
|
+
* Cache Key: msal.<schema_version>|<home_account_id>|<environment>|<credential_type>|<client_id or familyId>|<realm>|<scopes>|<scheme>|<additional_cache_key_components_hash>
|
|
12116
|
+
*
|
|
11995
12117
|
* @param credentialEntity
|
|
12118
|
+
* @param hash - optional precomputed hash of additionalCacheKeyComponents
|
|
11996
12119
|
* @returns
|
|
11997
12120
|
*/
|
|
11998
|
-
generateCredentialKey(credential) {
|
|
12121
|
+
generateCredentialKey(credential, additionalCacheKeyHash) {
|
|
11999
12122
|
const familyId = (credential.credentialType ===
|
|
12000
12123
|
CredentialType.REFRESH_TOKEN &&
|
|
12001
12124
|
credential.familyId) ||
|
|
@@ -12015,6 +12138,12 @@ class BrowserCacheManager extends CacheManager {
|
|
|
12015
12138
|
credential.target || "",
|
|
12016
12139
|
scheme,
|
|
12017
12140
|
];
|
|
12141
|
+
// Append precomputed component-hash segment.
|
|
12142
|
+
if (credential.additionalCacheKeyComponents &&
|
|
12143
|
+
Object.keys(credential.additionalCacheKeyComponents).length > 0 &&
|
|
12144
|
+
additionalCacheKeyHash) {
|
|
12145
|
+
credentialKey.push(additionalCacheKeyHash);
|
|
12146
|
+
}
|
|
12018
12147
|
return credentialKey.join(CACHE_KEY_SEPARATOR).toLowerCase();
|
|
12019
12148
|
}
|
|
12020
12149
|
/**
|
|
@@ -13343,13 +13472,18 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13343
13472
|
* @returns CommonSilentFlowRequest
|
|
13344
13473
|
*/
|
|
13345
13474
|
createSilentCacheRequest(request, cachedAccount) {
|
|
13346
|
-
|
|
13475
|
+
const silentRequest = {
|
|
13347
13476
|
authority: request.authority,
|
|
13348
13477
|
correlationId: this.correlationId,
|
|
13349
13478
|
scopes: ScopeSet.fromString(request.scope, this.correlationId).asArray(),
|
|
13350
13479
|
account: cachedAccount,
|
|
13351
13480
|
forceRefresh: false,
|
|
13352
13481
|
};
|
|
13482
|
+
// Preserve FMI partition semantics for silent cache filtering.
|
|
13483
|
+
if (request.attributeTokens) {
|
|
13484
|
+
silentRequest.attributeTokens = request.attributeTokens.split(" ");
|
|
13485
|
+
}
|
|
13486
|
+
return silentRequest;
|
|
13353
13487
|
}
|
|
13354
13488
|
/**
|
|
13355
13489
|
* Fetches the tokens from the cache if un-expired
|
|
@@ -13675,7 +13809,12 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13675
13809
|
: response.expires_in) || 0;
|
|
13676
13810
|
const tokenExpirationSeconds = reqTimestamp + expiresIn;
|
|
13677
13811
|
const responseScopes = this.generateScopes(response.scope, request.scope);
|
|
13678
|
-
const
|
|
13812
|
+
const additionalCacheKeyComponents = request.attributeTokens
|
|
13813
|
+
? {
|
|
13814
|
+
attribute_tokens: request.attributeTokens,
|
|
13815
|
+
}
|
|
13816
|
+
: undefined;
|
|
13817
|
+
const cachedAccessToken = createAccessTokenEntity(homeAccountIdentifier, environment, response.access_token, request.clientId, idTokenClaims.tid || tenantId, responseScopes.printScopes(), tokenExpirationSeconds, 0, base64Decode, request.correlationId, undefined, request.tokenType, undefined, request.keyId, additionalCacheKeyComponents);
|
|
13679
13818
|
// save idtoken credential in configured browser storage
|
|
13680
13819
|
if (!!cachedIdToken && storeInCache?.idToken !== false) {
|
|
13681
13820
|
await this.browserStorage.setIdTokenCredential(cachedIdToken, this.correlationId, isKmsi(idTokenClaims));
|
|
@@ -13756,11 +13895,18 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13756
13895
|
const configClaims = request.skipBrokerClaims && !!request.embeddedClientId
|
|
13757
13896
|
? undefined
|
|
13758
13897
|
: this.config.auth.clientCapabilities;
|
|
13759
|
-
|
|
13898
|
+
/*
|
|
13899
|
+
* scopes are expected to be received by the native broker as "scope" and will be added to the request below. Other properties that should be dropped from the request to the native broker can be included in the object destructuring here.
|
|
13900
|
+
* attributeTokens is destructured out because PlatformAuthRequest represents it as a pre-serialized string, not the caller-provided Array<string>.
|
|
13901
|
+
*/
|
|
13760
13902
|
const { scopes, claims } = request;
|
|
13761
13903
|
const scopeSet = new ScopeSet(scopes || [], this.correlationId);
|
|
13762
13904
|
scopeSet.appendScopes(OIDC_DEFAULT_SCOPES$1);
|
|
13763
13905
|
const mergedClaims = buildMergedClaims$1(claims, configClaims?.length ? configClaims : undefined);
|
|
13906
|
+
const hasAttributeTokens = !!request.attributeTokens?.length;
|
|
13907
|
+
this.performanceClient?.addFields({
|
|
13908
|
+
hasAttributeTokens,
|
|
13909
|
+
}, this.correlationId);
|
|
13764
13910
|
const validatedRequest = {
|
|
13765
13911
|
claims: mergedClaims,
|
|
13766
13912
|
accountId: this.accountId,
|
|
@@ -13787,6 +13933,10 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
13787
13933
|
shrClaims: request.shrClaims,
|
|
13788
13934
|
shrNonce: request.shrNonce,
|
|
13789
13935
|
};
|
|
13936
|
+
if (hasAttributeTokens) {
|
|
13937
|
+
validatedRequest.attributeTokens =
|
|
13938
|
+
serializeAttributeTokens(request.attributeTokens);
|
|
13939
|
+
}
|
|
13790
13940
|
// Check for PoP token requests: signPopToken should only be set to true if popKid is not set
|
|
13791
13941
|
if (validatedRequest.signPopToken && !!request.popKid) {
|
|
13792
13942
|
throw createBrowserAuthError(invalidPopTokenRequest, this.correlationId);
|
|
@@ -17436,21 +17586,32 @@ class StandardController {
|
|
|
17436
17586
|
// Create idToken entity and store in browser storage
|
|
17437
17587
|
const idTokenEntity = createIdTokenEntity(result.account.homeAccountId, result.account.environment, result.idToken, this.config.auth.clientId, result.tenantId);
|
|
17438
17588
|
// Create accessToken entity and store in native internal storage
|
|
17589
|
+
const attributeTokenPartition = serializeAttributeTokens(request.attributeTokens);
|
|
17590
|
+
const additionalCacheKeyComponents = attributeTokenPartition
|
|
17591
|
+
? {
|
|
17592
|
+
attribute_tokens: attributeTokenPartition,
|
|
17593
|
+
}
|
|
17594
|
+
: undefined;
|
|
17439
17595
|
const accessTokenEntity = createAccessTokenEntity(result.account.homeAccountId, result.account.environment, result.accessToken, this.config.auth.clientId, result.tenantId, result.scopes.join(" "), result.expiresOn
|
|
17440
17596
|
? toSecondsFromDate(result.expiresOn)
|
|
17441
17597
|
: 0, result.extExpiresOn
|
|
17442
17598
|
? toSecondsFromDate(result.extExpiresOn)
|
|
17443
17599
|
: 0, base64Decode, request.correlationId || "", undefined, // refreshOn
|
|
17444
17600
|
result.tokenType, undefined, // userAssertionHash
|
|
17445
|
-
request.sshKid);
|
|
17601
|
+
request.sshKid, additionalCacheKeyComponents);
|
|
17446
17602
|
if (request.resource) {
|
|
17447
17603
|
accessTokenEntity.resource = request.resource;
|
|
17448
17604
|
}
|
|
17605
|
+
// Get attribute token partition hash for cache key isolation
|
|
17606
|
+
const components = additionalCacheKeyComponents;
|
|
17607
|
+
const additionalCacheKeyHash = components
|
|
17608
|
+
? await this.browserCrypto.hashString(JSON.stringify(components))
|
|
17609
|
+
: undefined;
|
|
17449
17610
|
const kmsi = isKmsi(result.idTokenClaims);
|
|
17450
17611
|
// Store idToken in browser storage
|
|
17451
17612
|
await this.browserStorage.setIdTokenCredential(idTokenEntity, result.correlationId, kmsi);
|
|
17452
17613
|
// Store accessToken in native internal storage
|
|
17453
|
-
await this.nativeInternalStorage.setAccessTokenCredential(accessTokenEntity, result.correlationId, kmsi);
|
|
17614
|
+
await this.nativeInternalStorage.setAccessTokenCredential(accessTokenEntity, result.correlationId, kmsi, additionalCacheKeyHash);
|
|
17454
17615
|
}
|
|
17455
17616
|
else {
|
|
17456
17617
|
return this.browserStorage.hydrateCache(result, request);
|
|
@@ -18174,6 +18335,7 @@ class NestedAppAuthAdapter {
|
|
|
18174
18335
|
const correlationId = request.correlationId || this.crypto.createNewGuid();
|
|
18175
18336
|
const claims = buildMergedClaims$1(request.claims, this.clientCapabilities);
|
|
18176
18337
|
const scopes = request.scopes || OIDC_DEFAULT_SCOPES$1;
|
|
18338
|
+
const attributeTokens = serializeAttributeTokens(request.attributeTokens);
|
|
18177
18339
|
const tokenRequest = {
|
|
18178
18340
|
platformBrokerId: request.account?.homeAccountId,
|
|
18179
18341
|
clientId: this.clientId,
|
|
@@ -18186,6 +18348,7 @@ class NestedAppAuthAdapter {
|
|
|
18186
18348
|
authenticationScheme: request.authenticationScheme ||
|
|
18187
18349
|
AuthenticationScheme$1.BEARER,
|
|
18188
18350
|
extraParameters: extraParams,
|
|
18351
|
+
attributeTokens,
|
|
18189
18352
|
};
|
|
18190
18353
|
return tokenRequest;
|
|
18191
18354
|
}
|