@azure/msal-browser 5.19.0 → 5.21.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.
Files changed (267) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  4. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  5. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  7. package/dist/cache/AccountManager.mjs +1 -1
  8. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  9. package/dist/cache/BrowserCacheManager.mjs +6 -6
  10. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  11. package/dist/cache/CacheHelpers.mjs +1 -1
  12. package/dist/cache/CacheKeys.mjs +1 -1
  13. package/dist/cache/CookieStorage.mjs +1 -1
  14. package/dist/cache/DatabaseStorage.mjs +1 -1
  15. package/dist/cache/EncryptedData.mjs +1 -1
  16. package/dist/cache/LocalStorage.mjs +15 -5
  17. package/dist/cache/LocalStorage.mjs.map +1 -1
  18. package/dist/cache/MemoryStorage.mjs +1 -1
  19. package/dist/cache/SessionStorage.mjs +1 -1
  20. package/dist/cache/TokenCache.mjs +3 -2
  21. package/dist/cache/TokenCache.mjs.map +1 -1
  22. package/dist/config/Configuration.mjs +1 -1
  23. package/dist/controllers/NestedAppAuthController.mjs +8 -4
  24. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  25. package/dist/controllers/StandardController.mjs +4 -4
  26. package/dist/controllers/StandardController.mjs.map +1 -1
  27. package/dist/crypto/BrowserCrypto.mjs +1 -1
  28. package/dist/crypto/CryptoOps.mjs +1 -1
  29. package/dist/crypto/PkceGenerator.mjs +1 -1
  30. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  31. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  32. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  33. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  34. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
  35. package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  36. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  37. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  38. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  39. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  40. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  41. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  42. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  43. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  44. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  50. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  51. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  52. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  53. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  54. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  55. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  56. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  57. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  58. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  59. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  60. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  61. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  62. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  63. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  64. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  65. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  66. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  67. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  68. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  69. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  70. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  71. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  72. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  73. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  74. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  75. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  76. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  77. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  78. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  79. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  80. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  81. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  82. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  83. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  84. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  85. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  86. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  87. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  88. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  89. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  90. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  91. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  92. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  93. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  94. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  95. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  96. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  97. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  98. package/dist/custom_auth/index.mjs +1 -1
  99. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  100. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  101. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  102. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  103. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  104. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  105. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  106. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  107. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  108. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  109. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  110. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  111. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  112. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  113. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  114. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  115. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  116. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  117. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  118. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  119. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  120. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  121. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  122. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  123. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  124. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  125. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  126. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  127. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  128. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  129. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  130. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  131. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  132. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  133. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  134. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  135. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  136. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  137. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  138. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  139. package/dist/encode/Base64Decode.mjs +1 -1
  140. package/dist/encode/Base64Encode.mjs +1 -1
  141. package/dist/error/BrowserAuthError.mjs +1 -1
  142. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  143. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  144. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  145. package/dist/error/NativeAuthError.mjs +1 -1
  146. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  147. package/dist/error/NestedAppAuthError.mjs +1 -1
  148. package/dist/event/EventHandler.mjs +1 -1
  149. package/dist/event/EventMessage.mjs +1 -1
  150. package/dist/event/EventType.mjs +1 -1
  151. package/dist/index.mjs +1 -1
  152. package/dist/index.mjs.map +1 -1
  153. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  154. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  155. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  156. package/dist/interaction_client/PopupClient.mjs +7 -3
  157. package/dist/interaction_client/PopupClient.mjs.map +1 -1
  158. package/dist/interaction_client/RedirectClient.mjs +6 -1
  159. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  160. package/dist/interaction_client/SilentAuthCodeClient.mjs +4 -1
  161. package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
  162. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  163. package/dist/interaction_client/SilentIframeClient.mjs +6 -3
  164. package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
  165. package/dist/interaction_client/SilentRefreshClient.mjs +4 -2
  166. package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
  167. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  168. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  169. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  170. package/dist/log-strings-mapping.json +2 -2
  171. package/dist/naa/BridgeError.mjs +1 -1
  172. package/dist/naa/BridgeProxy.mjs +1 -1
  173. package/dist/naa/BridgeStatusCode.mjs +1 -1
  174. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  175. package/dist/navigation/NavigationClient.mjs +1 -1
  176. package/dist/network/FetchClient.mjs +1 -1
  177. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  178. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  179. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  180. package/dist/packageMetadata.mjs +2 -2
  181. package/dist/popup_relay/constants.mjs +1 -1
  182. package/dist/popup_relay/index.mjs +151 -14
  183. package/dist/popup_relay/index.mjs.map +1 -1
  184. package/dist/popup_relay/relayClient.mjs +1 -1
  185. package/dist/protocol/Authorize.mjs +10 -16
  186. package/dist/protocol/Authorize.mjs.map +1 -1
  187. package/dist/redirect_bridge/index.mjs +1 -1
  188. package/dist/request/RequestHelpers.mjs +63 -10
  189. package/dist/request/RequestHelpers.mjs.map +1 -1
  190. package/dist/response/ResponseHandler.mjs +1 -1
  191. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  192. package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
  193. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  194. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  195. package/dist/utils/BrowserConstants.mjs +1 -1
  196. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  197. package/dist/utils/BrowserUtils.mjs +1 -1
  198. package/dist/utils/Helpers.mjs +1 -1
  199. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  200. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  201. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  202. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  203. package/lib/custom-auth-path/log-strings-mapping.json +2 -2
  204. package/lib/custom-auth-path/msal-custom-auth.cjs +580 -277
  205. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  206. package/lib/custom-auth-path/msal-custom-auth.js +580 -277
  207. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  208. package/lib/log-strings-mapping.json +2 -2
  209. package/lib/msal-browser.cjs +455 -150
  210. package/lib/msal-browser.cjs.map +1 -1
  211. package/lib/msal-browser.js +455 -150
  212. package/lib/msal-browser.js.map +1 -1
  213. package/lib/msal-browser.min.js +2 -2
  214. package/lib/popup-relay/msal-popup-relay.cjs +152 -15
  215. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  216. package/lib/popup-relay/msal-popup-relay.js +152 -15
  217. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  218. package/lib/popup-relay/msal-popup-relay.min.js +2 -2
  219. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  220. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  221. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  222. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  223. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  224. package/package.json +2 -2
  225. package/src/cache/BrowserCacheManager.ts +12 -4
  226. package/src/cache/LocalStorage.ts +14 -4
  227. package/src/cache/TokenCache.ts +3 -1
  228. package/src/controllers/NestedAppAuthController.ts +10 -2
  229. package/src/controllers/StandardController.ts +8 -3
  230. package/src/controllers/UnknownOperatingContextController.ts +11 -2
  231. package/src/index.ts +1 -0
  232. package/src/interaction_client/PopupClient.ts +19 -2
  233. package/src/interaction_client/RedirectClient.ts +15 -0
  234. package/src/interaction_client/SilentAuthCodeClient.ts +8 -0
  235. package/src/interaction_client/SilentIframeClient.ts +11 -5
  236. package/src/interaction_client/SilentRefreshClient.ts +11 -1
  237. package/src/packageMetadata.ts +1 -1
  238. package/src/popup_relay/index.ts +202 -20
  239. package/src/protocol/Authorize.ts +12 -28
  240. package/src/request/RequestHelpers.ts +109 -15
  241. package/src/webBrokerBridge/adapter/CrossVersionRequestAdapter.ts +186 -0
  242. package/src/webBrokerBridge/index.ts +11 -0
  243. package/types/cache/BrowserCacheManager.d.ts +3 -3
  244. package/types/cache/BrowserCacheManager.d.ts.map +1 -1
  245. package/types/cache/LocalStorage.d.ts.map +1 -1
  246. package/types/cache/TokenCache.d.ts.map +1 -1
  247. package/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  248. package/types/controllers/StandardController.d.ts.map +1 -1
  249. package/types/controllers/UnknownOperatingContextController.d.ts.map +1 -1
  250. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  251. package/types/index.d.ts +2 -0
  252. package/types/index.d.ts.map +1 -1
  253. package/types/interaction_client/PopupClient.d.ts.map +1 -1
  254. package/types/interaction_client/RedirectClient.d.ts.map +1 -1
  255. package/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  256. package/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
  257. package/types/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  258. package/types/packageMetadata.d.ts +1 -1
  259. package/types/popup_relay/index.d.ts +27 -3
  260. package/types/popup_relay/index.d.ts.map +1 -1
  261. package/types/protocol/Authorize.d.ts.map +1 -1
  262. package/types/request/RequestHelpers.d.ts +11 -1
  263. package/types/request/RequestHelpers.d.ts.map +1 -1
  264. package/types/webBrokerBridge/adapter/CrossVersionRequestAdapter.d.ts +66 -0
  265. package/types/webBrokerBridge/adapter/CrossVersionRequestAdapter.d.ts.map +1 -0
  266. package/types/webBrokerBridge/index.d.ts +2 -0
  267. package/types/webBrokerBridge/index.d.ts.map +1 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.19.0 2026-08-18 */
1
+ /*! @azure/msal-browser v5.21.0 2026-09-02 */
2
2
  'use strict';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -6,7 +6,7 @@
