@azure/msal-browser 5.19.0 → 5.20.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 (263) 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 +1 -1
  183. package/dist/popup_relay/relayClient.mjs +1 -1
  184. package/dist/protocol/Authorize.mjs +10 -16
  185. package/dist/protocol/Authorize.mjs.map +1 -1
  186. package/dist/redirect_bridge/index.mjs +1 -1
  187. package/dist/request/RequestHelpers.mjs +63 -10
  188. package/dist/request/RequestHelpers.mjs.map +1 -1
  189. package/dist/response/ResponseHandler.mjs +1 -1
  190. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  191. package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
  192. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  193. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  194. package/dist/utils/BrowserConstants.mjs +1 -1
  195. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  196. package/dist/utils/BrowserUtils.mjs +1 -1
  197. package/dist/utils/Helpers.mjs +1 -1
  198. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  199. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  200. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  201. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  202. package/lib/custom-auth-path/log-strings-mapping.json +2 -2
  203. package/lib/custom-auth-path/msal-custom-auth.cjs +580 -277
  204. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  205. package/lib/custom-auth-path/msal-custom-auth.js +580 -277
  206. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  207. package/lib/log-strings-mapping.json +2 -2
  208. package/lib/msal-browser.cjs +455 -150
  209. package/lib/msal-browser.cjs.map +1 -1
  210. package/lib/msal-browser.js +455 -150
  211. package/lib/msal-browser.js.map +1 -1
  212. package/lib/msal-browser.min.js +2 -2
  213. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  214. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  215. package/lib/popup-relay/msal-popup-relay.js +2 -2
  216. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  217. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  218. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  219. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  220. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  221. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  222. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  223. package/package.json +2 -2
  224. package/src/cache/BrowserCacheManager.ts +12 -4
  225. package/src/cache/LocalStorage.ts +14 -4
  226. package/src/cache/TokenCache.ts +3 -1
  227. package/src/controllers/NestedAppAuthController.ts +10 -2
  228. package/src/controllers/StandardController.ts +8 -3
  229. package/src/controllers/UnknownOperatingContextController.ts +11 -2
  230. package/src/index.ts +1 -0
  231. package/src/interaction_client/PopupClient.ts +19 -2
  232. package/src/interaction_client/RedirectClient.ts +15 -0
  233. package/src/interaction_client/SilentAuthCodeClient.ts +8 -0
  234. package/src/interaction_client/SilentIframeClient.ts +11 -5
  235. package/src/interaction_client/SilentRefreshClient.ts +11 -1
  236. package/src/packageMetadata.ts +1 -1
  237. package/src/protocol/Authorize.ts +12 -28
  238. package/src/request/RequestHelpers.ts +109 -15
  239. package/src/webBrokerBridge/adapter/CrossVersionRequestAdapter.ts +186 -0
  240. package/src/webBrokerBridge/index.ts +11 -0
  241. package/types/cache/BrowserCacheManager.d.ts +3 -3
  242. package/types/cache/BrowserCacheManager.d.ts.map +1 -1
  243. package/types/cache/LocalStorage.d.ts.map +1 -1
  244. package/types/cache/TokenCache.d.ts.map +1 -1
  245. package/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  246. package/types/controllers/StandardController.d.ts.map +1 -1
  247. package/types/controllers/UnknownOperatingContextController.d.ts.map +1 -1
  248. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  249. package/types/index.d.ts +2 -0
  250. package/types/index.d.ts.map +1 -1
  251. package/types/interaction_client/PopupClient.d.ts.map +1 -1
  252. package/types/interaction_client/RedirectClient.d.ts.map +1 -1
  253. package/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  254. package/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
  255. package/types/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  256. package/types/packageMetadata.d.ts +1 -1
  257. package/types/protocol/Authorize.d.ts.map +1 -1
  258. package/types/request/RequestHelpers.d.ts +11 -1
  259. package/types/request/RequestHelpers.d.ts.map +1 -1
  260. package/types/webBrokerBridge/adapter/CrossVersionRequestAdapter.d.ts +66 -0
  261. package/types/webBrokerBridge/adapter/CrossVersionRequestAdapter.d.ts.map +1 -0
  262. package/types/webBrokerBridge/index.d.ts +2 -0
  263. package/types/webBrokerBridge/index.d.ts.map +1 -1
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-browser v5.19.0 2026-08-18 */
1
+ /*! @azure/msal-browser v5.20.0 2026-08-28 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
6
6
  /*
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
8
  * Licensed under the MIT License.
@@ -39,6 +39,7 @@ const CLIENT_ASSERTION = "client_assertion";
39
39
  const CLIENT_ASSERTION_TYPE = "client_assertion_type";
40
40
  const TOKEN_TYPE = "token_type";
41
41
  const REQ_CNF = "req_cnf";
42
+ const DPOP_JKT = "dpop_jkt";
42
43
  const RETURN_SPA_CODE = "return_spa_code";
43
44
  const NATIVE_BROKER = "nativebroker";
44
45
  const LOGOUT_HINT = "logout_hint";
@@ -55,7 +56,7 @@ const RESOURCE = "resource";
55
56
  const CLI_DATA = "clidata";
56
57
  const ATTRIBUTE_TOKENS = "attribute_tokens";
57
58
 
58
- /*! @azure/msal-common v16.13.0 2026-08-18 */
59
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
59
60
  /*
60
61
  * Copyright (c) Microsoft Corporation. All rights reserved.
61
62
  * Licensed under the MIT License.
@@ -67,7 +68,6 @@ const DEFAULT_AUTHORITY_HOST = "login.microsoftonline.com";
67
68
  const DEFAULT_COMMON_TENANT = "common";
68
69
  // ADFS String
69
70
  const ADFS = "adfs";
70
- const DSTS = "dstsv2";
71
71
  // Default AAD Instance Discovery Endpoint
72
72
  const AAD_INSTANCE_DISCOVERY_ENDPT = `${DEFAULT_AUTHORITY}discovery/instance?api-version=1.1&authorization_endpoint=`;
73
73
  // CIAM URL
@@ -120,6 +120,7 @@ const OIDC_SCOPES = [...OIDC_DEFAULT_SCOPES$1, EMAIL_SCOPE];
120
120
  const HeaderNames = {
121
121
  CONTENT_TYPE: "Content-Type",
122
122
  CONTENT_LENGTH: "Content-Length",
123
+ DPOP: "DPoP",
123
124
  RETRY_AFTER: "Retry-After",
124
125
  CCS_HEADER: "X-AnchorMailbox",
125
126
  WWWAuthenticate: "WWW-Authenticate",
@@ -150,6 +151,7 @@ const ClaimsRequestKeys = {
150
151
  ID_TOKEN: "id_token",
151
152
  SIGNIN_STATE: "signin_state",
152
153
  LOGIN_HINT: "login_hint",
154
+ TENANT_REGION_SUB_SCOPE: "tenant_region_sub_scope",
153
155
  };
154
156
  /**
155
157
  * we considered making this "enum" in the request instead of string, however it looks like the allowed list of
@@ -234,6 +236,7 @@ const SERVER_TELEM_UNKNOWN_ERROR = "unknown_error";
234
236
  const AuthenticationScheme$1 = {
235
237
  BEARER: "Bearer",
236
238
  POP: "pop",
239
+ DPOP: "DPoP",
237
240
  SSH: "ssh-cert",
238
241
  };
239
242
  /**
@@ -292,7 +295,7 @@ const JsonWebTokenTypes$1 = {
292
295
  // Token renewal offset default in seconds
293
296
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
294
297
 
295
- /*! @azure/msal-common v16.13.0 2026-08-18 */
298
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
296
299
  /*
297
300
  * Copyright (c) Microsoft Corporation. All rights reserved.
298
301
  * Licensed under the MIT License.
@@ -321,7 +324,7 @@ function createAuthError(code, correlationId, additionalMessage) {
321
324
  return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
322
325
  }
323
326
 
324
- /*! @azure/msal-common v16.13.0 2026-08-18 */
327
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
325
328
 
326
329
  /*
327
330
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -344,7 +347,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
344
347
  return new ClientAuthError(errorCode, correlationId, additionalMessage);
345
348
  }
346
349
 
347
- /*! @azure/msal-common v16.13.0 2026-08-18 */
350
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
348
351
  /*
349
352
  * Copyright (c) Microsoft Corporation. All rights reserved.
350
353
  * Licensed under the MIT License.
@@ -373,6 +376,7 @@ const invalidCacheEnvironment = "invalid_cache_environment";
373
376
  const noAccountFound = "no_account_found";
374
377
  const noCryptoObject = "no_crypto_object";
375
378
  const unexpectedCredentialType = "unexpected_credential_type";
379
+ const dpopTokenTypeMismatch = "dpop_token_type_mismatch";
376
380
  const tokenRefreshRequired = "token_refresh_required";
377
381
  const tokenClaimsCnfRequiredForSignedJwt = "token_claims_cnf_required_for_signedjwt";
378
382
  const authorizationCodeMissingFromServerResponse = "authorization_code_missing_from_server_response";
@@ -395,6 +399,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
395
399
  cannotRemoveEmptyScope: cannotRemoveEmptyScope,
396
400
  clientInfoDecodingError: clientInfoDecodingError,
397
401
  clientInfoEmptyError: clientInfoEmptyError,
402
+ dpopTokenTypeMismatch: dpopTokenTypeMismatch,
398
403
  emptyInputScopeSet: emptyInputScopeSet,
399
404
  endSessionEndpointNotSupported: endSessionEndpointNotSupported,
400
405
  endpointResolutionError: endpointResolutionError,
@@ -428,7 +433,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
428
433
  userCanceled: userCanceled
429
434
  });
430
435
 
431
- /*! @azure/msal-common v16.13.0 2026-08-18 */
436
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
432
437
 
433
438
  /*
434
439
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -466,7 +471,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
466
471
  };
467
472
  }
468
473
 
469
- /*! @azure/msal-common v16.13.0 2026-08-18 */
474
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
470
475
 
471
476
  /*
472
477
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -532,7 +537,7 @@ function getJWSPayload(authToken, correlationId) {
532
537
  return matches[2];
533
538
  }
534
539
 
535
- /*! @azure/msal-common v16.13.0 2026-08-18 */
540
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
536
541
 
537
542
  /*
538
543
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -620,7 +625,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
620
625
  return updatedAccountInfo;
621
626
  }
622
627
 
623
- /*! @azure/msal-common v16.13.0 2026-08-18 */
628
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
624
629
  /*
625
630
  * Copyright (c) Microsoft Corporation. All rights reserved.
626
631
  * Licensed under the MIT License.
@@ -631,11 +636,10 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
631
636
  const AuthorityType = {
632
637
  Default: 0,
633
638
  Adfs: 1,
634
- Dsts: 2,
635
639
  Ciam: 3,
636
640
  };
637
641
 
638
- /*! @azure/msal-common v16.13.0 2026-08-18 */
642
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
639
643
  /*
640
644
  * Copyright (c) Microsoft Corporation. All rights reserved.
641
645
  * Licensed under the MIT License.
@@ -657,7 +661,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
657
661
  return null;
658
662
  }
659
663
 
660
- /*! @azure/msal-common v16.13.0 2026-08-18 */
664
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
661
665
  /*
662
666
  * Copyright (c) Microsoft Corporation. All rights reserved.
663
667
  * Licensed under the MIT License.
@@ -681,7 +685,7 @@ const ProtocolMode = {
681
685
  EAR: "EAR",
682
686
  };
683
687
 
684
- /*! @azure/msal-common v16.13.0 2026-08-18 */
688
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
685
689
  /**
686
690
  * Returns the AccountInfo interface for this account.
687
691
  * @internal
@@ -836,8 +840,8 @@ function createAccountEntityFromAccountInfo(accountInfo, cloudGraphHostName, msG
836
840
  * @param authType
837
841
  */