6
6
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
7
7
  })(this, (function (exports) { 'use strict';
8
8
 
9
- /*! @azure/msal-common v16.13.0 2026-08-18 */
9
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
12
12
  * Licensed under the MIT License.
@@ -43,6 +43,7 @@
43
43
  const CLIENT_ASSERTION_TYPE = "client_assertion_type";
44
44
  const TOKEN_TYPE = "token_type";
45
45
  const REQ_CNF = "req_cnf";
46
+ const DPOP_JKT = "dpop_jkt";
46
47
  const RETURN_SPA_CODE = "return_spa_code";
47
48
  const NATIVE_BROKER = "nativebroker";
48
49
  const LOGOUT_HINT = "logout_hint";
@@ -59,7 +60,7 @@
59
60
  const CLI_DATA = "clidata";
60
61
  const ATTRIBUTE_TOKENS = "attribute_tokens";
61
62
 
62
- /*! @azure/msal-common v16.13.0 2026-08-18 */
63
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
63
64
  /*
64
65
  * Copyright (c) Microsoft Corporation. All rights reserved.
65
66
  * Licensed under the MIT License.
@@ -71,7 +72,6 @@
71
72
  const DEFAULT_COMMON_TENANT = "common";
72
73
  // ADFS String
73
74
  const ADFS = "adfs";
74
- const DSTS = "dstsv2";
75
75
  // Default AAD Instance Discovery Endpoint
76
76
  const AAD_INSTANCE_DISCOVERY_ENDPT = `${DEFAULT_AUTHORITY}discovery/instance?api-version=1.1&authorization_endpoint=`;
77
77
  // CIAM URL
@@ -124,6 +124,7 @@
124
124
  const HeaderNames = {
125
125
  CONTENT_TYPE: "Content-Type",
126
126
  CONTENT_LENGTH: "Content-Length",
127
+ DPOP: "DPoP",
127
128
  RETRY_AFTER: "Retry-After",
128
129
  CCS_HEADER: "X-AnchorMailbox",
129
130
  WWWAuthenticate: "WWW-Authenticate",
@@ -154,6 +155,7 @@
154
155
  ID_TOKEN: "id_token",
155
156
  SIGNIN_STATE: "signin_state",
156
157
  LOGIN_HINT: "login_hint",
158
+ TENANT_REGION_SUB_SCOPE: "tenant_region_sub_scope",
157
159
  };
158
160
  /**
159
161
  * we considered making this "enum" in the request instead of string, however it looks like the allowed list of
@@ -238,6 +240,7 @@
238
240
  const AuthenticationScheme$1 = {
239
241
  BEARER: "Bearer",
240
242
  POP: "pop",
243
+ DPOP: "DPoP",
241
244
  SSH: "ssh-cert",
242
245
  };
243
246
  /**
@@ -296,7 +299,7 @@
296
299
  // Token renewal offset default in seconds
297
300
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
298
301
 
299
- /*! @azure/msal-common v16.13.0 2026-08-18 */
302
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
300
303
  /*
301
304
  * Copyright (c) Microsoft Corporation. All rights reserved.
302
305
  * Licensed under the MIT License.
@@ -325,7 +328,7 @@
325
328
  return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
326
329
  }
327
330
 
328
- /*! @azure/msal-common v16.13.0 2026-08-18 */
331
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
329
332
 
330
333
  /*
331
334
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -348,7 +351,7 @@
348
351
  return new ClientAuthError(errorCode, correlationId, additionalMessage);
349
352
  }
350
353
 
351
- /*! @azure/msal-common v16.13.0 2026-08-18 */
354
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
352
355
  /*
353
356
  * Copyright (c) Microsoft Corporation. All rights reserved.
354
357
  * Licensed under the MIT License.
@@ -377,6 +380,7 @@
377
380
  const noAccountFound = "no_account_found";
378
381
  const noCryptoObject = "no_crypto_object";
379
382
  const unexpectedCredentialType = "unexpected_credential_type";
383
+ const dpopTokenTypeMismatch = "dpop_token_type_mismatch";
380
384
  const tokenRefreshRequired = "token_refresh_required";
381
385
  const tokenClaimsCnfRequiredForSignedJwt = "token_claims_cnf_required_for_signedjwt";
382
386
  const authorizationCodeMissingFromServerResponse = "authorization_code_missing_from_server_response";
@@ -399,6 +403,7 @@
399
403
  cannotRemoveEmptyScope: cannotRemoveEmptyScope,
400
404
  clientInfoDecodingError: clientInfoDecodingError,
401
405
  clientInfoEmptyError: clientInfoEmptyError,
406
+ dpopTokenTypeMismatch: dpopTokenTypeMismatch,
402
407
  emptyInputScopeSet: emptyInputScopeSet,
403
408
  endSessionEndpointNotSupported: endSessionEndpointNotSupported,
404
409
  endpointResolutionError: endpointResolutionError,
@@ -432,7 +437,7 @@
432
437
  userCanceled: userCanceled
433
438
  });
434
439
 
435
- /*! @azure/msal-common v16.13.0 2026-08-18 */
440
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
436
441
 
437
442
  /*
438
443
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -470,7 +475,7 @@
470
475
  };
471
476
  }
472
477
 
473
- /*! @azure/msal-common v16.13.0 2026-08-18 */
478
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
474
479
 
475
480
  /*
476
481
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -536,7 +541,7 @@
536
541
  return matches[2];
537
542
  }
538
543
 
539
- /*! @azure/msal-common v16.13.0 2026-08-18 */
544
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
540
545
 
541
546
  /*
542
547
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -624,7 +629,7 @@
624
629
  return updatedAccountInfo;
625
630
  }
626
631
 
627
- /*! @azure/msal-common v16.13.0 2026-08-18 */
632
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
628
633
  /*
629
634
  * Copyright (c) Microsoft Corporation. All rights reserved.
630
635
  * Licensed under the MIT License.
@@ -635,11 +640,10 @@
635
640
  const AuthorityType = {
636
641
  Default: 0,
637
642
  Adfs: 1,
638
- Dsts: 2,
639
643
  Ciam: 3,
640
644
  };
641
645
 
642
- /*! @azure/msal-common v16.13.0 2026-08-18 */
646
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
643
647
  /*
644
648
  * Copyright (c) Microsoft Corporation. All rights reserved.
645
649
  * Licensed under the MIT License.
@@ -661,7 +665,7 @@
661
665
  return null;
662
666
  }
663
667
 
664
- /*! @azure/msal-common v16.13.0 2026-08-18 */
668
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
665
669
  /*
666
670
  * Copyright (c) Microsoft Corporation. All rights reserved.
667
671
  * Licensed under the MIT License.
@@ -685,7 +689,7 @@
685
689
  EAR: "EAR",
686
690
  };
687
691
 
688
- /*! @azure/msal-common v16.13.0 2026-08-18 */
692
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
689
693
  /**
690
694
  * Returns the AccountInfo interface for this account.
691
695
  * @internal
@@ -840,8 +844,8 @@
840
844
  * @param authType
841
845
  */
842
846
  function generateHomeAccountId(serverClientInfo, authType, logger, cryptoObj, correlationId, idTokenClaims) {
843
- // since ADFS/DSTS do not have tid and does not set client_info
844
- if (!(authType === AuthorityType.Adfs || authType === AuthorityType.Dsts)) {
847
+ // ADFS does not have tid and does not set client_info
848
+ if (authType !== AuthorityType.Adfs) {
845
849
  // for cases where there is clientInfo
846
850
  if (serverClientInfo) {
847
851
  try {
@@ -874,7 +878,7 @@
874
878
  entity.hasOwnProperty("authorityType"));
875
879
  }
876
880
 
877
- /*! @azure/msal-common v16.13.0 2026-08-18 */
881
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
878
882
  /*
879
883
  * Copyright (c) Microsoft Corporation. All rights reserved.
880
884
  * Licensed under the MIT License.
@@ -891,7 +895,7 @@
891
895
  unexpectedError: unexpectedError
892
896
  });
893
897
 
894
- /*! @azure/msal-common v16.13.0 2026-08-18 */
898
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
895
899
 
896
900
  /*
897
901
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -911,7 +915,7 @@
911
915
  return new ClientConfigurationError(errorCode, correlationId);
912
916
  }
913
917
 
914
- /*! @azure/msal-common v16.13.0 2026-08-18 */
918
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
915
919
  /*
916
920
  * Copyright (c) Microsoft Corporation. All rights reserved.
917
921
  * Licensed under the MIT License.
@@ -943,7 +947,9 @@
943
947
  const issuerValidationFailed = "issuer_validation_failed";
944
948
  const invalidResponseMode = "invalid_response_mode";
945
949
  const invalidDpopHtm = "invalid_dpop_htm";
946
- const invalidDpopHtu = "invalid_dpop_htu";
950
+ const invalidDpopHtu = "invalid_dpop_htu";
951
+ const invalidDpopNonce = "invalid_dpop_nonce";
952
+ const dpopMissingResourceContext = "dpop_missing_resource_context";
947
953
 
948
954
  var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
949
955
  __proto__: null,
@@ -952,6 +958,7 @@
952
958
  cannotAllowPlatformBroker: cannotAllowPlatformBroker,
953
959
  cannotSetOIDCOptions: cannotSetOIDCOptions,
954
960
  claimsRequestParsingError: claimsRequestParsingError,
961
+ dpopMissingResourceContext: dpopMissingResourceContext,
955
962
  emptyInputScopesError: emptyInputScopesError,
956
963
  invalidAuthenticationHeader: invalidAuthenticationHeader,
957
964
  invalidAuthorityMetadata: invalidAuthorityMetadata,
@@ -960,6 +967,7 @@
960
967
  invalidCodeChallengeMethod: invalidCodeChallengeMethod,
961
968
  invalidDpopHtm: invalidDpopHtm,
962
969
  invalidDpopHtu: invalidDpopHtu,
970
+ invalidDpopNonce: invalidDpopNonce,
963
971
  invalidPlatformBrokerConfiguration: invalidPlatformBrokerConfiguration,
964
972
  invalidRequestMethodForEAR: invalidRequestMethodForEAR,
965
973
  invalidResponseMode: invalidResponseMode,
@@ -977,7 +985,7 @@
977
985
  urlParseError: urlParseError
978
986
  });
979
987
 
980
- /*! @azure/msal-common v16.13.0 2026-08-18 */
988
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
981
989
 
982
990
  /*
983
991
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1035,7 +1043,7 @@
1035
1043
  }
1036
1044
  }
1037
1045
 
1038
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1046
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
1039
1047
  /*
1040
1048
  * Copyright (c) Microsoft Corporation. All rights reserved.
1041
1049
  * Licensed under the MIT License.
@@ -1047,7 +1055,7 @@
1047
1055
  response.hasOwnProperty("jwks_uri"));
1048
1056
  }
1049
1057
 
1050
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1058
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
1051
1059
  /*
1052
1060
  * Copyright (c) Microsoft Corporation. All rights reserved.
1053
1061
  * Licensed under the MIT License.
@@ -1127,7 +1135,7 @@
1127
1135
  }
1128
1136
  }
1129
1137
 
1130
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1138
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
1131
1139
 
1132
1140
  /*
1133
1141
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1285,7 +1293,7 @@
1285
1293
  }
1286
1294
  }
1287
1295
 
1288
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1296
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
1289
1297
 
1290
1298
  /*
1291
1299
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1368,15 +1376,6 @@
1368
1376
  preferred_cache: "login.sovcloud-identity.sg",
1369
1377
  aliases: ["login.sovcloud-identity.sg"],
1370
1378
  },
1371
- {
1372
- preferred_network: "login.windows-ppe.net",
1373
- preferred_cache: "login.windows-ppe.net",
1374
- aliases: [
1375
- "login.windows-ppe.net",
1376
- "sts.windows-ppe.net",
1377
- "login.microsoft-ppe.com",
1378
- ],
1379
- },
1380
1379
  ],
1381
1380
  },
1382
1381
  };
@@ -1448,7 +1447,7 @@
1448
1447
  return null;
1449
1448
  }
1450
1449
 
1451
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1450
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
1452
1451
  /*
1453
1452
  * Copyright (c) Microsoft Corporation. All rights reserved.
1454
1453
  * Licensed under the MIT License.
@@ -1458,8 +1457,6 @@
1458
1457
  None: "none",
1459
1458
  // Microsoft Azure public cloud
1460
1459
  AzurePublic: "https://login.microsoftonline.com",
1461
- // Microsoft PPE
1462
- AzurePpe: "https://login.windows-ppe.net",
1463
1460
  // Microsoft Chinese national/regional cloud
1464
1461
  AzureChina: "https://login.chinacloudapi.cn",
1465
1462
  // Microsoft German national/regional cloud ("Black Forest")
@@ -1468,7 +1465,7 @@
1468
1465
  AzureUsGovernment: "https://login.microsoftonline.us",
1469
1466
  };
1470
1467
 
1471
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1468
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
1472
1469
  /*
1473
1470
  * Copyright (c) Microsoft Corporation. All rights reserved.
1474
1471
  * Licensed under the MIT License.
@@ -1478,7 +1475,7 @@
1478
1475
  response.hasOwnProperty("metadata"));
1479
1476
  }
1480
1477
 
1481
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1478
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
1482
1479
  /*
1483
1480
  * Copyright (c) Microsoft Corporation. All rights reserved.
1484
1481
  * Licensed under the MIT License.
@@ -1488,7 +1485,7 @@
1488
1485
  response.hasOwnProperty("error_description"));
1489
1486
  }
1490
1487
 
1491
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1488
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
1492
1489
  /*
1493
1490
  * Copyright (c) Microsoft Corporation. All rights reserved.
1494
1491
  * Licensed under the MIT License.
@@ -1559,7 +1556,7 @@
1559
1556
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
1560
1557
  const SetUserData = "setUserData";
1561
1558
 
1562
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1559
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
1563
1560
  /*
1564
1561
  * Copyright (c) Microsoft Corporation. All rights reserved.
1565
1562
  * Licensed under the MIT License.
@@ -1652,7 +1649,7 @@
1652
1649
  };
1653
1650
  };
1654
1651
 
1655
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1652
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
1656
1653
 
1657
1654
  /*
1658
1655
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1763,7 +1760,7 @@
1763
1760
  },
1764
1761
  };
1765
1762
 
1766
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1763
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
1767
1764
  /*
1768
1765
  * Copyright (c) Microsoft Corporation. All rights reserved.
1769
1766
  * Licensed under the MIT License.
@@ -1828,7 +1825,7 @@
1828
1825
  return cachedAtSec > nowSeconds();
1829
1826
  }
1830
1827
 
1831
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1828
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
1832
1829
 
1833
1830
  /*
1834
1831
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2115,7 +2112,7 @@
2115
2112
  return [...attributeTokens].sort().join(" ");
2116
2113
  }
2117
2114
 
2118
- /*! @azure/msal-common v16.13.0 2026-08-18 */
2115
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
2119
2116
 
2120
2117
  /*
2121
2118
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2159,8 +2156,6 @@
2159
2156
  switch (pathSegments[0].toLowerCase()) {
2160
2157
  case ADFS:
2161
2158
  return AuthorityType.Adfs;
2162
- case DSTS:
2163
- return AuthorityType.Dsts;
2164
2159
  }
2165
2160
  }
2166
2161
  return AuthorityType.Default;
@@ -3085,7 +3080,7 @@
3085
3080
  };
3086
3081
  }
3087
3082
 
3088
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3083
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
3089
3084
 
3090
3085
  /*
3091
3086
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3119,7 +3114,7 @@
3119
3114
  }
3120
3115
  }
3121
3116
 
3122
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3117
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
3123
3118
 
3124
3119
  /*
3125
3120
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3315,7 +3310,7 @@
3315
3310
  }
3316
3311
  }
3317
3312
 
3318
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3313
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
3319
3314
 
3320
3315
  /*
3321
3316
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3609,11 +3604,15 @@
3609
3604
  }
3610
3605
  /**
3611
3606
  * Default optional idToken claims requested on all auth requests.
3612
- * signin_state enables KMSI detection; login_hint enables login hint propagation.
3607
+ * signin_state enables KMSI detection; login_hint enables login hint propagation;
3608
+ * tenant_region_sub_scope identifies the sovereign enclave a tenant belongs to.
3613
3609
  */
3614
3610
  const DEFAULT_ID_TOKEN_CLAIMS = {
3615
3611
  [ClaimsRequestKeys.SIGNIN_STATE]: { essential: false },
3616
3612
  [ClaimsRequestKeys.LOGIN_HINT]: { essential: false },
3613
+ [ClaimsRequestKeys.TENANT_REGION_SUB_SCOPE]: {
3614
+ essential: false,
3615
+ },
3617
3616
  };
3618
3617
  /**
3619
3618
  * Parses a claims JSON string into an object, throwing a ClientConfigurationError
@@ -3672,8 +3671,8 @@
3672
3671
  /**
3673
3672
  * Parses claims JSON, optionally deep-merges a second client-originated claims string
3674
3673
  * (`claimsToMerge`, e.g. `claimsFromClient`) with precedence on conflicting keys, merges
3675
- * default optional idToken claims (signin_state, login_hint), and appends client
3676
- * capabilities (xms_cc) to the access_token section.
3674
+ * default optional idToken claims (signin_state, login_hint, tenant_region_sub_scope), and appends client
3675
+ * capabilities (xms_cc) to the access_token section
3677
3676
  * Does not overwrite idToken claims already specified by the caller.
3678
3677
  * @param claims - Existing claims JSON string from the request (may be undefined)
3679
3678
  * @param clientCapabilities - Client capabilities array from configuration
@@ -3797,7 +3796,7 @@
3797
3796
  }
3798
3797
  }
3799
3798
 
3800
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3799
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
3801
3800
 
3802
3801
  /*
3803
3802
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3919,7 +3918,7 @@
3919
3918
  }
3920
3919
  }
3921
3920
 
3922
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3921
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
3923
3922
 
3924
3923
  /*
3925
3924
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3967,7 +3966,7 @@
3967
3966
  },
3968
3967
  };
3969
3968
 
3970
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3969
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
3971
3970
 
3972
3971
  /*
3973
3972
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3990,7 +3989,7 @@
3990
3989
  },
3991
3990
  };
3992
3991
 
3993
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3992
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
3994
3993
  /*
3995
3994
  * Copyright (c) Microsoft Corporation. All rights reserved.
3996
3995
  * Licensed under the MIT License.
@@ -4279,12 +4278,12 @@
4279
4278
  }
4280
4279
  }
4281
4280
 
4282
- /*! @azure/msal-common v16.13.0 2026-08-18 */
4281
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
4283
4282
  /* eslint-disable header/header */
4284
4283
  const name$1 = "@azure/msal-common";
4285
- const version$1 = "16.13.0";
4284
+ const version$1 = "16.14.0";
4286
4285
 
4287
- /*! @azure/msal-common v16.13.0 2026-08-18 */
4286
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
4288
4287
  /*
4289
4288
  * Copyright (c) Microsoft Corporation. All rights reserved.
4290
4289
  * Licensed under the MIT License.
@@ -4292,7 +4291,7 @@
4292
4291
  const cacheQuotaExceeded = "cache_quota_exceeded";
4293
4292
  const cacheErrorUnknown = "cache_error_unknown";
4294
4293
 
4295
- /*! @azure/msal-common v16.13.0 2026-08-18 */
4294
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
4296
4295
 
4297
4296
  /*
4298
4297
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4330,7 +4329,7 @@
4330
4329
  }
4331
4330
  }
4332
4331
 
4333
- /*! @azure/msal-common v16.13.0 2026-08-18 */
4332
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
4334
4333
 
4335
4334
  /*
4336
4335
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4341,9 +4340,10 @@
4341
4340
  * @internal
4342
4341
  */
4343
4342
  class CacheManager {
4344
- constructor(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions) {
4343
+ constructor(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions, tokenBindingKeyManager) {
4345
4344
  this.clientId = clientId;
4346
4345
  this.cryptoImpl = cryptoImpl;
4346
+ this.tokenBindingKeyManager = tokenBindingKeyManager;
4347
4347
  this.commonLogger = logger.clone(name$1, version$1);
4348
4348
  this.staticAuthorityOptions = staticAuthorityOptions;
4349
4349
  this.performanceClient = performanceClient;
@@ -4832,19 +4832,24 @@
4832
4832
  }
4833
4833
  this.removeItem(key, correlationId);
4834
4834
  this.performanceClient.incrementFields({ accessTokensRemoved: 1 }, correlationId);
4835
- // Remove Token Binding Key from key store for PoP Tokens Credentials
4835
+ // Remove Token Binding Key from key store for token-bound access token credentials
4836
4836
  if (credential.credentialType.toLowerCase() ===
4837
4837
  CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()) {
4838
- if (credential.tokenType === AuthenticationScheme$1.POP) {
4839
- const accessTokenWithAuthSchemeEntity = credential;
4840
- const kid = accessTokenWithAuthSchemeEntity.keyId;
4841
- if (kid) {
4842
- void this.cryptoImpl
4843
- .removeTokenBindingKey(kid, correlationId)
4844
- .catch(() => {
4845
- this.commonLogger.error(`0cx291 ${kid}`, correlationId);
4846
- this.performanceClient?.incrementFields({ removeTokenBindingKeyFailure: 1 }, correlationId);
4847
- });
4838
+ const tokenType = credential.tokenType?.toLowerCase();
4839
+ switch (tokenType) {
4840
+ case AuthenticationScheme$1.POP:
4841
+ case AuthenticationScheme$1.DPOP.toLowerCase(): {
4842
+ const accessTokenWithAuthSchemeEntity = credential;
4843
+ const kid = accessTokenWithAuthSchemeEntity.keyId;
4844
+ if (kid) {
4845
+ void this.tokenBindingKeyManager
4846
+ .removeTokenBindingKey(kid, correlationId)
4847
+ .catch(() => {
4848
+ this.commonLogger.error("0id34f", correlationId);
4849
+ this.performanceClient?.incrementFields({ removeTokenBindingKeyFailure: 1 }, correlationId);
4850
+ });
4851
+ }
4852
+ break;
4848
4853
  }
4849
4854
  }
4850
4855
  }
@@ -5385,16 +5390,15 @@
5385
5390
  }
5386
5391
  switch (normalizedFilterTokenType) {
5387
5392
  case "dpop":
5388
- return this.matchKeyBoundAccessToken(entity, filter, true);
5389
5393
  case AuthenticationScheme$1.SSH:
5390
- return this.matchKeyBoundAccessToken(entity, filter, false);
5394
+ return this.matchKeyBoundAccessToken(entity, filter);
5391
5395
  default:
5392
5396
  return true;
5393
5397
  }
5394
5398
  }
5395
- matchKeyBoundAccessToken(entity, filter, requireKeyId) {
5399
+ matchKeyBoundAccessToken(entity, filter) {
5396
5400
  if (!filter.keyId) {
5397
- return !requireKeyId;
5401
+ return true;
5398
5402
  }
5399
5403
  return this.matchKeyId(entity, filter.keyId);
5400
5404
  }
@@ -5513,7 +5517,7 @@
5513
5517
  }
5514
5518
  }
5515
5519
 
5516
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5520
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
5517
5521
  /*
5518
5522
  * Copyright (c) Microsoft Corporation. All rights reserved.
5519
5523
  * Licensed under the MIT License.
@@ -5578,7 +5582,7 @@
5578
5582
  "fetchRetryCount",
5579
5583
  ]);
5580
5584
 
5581
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5585
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
5582
5586
 
5583
5587
  /*
5584
5588
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5636,7 +5640,7 @@
5636
5640
  }
5637
5641
  }
5638
5642
 
5639
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5643
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
5640
5644
 
5641
5645
  /*
5642
5646
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5695,15 +5699,16 @@
5695
5699
  ...DEFAULT_LOGGER_IMPLEMENTATION,
5696
5700
  ...userLoggerOption,
5697
5701
  };
5702
+ const resolvedTokenBindingKeyManager = tokenBindingKeyManager || DEFAULT_TOKEN_BINDING_KEY_MANAGER;
5698
5703
  return {
5699
5704
  authOptions: buildAuthOptions(userAuthOptions),
5700
5705
  systemOptions: { ...DEFAULT_SYSTEM_OPTIONS, ...userSystemOptions },
5701
5706
  loggerOptions: loggerOptions,
5702
5707
  storageInterface: storageImplementation ||
5703
- new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions, name$1, version$1), new StubPerformanceClient()),
5708
+ new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions, name$1, version$1), new StubPerformanceClient(), undefined, resolvedTokenBindingKeyManager),
5704
5709
  networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
5705
5710
  cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
5706
- tokenBindingKeyManager: tokenBindingKeyManager || DEFAULT_TOKEN_BINDING_KEY_MANAGER,
5711
+ tokenBindingKeyManager: resolvedTokenBindingKeyManager,
5707
5712
  clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
5708
5713
  libraryInfo: { ...DEFAULT_LIBRARY_INFO, ...libraryInfo },
5709
5714
  telemetry: { ...DEFAULT_TELEMETRY_OPTIONS, ...telemetry },
@@ -5733,7 +5738,7 @@
5733
5738
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
5734
5739
  }
5735
5740
 
5736
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5741
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
5737
5742
  /*
5738
5743
  * Copyright (c) Microsoft Corporation. All rights reserved.
5739
5744
  * Licensed under the MIT License.
@@ -5760,7 +5765,7 @@
5760
5765
  }
5761
5766
  }
5762
5767
 
5763
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5768
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
5764
5769
 
5765
5770
  /*
5766
5771
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5781,7 +5786,7 @@
5781
5786
  return new JoseHeaderError(code, correlationId);
5782
5787
  }
5783
5788
 
5784
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5789
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
5785
5790
  /*
5786
5791
  * Copyright (c) Microsoft Corporation. All rights reserved.
5787
5792
  * Licensed under the MIT License.
@@ -5806,7 +5811,7 @@
5806
5811
  return Object.getPrototypeOf(value) === proto;
5807
5812
  }
5808
5813
 
5809
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5814
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
5810
5815
  /*
5811
5816
  * Copyright (c) Microsoft Corporation. All rights reserved.
5812
5817
  * Licensed under the MIT License.
@@ -5816,7 +5821,7 @@
5816
5821
  const missingJwkError = "missing_jwk_error";
5817
5822
  const invalidJwkError = "invalid_jwk_error";
5818
5823
 
5819
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5824
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
5820
5825
 
5821
5826
  /*
5822
5827
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5882,7 +5887,7 @@
5882
5887
  }
5883
5888
  }
5884
5889
 
5885
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5890
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
5886
5891
 
5887
5892
  /*
5888
5893
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5983,7 +5988,152 @@
5983
5988
  }
5984
5989
  }
5985
5990
 
5986
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5991
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
5992
+
5993
+ /*
5994
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5995
+ * Licensed under the MIT License.
5996
+ */
5997
+ const DPOP_HTM_REGEX = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
5998
+ const DPOP_TOKEN_BINDING_KEY_TYPE = "dpop";
5999
+ const DPOP_JWT_HEADER_ALGORITHM = JsonWebTokenAlgorithms.ES256;
6000
+ function buildProofHeader(publicJwk, correlationId) {
6001
+ return JoseHeader.getDpopHeader({
6002
+ alg: DPOP_JWT_HEADER_ALGORITHM,
6003
+ jwk: publicJwk,
6004
+ }, correlationId);
6005
+ }
6006
+ function normalizeHtm(htm, correlationId) {
6007
+ if (typeof htm !== "string" || !DPOP_HTM_REGEX.test(htm)) {
6008
+ throw createClientConfigurationError(invalidDpopHtm, correlationId);
6009
+ }
6010
+ return htm.toUpperCase();
6011
+ }
6012
+ /**
6013
+ * Normalizes a URL for use as the DPoP htu claim.
6014
+ * Per RFC 9449 §4.2, htu is the target URI without query and fragment components.
6015
+ * WHATWG URL serialization handles RFC 3986 syntax- and scheme-based normalization
6016
+ * such as lowercasing scheme/host and eliding default ports.
6017
+ */
6018
+ function normalizeHtu(url, correlationId) {
6019
+ let parsedUrl;
6020
+ try {
6021
+ parsedUrl = new URL(url);
6022
+ }
6023
+ catch {
6024
+ throw createClientConfigurationError(urlParseError, correlationId);
6025
+ }
6026
+ if (!/^https:\/\//i.test(url) ||
6027
+ parsedUrl.protocol !== "https:" ||
6028
+ parsedUrl.username ||
6029
+ parsedUrl.password) {
6030
+ throw createClientConfigurationError(invalidDpopHtu, correlationId);
6031
+ }
6032
+ parsedUrl.search = "";
6033
+ parsedUrl.hash = "";
6034
+ return parsedUrl.href;
6035
+ }
6036
+ function validateDpopNonce(nonce, correlationId) {
6037
+ if (nonce !== undefined && nonce.trim().length === 0) {
6038
+ throw createClientConfigurationError(invalidDpopNonce, correlationId);
6039
+ }
6040
+ }
6041
+ /**
6042
+ * Builds RFC 9449 DPoP proof JWT payloads for token-endpoint and
6043
+ * resource-endpoint proof bindings.
6044
+ *
6045
+ * Not exported from any public package entry point.
6046
+ * This helper is internal-only until DPoP is wired into acquisition flows
6047
+ * in a subsequent work item.
6048
+ *
6049
+ * DPoP proofs do not contain SHR fields (at, ts, m, u, p, q).
6050
+ * @internal
6051
+ */
6052
+ class DpopProofGenerator {
6053
+ constructor(cryptoUtils, tokenBindingKeyManager) {
6054
+ this.cryptoUtils = cryptoUtils;
6055
+ this.tokenBindingKeyManager = tokenBindingKeyManager;
6056
+ }
6057
+ /**
6058
+ * Provisions a fresh DPoP key and returns the RFC 7638 JWK thumbprint used
6059
+ * as `dpop_jkt`.
6060
+ */
6061
+ async generateJkt(correlationId = "") {
6062
+ return this.tokenBindingKeyManager.provisionTokenBindingKey({
6063
+ tokenBindingKeyType: DPOP_TOKEN_BINDING_KEY_TYPE,
6064
+ tokenBindingKeyAlgorithm: DPOP_JWT_HEADER_ALGORITHM,
6065
+ correlationId,
6066
+ });
6067
+ }
6068
+ /**
6069
+ * Builds RFC 9449 claims for a token-endpoint DPoP proof.
6070
+ * - htm is always "POST" because token endpoint requests use HTTP POST (RFC 9449 §5).
6071
+ * - htu is the normalized token endpoint URI (query and fragment stripped).
6072
+ * - jti is a fresh CSPRNG-backed unique identifier for every proof.
6073
+ */
6074
+ buildTokenProofClaims(params, correlationId = "") {
6075
+ validateDpopNonce(params.nonce, correlationId);
6076
+ const claims = {
6077
+ jti: this.cryptoUtils.createNewGuid(),
6078
+ htm: "POST",
6079
+ htu: normalizeHtu(params.tokenEndpoint, correlationId),
6080
+ iat: nowSeconds(),
6081
+ };
6082
+ if (params.nonce !== undefined) {
6083
+ claims.nonce = params.nonce;
6084
+ }
6085
+ return claims;
6086
+ }
6087
+ /**
6088
+ * Builds and signs a compact DPoP proof JWT for a token-endpoint request.
6089
+ */
6090
+ async generateTokenProof(params, keyId, correlationId = "") {
6091
+ return this.generateProof(this.buildTokenProofClaims(params, correlationId), keyId, correlationId);
6092
+ }
6093
+ /**
6094
+ * Builds RFC 9449 claims for a resource-endpoint DPoP proof.
6095
+ * - htm is uppercased per RFC 9449 §4.2.
6096
+ * - htu is the normalized resource URI (query and fragment stripped).
6097
+ * - ath is the base64url-encoded SHA-256 hash of the ASCII access token.
6098
+ * - jti is a fresh CSPRNG-backed unique identifier for every proof.
6099
+ */
6100
+ buildResourceProofClaims(params, correlationId = "") {
6101
+ validateDpopNonce(params.nonce, correlationId);
6102
+ const claims = {
6103
+ jti: this.cryptoUtils.createNewGuid(),
6104
+ htm: normalizeHtm(params.htm, correlationId),
6105
+ htu: normalizeHtu(params.htu, correlationId),
6106
+ ath: params.ath,
6107
+ iat: nowSeconds(),
6108
+ };
6109
+ if (params.nonce !== undefined) {
6110
+ claims.nonce = params.nonce;
6111
+ }
6112
+ return claims;
6113
+ }
6114
+ /**
6115
+ * Builds and signs a compact DPoP proof JWT for a resource request.
6116
+ */
6117
+ async generateResourceProof(params, keyId, correlationId = "") {
6118
+ const { htu, htm, nonce } = params;
6119
+ if (!htu || !htm) {
6120
+ throw createClientConfigurationError(dpopMissingResourceContext, correlationId);
6121
+ }
6122
+ const ath = await this.cryptoUtils.hashString(params.accessToken);
6123
+ return this.generateProof(this.buildResourceProofClaims({
6124
+ htu,
6125
+ htm,
6126
+ ath,
6127
+ nonce,
6128
+ }, correlationId), keyId, correlationId);
6129
+ }
6130
+ async generateProof(claims, keyId, correlationId) {
6131
+ const publicJwk = await this.tokenBindingKeyManager.getTokenBindingPublicKeyJwk(keyId, correlationId);
6132
+ return this.cryptoUtils.signTokenBindingJwt(buildProofHeader(publicJwk, correlationId), claims, keyId, correlationId);
6133
+ }
6134
+ }
6135
+
6136
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
5987
6137
  /*
5988
6138
  * Copyright (c) Microsoft Corporation. All rights reserved.
5989
6139
  * Licensed under the MIT License.
@@ -6047,7 +6197,7 @@
6047
6197
  uiNotAllowed: uiNotAllowed
6048
6198
  });
6049
6199
 
6050
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6200
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
6051
6201
 
6052
6202
  /*
6053
6203
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6114,7 +6264,7 @@
6114
6264
  return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
6115
6265
  }
6116
6266
 
6117
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6267
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
6118
6268
 
6119
6269
  /*
6120
6270
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6133,7 +6283,7 @@
6133
6283
  }
6134
6284
  }
6135
6285
 
6136
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6286
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
6137
6287
 
6138
6288
  /*
6139
6289
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6204,7 +6354,7 @@
6204
6354
  }
6205
6355
  }
6206
6356
 
6207
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6357
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
6208
6358
 
6209
6359
  /*
6210
6360
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6293,7 +6443,21 @@
6293
6443
  }
6294
6444
  // Add keyId from request to serverTokenResponse if defined
6295
6445
  serverTokenResponse.key_id =
6296
- serverTokenResponse.key_id || request.sshKid || undefined;
6446
+ serverTokenResponse.key_id ||
6447
+ request.dpopJkt ||
6448
+ request.sshKid ||
6449
+ undefined;
6450
+ if (request.authenticationScheme === AuthenticationScheme$1.DPOP) {
6451
+ if (serverTokenResponse.token_type?.toLowerCase() !==
6452
+ AuthenticationScheme$1.DPOP.toLowerCase()) {
6453
+ this.performanceClient?.addFields({
6454
+ dpopTokenTypeMismatch: serverTokenResponse.token_type,
6455
+ }, request.correlationId);
6456
+ throw createClientAuthError(dpopTokenTypeMismatch, request.correlationId);
6457
+ }
6458
+ serverTokenResponse.token_type =
6459
+ AuthenticationScheme$1.DPOP;
6460
+ }
6297
6461
  // Compute components once for entity storage (fallback if hash not provided by client)
6298
6462
  const attributeTokenPartition = serializeAttributeTokens(request.attributeTokens);
6299
6463
  const cacheKeyComponents = additionalCacheKeyComponents ??
@@ -6456,7 +6620,9 @@
6456
6620
  let extExpiresOn;
6457
6621
  let refreshOn;
6458
6622
  let familyId = "";
6623
+ let dpopProof;
6459
6624
  if (cacheRecord.accessToken) {
6625
+ const accessTokenType = cacheRecord.accessToken.tokenType?.toLowerCase();
6460
6626
  /*
6461
6627
  * if the request object has `popKid` property, `signPopToken` will be set to false and
6462
6628
  * the token will be returned unsigned
@@ -6474,6 +6640,18 @@
6474
6640
  else {
6475
6641
  accessToken = cacheRecord.accessToken.secret;
6476
6642
  }
6643
+ if (accessTokenType ===
6644
+ AuthenticationScheme$1.DPOP.toLowerCase()) {
6645
+ if (!cacheRecord.accessToken.keyId) {
6646
+ throw createClientAuthError(keyIdMissing, request.correlationId);
6647
+ }
6648
+ const dpopProofGenerator = new DpopProofGenerator(cryptoObj, tokenBindingKeyManager);
6649
+ dpopProof = await dpopProofGenerator.generateResourceProof({
6650
+ htu: request.resourceRequestUri,
6651
+ htm: request.resourceRequestMethod,
6652
+ accessToken: cacheRecord.accessToken.secret,
6653
+ }, cacheRecord.accessToken.keyId, request.correlationId);
6654
+ }
6477
6655
  responseScopes = ScopeSet.fromString(cacheRecord.accessToken.target, request.correlationId).asArray();
6478
6656
  // Access token expiresOn cached in seconds, converting to Date for AuthenticationResult
6479
6657
  expiresOn = toDateFromSeconds(cacheRecord.accessToken.expiresOn);
@@ -6490,6 +6668,15 @@
6490
6668
  }
6491
6669
  const uid = idTokenClaims?.oid || idTokenClaims?.sub || "";
6492
6670
  const tid = idTokenClaims?.tid || "";
6671
+ /*
6672
+ * Surface the sovereign enclave for telemetry. This runs for both freshly acquired
6673
+ * and cache-served tokens because SilentFlowClient shares this method, so the field
6674
+ * is present on silent requests that never hit the network.
6675
+ */
6676
+ const regionSubScope = idTokenClaims?.tenant_region_sub_scope;
6677
+ if (typeof regionSubScope === "string") {
6678
+ performanceClient?.addFields({ regionSubScope }, request.correlationId);
6679
+ }
6493
6680
  // for hybrid + native bridge enablement, send back the native account Id
6494
6681
  if (serverTokenResponse?.spa_accountid && !!cacheRecord.account) {
6495
6682
  // Set on deprecated top-level for downgrade compat
@@ -6518,6 +6705,7 @@
6518
6705
  idToken: cacheRecord?.idToken?.secret || "",
6519
6706
  idTokenClaims: idTokenClaims || {},
6520
6707
  accessToken: accessToken,
6708
+ dpopProof,
6521
6709
  fromCache: fromTokenCache,
6522
6710
  expiresOn: expiresOn,
6523
6711
  extExpiresOn: extExpiresOn,
@@ -6525,7 +6713,10 @@
6525
6713
  correlationId: request.correlationId,
6526
6714
  requestId: requestId || "",
6527
6715
  familyId: familyId,
6528
- tokenType: cacheRecord.accessToken?.tokenType || "",
6716
+ tokenType: cacheRecord.accessToken?.tokenType?.toLowerCase() ===
6717
+ AuthenticationScheme$1.DPOP.toLowerCase()
6718
+ ? AuthenticationScheme$1.DPOP
6719
+ : cacheRecord.accessToken?.tokenType || "",
6529
6720
  state: requestState ? requestState.userRequestState : "",
6530
6721
  cloudGraphHostName: cacheRecord.account?.cloudGraphHostName || "",
6531
6722
  msGraphHost: cacheRecord.account?.msGraphHost || "",
@@ -6576,7 +6767,7 @@
6576
6767
  return baseAccount;
6577
6768
  }
6578
6769
 
6579
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6770
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
6580
6771
  /*
6581
6772
  * Copyright (c) Microsoft Corporation. All rights reserved.
6582
6773
  * Licensed under the MIT License.
@@ -6586,7 +6777,7 @@
6586
6777
  UPN: "UPN",
6587
6778
  };
6588
6779
 
6589
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6780
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
6590
6781
  /*
6591
6782
  * Copyright (c) Microsoft Corporation. All rights reserved.
6592
6783
  * Licensed under the MIT License.
@@ -6605,7 +6796,7 @@
6605
6796
  }
6606
6797
  }
6607
6798
 
6608
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6799
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
6609
6800
 
6610
6801
  /*
6611
6802
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6629,7 +6820,7 @@
6629
6820
  };
6630
6821
  }
6631
6822
 
6632
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6823
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
6633
6824
 
6634
6825
  /*
6635
6826
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6715,7 +6906,7 @@
6715
6906
  }
6716
6907
  }
6717
6908
 
6718
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6909
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
6719
6910
 
6720
6911
  /*
6721
6912
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6746,7 +6937,7 @@
6746
6937
  return new NetworkError(error, httpStatus, responseHeaders);
6747
6938
  }
6748
6939
 
6749
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6940
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
6750
6941
 
6751
6942
  /*
6752
6943
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6776,6 +6967,23 @@
6776
6967
  }
6777
6968
  return headers;
6778
6969
  }
6970
+ /**
6971
+ * Adds the DPoP proof header for token endpoint requests when DPoP is requested.
6972
+ * @internal
6973
+ */
6974
+ async function addDpopTokenProofHeader(headers, request, tokenEndpoint, cryptoUtils, tokenBindingKeyManager) {
6975
+ if (request.authenticationScheme !== AuthenticationScheme$1.DPOP) {
6976
+ return;
6977
+ }
6978
+ const dpopProofGenerator = new DpopProofGenerator(cryptoUtils, tokenBindingKeyManager);
6979
+ const keyId = request.dpopJkt;
6980
+ if (!keyId?.trim()) {
6981
+ throw createClientAuthError(keyIdMissing, request.correlationId);
6982
+ }
6983
+ headers[HeaderNames.DPOP] = await dpopProofGenerator.generateTokenProof({
6984
+ tokenEndpoint,
6985
+ }, keyId, request.correlationId);
6986
+ }
6779
6987
  /**
6780
6988
  * Creates query string for the /token request
6781
6989
  * @param request
@@ -6862,7 +7070,7 @@
6862
7070
  return response;
6863
7071
  }
6864
7072
 
6865
- /*! @azure/msal-common v16.13.0 2026-08-18 */
7073
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
6866
7074
 
6867
7075
  /*
6868
7076
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6954,6 +7162,7 @@
6954
7162
  }
6955
7163
  }
6956
7164
  const headers = createTokenRequestHeaders(this.logger, this.config.systemOptions.preventCorsPreflight, ccsCredential || request.ccsCredential);
7165
+ await addDpopTokenProofHeader(headers, request, endpoint, this.cryptoUtils, this.config.tokenBindingKeyManager);
6957
7166
  const thumbprint = getRequestThumbprint(this.config.authOptions.clientId, request);
6958
7167
  return invokeAsync(executePostToTokenEndpoint, AuthorizationCodeClientExecutePostToTokenEndpoint, this.logger, this.performanceClient, request.correlationId)(endpoint, requestBody, headers, thumbprint, request.correlationId, this.cacheManager, this.networkClient, this.logger, this.performanceClient, serverTelemetryManager);
6959
7168
  }
@@ -7125,7 +7334,7 @@
7125
7334
  }
7126
7335
  }
7127
7336
 
7128
- /*! @azure/msal-common v16.13.0 2026-08-18 */
7337
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
7129
7338
 
7130
7339
  /*
7131
7340
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7352,7 +7561,7 @@
7352
7561
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7353
7562
  }
7354
7563
 
7355
- /*! @azure/msal-common v16.13.0 2026-08-18 */
7564
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
7356
7565
 
7357
7566
  /*
7358
7567
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7901,7 +8110,7 @@
7901
8110
  }
7902
8111
  }
7903
8112
 
7904
- /*! @azure/msal-common v16.13.0 2026-08-18 */
8113
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
7905
8114
 
7906
8115
  /*
7907
8116
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8012,6 +8221,12 @@
8012
8221
  type: CcsCredentialType.HOME_ACCOUNT_ID,
8013
8222
  },
8014
8223
  };
8224
+ if (refreshTokenRequest.authenticationScheme ===
8225
+ AuthenticationScheme$1.DPOP &&
8226
+ !refreshTokenRequest.dpopJkt) {
8227
+ const dpopProofGenerator = new DpopProofGenerator(this.cryptoUtils, this.config.tokenBindingKeyManager);
8228
+ refreshTokenRequest.dpopJkt = await dpopProofGenerator.generateJkt(request.correlationId);
8229
+ }
8015
8230
  try {
8016
8231
  return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest, apiId);
8017
8232
  }
@@ -8037,6 +8252,7 @@
8037
8252
  const endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);
8038
8253
  const requestBody = await invokeAsync(this.createTokenRequestBody.bind(this), RefreshTokenClientCreateTokenRequestBody, this.logger, this.performanceClient, request.correlationId)(request);
8039
8254
  const headers = createTokenRequestHeaders(this.logger, this.config.systemOptions.preventCorsPreflight, request.ccsCredential);
8255
+ await addDpopTokenProofHeader(headers, request, endpoint, this.cryptoUtils, this.config.tokenBindingKeyManager);
8040
8256
  const thumbprint = getRequestThumbprint(this.config.authOptions.clientId, request);
8041
8257
  return invokeAsync(executePostToTokenEndpoint, RefreshTokenClientExecutePostToTokenEndpoint, this.logger, this.performanceClient, request.correlationId)(endpoint, requestBody, headers, thumbprint, request.correlationId, this.cacheManager, this.networkClient, this.logger, this.performanceClient, this.serverTelemetryManager);
8042
8258
  }
@@ -8128,7 +8344,7 @@
8128
8344
  }
8129
8345
  }
8130
8346
 
8131
- /*! @azure/msal-common v16.13.0 2026-08-18 */
8347
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
8132
8348
 
8133
8349
  /*
8134
8350
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8421,7 +8637,7 @@
8421
8637
  clearNativeBrokerErrorCode() { }
8422
8638
  }
8423
8639
 
8424
- /*! @azure/msal-common v16.13.0 2026-08-18 */
8640
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
8425
8641
 
8426
8642
  /*
8427
8643
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8490,6 +8706,22 @@
8490
8706
  lastCacheOutcome = CacheOutcome.PROACTIVELY_REFRESHED;
8491
8707
  // don't throw ClientAuthError.createRefreshRequiredError(), return cached token instead
8492
8708
  }
8709
+ const cachedAccessTokenType = cachedAccessToken.tokenType?.toLowerCase();
8710
+ if (cachedAccessTokenType === AuthenticationScheme$1.DPOP.toLowerCase()) {
8711
+ if (!cachedAccessToken.keyId) {
8712
+ this.logger.info("1enswf", request.correlationId);
8713
+ this.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN, request.correlationId);
8714
+ throw createClientAuthError(tokenRefreshRequired, request.correlationId);
8715
+ }
8716
+ try {
8717
+ await this.config.tokenBindingKeyManager.getTokenBindingPublicKeyJwk(cachedAccessToken.keyId, request.correlationId);
8718
+ }
8719
+ catch {
8720
+ this.logger.info("14djth", request.correlationId);
8721
+ this.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN, request.correlationId);
8722
+ throw createClientAuthError(tokenRefreshRequired, request.correlationId);
8723
+ }
8724
+ }
8493
8725
  const environment = request.authority || this.authority.getPreferredCache();
8494
8726
  const cacheRecord = {
8495
8727
  account: this.cacheManager.getAccount(this.cacheManager.generateAccountKey(request.account), request.correlationId),
@@ -8532,7 +8764,7 @@
8532
8764
  }
8533
8765
  }
8534
8766
 
8535
- /*! @azure/msal-common v16.13.0 2026-08-18 */
8767
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
8536
8768
 
8537
8769
  /*
8538
8770
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8548,7 +8780,7 @@
8548
8780
  },
8549
8781
  };
8550
8782
 
8551
- /*! @azure/msal-common v16.13.0 2026-08-18 */
8783
+ /*! @azure/msal-common v16.14.0 2026-09-02 */
8552
8784
 
8553
8785
  /*
8554
8786
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11072,10 +11304,20 @@
11072
11304
  }
11073
11305
  if (context && context !== this.clientId) {
11074
11306
  this.logger.trace(`04rtdy ${context}`, correlationId);
11075
- perfMeasurement.end({
11076
- success: false,
11077
- errorCode: "contextMismatch",
11078
- });
11307
+ /*
11308
+ * Discarded rather than ended: this is expected routing, not a failure.
11309
+ * BroadcastChannel has no server-side filtering, so every MSAL instance on
11310
+ * the origin receives every message and drops the ones scoped to another
11311
+ * clientId. With N instances sharing an origin each write produces N-1 of
11312
+ * these no-ops, so emitting them scales O(N^2) - and because they were
11313
+ * previously reported with success: false they bypassed both the 1% misc
11314
+ * sampler and the observability trimming in the 1P telemetry reporter,
11315
+ * shipping at full payload. On origins hosting many embedded first-party
11316
+ * apps that dwarfed all other MSAL telemetry combined. These events carry
11317
+ * no diagnostic value, so drop the measurement entirely. Genuine faults
11318
+ * such as the noKey case above are still reported.
11319
+ */
11320
+ perfMeasurement.discard();
11079
11321
  return;
11080
11322
  }
11081
11323
  if (!value) {
@@ -11159,7 +11401,7 @@
11159
11401
 
11160
11402
  /* eslint-disable header/header */
11161
11403
  const name = "@azure/msal-browser";
11162
- const version = "5.19.0";
11404
+ const version = "5.21.0";
11163
11405
 
11164
11406
  /*
11165
11407
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11194,8 +11436,8 @@
11194
11436
  * This class implements the cache storage interface for MSAL through browser local or session storage.
11195
11437
  */
11196
11438
  class BrowserCacheManager extends CacheManager {
11197
- constructor(clientId, cacheConfig, cryptoImpl, logger, performanceClient, eventHandler, staticAuthorityOptions) {
11198
- super(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions);
11439
+ constructor(clientId, cacheConfig, cryptoImpl, logger, performanceClient, eventHandler, staticAuthorityOptions, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER) {
11440
+ super(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions, tokenBindingKeyManager);
11199
11441
  this.cacheConfig = cacheConfig;
11200
11442
  this.logger = logger;
11201
11443
  this.internalStorage = new MemoryStorage();
@@ -12613,12 +12855,12 @@
12613
12855
  }
12614
12856
  return new MemoryStorage();
12615
12857
  }
12616
- const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger, performanceClient, eventHandler) => {
12858
+ const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger, performanceClient, eventHandler, staticAuthorityOptions, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER) => {
12617
12859
  const cacheOptions = {
12618
12860
  cacheLocation: BrowserCacheLocation.MemoryStorage,
12619
12861
  cacheRetentionDays: 5,
12620
12862
  };
12621
- return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger, performanceClient, eventHandler);
12863
+ return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger, performanceClient, eventHandler, staticAuthorityOptions, tokenBindingKeyManager);
12622
12864
  };
12623
12865
 
12624
12866
  /*
@@ -12917,8 +13159,60 @@
12917
13159
  const SUPPORTED_AUTHENTICATION_SCHEMES = new Set([
12918
13160
  AuthenticationScheme$1.BEARER,
12919
13161
  AuthenticationScheme$1.POP,
13162
+ AuthenticationScheme$1.DPOP,
12920
13163
  AuthenticationScheme$1.SSH,
12921
13164
  ]);
13165
+ function validateSshRequest(request, correlationId) {
13166
+ if (!request.sshJwk) {
13167
+ throw createClientConfigurationError(missingSshJwk, correlationId);
13168
+ }
13169
+ if (!request.sshKid) {
13170
+ throw createClientConfigurationError(missingSshKid, correlationId);
13171
+ }
13172
+ }
13173
+ function validateDpopRequest(request, correlationId) {
13174
+ if (!request.resourceRequestMethod?.trim() ||
13175
+ !request.resourceRequestUri?.trim()) {
13176
+ throw createClientConfigurationError(dpopMissingResourceContext, correlationId);
13177
+ }
13178
+ }
13179
+ /**
13180
+ * Resolves the token-binding parameters needed before building authorize or token requests.
13181
+ * Public PCA DPoP requests use a dpopJkt thumbprint, while platform broker PoP requests use
13182
+ * a reqCnf confirmation claim. Requests that do not require request-time token binding return
13183
+ * no additional parameters.
13184
+ */
13185
+ async function getTokenBindingRequestParams(request, tokenBindingKeyManager, logger, performanceClient) {
13186
+ switch (request.authenticationScheme) {
13187
+ case AuthenticationScheme$1.DPOP:
13188
+ if (request.platformBroker) {
13189
+ return {};
13190
+ }
13191
+ if (request.dpopJkt) {
13192
+ return { dpopJkt: request.dpopJkt };
13193
+ }
13194
+ return {
13195
+ dpopJkt: await tokenBindingKeyManager.provisionTokenBindingKey({
13196
+ tokenBindingKeyType: AuthenticationScheme$1.DPOP.toLowerCase(),
13197
+ tokenBindingKeyAlgorithm: JsonWebTokenAlgorithms.ES256,
13198
+ correlationId: request.correlationId,
13199
+ }),
13200
+ };
13201
+ case AuthenticationScheme$1.POP:
13202
+ if (!request.platformBroker) {
13203
+ return {};
13204
+ }
13205
+ const cryptoOps = new CryptoOps(logger, performanceClient);
13206
+ if (request.popKid) {
13207
+ return { reqCnf: cryptoOps.encodeKid(request.popKid) };
13208
+ }
13209
+ const popTokenGenerator = new PopTokenGenerator(cryptoOps, tokenBindingKeyManager, performanceClient);
13210
+ const generatedReqCnfData = await invokeAsync(popTokenGenerator.generateCnf.bind(popTokenGenerator), PopTokenGenerateCnf, logger, performanceClient, request.correlationId)(request, logger);
13211
+ return { reqCnf: generatedReqCnfData.reqCnfString };
13212
+ default:
13213
+ return {};
13214
+ }
13215
+ }
12922
13216
  /**
12923
13217
  * Initializer function for all request APIs
12924
13218
  * @param request
@@ -12946,13 +13240,13 @@
12946
13240
  if (!SUPPORTED_AUTHENTICATION_SCHEMES.has(validatedRequest.authenticationScheme)) {
12947
13241
  throw createClientConfigurationError(unsupportedAuthenticationScheme, correlationId);
12948
13242
  }
12949
- if (validatedRequest.authenticationScheme ===
12950
- AuthenticationScheme$1.SSH) {
12951
- if (!request.sshJwk) {
12952
- throw createClientConfigurationError(missingSshJwk, correlationId);
12953
- }
12954
- if (!request.sshKid) {
12955
- throw createClientConfigurationError(missingSshKid, correlationId);
13243
+ switch (validatedRequest.authenticationScheme) {
13244
+ case AuthenticationScheme$1.SSH:
13245
+ validateSshRequest(request, correlationId);
13246
+ break;
13247
+ case AuthenticationScheme$1.DPOP: {
13248
+ validateDpopRequest(request, correlationId);
13249
+ break;
12956
13250
  }
12957
13251
  }
12958
13252
  logger.verbose(`1ecmns ${validatedRequest.authenticationScheme}`, correlationId);
@@ -14410,22 +14704,16 @@
14410
14704
  isPlatformAuthorizeRequest: true,
14411
14705
  }, request.correlationId);
14412
14706
  // pass the req_cnf for POP
14413
- if (request.authenticationScheme === AuthenticationScheme$1.POP) {
14414
- const cryptoOps = new CryptoOps(logger, performanceClient);
14415
- const tokenBindingKeyManager = new TokenBindingKeyManager(logger, performanceClient);
14416
- const popTokenGenerator = new PopTokenGenerator(cryptoOps, tokenBindingKeyManager, performanceClient);
14417
- // req_cnf is always sent as a string for SPAs
14418
- let reqCnfData;
14419
- if (!request.popKid) {
14420
- const generatedReqCnfData = await invokeAsync(popTokenGenerator.generateCnf.bind(popTokenGenerator), PopTokenGenerateCnf, logger, performanceClient, request.correlationId)(request, logger);
14421
- reqCnfData = generatedReqCnfData.reqCnfString;
14422
- }
14423
- else {
14424
- reqCnfData = cryptoOps.encodeKid(request.popKid);
14425
- }
14426
- addPopToken(parameters, reqCnfData);
14707
+ if (request.authenticationScheme ===
14708
+ AuthenticationScheme$1.POP &&
14709
+ request.reqCnf) {
14710
+ addPopToken(parameters, request.reqCnf);
14427
14711
  }
14428
14712
  }
14713
+ if (request.authenticationScheme === AuthenticationScheme$1.DPOP &&
14714
+ request.dpopJkt) {
14715
+ parameters.set(DPOP_JKT, request.dpopJkt);
14716
+ }
14429
14717
  instrumentBrokerParams(parameters, request.correlationId, performanceClient);
14430
14718
  return parameters;
14431
14719
  }
@@ -15617,9 +15905,11 @@
15617
15905
  const serverTelemetryManager = initializeServerTelemetryManager(ApiId.acquireTokenPopup, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
15618
15906
  const pkce = pkceCodes ||
15619
15907
  (await invokeAsync(generatePkceCodes, GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId));
15908
+ const tokenBindingParams = await getTokenBindingRequestParams(request, this.tokenBindingKeyManager, this.logger, this.performanceClient);
15620
15909
  const popupRequest = {
15621
15910
  ...request,
15622
15911
  codeChallenge: pkce.challenge,
15912
+ ...tokenBindingParams,
15623
15913
  };
15624
15914
  try {
15625
15915
  // Initialize the client
@@ -15653,7 +15943,7 @@
15653
15943
  // Wait for the redirect bridge response
15654
15944
  const responseString = await this.waitForPopupResponse(request, popupWindow, popupParams.popupWindowParent);
15655
15945
  const serverParams = invoke(deserializeResponse, DeserializeResponse, this.logger, this.performanceClient, this.correlationId)(responseString, this.config.auth.OIDCOptions.responseMode, this.logger, this.correlationId);
15656
- return await invokeAsync(handleResponseCode, HandleResponseCode, this.logger, this.performanceClient, correlationId)(request, serverParams, pkce.verifier, ApiId.acquireTokenPopup, this.config, authClient, this.browserStorage, this.nativeStorage, this.eventHandler, this.logger, this.performanceClient, this.platformAuthProvider);
15946
+ return await invokeAsync(handleResponseCode, HandleResponseCode, this.logger, this.performanceClient, correlationId)(popupRequest, serverParams, pkce.verifier, ApiId.acquireTokenPopup, this.config, authClient, this.browserStorage, this.nativeStorage, this.eventHandler, this.logger, this.performanceClient, this.platformAuthProvider);
15657
15947
  }
15658
15948
  }
15659
15949
  catch (e) {
@@ -15677,10 +15967,12 @@
15677
15967
  const earJwk = await invokeAsync(generateEarKey, GenerateEarKey, this.logger, this.performanceClient, correlationId)();
15678
15968
  const pkce = pkceCodes ||
15679
15969
  (await invokeAsync(generatePkceCodes, GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId));
15970
+ const tokenBindingParams = await getTokenBindingRequestParams(request, this.tokenBindingKeyManager, this.logger, this.performanceClient);
15680
15971
  const popupRequest = {
15681
15972
  ...request,
15682
15973
  earJwk: earJwk,
15683
15974
  codeChallenge: pkce.challenge,
15975
+ ...tokenBindingParams,
15684
15976
  };
15685
15977
  const popupWindow = await this.openPostFormPopup(popupRequest, discoveredAuthority, popupParams, correlationId, true);
15686
15978
  // Monitor the popup for the hash. Return the string value and close the popup when the hash is received. Default timeout is 60 seconds.
@@ -16067,9 +16359,11 @@
16067
16359
  const correlationId = request.correlationId;
16068
16360
  const serverTelemetryManager = initializeServerTelemetryManager(ApiId.acquireTokenRedirect, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
16069
16361
  const pkceCodes = await invokeAsync(generatePkceCodes, GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId);
16362
+ const tokenBindingParams = await getTokenBindingRequestParams(request, this.tokenBindingKeyManager, this.logger, this.performanceClient);
16070
16363
  const redirectRequest = {
16071
16364
  ...request,
16072
16365
  codeChallenge: pkceCodes.challenge,
16366
+ ...tokenBindingParams,
16073
16367
  };
16074
16368
  this.browserStorage.cacheAuthorizeRequest(redirectRequest, this.correlationId, pkceCodes.verifier);
16075
16369
  try {
@@ -16109,10 +16403,12 @@
16109
16403
  const discoveredAuthority = await invokeAsync(getDiscoveredAuthority, StandardInteractionClientGetDiscoveredAuthority, this.logger, this.performanceClient, correlationId)(this.config, this.correlationId, this.performanceClient, this.browserStorage, this.logger, authority, azureCloudOptions, extraQueryParameters, account);
16110
16404
  const earJwk = await invokeAsync(generateEarKey, GenerateEarKey, this.logger, this.performanceClient, correlationId)();
16111
16405
  const pkceCodes = await invokeAsync(generatePkceCodes, GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId);
16406
+ const tokenBindingParams = await getTokenBindingRequestParams(request, this.tokenBindingKeyManager, this.logger, this.performanceClient);
16112
16407
  const redirectRequest = {
16113
16408
  ...request,
16114
16409
  earJwk: earJwk,
16115
16410
  codeChallenge: pkceCodes.challenge,
16411
+ ...tokenBindingParams,
16116
16412
  };
16117
16413
  this.browserStorage.cacheAuthorizeRequest(redirectRequest, this.correlationId, pkceCodes.verifier);
16118
16414
  const form = await getEARForm(document, this.config, discoveredAuthority, redirectRequest, this.logger, this.performanceClient);
@@ -16682,8 +16978,8 @@
16682
16978
  * @param userRequestScopes
16683
16979
  */
16684
16980
  async silentTokenHelper(authClient, request) {
16685
- const { serverParams, pkceCodes } = await this.silentAuthorizeHelper(authClient, request);
16686
- return invokeAsync(handleResponseCode, HandleResponseCode, this.logger, this.performanceClient, request.correlationId)(request, serverParams, pkceCodes.verifier, this.apiId, this.config, authClient, this.browserStorage, this.nativeStorage, this.eventHandler, this.logger, this.performanceClient, this.platformAuthProvider);
16981
+ const { serverParams, pkceCodes, silentRequest } = await this.silentAuthorizeHelper(authClient, request);
16982
+ return invokeAsync(handleResponseCode, HandleResponseCode, this.logger, this.performanceClient, request.correlationId)(silentRequest, serverParams, pkceCodes.verifier, this.apiId, this.config, authClient, this.browserStorage, this.nativeStorage, this.eventHandler, this.logger, this.performanceClient, this.platformAuthProvider);
16687
16983
  }
16688
16984
  /**
16689
16985
  * Shared helper that generates PKCE codes, builds the /authorize URL,
@@ -16694,9 +16990,11 @@
16694
16990
  async silentAuthorizeHelper(authClient, request) {
16695
16991
  const correlationId = request.correlationId;
16696
16992
  const pkceCodes = await invokeAsync(generatePkceCodes, GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId);
16993
+ const tokenBindingParams = await getTokenBindingRequestParams(request, this.tokenBindingKeyManager, this.logger, this.performanceClient);
16697
16994
  const silentRequest = {
16698
16995
  ...request,
16699
16996
  codeChallenge: pkceCodes.challenge,
16997
+ ...tokenBindingParams,
16700
16998
  };
16701
16999
  // Create the iframe, register the response listener, then navigate, so the listener is active before the iframe can respond.
16702
17000
  const iframe = createHiddenIframe();
@@ -16750,9 +17048,11 @@
16750
17048
  */
16751
17049
  async acquireToken(request) {
16752
17050
  const baseRequest = await invokeAsync(initializeBaseRequest, InitializeBaseRequest, this.logger, this.performanceClient, request.correlationId)(request, this.config, this.performanceClient, this.logger, this.correlationId);
17051
+ const tokenBindingParams = await getTokenBindingRequestParams(baseRequest, this.tokenBindingKeyManager, this.logger, this.performanceClient);
16753
17052
  const silentRequest = {
16754
17053
  ...request,
16755
17054
  ...baseRequest,
17055
+ ...tokenBindingParams,
16756
17056
  };
16757
17057
  if (request.redirectUri) {
16758
17058
  // Make sure any passed redirectUri is converted to an absolute URL - redirectUri is not a required parameter for refresh token redemption so only include if explicitly provided
@@ -16840,10 +17140,12 @@
16840
17140
  this.correlationId);
16841
17141
  const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
16842
17142
  try {
17143
+ const tokenBindingParams = await getTokenBindingRequestParams(silentRequest, this.tokenBindingKeyManager, this.logger, this.performanceClient);
16843
17144
  // Create auth code request (PKCE not needed)
16844
17145
  const authCodeRequest = {
16845
17146
  ...silentRequest,
16846
17147
  code: request.code,
17148
+ ...tokenBindingParams,
16847
17149
  };
16848
17150
  // Initialize the client
16849
17151
  const clientConfig = await invokeAsync(this.getClientConfiguration.bind(this), StandardInteractionClientGetClientConfiguration, this.logger, this.performanceClient, this.correlationId)({
@@ -16984,14 +17286,14 @@
16984
17286
  this.eventHandler = new EventHandler(this.logger);
16985
17287
  // Initialize the browser storage class.
16986
17288
  this.browserStorage = this.isBrowserEnvironment
16987
- ? new BrowserCacheManager(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger, this.performanceClient, this.eventHandler, buildStaticAuthorityOptions(this.config.auth))
16988
- : DEFAULT_BROWSER_CACHE_MANAGER(this.config.auth.clientId, this.logger, this.performanceClient, this.eventHandler);
17289
+ ? new BrowserCacheManager(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger, this.performanceClient, this.eventHandler, buildStaticAuthorityOptions(this.config.auth), this.tokenBindingKeyManager)
17290
+ : DEFAULT_BROWSER_CACHE_MANAGER(this.config.auth.clientId, this.logger, this.performanceClient, this.eventHandler, undefined, this.tokenBindingKeyManager);
16989
17291
  // initialize in memory storage for native flows
16990
17292
  const nativeCacheOptions = {
16991
17293
  cacheLocation: BrowserCacheLocation.MemoryStorage,
16992
17294
  cacheRetentionDays: 5,
16993
17295
  };
16994
- this.nativeInternalStorage = new BrowserCacheManager(this.config.auth.clientId, nativeCacheOptions, this.browserCrypto, this.logger, this.performanceClient, this.eventHandler);
17296
+ this.nativeInternalStorage = new BrowserCacheManager(this.config.auth.clientId, nativeCacheOptions, this.browserCrypto, this.logger, this.performanceClient, this.eventHandler, undefined, this.tokenBindingKeyManager);
16995
17297
  this.activeSilentTokenRequests = new Map();
16996
17298
  // Register listener functions
16997
17299
  this.trackStateChange = this.trackStateChange.bind(this);
@@ -18945,11 +19247,14 @@
18945
19247
  this.browserCrypto = operatingContext.isBrowserEnvironment()
18946
19248
  ? new CryptoOps(this.logger, this.performanceClient, true)
18947
19249
  : DEFAULT_CRYPTO_IMPLEMENTATION;
19250
+ const tokenBindingKeyManager = operatingContext.isBrowserEnvironment()
19251
+ ? new TokenBindingKeyManager(this.logger, this.performanceClient)
19252
+ : DEFAULT_TOKEN_BINDING_KEY_MANAGER;
18948
19253
  this.eventHandler = new EventHandler(this.logger);
18949
19254
  // Initialize the browser storage class.
18950
19255
  this.browserStorage = this.operatingContext.isBrowserEnvironment()
18951
- ? new BrowserCacheManager(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger, this.performanceClient, this.eventHandler, buildStaticAuthorityOptions(this.config.auth))
18952
- : DEFAULT_BROWSER_CACHE_MANAGER(this.config.auth.clientId, this.logger, this.performanceClient, this.eventHandler);
19256
+ ? new BrowserCacheManager(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger, this.performanceClient, this.eventHandler, buildStaticAuthorityOptions(this.config.auth), tokenBindingKeyManager)
19257
+ : DEFAULT_BROWSER_CACHE_MANAGER(this.config.auth.clientId, this.logger, this.performanceClient, this.eventHandler, undefined, tokenBindingKeyManager);
18953
19258
  this.nestedAppAuthAdapter = new NestedAppAuthAdapter(this.config.auth.clientId, this.config.auth.clientCapabilities, this.browserCrypto, this.logger);
18954
19259
  // Set the active account if available
18955
19260
  const accountContext = this.bridgeProxy.getAccountContext();
@@ -20122,7 +20427,7 @@
20122
20427
  };
20123
20428
  const logger = new Logger(browserConfig.system.loggerOptions || {}, name, version);
20124
20429
  const cryptoOps = new CryptoOps(logger, browserConfig.telemetry.client);
20125
- const storage = new BrowserCacheManager(browserConfig.auth.clientId, browserConfig.cache, cryptoOps, logger, browserConfig.telemetry.client, new EventHandler(logger), buildStaticAuthorityOptions(browserConfig.auth));
20430
+ const storage = new BrowserCacheManager(browserConfig.auth.clientId, browserConfig.cache, cryptoOps, logger, browserConfig.telemetry.client, new EventHandler(logger), buildStaticAuthorityOptions(browserConfig.auth), new TokenBindingKeyManager(logger, browserConfig.telemetry.client));
20126
20431
  await storage.initialize(correlationId);
20127
20432
  const authorityString = request.authority || browserConfig.auth.authority;
20128
20433
  const authority = await createDiscoveredInstance(Authority.generateAuthority(authorityString, request.azureCloudOptions), browserConfig.system.networkClient, storage, authorityOptions, logger, correlationId, performanceClient);