838
842
  function generateHomeAccountId(serverClientInfo, authType, logger, cryptoObj, correlationId, idTokenClaims) {
839
- // since ADFS/DSTS do not have tid and does not set client_info
840
- if (!(authType === AuthorityType.Adfs || authType === AuthorityType.Dsts)) {
843
+ // ADFS does not have tid and does not set client_info
844
+ if (authType !== AuthorityType.Adfs) {
841
845
  // for cases where there is clientInfo
842
846
  if (serverClientInfo) {
843
847
  try {
@@ -870,7 +874,7 @@ function isAccountEntity(entity) {
870
874
  entity.hasOwnProperty("authorityType"));
871
875
  }
872
876
 
873
- /*! @azure/msal-common v16.13.0 2026-08-18 */
877
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
874
878
  /*
875
879
  * Copyright (c) Microsoft Corporation. All rights reserved.
876
880
  * Licensed under the MIT License.
@@ -887,7 +891,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
887
891
  unexpectedError: unexpectedError
888
892
  });
889
893
 
890
- /*! @azure/msal-common v16.13.0 2026-08-18 */
894
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
891
895
 
892
896
  /*
893
897
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -907,7 +911,7 @@ function createClientConfigurationError(errorCode, correlationId) {
907
911
  return new ClientConfigurationError(errorCode, correlationId);
908
912
  }
909
913
 
910
- /*! @azure/msal-common v16.13.0 2026-08-18 */
914
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
911
915
  /*
912
916
  * Copyright (c) Microsoft Corporation. All rights reserved.
913
917
  * Licensed under the MIT License.
@@ -939,7 +943,9 @@ const invalidPlatformBrokerConfiguration = "invalid_platform_broker_configuratio
939
943
  const issuerValidationFailed = "issuer_validation_failed";
940
944
  const invalidResponseMode = "invalid_response_mode";
941
945
  const invalidDpopHtm = "invalid_dpop_htm";
942
- const invalidDpopHtu = "invalid_dpop_htu";
946
+ const invalidDpopHtu = "invalid_dpop_htu";
947
+ const invalidDpopNonce = "invalid_dpop_nonce";
948
+ const dpopMissingResourceContext = "dpop_missing_resource_context";
943
949
 
944
950
  var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
945
951
  __proto__: null,
@@ -948,6 +954,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
948
954
  cannotAllowPlatformBroker: cannotAllowPlatformBroker,
949
955
  cannotSetOIDCOptions: cannotSetOIDCOptions,
950
956
  claimsRequestParsingError: claimsRequestParsingError,
957
+ dpopMissingResourceContext: dpopMissingResourceContext,
951
958
  emptyInputScopesError: emptyInputScopesError,
952
959
  invalidAuthenticationHeader: invalidAuthenticationHeader,
953
960
  invalidAuthorityMetadata: invalidAuthorityMetadata,
@@ -956,6 +963,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
956
963
  invalidCodeChallengeMethod: invalidCodeChallengeMethod,
957
964
  invalidDpopHtm: invalidDpopHtm,
958
965
  invalidDpopHtu: invalidDpopHtu,
966
+ invalidDpopNonce: invalidDpopNonce,
959
967
  invalidPlatformBrokerConfiguration: invalidPlatformBrokerConfiguration,
960
968
  invalidRequestMethodForEAR: invalidRequestMethodForEAR,
961
969
  invalidResponseMode: invalidResponseMode,
@@ -973,7 +981,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
973
981
  urlParseError: urlParseError
974
982
  });
975
983
 
976
- /*! @azure/msal-common v16.13.0 2026-08-18 */
984
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
977
985
 
978
986
  /*
979
987
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1031,7 +1039,7 @@ class AuthenticationHeaderParser {
1031
1039
  }
1032
1040
  }
1033
1041
 
1034
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1042
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
1035
1043
  /*
1036
1044
  * Copyright (c) Microsoft Corporation. All rights reserved.
1037
1045
  * Licensed under the MIT License.
@@ -1043,7 +1051,7 @@ function isOpenIdConfigResponse(response) {
1043
1051
  response.hasOwnProperty("jwks_uri"));
1044
1052
  }
1045
1053
 
1046
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1054
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
1047
1055
  /*
1048
1056
  * Copyright (c) Microsoft Corporation. All rights reserved.
1049
1057
  * Licensed under the MIT License.
@@ -1123,7 +1131,7 @@ class StringUtils {
1123
1131
  }
1124
1132
  }
1125
1133
 
1126
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1134
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
1127
1135
 
1128
1136
  /*
1129
1137
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1281,7 +1289,7 @@ class UrlString {
1281
1289
  }
1282
1290
  }
1283
1291
 
1284
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1292
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
1285
1293
 
1286
1294
  /*
1287
1295
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1364,15 +1372,6 @@ const rawMetdataJSON = {
1364
1372
  preferred_cache: "login.sovcloud-identity.sg",
1365
1373
  aliases: ["login.sovcloud-identity.sg"],
1366
1374
  },
1367
- {
1368
- preferred_network: "login.windows-ppe.net",
1369
- preferred_cache: "login.windows-ppe.net",
1370
- aliases: [
1371
- "login.windows-ppe.net",
1372
- "sts.windows-ppe.net",
1373
- "login.microsoft-ppe.com",
1374
- ],
1375
- },
1376
1375
  ],
1377
1376
  },
1378
1377
  };
@@ -1444,7 +1443,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
1444
1443
  return null;
1445
1444
  }
1446
1445
 
1447
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1446
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
1448
1447
  /*
1449
1448
  * Copyright (c) Microsoft Corporation. All rights reserved.
1450
1449
  * Licensed under the MIT License.
@@ -1454,8 +1453,6 @@ const AzureCloudInstance = {
1454
1453
  None: "none",
1455
1454
  // Microsoft Azure public cloud
1456
1455
  AzurePublic: "https://login.microsoftonline.com",
1457
- // Microsoft PPE
1458
- AzurePpe: "https://login.windows-ppe.net",
1459
1456
  // Microsoft Chinese national/regional cloud
1460
1457
  AzureChina: "https://login.chinacloudapi.cn",
1461
1458
  // Microsoft German national/regional cloud ("Black Forest")
@@ -1464,7 +1461,7 @@ const AzureCloudInstance = {
1464
1461
  AzureUsGovernment: "https://login.microsoftonline.us",
1465
1462
  };
1466
1463
 
1467
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1464
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
1468
1465
  /*
1469
1466
  * Copyright (c) Microsoft Corporation. All rights reserved.
1470
1467
  * Licensed under the MIT License.
@@ -1474,7 +1471,7 @@ function isCloudInstanceDiscoveryResponse(response) {
1474
1471
  response.hasOwnProperty("metadata"));
1475
1472
  }
1476
1473
 
1477
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1474
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
1478
1475
  /*
1479
1476
  * Copyright (c) Microsoft Corporation. All rights reserved.
1480
1477
  * Licensed under the MIT License.
@@ -1484,7 +1481,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
1484
1481
  response.hasOwnProperty("error_description"));
1485
1482
  }
1486
1483
 
1487
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1484
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
1488
1485
  /*
1489
1486
  * Copyright (c) Microsoft Corporation. All rights reserved.
1490
1487
  * Licensed under the MIT License.
@@ -1555,7 +1552,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
1555
1552
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
1556
1553
  const SetUserData = "setUserData";
1557
1554
 
1558
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1555
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
1559
1556
  /*
1560
1557
  * Copyright (c) Microsoft Corporation. All rights reserved.
1561
1558
  * Licensed under the MIT License.
@@ -1648,7 +1645,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
1648
1645
  };
1649
1646
  };
1650
1647
 
1651
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1648
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
1652
1649
 
1653
1650
  /*
1654
1651
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1759,7 +1756,7 @@ RegionDiscovery.IMDS_OPTIONS = {
1759
1756
  },
1760
1757
  };
1761
1758
 
1762
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1759
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
1763
1760
  /*
1764
1761
  * Copyright (c) Microsoft Corporation. All rights reserved.
1765
1762
  * Licensed under the MIT License.
@@ -1824,7 +1821,7 @@ function wasClockTurnedBack(cachedAt) {
1824
1821
  return cachedAtSec > nowSeconds();
1825
1822
  }
1826
1823
 
1827
- /*! @azure/msal-common v16.13.0 2026-08-18 */
1824
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
1828
1825
 
1829
1826
  /*
1830
1827
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2111,7 +2108,7 @@ function serializeAttributeTokens(attributeTokens) {
2111
2108
  return [...attributeTokens].sort().join(" ");
2112
2109
  }
2113
2110
 
2114
- /*! @azure/msal-common v16.13.0 2026-08-18 */
2111
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
2115
2112
 
2116
2113
  /*
2117
2114
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2155,8 +2152,6 @@ class Authority {
2155
2152
  switch (pathSegments[0].toLowerCase()) {
2156
2153
  case ADFS:
2157
2154
  return AuthorityType.Adfs;
2158
- case DSTS:
2159
- return AuthorityType.Dsts;
2160
2155
  }
2161
2156
  }
2162
2157
  return AuthorityType.Default;
@@ -3081,7 +3076,7 @@ function buildStaticAuthorityOptions(authOptions) {
3081
3076
  };
3082
3077
  }
3083
3078
 
3084
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3079
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
3085
3080
 
3086
3081
  /*
3087
3082
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3115,7 +3110,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
3115
3110
  }
3116
3111
  }
3117
3112
 
3118
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3113
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
3119
3114
 
3120
3115
  /*
3121
3116
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3311,7 +3306,7 @@ class ScopeSet {
3311
3306
  }
3312
3307
  }
3313
3308
 
3314
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3309
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
3315
3310
 
3316
3311
  /*
3317
3312
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3605,11 +3600,15 @@ function addExtraParameters(parameters, extraParams) {
3605
3600
  }
3606
3601
  /**
3607
3602
  * Default optional idToken claims requested on all auth requests.
3608
- * signin_state enables KMSI detection; login_hint enables login hint propagation.
3603
+ * signin_state enables KMSI detection; login_hint enables login hint propagation;
3604
+ * tenant_region_sub_scope identifies the sovereign enclave a tenant belongs to.
3609
3605
  */
3610
3606
  const DEFAULT_ID_TOKEN_CLAIMS = {
3611
3607
  [ClaimsRequestKeys.SIGNIN_STATE]: { essential: false },
3612
3608
  [ClaimsRequestKeys.LOGIN_HINT]: { essential: false },
3609
+ [ClaimsRequestKeys.TENANT_REGION_SUB_SCOPE]: {
3610
+ essential: false,
3611
+ },
3613
3612
  };
3614
3613
  /**
3615
3614
  * Parses a claims JSON string into an object, throwing a ClientConfigurationError
@@ -3668,8 +3667,8 @@ function deepMergeClaims(baseClaims, claimsToMerge) {
3668
3667
  /**
3669
3668
  * Parses claims JSON, optionally deep-merges a second client-originated claims string
3670
3669
  * (`claimsToMerge`, e.g. `claimsFromClient`) with precedence on conflicting keys, merges
3671
- * default optional idToken claims (signin_state, login_hint), and appends client
3672
- * capabilities (xms_cc) to the access_token section.
3670
+ * default optional idToken claims (signin_state, login_hint, tenant_region_sub_scope), and appends client
3671
+ * capabilities (xms_cc) to the access_token section
3673
3672
  * Does not overwrite idToken claims already specified by the caller.
3674
3673
  * @param claims - Existing claims JSON string from the request (may be undefined)
3675
3674
  * @param clientCapabilities - Client capabilities array from configuration
@@ -3793,7 +3792,7 @@ function addAttributeTokens(parameters, attributeTokens) {
3793
3792
  }
3794
3793
  }
3795
3794
 
3796
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3795
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
3797
3796
 
3798
3797
  /*
3799
3798
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3915,7 +3914,7 @@ function validateUrl(url, logger, correlationId) {
3915
3914
  }
3916
3915
  }
3917
3916
 
3918
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3917
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
3919
3918
 
3920
3919
  /*
3921
3920
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3963,7 +3962,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
3963
3962
  },
3964
3963
  };
3965
3964
 
3966
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3965
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
3967
3966
 
3968
3967
  /*
3969
3968
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3986,7 +3985,7 @@ const DEFAULT_TOKEN_BINDING_KEY_MANAGER = {
3986
3985
  },
3987
3986
  };
3988
3987
 
3989
- /*! @azure/msal-common v16.13.0 2026-08-18 */
3988
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
3990
3989
  /*
3991
3990
  * Copyright (c) Microsoft Corporation. All rights reserved.
3992
3991
  * Licensed under the MIT License.
@@ -4275,12 +4274,12 @@ class Logger {
4275
4274
  }
4276
4275
  }
4277
4276
 
4278
- /*! @azure/msal-common v16.13.0 2026-08-18 */
4277
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
4279
4278
  /* eslint-disable header/header */
4280
4279
  const name$1 = "@azure/msal-common";
4281
- const version$1 = "16.13.0";
4280
+ const version$1 = "16.14.0";
4282
4281
 
4283
- /*! @azure/msal-common v16.13.0 2026-08-18 */
4282
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
4284
4283
  /*
4285
4284
  * Copyright (c) Microsoft Corporation. All rights reserved.
4286
4285
  * Licensed under the MIT License.
@@ -4288,7 +4287,7 @@ const version$1 = "16.13.0";
4288
4287
  const cacheQuotaExceeded = "cache_quota_exceeded";
4289
4288
  const cacheErrorUnknown = "cache_error_unknown";
4290
4289
 
4291
- /*! @azure/msal-common v16.13.0 2026-08-18 */
4290
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
4292
4291
 
4293
4292
  /*
4294
4293
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4326,7 +4325,7 @@ function createCacheError(e) {
4326
4325
  }
4327
4326
  }
4328
4327
 
4329
- /*! @azure/msal-common v16.13.0 2026-08-18 */
4328
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
4330
4329
 
4331
4330
  /*
4332
4331
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4337,9 +4336,10 @@ function createCacheError(e) {
4337
4336
  * @internal
4338
4337
  */
4339
4338
  class CacheManager {
4340
- constructor(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions) {
4339
+ constructor(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions, tokenBindingKeyManager) {
4341
4340
  this.clientId = clientId;
4342
4341
  this.cryptoImpl = cryptoImpl;
4342
+ this.tokenBindingKeyManager = tokenBindingKeyManager;
4343
4343
  this.commonLogger = logger.clone(name$1, version$1);
4344
4344
  this.staticAuthorityOptions = staticAuthorityOptions;
4345
4345
  this.performanceClient = performanceClient;
@@ -4828,19 +4828,24 @@ class CacheManager {
4828
4828
  }
4829
4829
  this.removeItem(key, correlationId);
4830
4830
  this.performanceClient.incrementFields({ accessTokensRemoved: 1 }, correlationId);
4831
- // Remove Token Binding Key from key store for PoP Tokens Credentials
4831
+ // Remove Token Binding Key from key store for token-bound access token credentials
4832
4832
  if (credential.credentialType.toLowerCase() ===
4833
4833
  CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()) {
4834
- if (credential.tokenType === AuthenticationScheme$1.POP) {
4835
- const accessTokenWithAuthSchemeEntity = credential;
4836
- const kid = accessTokenWithAuthSchemeEntity.keyId;
4837
- if (kid) {
4838
- void this.cryptoImpl
4839
- .removeTokenBindingKey(kid, correlationId)
4840
- .catch(() => {
4841
- this.commonLogger.error(`0cx291 ${kid}`, correlationId);
4842
- this.performanceClient?.incrementFields({ removeTokenBindingKeyFailure: 1 }, correlationId);
4843
- });
4834
+ const tokenType = credential.tokenType?.toLowerCase();
4835
+ switch (tokenType) {
4836
+ case AuthenticationScheme$1.POP:
4837
+ case AuthenticationScheme$1.DPOP.toLowerCase(): {
4838
+ const accessTokenWithAuthSchemeEntity = credential;
4839
+ const kid = accessTokenWithAuthSchemeEntity.keyId;
4840
+ if (kid) {
4841
+ void this.tokenBindingKeyManager
4842
+ .removeTokenBindingKey(kid, correlationId)
4843
+ .catch(() => {
4844
+ this.commonLogger.error("0id34f", correlationId);
4845
+ this.performanceClient?.incrementFields({ removeTokenBindingKeyFailure: 1 }, correlationId);
4846
+ });
4847
+ }
4848
+ break;
4844
4849
  }
4845
4850
  }
4846
4851
  }
@@ -5381,16 +5386,15 @@ class CacheManager {
5381
5386
  }
5382
5387
  switch (normalizedFilterTokenType) {
5383
5388
  case "dpop":
5384
- return this.matchKeyBoundAccessToken(entity, filter, true);
5385
5389
  case AuthenticationScheme$1.SSH:
5386
- return this.matchKeyBoundAccessToken(entity, filter, false);
5390
+ return this.matchKeyBoundAccessToken(entity, filter);
5387
5391
  default:
5388
5392
  return true;
5389
5393
  }
5390
5394
  }
5391
- matchKeyBoundAccessToken(entity, filter, requireKeyId) {
5395
+ matchKeyBoundAccessToken(entity, filter) {
5392
5396
  if (!filter.keyId) {
5393
- return !requireKeyId;
5397
+ return true;
5394
5398
  }
5395
5399
  return this.matchKeyId(entity, filter.keyId);
5396
5400
  }
@@ -5509,7 +5513,7 @@ class DefaultStorageClass extends CacheManager {
5509
5513
  }
5510
5514
  }
5511
5515
 
5512
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5516
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
5513
5517
  /*
5514
5518
  * Copyright (c) Microsoft Corporation. All rights reserved.
5515
5519
  * Licensed under the MIT License.
@@ -5574,7 +5578,7 @@ const IntFields = new Set([
5574
5578
  "fetchRetryCount",
5575
5579
  ]);
5576
5580
 
5577
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5581
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
5578
5582
 
5579
5583
  /*
5580
5584
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5632,7 +5636,7 @@ class StubPerformanceClient {
5632
5636
  }
5633
5637
  }
5634
5638
 
5635
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5639
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
5636
5640
 
5637
5641
  /*
5638
5642
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5691,15 +5695,16 @@ function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions:
5691
5695
  ...DEFAULT_LOGGER_IMPLEMENTATION,
5692
5696
  ...userLoggerOption,
5693
5697
  };
5698
+ const resolvedTokenBindingKeyManager = tokenBindingKeyManager || DEFAULT_TOKEN_BINDING_KEY_MANAGER;
5694
5699
  return {
5695
5700
  authOptions: buildAuthOptions(userAuthOptions),
5696
5701
  systemOptions: { ...DEFAULT_SYSTEM_OPTIONS, ...userSystemOptions },
5697
5702
  loggerOptions: loggerOptions,
5698
5703
  storageInterface: storageImplementation ||
5699
- new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions, name$1, version$1), new StubPerformanceClient()),
5704
+ new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions, name$1, version$1), new StubPerformanceClient(), undefined, resolvedTokenBindingKeyManager),
5700
5705
  networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
5701
5706
  cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
5702
- tokenBindingKeyManager: tokenBindingKeyManager || DEFAULT_TOKEN_BINDING_KEY_MANAGER,
5707
+ tokenBindingKeyManager: resolvedTokenBindingKeyManager,
5703
5708
  clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
5704
5709
  libraryInfo: { ...DEFAULT_LIBRARY_INFO, ...libraryInfo },
5705
5710
  telemetry: { ...DEFAULT_TELEMETRY_OPTIONS, ...telemetry },
@@ -5729,7 +5734,7 @@ function isOidcProtocolMode(config) {
5729
5734
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
5730
5735
  }
5731
5736
 
5732
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5737
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
5733
5738
  /*
5734
5739
  * Copyright (c) Microsoft Corporation. All rights reserved.
5735
5740
  * Licensed under the MIT License.
@@ -5756,7 +5761,7 @@ function isOidcProtocolMode(config) {
5756
5761
  }
5757
5762
  }
5758
5763
 
5759
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5764
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
5760
5765
 
5761
5766
  /*
5762
5767
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5777,7 +5782,7 @@ function createJoseHeaderError(code, correlationId) {
5777
5782
  return new JoseHeaderError(code, correlationId);
5778
5783
  }
5779
5784
 
5780
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5785
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
5781
5786
  /*
5782
5787
  * Copyright (c) Microsoft Corporation. All rights reserved.
5783
5788
  * Licensed under the MIT License.
@@ -5802,7 +5807,7 @@ function isPlainObject(value) {
5802
5807
  return Object.getPrototypeOf(value) === proto;
5803
5808
  }
5804
5809
 
5805
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5810
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
5806
5811
  /*
5807
5812
  * Copyright (c) Microsoft Corporation. All rights reserved.
5808
5813
  * Licensed under the MIT License.
@@ -5812,7 +5817,7 @@ const missingAlgError = "missing_alg_error";
5812
5817
  const missingJwkError = "missing_jwk_error";
5813
5818
  const invalidJwkError = "invalid_jwk_error";
5814
5819
 
5815
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5820
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
5816
5821
 
5817
5822
  /*
5818
5823
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5878,7 +5883,7 @@ class JoseHeader {
5878
5883
  }
5879
5884
  }
5880
5885
 
5881
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5886
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
5882
5887
 
5883
5888
  /*
5884
5889
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5979,7 +5984,152 @@ class PopTokenGenerator {
5979
5984
  }
5980
5985
  }
5981
5986
 
5982
- /*! @azure/msal-common v16.13.0 2026-08-18 */
5987
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
5988
+
5989
+ /*
5990
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5991
+ * Licensed under the MIT License.
5992
+ */
5993
+ const DPOP_HTM_REGEX = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
5994
+ const DPOP_TOKEN_BINDING_KEY_TYPE = "dpop";
5995
+ const DPOP_JWT_HEADER_ALGORITHM = JsonWebTokenAlgorithms.ES256;
5996
+ function buildProofHeader(publicJwk, correlationId) {
5997
+ return JoseHeader.getDpopHeader({
5998
+ alg: DPOP_JWT_HEADER_ALGORITHM,
5999
+ jwk: publicJwk,
6000
+ }, correlationId);
6001
+ }
6002
+ function normalizeHtm(htm, correlationId) {
6003
+ if (typeof htm !== "string" || !DPOP_HTM_REGEX.test(htm)) {
6004
+ throw createClientConfigurationError(invalidDpopHtm, correlationId);
6005
+ }
6006
+ return htm.toUpperCase();
6007
+ }
6008
+ /**
6009
+ * Normalizes a URL for use as the DPoP htu claim.
6010
+ * Per RFC 9449 §4.2, htu is the target URI without query and fragment components.
6011
+ * WHATWG URL serialization handles RFC 3986 syntax- and scheme-based normalization
6012
+ * such as lowercasing scheme/host and eliding default ports.
6013
+ */
6014
+ function normalizeHtu(url, correlationId) {
6015
+ let parsedUrl;
6016
+ try {
6017
+ parsedUrl = new URL(url);
6018
+ }
6019
+ catch {
6020
+ throw createClientConfigurationError(urlParseError, correlationId);
6021
+ }
6022
+ if (!/^https:\/\//i.test(url) ||
6023
+ parsedUrl.protocol !== "https:" ||
6024
+ parsedUrl.username ||
6025
+ parsedUrl.password) {
6026
+ throw createClientConfigurationError(invalidDpopHtu, correlationId);
6027
+ }
6028
+ parsedUrl.search = "";
6029
+ parsedUrl.hash = "";
6030
+ return parsedUrl.href;
6031
+ }
6032
+ function validateDpopNonce(nonce, correlationId) {
6033
+ if (nonce !== undefined && nonce.trim().length === 0) {
6034
+ throw createClientConfigurationError(invalidDpopNonce, correlationId);
6035
+ }
6036
+ }
6037
+ /**
6038
+ * Builds RFC 9449 DPoP proof JWT payloads for token-endpoint and
6039
+ * resource-endpoint proof bindings.
6040
+ *
6041
+ * Not exported from any public package entry point.
6042
+ * This helper is internal-only until DPoP is wired into acquisition flows
6043
+ * in a subsequent work item.
6044
+ *
6045
+ * DPoP proofs do not contain SHR fields (at, ts, m, u, p, q).
6046
+ * @internal
6047
+ */
6048
+ class DpopProofGenerator {
6049
+ constructor(cryptoUtils, tokenBindingKeyManager) {
6050
+ this.cryptoUtils = cryptoUtils;
6051
+ this.tokenBindingKeyManager = tokenBindingKeyManager;
6052
+ }
6053
+ /**
6054
+ * Provisions a fresh DPoP key and returns the RFC 7638 JWK thumbprint used
6055
+ * as `dpop_jkt`.
6056
+ */
6057
+ async generateJkt(correlationId = "") {
6058
+ return this.tokenBindingKeyManager.provisionTokenBindingKey({
6059
+ tokenBindingKeyType: DPOP_TOKEN_BINDING_KEY_TYPE,
6060
+ tokenBindingKeyAlgorithm: DPOP_JWT_HEADER_ALGORITHM,
6061
+ correlationId,
6062
+ });
6063
+ }
6064
+ /**
6065
+ * Builds RFC 9449 claims for a token-endpoint DPoP proof.
6066
+ * - htm is always "POST" because token endpoint requests use HTTP POST (RFC 9449 §5).
6067
+ * - htu is the normalized token endpoint URI (query and fragment stripped).
6068
+ * - jti is a fresh CSPRNG-backed unique identifier for every proof.
6069
+ */
6070
+ buildTokenProofClaims(params, correlationId = "") {
6071
+ validateDpopNonce(params.nonce, correlationId);
6072
+ const claims = {
6073
+ jti: this.cryptoUtils.createNewGuid(),
6074
+ htm: "POST",
6075
+ htu: normalizeHtu(params.tokenEndpoint, correlationId),
6076
+ iat: nowSeconds(),
6077
+ };
6078
+ if (params.nonce !== undefined) {
6079
+ claims.nonce = params.nonce;
6080
+ }
6081
+ return claims;
6082
+ }
6083
+ /**
6084
+ * Builds and signs a compact DPoP proof JWT for a token-endpoint request.
6085
+ */
6086
+ async generateTokenProof(params, keyId, correlationId = "") {
6087
+ return this.generateProof(this.buildTokenProofClaims(params, correlationId), keyId, correlationId);
6088
+ }
6089
+ /**
6090
+ * Builds RFC 9449 claims for a resource-endpoint DPoP proof.
6091
+ * - htm is uppercased per RFC 9449 §4.2.
6092
+ * - htu is the normalized resource URI (query and fragment stripped).
6093
+ * - ath is the base64url-encoded SHA-256 hash of the ASCII access token.
6094
+ * - jti is a fresh CSPRNG-backed unique identifier for every proof.
6095
+ */
6096
+ buildResourceProofClaims(params, correlationId = "") {
6097
+ validateDpopNonce(params.nonce, correlationId);
6098
+ const claims = {
6099
+ jti: this.cryptoUtils.createNewGuid(),
6100
+ htm: normalizeHtm(params.htm, correlationId),
6101
+ htu: normalizeHtu(params.htu, correlationId),
6102
+ ath: params.ath,
6103
+ iat: nowSeconds(),
6104
+ };
6105
+ if (params.nonce !== undefined) {
6106
+ claims.nonce = params.nonce;
6107
+ }
6108
+ return claims;
6109
+ }
6110
+ /**
6111
+ * Builds and signs a compact DPoP proof JWT for a resource request.
6112
+ */
6113
+ async generateResourceProof(params, keyId, correlationId = "") {
6114
+ const { htu, htm, nonce } = params;
6115
+ if (!htu || !htm) {
6116
+ throw createClientConfigurationError(dpopMissingResourceContext, correlationId);
6117
+ }
6118
+ const ath = await this.cryptoUtils.hashString(params.accessToken);
6119
+ return this.generateProof(this.buildResourceProofClaims({
6120
+ htu,
6121
+ htm,
6122
+ ath,
6123
+ nonce,
6124
+ }, correlationId), keyId, correlationId);
6125
+ }
6126
+ async generateProof(claims, keyId, correlationId) {
6127
+ const publicJwk = await this.tokenBindingKeyManager.getTokenBindingPublicKeyJwk(keyId, correlationId);
6128
+ return this.cryptoUtils.signTokenBindingJwt(buildProofHeader(publicJwk, correlationId), claims, keyId, correlationId);
6129
+ }
6130
+ }
6131
+
6132
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
5983
6133
  /*
5984
6134
  * Copyright (c) Microsoft Corporation. All rights reserved.
5985
6135
  * Licensed under the MIT License.
@@ -6043,7 +6193,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
6043
6193
  uiNotAllowed: uiNotAllowed
6044
6194
  });
6045
6195
 
6046
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6196
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
6047
6197
 
6048
6198
  /*
6049
6199
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6110,7 +6260,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
6110
6260
  return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
6111
6261
  }
6112
6262
 
6113
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6263
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
6114
6264
 
6115
6265
  /*
6116
6266
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6129,7 +6279,7 @@ class ServerError extends AuthError {
6129
6279
  }
6130
6280
  }
6131
6281
 
6132
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6282
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
6133
6283
 
6134
6284
  /*
6135
6285
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6200,7 +6350,7 @@ function parseRequestState(base64Decode, state, correlationId) {
6200
6350
  }
6201
6351
  }
6202
6352
 
6203
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6353
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
6204
6354
 
6205
6355
  /*
6206
6356
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6289,7 +6439,21 @@ class ResponseHandler {
6289
6439
  }
6290
6440
  // Add keyId from request to serverTokenResponse if defined
6291
6441
  serverTokenResponse.key_id =
6292
- serverTokenResponse.key_id || request.sshKid || undefined;
6442
+ serverTokenResponse.key_id ||
6443
+ request.dpopJkt ||
6444
+ request.sshKid ||
6445
+ undefined;
6446
+ if (request.authenticationScheme === AuthenticationScheme$1.DPOP) {
6447
+ if (serverTokenResponse.token_type?.toLowerCase() !==
6448
+ AuthenticationScheme$1.DPOP.toLowerCase()) {
6449
+ this.performanceClient?.addFields({
6450
+ dpopTokenTypeMismatch: serverTokenResponse.token_type,
6451
+ }, request.correlationId);
6452
+ throw createClientAuthError(dpopTokenTypeMismatch, request.correlationId);
6453
+ }
6454
+ serverTokenResponse.token_type =
6455
+ AuthenticationScheme$1.DPOP;
6456
+ }
6293
6457
  // Compute components once for entity storage (fallback if hash not provided by client)
6294
6458
  const attributeTokenPartition = serializeAttributeTokens(request.attributeTokens);
6295
6459
  const cacheKeyComponents = additionalCacheKeyComponents ??
@@ -6452,7 +6616,9 @@ class ResponseHandler {
6452
6616
  let extExpiresOn;
6453
6617
  let refreshOn;
6454
6618
  let familyId = "";
6619
+ let dpopProof;
6455
6620
  if (cacheRecord.accessToken) {
6621
+ const accessTokenType = cacheRecord.accessToken.tokenType?.toLowerCase();
6456
6622
  /*
6457
6623
  * if the request object has `popKid` property, `signPopToken` will be set to false and
6458
6624
  * the token will be returned unsigned
@@ -6470,6 +6636,18 @@ class ResponseHandler {
6470
6636
  else {
6471
6637
  accessToken = cacheRecord.accessToken.secret;
6472
6638
  }
6639
+ if (accessTokenType ===
6640
+ AuthenticationScheme$1.DPOP.toLowerCase()) {
6641
+ if (!cacheRecord.accessToken.keyId) {
6642
+ throw createClientAuthError(keyIdMissing, request.correlationId);
6643
+ }
6644
+ const dpopProofGenerator = new DpopProofGenerator(cryptoObj, tokenBindingKeyManager);
6645
+ dpopProof = await dpopProofGenerator.generateResourceProof({
6646
+ htu: request.resourceRequestUri,
6647
+ htm: request.resourceRequestMethod,
6648
+ accessToken: cacheRecord.accessToken.secret,
6649
+ }, cacheRecord.accessToken.keyId, request.correlationId);
6650
+ }
6473
6651
  responseScopes = ScopeSet.fromString(cacheRecord.accessToken.target, request.correlationId).asArray();
6474
6652
  // Access token expiresOn cached in seconds, converting to Date for AuthenticationResult
6475
6653
  expiresOn = toDateFromSeconds(cacheRecord.accessToken.expiresOn);
@@ -6486,6 +6664,15 @@ class ResponseHandler {
6486
6664
  }
6487
6665
  const uid = idTokenClaims?.oid || idTokenClaims?.sub || "";
6488
6666
  const tid = idTokenClaims?.tid || "";
6667
+ /*
6668
+ * Surface the sovereign enclave for telemetry. This runs for both freshly acquired
6669
+ * and cache-served tokens because SilentFlowClient shares this method, so the field
6670
+ * is present on silent requests that never hit the network.
6671
+ */
6672
+ const regionSubScope = idTokenClaims?.tenant_region_sub_scope;
6673
+ if (typeof regionSubScope === "string") {
6674
+ performanceClient?.addFields({ regionSubScope }, request.correlationId);
6675
+ }
6489
6676
  // for hybrid + native bridge enablement, send back the native account Id
6490
6677
  if (serverTokenResponse?.spa_accountid && !!cacheRecord.account) {
6491
6678
  // Set on deprecated top-level for downgrade compat
@@ -6514,6 +6701,7 @@ class ResponseHandler {
6514
6701
  idToken: cacheRecord?.idToken?.secret || "",
6515
6702
  idTokenClaims: idTokenClaims || {},
6516
6703
  accessToken: accessToken,
6704
+ dpopProof,
6517
6705
  fromCache: fromTokenCache,
6518
6706
  expiresOn: expiresOn,
6519
6707
  extExpiresOn: extExpiresOn,
@@ -6521,7 +6709,10 @@ class ResponseHandler {
6521
6709
  correlationId: request.correlationId,
6522
6710
  requestId: requestId || "",
6523
6711
  familyId: familyId,
6524
- tokenType: cacheRecord.accessToken?.tokenType || "",
6712
+ tokenType: cacheRecord.accessToken?.tokenType?.toLowerCase() ===
6713
+ AuthenticationScheme$1.DPOP.toLowerCase()
6714
+ ? AuthenticationScheme$1.DPOP
6715
+ : cacheRecord.accessToken?.tokenType || "",
6525
6716
  state: requestState ? requestState.userRequestState : "",
6526
6717
  cloudGraphHostName: cacheRecord.account?.cloudGraphHostName || "",
6527
6718
  msGraphHost: cacheRecord.account?.msGraphHost || "",
@@ -6572,7 +6763,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
6572
6763
  return baseAccount;
6573
6764
  }
6574
6765
 
6575
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6766
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
6576
6767
  /*
6577
6768
  * Copyright (c) Microsoft Corporation. All rights reserved.
6578
6769
  * Licensed under the MIT License.
@@ -6582,7 +6773,7 @@ const CcsCredentialType = {
6582
6773
  UPN: "UPN",
6583
6774
  };
6584
6775
 
6585
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6776
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
6586
6777
  /*
6587
6778
  * Copyright (c) Microsoft Corporation. All rights reserved.
6588
6779
  * Licensed under the MIT License.
@@ -6601,7 +6792,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
6601
6792
  }
6602
6793
  }
6603
6794
 
6604
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6795
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
6605
6796
 
6606
6797
  /*
6607
6798
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6625,7 +6816,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
6625
6816
  };
6626
6817
  }
6627
6818
 
6628
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6819
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
6629
6820
 
6630
6821
  /*
6631
6822
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6711,7 +6902,7 @@ class ThrottlingUtils {
6711
6902
  }
6712
6903
  }
6713
6904
 
6714
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6905
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
6715
6906
 
6716
6907
  /*
6717
6908
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6742,7 +6933,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
6742
6933
  return new NetworkError(error, httpStatus, responseHeaders);
6743
6934
  }
6744
6935
 
6745
- /*! @azure/msal-common v16.13.0 2026-08-18 */
6936
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
6746
6937
 
6747
6938
  /*
6748
6939
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6772,6 +6963,23 @@ function createTokenRequestHeaders(logger, preventCorsPreflight, ccsCred) {
6772
6963
  }
6773
6964
  return headers;
6774
6965
  }
6966
+ /**
6967
+ * Adds the DPoP proof header for token endpoint requests when DPoP is requested.
6968
+ * @internal
6969
+ */
6970
+ async function addDpopTokenProofHeader(headers, request, tokenEndpoint, cryptoUtils, tokenBindingKeyManager) {
6971
+ if (request.authenticationScheme !== AuthenticationScheme$1.DPOP) {
6972
+ return;
6973
+ }
6974
+ const dpopProofGenerator = new DpopProofGenerator(cryptoUtils, tokenBindingKeyManager);
6975
+ const keyId = request.dpopJkt;
6976
+ if (!keyId?.trim()) {
6977
+ throw createClientAuthError(keyIdMissing, request.correlationId);
6978
+ }
6979
+ headers[HeaderNames.DPOP] = await dpopProofGenerator.generateTokenProof({
6980
+ tokenEndpoint,
6981
+ }, keyId, request.correlationId);
6982
+ }
6775
6983
  /**
6776
6984
  * Creates query string for the /token request
6777
6985
  * @param request
@@ -6858,7 +7066,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
6858
7066
  return response;
6859
7067
  }
6860
7068
 
6861
- /*! @azure/msal-common v16.13.0 2026-08-18 */
7069
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
6862
7070
 
6863
7071
  /*
6864
7072
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6950,6 +7158,7 @@ class AuthorizationCodeClient {
6950
7158
  }
6951
7159
  }
6952
7160
  const headers = createTokenRequestHeaders(this.logger, this.config.systemOptions.preventCorsPreflight, ccsCredential || request.ccsCredential);
7161
+ await addDpopTokenProofHeader(headers, request, endpoint, this.cryptoUtils, this.config.tokenBindingKeyManager);
6953
7162
  const thumbprint = getRequestThumbprint(this.config.authOptions.clientId, request);
6954
7163
  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);
6955
7164
  }
@@ -7121,7 +7330,7 @@ class AuthorizationCodeClient {
7121
7330
  }
7122
7331
  }
7123
7332
 
7124
- /*! @azure/msal-common v16.13.0 2026-08-18 */
7333
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
7125
7334
 
7126
7335
  /*
7127
7336
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7348,7 +7557,7 @@ function extractLoginHint(account) {
7348
7557
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7349
7558
  }
7350
7559
 
7351
- /*! @azure/msal-common v16.13.0 2026-08-18 */
7560
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
7352
7561
 
7353
7562
  /*
7354
7563
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7897,7 +8106,7 @@ class PerformanceClient {
7897
8106
  }
7898
8107
  }
7899
8108
 
7900
- /*! @azure/msal-common v16.13.0 2026-08-18 */
8109
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
7901
8110
 
7902
8111
  /*
7903
8112
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8008,6 +8217,12 @@ class RefreshTokenClient {
8008
8217
  type: CcsCredentialType.HOME_ACCOUNT_ID,
8009
8218
  },
8010
8219
  };
8220
+ if (refreshTokenRequest.authenticationScheme ===
8221
+ AuthenticationScheme$1.DPOP &&
8222
+ !refreshTokenRequest.dpopJkt) {
8223
+ const dpopProofGenerator = new DpopProofGenerator(this.cryptoUtils, this.config.tokenBindingKeyManager);
8224
+ refreshTokenRequest.dpopJkt = await dpopProofGenerator.generateJkt(request.correlationId);
8225
+ }
8011
8226
  try {
8012
8227
  return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest, apiId);
8013
8228
  }
@@ -8033,6 +8248,7 @@ class RefreshTokenClient {
8033
8248
  const endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);
8034
8249
  const requestBody = await invokeAsync(this.createTokenRequestBody.bind(this), RefreshTokenClientCreateTokenRequestBody, this.logger, this.performanceClient, request.correlationId)(request);
8035
8250
  const headers = createTokenRequestHeaders(this.logger, this.config.systemOptions.preventCorsPreflight, request.ccsCredential);
8251
+ await addDpopTokenProofHeader(headers, request, endpoint, this.cryptoUtils, this.config.tokenBindingKeyManager);
8036
8252
  const thumbprint = getRequestThumbprint(this.config.authOptions.clientId, request);
8037
8253
  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);
8038
8254
  }
@@ -8124,7 +8340,7 @@ class RefreshTokenClient {
8124
8340
  }
8125
8341
  }
8126
8342
 
8127
- /*! @azure/msal-common v16.13.0 2026-08-18 */
8343
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
8128
8344
 
8129
8345
  /*
8130
8346
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8417,7 +8633,7 @@ class StubServerTelemetryManager extends ServerTelemetryManager {
8417
8633
  clearNativeBrokerErrorCode() { }
8418
8634
  }
8419
8635
 
8420
- /*! @azure/msal-common v16.13.0 2026-08-18 */
8636
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
8421
8637
 
8422
8638
  /*
8423
8639
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8486,6 +8702,22 @@ class SilentFlowClient {
8486
8702
  lastCacheOutcome = CacheOutcome.PROACTIVELY_REFRESHED;
8487
8703
  // don't throw ClientAuthError.createRefreshRequiredError(), return cached token instead
8488
8704
  }
8705
+ const cachedAccessTokenType = cachedAccessToken.tokenType?.toLowerCase();
8706
+ if (cachedAccessTokenType === AuthenticationScheme$1.DPOP.toLowerCase()) {
8707
+ if (!cachedAccessToken.keyId) {
8708
+ this.logger.info("1enswf", request.correlationId);
8709
+ this.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN, request.correlationId);
8710
+ throw createClientAuthError(tokenRefreshRequired, request.correlationId);
8711
+ }
8712
+ try {
8713
+ await this.config.tokenBindingKeyManager.getTokenBindingPublicKeyJwk(cachedAccessToken.keyId, request.correlationId);
8714
+ }
8715
+ catch {
8716
+ this.logger.info("14djth", request.correlationId);
8717
+ this.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN, request.correlationId);
8718
+ throw createClientAuthError(tokenRefreshRequired, request.correlationId);
8719
+ }
8720
+ }
8489
8721
  const environment = request.authority || this.authority.getPreferredCache();
8490
8722
  const cacheRecord = {
8491
8723
  account: this.cacheManager.getAccount(this.cacheManager.generateAccountKey(request.account), request.correlationId),
@@ -8528,7 +8760,7 @@ class SilentFlowClient {
8528
8760
  }
8529
8761
  }
8530
8762
 
8531
- /*! @azure/msal-common v16.13.0 2026-08-18 */
8763
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
8532
8764
 
8533
8765
  /*
8534
8766
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8544,7 +8776,7 @@ const StubbedNetworkModule = {
8544
8776
  },
8545
8777
  };
8546
8778
 
8547
- /*! @azure/msal-common v16.13.0 2026-08-18 */
8779
+ /*! @azure/msal-common v16.14.0 2026-08-28 */
8548
8780
 
8549
8781
  /*
8550
8782
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11068,10 +11300,20 @@ class LocalStorage {
11068
11300
  }
11069
11301
  if (context && context !== this.clientId) {
11070
11302
  this.logger.trace(`04rtdy ${context}`, correlationId);
11071
- perfMeasurement.end({
11072
- success: false,
11073
- errorCode: "contextMismatch",
11074
- });
11303
+ /*
11304
+ * Discarded rather than ended: this is expected routing, not a failure.
11305
+ * BroadcastChannel has no server-side filtering, so every MSAL instance on
11306
+ * the origin receives every message and drops the ones scoped to another
11307
+ * clientId. With N instances sharing an origin each write produces N-1 of
11308
+ * these no-ops, so emitting them scales O(N^2) - and because they were
11309
+ * previously reported with success: false they bypassed both the 1% misc
11310
+ * sampler and the observability trimming in the 1P telemetry reporter,
11311
+ * shipping at full payload. On origins hosting many embedded first-party
11312
+ * apps that dwarfed all other MSAL telemetry combined. These events carry
11313
+ * no diagnostic value, so drop the measurement entirely. Genuine faults
11314
+ * such as the noKey case above are still reported.
11315
+ */
11316
+ perfMeasurement.discard();
11075
11317
  return;
11076
11318
  }
11077
11319
  if (!value) {
@@ -11155,7 +11397,7 @@ const EventType = {
11155
11397
 
11156
11398
  /* eslint-disable header/header */
11157
11399
  const name = "@azure/msal-browser";
11158
- const version = "5.19.0";
11400
+ const version = "5.20.0";
11159
11401
 
11160
11402
  /*
11161
11403
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11190,8 +11432,8 @@ const MigrationRemovalReason = {
11190
11432
  * This class implements the cache storage interface for MSAL through browser local or session storage.
11191
11433
  */
11192
11434
  class BrowserCacheManager extends CacheManager {
11193
- constructor(clientId, cacheConfig, cryptoImpl, logger, performanceClient, eventHandler, staticAuthorityOptions) {
11194
- super(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions);
11435
+ constructor(clientId, cacheConfig, cryptoImpl, logger, performanceClient, eventHandler, staticAuthorityOptions, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER) {
11436
+ super(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions, tokenBindingKeyManager);
11195
11437
  this.cacheConfig = cacheConfig;
11196
11438
  this.logger = logger;
11197
11439
  this.internalStorage = new MemoryStorage();
@@ -12609,12 +12851,12 @@ function getStorageImplementation(clientId, cacheLocation, logger, performanceCl
12609
12851
  }
12610
12852
  return new MemoryStorage();
12611
12853
  }
12612
- const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger, performanceClient, eventHandler) => {
12854
+ const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger, performanceClient, eventHandler, staticAuthorityOptions, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER) => {
12613
12855
  const cacheOptions = {
12614
12856
  cacheLocation: BrowserCacheLocation.MemoryStorage,
12615
12857
  cacheRetentionDays: 5,
12616
12858
  };
12617
- return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger, performanceClient, eventHandler);
12859
+ return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger, performanceClient, eventHandler, staticAuthorityOptions, tokenBindingKeyManager);
12618
12860
  };
12619
12861
 
12620
12862
  /*
@@ -12913,8 +13155,60 @@ async function clearCacheOnLogout(browserStorage, browserCrypto, logger, correla
12913
13155
  const SUPPORTED_AUTHENTICATION_SCHEMES = new Set([
12914
13156
  AuthenticationScheme$1.BEARER,
12915
13157
  AuthenticationScheme$1.POP,
13158
+ AuthenticationScheme$1.DPOP,
12916
13159
  AuthenticationScheme$1.SSH,
12917
13160
  ]);
13161
+ function validateSshRequest(request, correlationId) {
13162
+ if (!request.sshJwk) {
13163
+ throw createClientConfigurationError(missingSshJwk, correlationId);
13164
+ }
13165
+ if (!request.sshKid) {
13166
+ throw createClientConfigurationError(missingSshKid, correlationId);
13167
+ }
13168
+ }
13169
+ function validateDpopRequest(request, correlationId) {
13170
+ if (!request.resourceRequestMethod?.trim() ||
13171
+ !request.resourceRequestUri?.trim()) {
13172
+ throw createClientConfigurationError(dpopMissingResourceContext, correlationId);
13173
+ }
13174
+ }
13175
+ /**
13176
+ * Resolves the token-binding parameters needed before building authorize or token requests.
13177
+ * Public PCA DPoP requests use a dpopJkt thumbprint, while platform broker PoP requests use
13178
+ * a reqCnf confirmation claim. Requests that do not require request-time token binding return
13179
+ * no additional parameters.
13180
+ */
13181
+ async function getTokenBindingRequestParams(request, tokenBindingKeyManager, logger, performanceClient) {
13182
+ switch (request.authenticationScheme) {
13183
+ case AuthenticationScheme$1.DPOP:
13184
+ if (request.platformBroker) {
13185
+ return {};
13186
+ }
13187
+ if (request.dpopJkt) {
13188
+ return { dpopJkt: request.dpopJkt };
13189
+ }
13190
+ return {
13191
+ dpopJkt: await tokenBindingKeyManager.provisionTokenBindingKey({
13192
+ tokenBindingKeyType: AuthenticationScheme$1.DPOP.toLowerCase(),
13193
+ tokenBindingKeyAlgorithm: JsonWebTokenAlgorithms.ES256,
13194
+ correlationId: request.correlationId,
13195
+ }),
13196
+ };
13197
+ case AuthenticationScheme$1.POP:
13198
+ if (!request.platformBroker) {
13199
+ return {};
13200
+ }
13201
+ const cryptoOps = new CryptoOps(logger, performanceClient);
13202
+ if (request.popKid) {
13203
+ return { reqCnf: cryptoOps.encodeKid(request.popKid) };
13204
+ }
13205
+ const popTokenGenerator = new PopTokenGenerator(cryptoOps, tokenBindingKeyManager, performanceClient);
13206
+ const generatedReqCnfData = await invokeAsync(popTokenGenerator.generateCnf.bind(popTokenGenerator), PopTokenGenerateCnf, logger, performanceClient, request.correlationId)(request, logger);
13207
+ return { reqCnf: generatedReqCnfData.reqCnfString };
13208
+ default:
13209
+ return {};
13210
+ }
13211
+ }
12918
13212
  /**
12919
13213
  * Initializer function for all request APIs
12920
13214
  * @param request
@@ -12942,13 +13236,13 @@ async function initializeBaseRequest(request, config, performanceClient, logger,
12942
13236
  if (!SUPPORTED_AUTHENTICATION_SCHEMES.has(validatedRequest.authenticationScheme)) {
12943
13237
  throw createClientConfigurationError(unsupportedAuthenticationScheme, correlationId);
12944
13238
  }
12945
- if (validatedRequest.authenticationScheme ===
12946
- AuthenticationScheme$1.SSH) {
12947
- if (!request.sshJwk) {
12948
- throw createClientConfigurationError(missingSshJwk, correlationId);
12949
- }
12950
- if (!request.sshKid) {
12951
- throw createClientConfigurationError(missingSshKid, correlationId);
13239
+ switch (validatedRequest.authenticationScheme) {
13240
+ case AuthenticationScheme$1.SSH:
13241
+ validateSshRequest(request, correlationId);
13242
+ break;
13243
+ case AuthenticationScheme$1.DPOP: {
13244
+ validateDpopRequest(request, correlationId);
13245
+ break;
12952
13246
  }
12953
13247
  }
12954
13248
  logger.verbose(`1ecmns ${validatedRequest.authenticationScheme}`, correlationId);
@@ -14406,22 +14700,16 @@ async function getStandardParameters(config, authority, request, logger, perform
14406
14700
  isPlatformAuthorizeRequest: true,
14407
14701
  }, request.correlationId);
14408
14702
  // pass the req_cnf for POP
14409
- if (request.authenticationScheme === AuthenticationScheme$1.POP) {
14410
- const cryptoOps = new CryptoOps(logger, performanceClient);
14411
- const tokenBindingKeyManager = new TokenBindingKeyManager(logger, performanceClient);
14412
- const popTokenGenerator = new PopTokenGenerator(cryptoOps, tokenBindingKeyManager, performanceClient);
14413
- // req_cnf is always sent as a string for SPAs
14414
- let reqCnfData;
14415
- if (!request.popKid) {
14416
- const generatedReqCnfData = await invokeAsync(popTokenGenerator.generateCnf.bind(popTokenGenerator), PopTokenGenerateCnf, logger, performanceClient, request.correlationId)(request, logger);
14417
- reqCnfData = generatedReqCnfData.reqCnfString;
14418
- }
14419
- else {
14420
- reqCnfData = cryptoOps.encodeKid(request.popKid);
14421
- }
14422
- addPopToken(parameters, reqCnfData);
14703
+ if (request.authenticationScheme ===
14704
+ AuthenticationScheme$1.POP &&
14705
+ request.reqCnf) {
14706
+ addPopToken(parameters, request.reqCnf);
14423
14707
  }
14424
14708
  }
14709
+ if (request.authenticationScheme === AuthenticationScheme$1.DPOP &&
14710
+ request.dpopJkt) {
14711
+ parameters.set(DPOP_JKT, request.dpopJkt);
14712
+ }
14425
14713
  instrumentBrokerParams(parameters, request.correlationId, performanceClient);
14426
14714
  return parameters;
14427
14715
  }
@@ -15613,9 +15901,11 @@ class PopupClient extends StandardInteractionClient {
15613
15901
  const serverTelemetryManager = initializeServerTelemetryManager(ApiId.acquireTokenPopup, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
15614
15902
  const pkce = pkceCodes ||
15615
15903
  (await invokeAsync(generatePkceCodes, GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId));
15904
+ const tokenBindingParams = await getTokenBindingRequestParams(request, this.tokenBindingKeyManager, this.logger, this.performanceClient);
15616
15905
  const popupRequest = {
15617
15906
  ...request,
15618
15907
  codeChallenge: pkce.challenge,
15908
+ ...tokenBindingParams,
15619
15909
  };
15620
15910
  try {
15621
15911
  // Initialize the client
@@ -15649,7 +15939,7 @@ class PopupClient extends StandardInteractionClient {
15649
15939
  // Wait for the redirect bridge response
15650
15940
  const responseString = await this.waitForPopupResponse(request, popupWindow, popupParams.popupWindowParent);
15651
15941
  const serverParams = invoke(deserializeResponse, DeserializeResponse, this.logger, this.performanceClient, this.correlationId)(responseString, this.config.auth.OIDCOptions.responseMode, this.logger, this.correlationId);
15652
- 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);
15942
+ 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);
15653
15943
  }
15654
15944
  }
15655
15945
  catch (e) {
@@ -15673,10 +15963,12 @@ class PopupClient extends StandardInteractionClient {
15673
15963
  const earJwk = await invokeAsync(generateEarKey, GenerateEarKey, this.logger, this.performanceClient, correlationId)();
15674
15964
  const pkce = pkceCodes ||
15675
15965
  (await invokeAsync(generatePkceCodes, GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId));
15966
+ const tokenBindingParams = await getTokenBindingRequestParams(request, this.tokenBindingKeyManager, this.logger, this.performanceClient);
15676
15967
  const popupRequest = {
15677
15968
  ...request,
15678
15969
  earJwk: earJwk,
15679
15970
  codeChallenge: pkce.challenge,
15971
+ ...tokenBindingParams,
15680
15972
  };
15681
15973
  const popupWindow = await this.openPostFormPopup(popupRequest, discoveredAuthority, popupParams, correlationId, true);
15682
15974
  // Monitor the popup for the hash. Return the string value and close the popup when the hash is received. Default timeout is 60 seconds.
@@ -16063,9 +16355,11 @@ class RedirectClient extends StandardInteractionClient {
16063
16355
  const correlationId = request.correlationId;
16064
16356
  const serverTelemetryManager = initializeServerTelemetryManager(ApiId.acquireTokenRedirect, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
16065
16357
  const pkceCodes = await invokeAsync(generatePkceCodes, GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId);
16358
+ const tokenBindingParams = await getTokenBindingRequestParams(request, this.tokenBindingKeyManager, this.logger, this.performanceClient);
16066
16359
  const redirectRequest = {
16067
16360
  ...request,
16068
16361
  codeChallenge: pkceCodes.challenge,
16362
+ ...tokenBindingParams,
16069
16363
  };
16070
16364
  this.browserStorage.cacheAuthorizeRequest(redirectRequest, this.correlationId, pkceCodes.verifier);
16071
16365
  try {
@@ -16105,10 +16399,12 @@ class RedirectClient extends StandardInteractionClient {
16105
16399
  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);
16106
16400
  const earJwk = await invokeAsync(generateEarKey, GenerateEarKey, this.logger, this.performanceClient, correlationId)();
16107
16401
  const pkceCodes = await invokeAsync(generatePkceCodes, GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId);
16402
+ const tokenBindingParams = await getTokenBindingRequestParams(request, this.tokenBindingKeyManager, this.logger, this.performanceClient);
16108
16403
  const redirectRequest = {
16109
16404
  ...request,
16110
16405
  earJwk: earJwk,
16111
16406
  codeChallenge: pkceCodes.challenge,
16407
+ ...tokenBindingParams,
16112
16408
  };
16113
16409
  this.browserStorage.cacheAuthorizeRequest(redirectRequest, this.correlationId, pkceCodes.verifier);
16114
16410
  const form = await getEARForm(document, this.config, discoveredAuthority, redirectRequest, this.logger, this.performanceClient);
@@ -16678,8 +16974,8 @@ class SilentIframeClient extends StandardInteractionClient {
16678
16974
  * @param userRequestScopes
16679
16975
  */
16680
16976
  async silentTokenHelper(authClient, request) {
16681
- const { serverParams, pkceCodes } = await this.silentAuthorizeHelper(authClient, request);
16682
- 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);
16977
+ const { serverParams, pkceCodes, silentRequest } = await this.silentAuthorizeHelper(authClient, request);
16978
+ 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);
16683
16979
  }
16684
16980
  /**
16685
16981
  * Shared helper that generates PKCE codes, builds the /authorize URL,
@@ -16690,9 +16986,11 @@ class SilentIframeClient extends StandardInteractionClient {
16690
16986
  async silentAuthorizeHelper(authClient, request) {
16691
16987
  const correlationId = request.correlationId;
16692
16988
  const pkceCodes = await invokeAsync(generatePkceCodes, GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId);
16989
+ const tokenBindingParams = await getTokenBindingRequestParams(request, this.tokenBindingKeyManager, this.logger, this.performanceClient);
16693
16990
  const silentRequest = {
16694
16991
  ...request,
16695
16992
  codeChallenge: pkceCodes.challenge,
16993
+ ...tokenBindingParams,
16696
16994
  };
16697
16995
  // Create the iframe, register the response listener, then navigate, so the listener is active before the iframe can respond.
16698
16996
  const iframe = createHiddenIframe();
@@ -16746,9 +17044,11 @@ class SilentRefreshClient extends StandardInteractionClient {
16746
17044
  */
16747
17045
  async acquireToken(request) {
16748
17046
  const baseRequest = await invokeAsync(initializeBaseRequest, InitializeBaseRequest, this.logger, this.performanceClient, request.correlationId)(request, this.config, this.performanceClient, this.logger, this.correlationId);
17047
+ const tokenBindingParams = await getTokenBindingRequestParams(baseRequest, this.tokenBindingKeyManager, this.logger, this.performanceClient);
16749
17048
  const silentRequest = {
16750
17049
  ...request,
16751
17050
  ...baseRequest,
17051
+ ...tokenBindingParams,
16752
17052
  };
16753
17053
  if (request.redirectUri) {
16754
17054
  // 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
@@ -16836,10 +17136,12 @@ class SilentAuthCodeClient extends StandardInteractionClient {
16836
17136
  this.correlationId);
16837
17137
  const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
16838
17138
  try {
17139
+ const tokenBindingParams = await getTokenBindingRequestParams(silentRequest, this.tokenBindingKeyManager, this.logger, this.performanceClient);
16839
17140
  // Create auth code request (PKCE not needed)
16840
17141
  const authCodeRequest = {
16841
17142
  ...silentRequest,
16842
17143
  code: request.code,
17144
+ ...tokenBindingParams,
16843
17145
  };
16844
17146
  // Initialize the client
16845
17147
  const clientConfig = await invokeAsync(this.getClientConfiguration.bind(this), StandardInteractionClientGetClientConfiguration, this.logger, this.performanceClient, this.correlationId)({
@@ -16980,14 +17282,14 @@ class StandardController {
16980
17282
  this.eventHandler = new EventHandler(this.logger);
16981
17283
  // Initialize the browser storage class.
16982
17284
  this.browserStorage = this.isBrowserEnvironment
16983
- ? new BrowserCacheManager(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger, this.performanceClient, this.eventHandler, buildStaticAuthorityOptions(this.config.auth))
16984
- : DEFAULT_BROWSER_CACHE_MANAGER(this.config.auth.clientId, this.logger, this.performanceClient, this.eventHandler);
17285
+ ? new BrowserCacheManager(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger, this.performanceClient, this.eventHandler, buildStaticAuthorityOptions(this.config.auth), this.tokenBindingKeyManager)
17286
+ : DEFAULT_BROWSER_CACHE_MANAGER(this.config.auth.clientId, this.logger, this.performanceClient, this.eventHandler, undefined, this.tokenBindingKeyManager);
16985
17287
  // initialize in memory storage for native flows
16986
17288
  const nativeCacheOptions = {
16987
17289
  cacheLocation: BrowserCacheLocation.MemoryStorage,
16988
17290
  cacheRetentionDays: 5,
16989
17291
  };
16990
- this.nativeInternalStorage = new BrowserCacheManager(this.config.auth.clientId, nativeCacheOptions, this.browserCrypto, this.logger, this.performanceClient, this.eventHandler);
17292
+ this.nativeInternalStorage = new BrowserCacheManager(this.config.auth.clientId, nativeCacheOptions, this.browserCrypto, this.logger, this.performanceClient, this.eventHandler, undefined, this.tokenBindingKeyManager);
16991
17293
  this.activeSilentTokenRequests = new Map();
16992
17294
  // Register listener functions
16993
17295
  this.trackStateChange = this.trackStateChange.bind(this);
@@ -18941,11 +19243,14 @@ class NestedAppAuthController {
18941
19243
  this.browserCrypto = operatingContext.isBrowserEnvironment()
18942
19244
  ? new CryptoOps(this.logger, this.performanceClient, true)
18943
19245
  : DEFAULT_CRYPTO_IMPLEMENTATION;
19246
+ const tokenBindingKeyManager = operatingContext.isBrowserEnvironment()
19247
+ ? new TokenBindingKeyManager(this.logger, this.performanceClient)
19248
+ : DEFAULT_TOKEN_BINDING_KEY_MANAGER;
18944
19249
  this.eventHandler = new EventHandler(this.logger);
18945
19250
  // Initialize the browser storage class.
18946
19251
  this.browserStorage = this.operatingContext.isBrowserEnvironment()
18947
- ? new BrowserCacheManager(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger, this.performanceClient, this.eventHandler, buildStaticAuthorityOptions(this.config.auth))
18948
- : DEFAULT_BROWSER_CACHE_MANAGER(this.config.auth.clientId, this.logger, this.performanceClient, this.eventHandler);
19252
+ ? new BrowserCacheManager(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger, this.performanceClient, this.eventHandler, buildStaticAuthorityOptions(this.config.auth), tokenBindingKeyManager)
19253
+ : DEFAULT_BROWSER_CACHE_MANAGER(this.config.auth.clientId, this.logger, this.performanceClient, this.eventHandler, undefined, tokenBindingKeyManager);
18949
19254
  this.nestedAppAuthAdapter = new NestedAppAuthAdapter(this.config.auth.clientId, this.config.auth.clientCapabilities, this.browserCrypto, this.logger);
18950
19255
  // Set the active account if available
18951
19256
  const accountContext = this.bridgeProxy.getAccountContext();
@@ -20118,7 +20423,7 @@ async function loadExternalTokens(config, request, response, options, performanc
20118
20423
  };
20119
20424
  const logger = new Logger(browserConfig.system.loggerOptions || {}, name, version);
20120
20425
  const cryptoOps = new CryptoOps(logger, browserConfig.telemetry.client);
20121
- const storage = new BrowserCacheManager(browserConfig.auth.clientId, browserConfig.cache, cryptoOps, logger, browserConfig.telemetry.client, new EventHandler(logger), buildStaticAuthorityOptions(browserConfig.auth));
20426
+ 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));
20122
20427
  await storage.initialize(correlationId);
20123
20428
  const authorityString = request.authority || browserConfig.auth.authority;
20124
20429
  const authority = await createDiscoveredInstance(Authority.generateAuthority(authorityString, request.azureCloudOptions), browserConfig.system.networkClient, storage, authorityOptions, logger, correlationId, performanceClient);