@azure/msal-browser 5.17.0 → 5.17.3

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 (237) 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 +2 -4
  5. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  7. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  8. package/dist/cache/AccountManager.mjs +1 -1
  9. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  10. package/dist/cache/BrowserCacheManager.mjs +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 +1 -1
  17. package/dist/cache/MemoryStorage.mjs +1 -1
  18. package/dist/cache/SessionStorage.mjs +1 -1
  19. package/dist/cache/TokenCache.mjs +1 -1
  20. package/dist/config/Configuration.mjs +1 -1
  21. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  22. package/dist/controllers/StandardController.mjs +23 -26
  23. package/dist/controllers/StandardController.mjs.map +1 -1
  24. package/dist/crypto/BrowserCrypto.mjs +61 -12
  25. package/dist/crypto/BrowserCrypto.mjs.map +1 -1
  26. package/dist/crypto/CryptoOps.mjs +6 -12
  27. package/dist/crypto/CryptoOps.mjs.map +1 -1
  28. package/dist/crypto/PkceGenerator.mjs +1 -1
  29. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  30. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  31. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  32. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
  33. package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  34. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  35. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  36. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  37. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  38. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  39. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  40. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  41. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  42. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  43. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  44. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  50. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  51. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  52. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  53. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  54. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  55. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  56. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  57. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  58. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  59. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  60. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  61. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  62. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  63. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  64. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  65. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  66. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  67. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  68. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  69. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  70. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  71. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  72. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  73. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  74. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  75. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  76. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  77. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  78. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  79. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  80. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  81. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  82. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  83. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  84. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  85. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  86. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  87. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  88. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  89. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  90. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  91. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  92. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  93. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  94. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  95. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  96. package/dist/custom_auth/index.mjs +1 -1
  97. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  98. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  99. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  100. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  101. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  102. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  103. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  104. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  105. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  106. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  107. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  108. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  109. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  110. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  111. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  112. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  113. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  114. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  115. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  116. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  117. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  118. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  119. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  120. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  121. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  122. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  123. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  124. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  125. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  126. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  127. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  128. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  129. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  130. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  131. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  132. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  133. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  134. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  135. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  136. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  137. package/dist/encode/Base64Decode.mjs +1 -1
  138. package/dist/encode/Base64Encode.mjs +1 -1
  139. package/dist/error/BrowserAuthError.mjs +1 -1
  140. package/dist/error/BrowserAuthErrorCodes.mjs +3 -2
  141. package/dist/error/BrowserAuthErrorCodes.mjs.map +1 -1
  142. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  143. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  144. package/dist/error/NativeAuthError.mjs +1 -1
  145. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  146. package/dist/error/NestedAppAuthError.mjs +1 -1
  147. package/dist/event/EventHandler.mjs +1 -1
  148. package/dist/event/EventMessage.mjs +1 -1
  149. package/dist/event/EventType.mjs +1 -1
  150. package/dist/index.mjs +1 -1
  151. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  152. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  153. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +123 -59
  154. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  155. package/dist/interaction_client/PopupClient.mjs +1 -1
  156. package/dist/interaction_client/RedirectClient.mjs +1 -1
  157. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  158. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  159. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  160. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  161. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  162. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  163. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  164. package/dist/log-strings-mapping.json +1201 -1201
  165. package/dist/naa/BridgeError.mjs +1 -1
  166. package/dist/naa/BridgeProxy.mjs +1 -1
  167. package/dist/naa/BridgeStatusCode.mjs +1 -1
  168. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  169. package/dist/navigation/NavigationClient.mjs +1 -1
  170. package/dist/network/FetchClient.mjs +39 -13
  171. package/dist/network/FetchClient.mjs.map +1 -1
  172. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  173. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  174. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  175. package/dist/packageMetadata.mjs +2 -2
  176. package/dist/popup_relay/constants.mjs +1 -1
  177. package/dist/popup_relay/index.mjs +1 -1
  178. package/dist/popup_relay/relayClient.mjs +1 -1
  179. package/dist/protocol/Authorize.mjs +1 -1
  180. package/dist/redirect_bridge/index.mjs +1 -1
  181. package/dist/request/RequestHelpers.mjs +1 -1
  182. package/dist/response/ResponseHandler.mjs +1 -1
  183. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  184. package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
  185. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  186. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  187. package/dist/utils/BrowserConstants.mjs +1 -1
  188. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  189. package/dist/utils/BrowserUtils.mjs +1 -1
  190. package/dist/utils/Helpers.mjs +1 -1
  191. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  192. package/lib/custom-auth-path/log-strings-mapping.json +2 -2
  193. package/lib/custom-auth-path/msal-custom-auth.cjs +317 -184
  194. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  195. package/lib/custom-auth-path/msal-custom-auth.js +317 -184
  196. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  197. package/lib/log-strings-mapping.json +2 -2
  198. package/lib/msal-browser.cjs +326 -187
  199. package/lib/msal-browser.cjs.map +1 -1
  200. package/lib/msal-browser.js +326 -187
  201. package/lib/msal-browser.js.map +1 -1
  202. package/lib/msal-browser.min.js +2 -2
  203. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  204. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  205. package/lib/popup-relay/msal-popup-relay.js +2 -2
  206. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  207. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  208. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  209. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  210. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  211. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  212. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  213. package/package.json +2 -2
  214. package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +0 -4
  215. package/src/broker/nativeBroker/PlatformAuthRequest.ts +4 -7
  216. package/src/controllers/StandardController.ts +24 -29
  217. package/src/crypto/BrowserCrypto.ts +104 -9
  218. package/src/crypto/CryptoOps.ts +13 -12
  219. package/src/error/BrowserAuthErrorCodes.ts +1 -0
  220. package/src/interaction_client/PlatformAuthInteractionClient.ts +160 -72
  221. package/src/network/FetchClient.ts +62 -14
  222. package/src/packageMetadata.ts +1 -1
  223. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
  224. package/types/broker/nativeBroker/PlatformAuthRequest.d.ts +3 -6
  225. package/types/broker/nativeBroker/PlatformAuthRequest.d.ts.map +1 -1
  226. package/types/controllers/StandardController.d.ts +3 -0
  227. package/types/controllers/StandardController.d.ts.map +1 -1
  228. package/types/crypto/BrowserCrypto.d.ts +19 -5
  229. package/types/crypto/BrowserCrypto.d.ts.map +1 -1
  230. package/types/crypto/CryptoOps.d.ts.map +1 -1
  231. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  232. package/types/error/BrowserAuthErrorCodes.d.ts +1 -0
  233. package/types/error/BrowserAuthErrorCodes.d.ts.map +1 -1
  234. package/types/interaction_client/PlatformAuthInteractionClient.d.ts +13 -3
  235. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  236. package/types/network/FetchClient.d.ts.map +1 -1
  237. package/types/packageMetadata.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.17.0 2026-07-07 */
1
+ /*! @azure/msal-browser v5.17.3 2026-07-29 */
2
2
  'use strict';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -6,7 +6,7 @@
6
6
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
7
7
  })(this, (function (exports) { 'use strict';
8
8
 
9
- /*! @azure/msal-common v16.11.1 2026-07-07 */
9
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
12
12
  * Licensed under the MIT License.
@@ -58,7 +58,7 @@
58
58
  const RESOURCE = "resource";
59
59
  const CLI_DATA = "clidata";
60
60
 
61
- /*! @azure/msal-common v16.11.1 2026-07-07 */
61
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
62
62
  /*
63
63
  * Copyright (c) Microsoft Corporation. All rights reserved.
64
64
  * Licensed under the MIT License.
@@ -294,7 +294,7 @@
294
294
  // Token renewal offset default in seconds
295
295
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
296
296
 
297
- /*! @azure/msal-common v16.11.1 2026-07-07 */
297
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
298
298
  /*
299
299
  * Copyright (c) Microsoft Corporation. All rights reserved.
300
300
  * Licensed under the MIT License.
@@ -323,7 +323,7 @@
323
323
  return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
324
324
  }
325
325
 
326
- /*! @azure/msal-common v16.11.1 2026-07-07 */
326
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
327
327
 
328
328
  /*
329
329
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -346,7 +346,7 @@
346
346
  return new ClientAuthError(errorCode, correlationId, additionalMessage);
347
347
  }
348
348
 
349
- /*! @azure/msal-common v16.11.1 2026-07-07 */
349
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
350
350
  /*
351
351
  * Copyright (c) Microsoft Corporation. All rights reserved.
352
352
  * Licensed under the MIT License.
@@ -430,7 +430,7 @@
430
430
  userCanceled: userCanceled
431
431
  });
432
432
 
433
- /*! @azure/msal-common v16.11.1 2026-07-07 */
433
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
434
434
 
435
435
  /*
436
436
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -468,7 +468,7 @@
468
468
  };
469
469
  }
470
470
 
471
- /*! @azure/msal-common v16.11.1 2026-07-07 */
471
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
472
472
 
473
473
  /*
474
474
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -534,7 +534,7 @@
534
534
  return matches[2];
535
535
  }
536
536
 
537
- /*! @azure/msal-common v16.11.1 2026-07-07 */
537
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
538
538
 
539
539
  /*
540
540
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -622,7 +622,7 @@
622
622
  return updatedAccountInfo;
623
623
  }
624
624
 
625
- /*! @azure/msal-common v16.11.1 2026-07-07 */
625
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
626
626
  /*
627
627
  * Copyright (c) Microsoft Corporation. All rights reserved.
628
628
  * Licensed under the MIT License.
@@ -637,7 +637,7 @@
637
637
  Ciam: 3,
638
638
  };
639
639
 
640
- /*! @azure/msal-common v16.11.1 2026-07-07 */
640
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
641
641
  /*
642
642
  * Copyright (c) Microsoft Corporation. All rights reserved.
643
643
  * Licensed under the MIT License.
@@ -659,7 +659,7 @@
659
659
  return null;
660
660
  }
661
661
 
662
- /*! @azure/msal-common v16.11.1 2026-07-07 */
662
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
663
663
  /*
664
664
  * Copyright (c) Microsoft Corporation. All rights reserved.
665
665
  * Licensed under the MIT License.
@@ -683,7 +683,7 @@
683
683
  EAR: "EAR",
684
684
  };
685
685
 
686
- /*! @azure/msal-common v16.11.1 2026-07-07 */
686
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
687
687
  /**
688
688
  * Returns the AccountInfo interface for this account.
689
689
  * @internal
@@ -872,7 +872,7 @@
872
872
  entity.hasOwnProperty("authorityType"));
873
873
  }
874
874
 
875
- /*! @azure/msal-common v16.11.1 2026-07-07 */
875
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
876
876
  /*
877
877
  * Copyright (c) Microsoft Corporation. All rights reserved.
878
878
  * Licensed under the MIT License.
@@ -889,7 +889,7 @@
889
889
  unexpectedError: unexpectedError
890
890
  });
891
891
 
892
- /*! @azure/msal-common v16.11.1 2026-07-07 */
892
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
893
893
 
894
894
  /*
895
895
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -909,7 +909,7 @@
909
909
  return new ClientConfigurationError(errorCode, correlationId);
910
910
  }
911
911
 
912
- /*! @azure/msal-common v16.11.1 2026-07-07 */
912
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
913
913
  /*
914
914
  * Copyright (c) Microsoft Corporation. All rights reserved.
915
915
  * Licensed under the MIT License.
@@ -938,7 +938,9 @@
938
938
  const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
939
939
  const invalidPlatformBrokerConfiguration = "invalid_platform_broker_configuration";
940
940
  const issuerValidationFailed = "issuer_validation_failed";
941
- const invalidResponseMode = "invalid_response_mode";
941
+ const invalidResponseMode = "invalid_response_mode";
942
+ const invalidDpopHtm = "invalid_dpop_htm";
943
+ const invalidDpopHtu = "invalid_dpop_htu";
942
944
 
943
945
  var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
944
946
  __proto__: null,
@@ -953,6 +955,8 @@
953
955
  invalidClaims: invalidClaims,
954
956
  invalidCloudDiscoveryMetadata: invalidCloudDiscoveryMetadata,
955
957
  invalidCodeChallengeMethod: invalidCodeChallengeMethod,
958
+ invalidDpopHtm: invalidDpopHtm,
959
+ invalidDpopHtu: invalidDpopHtu,
956
960
  invalidPlatformBrokerConfiguration: invalidPlatformBrokerConfiguration,
957
961
  invalidRequestMethodForEAR: invalidRequestMethodForEAR,
958
962
  invalidResponseMode: invalidResponseMode,
@@ -969,7 +973,7 @@
969
973
  urlParseError: urlParseError
970
974
  });
971
975
 
972
- /*! @azure/msal-common v16.11.1 2026-07-07 */
976
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
973
977
 
974
978
  /*
975
979
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1027,7 +1031,7 @@
1027
1031
  }
1028
1032
  }
1029
1033
 
1030
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1034
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
1031
1035
  /*
1032
1036
  * Copyright (c) Microsoft Corporation. All rights reserved.
1033
1037
  * Licensed under the MIT License.
@@ -1039,7 +1043,7 @@
1039
1043
  response.hasOwnProperty("jwks_uri"));
1040
1044
  }
1041
1045
 
1042
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1046
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
1043
1047
  /*
1044
1048
  * Copyright (c) Microsoft Corporation. All rights reserved.
1045
1049
  * Licensed under the MIT License.
@@ -1119,7 +1123,7 @@
1119
1123
  }
1120
1124
  }
1121
1125
 
1122
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1126
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
1123
1127
 
1124
1128
  /*
1125
1129
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1277,7 +1281,7 @@
1277
1281
  }
1278
1282
  }
1279
1283
 
1280
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1284
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
1281
1285
 
1282
1286
  /*
1283
1287
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1443,7 +1447,7 @@
1443
1447
  return null;
1444
1448
  }
1445
1449
 
1446
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1450
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
1447
1451
  /*
1448
1452
  * Copyright (c) Microsoft Corporation. All rights reserved.
1449
1453
  * Licensed under the MIT License.
@@ -1463,7 +1467,7 @@
1463
1467
  AzureUsGovernment: "https://login.microsoftonline.us",
1464
1468
  };
1465
1469
 
1466
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1470
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
1467
1471
  /*
1468
1472
  * Copyright (c) Microsoft Corporation. All rights reserved.
1469
1473
  * Licensed under the MIT License.
@@ -1473,7 +1477,7 @@
1473
1477
  response.hasOwnProperty("metadata"));
1474
1478
  }
1475
1479
 
1476
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1480
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
1477
1481
  /*
1478
1482
  * Copyright (c) Microsoft Corporation. All rights reserved.
1479
1483
  * Licensed under the MIT License.
@@ -1483,7 +1487,7 @@
1483
1487
  response.hasOwnProperty("error_description"));
1484
1488
  }
1485
1489
 
1486
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1490
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
1487
1491
  /*
1488
1492
  * Copyright (c) Microsoft Corporation. All rights reserved.
1489
1493
  * Licensed under the MIT License.
@@ -1554,7 +1558,7 @@
1554
1558
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
1555
1559
  const SetUserData = "setUserData";
1556
1560
 
1557
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1561
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
1558
1562
  /*
1559
1563
  * Copyright (c) Microsoft Corporation. All rights reserved.
1560
1564
  * Licensed under the MIT License.
@@ -1647,7 +1651,7 @@
1647
1651
  };
1648
1652
  };
1649
1653
 
1650
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1654
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
1651
1655
 
1652
1656
  /*
1653
1657
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1758,7 +1762,7 @@
1758
1762
  },
1759
1763
  };
1760
1764
 
1761
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1765
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
1762
1766
  /*
1763
1767
  * Copyright (c) Microsoft Corporation. All rights reserved.
1764
1768
  * Licensed under the MIT License.
@@ -1823,7 +1827,7 @@
1823
1827
  return cachedAtSec > nowSeconds();
1824
1828
  }
1825
1829
 
1826
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1830
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
1827
1831
 
1828
1832
  /*
1829
1833
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2090,7 +2094,7 @@
2090
2094
  return metadata.expiresAt <= nowSeconds();
2091
2095
  }
2092
2096
 
2093
- /*! @azure/msal-common v16.11.1 2026-07-07 */
2097
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
2094
2098
 
2095
2099
  /*
2096
2100
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3060,7 +3064,7 @@
3060
3064
  };
3061
3065
  }
3062
3066
 
3063
- /*! @azure/msal-common v16.11.1 2026-07-07 */
3067
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
3064
3068
 
3065
3069
  /*
3066
3070
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3094,7 +3098,7 @@
3094
3098
  }
3095
3099
  }
3096
3100
 
3097
- /*! @azure/msal-common v16.11.1 2026-07-07 */
3101
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
3098
3102
 
3099
3103
  /*
3100
3104
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3290,7 +3294,7 @@
3290
3294
  }
3291
3295
  }
3292
3296
 
3293
- /*! @azure/msal-common v16.11.1 2026-07-07 */
3297
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
3294
3298
 
3295
3299
  /*
3296
3300
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3705,7 +3709,7 @@
3705
3709
  }
3706
3710
  }
3707
3711
 
3708
- /*! @azure/msal-common v16.11.1 2026-07-07 */
3712
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
3709
3713
 
3710
3714
  /*
3711
3715
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3827,12 +3831,16 @@
3827
3831
  }
3828
3832
  }
3829
3833
 
3830
- /*! @azure/msal-common v16.11.1 2026-07-07 */
3834
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
3831
3835
 
3832
3836
  /*
3833
3837
  * Copyright (c) Microsoft Corporation. All rights reserved.
3834
3838
  * Licensed under the MIT License.
3835
3839
  */
3840
+ /**
3841
+ * Default crypto implementation used when a platform-specific implementation has
3842
+ * not been provided.
3843
+ */
3836
3844
  const DEFAULT_CRYPTO_IMPLEMENTATION = {
3837
3845
  createNewGuid: () => {
3838
3846
  throw createClientAuthError(methodNotImplemented, "");
@@ -3866,7 +3874,7 @@
3866
3874
  },
3867
3875
  };
3868
3876
 
3869
- /*! @azure/msal-common v16.11.1 2026-07-07 */
3877
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
3870
3878
  /*
3871
3879
  * Copyright (c) Microsoft Corporation. All rights reserved.
3872
3880
  * Licensed under the MIT License.
@@ -4155,12 +4163,12 @@
4155
4163
  }
4156
4164
  }
4157
4165
 
4158
- /*! @azure/msal-common v16.11.1 2026-07-07 */
4166
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
4159
4167
  /* eslint-disable header/header */
4160
4168
  const name$1 = "@azure/msal-common";
4161
- const version$1 = "16.11.1";
4169
+ const version$1 = "16.11.3";
4162
4170
 
4163
- /*! @azure/msal-common v16.11.1 2026-07-07 */
4171
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
4164
4172
  /*
4165
4173
  * Copyright (c) Microsoft Corporation. All rights reserved.
4166
4174
  * Licensed under the MIT License.
@@ -4168,7 +4176,7 @@
4168
4176
  const cacheQuotaExceeded = "cache_quota_exceeded";
4169
4177
  const cacheErrorUnknown = "cache_error_unknown";
4170
4178
 
4171
- /*! @azure/msal-common v16.11.1 2026-07-07 */
4179
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
4172
4180
 
4173
4181
  /*
4174
4182
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4206,7 +4214,7 @@
4206
4214
  }
4207
4215
  }
4208
4216
 
4209
- /*! @azure/msal-common v16.11.1 2026-07-07 */
4217
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
4210
4218
 
4211
4219
  /*
4212
4220
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5354,7 +5362,7 @@
5354
5362
  }
5355
5363
  }
5356
5364
 
5357
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5365
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
5358
5366
  /*
5359
5367
  * Copyright (c) Microsoft Corporation. All rights reserved.
5360
5368
  * Licensed under the MIT License.
@@ -5416,9 +5424,10 @@
5416
5424
  "networkRtt",
5417
5425
  "redirectBridgeTimeoutMs",
5418
5426
  "redirectBridgeMessageVersion",
5427
+ "fetchRetryCount",
5419
5428
  ]);
5420
5429
 
5421
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5430
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
5422
5431
 
5423
5432
  /*
5424
5433
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5476,7 +5485,7 @@
5476
5485
  }
5477
5486
  }
5478
5487
 
5479
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5488
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
5480
5489
 
5481
5490
  /*
5482
5491
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5572,7 +5581,7 @@
5572
5581
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
5573
5582
  }
5574
5583
 
5575
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5584
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
5576
5585
  /*
5577
5586
  * Copyright (c) Microsoft Corporation. All rights reserved.
5578
5587
  * Licensed under the MIT License.
@@ -5599,7 +5608,7 @@
5599
5608
  }
5600
5609
  }
5601
5610
 
5602
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5611
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
5603
5612
 
5604
5613
  /*
5605
5614
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5679,7 +5688,7 @@
5679
5688
  }
5680
5689
  }
5681
5690
 
5682
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5691
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
5683
5692
  /*
5684
5693
  * Copyright (c) Microsoft Corporation. All rights reserved.
5685
5694
  * Licensed under the MIT License.
@@ -5743,7 +5752,7 @@
5743
5752
  uiNotAllowed: uiNotAllowed
5744
5753
  });
5745
5754
 
5746
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5755
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
5747
5756
 
5748
5757
  /*
5749
5758
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5810,7 +5819,7 @@
5810
5819
  return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
5811
5820
  }
5812
5821
 
5813
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5822
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
5814
5823
 
5815
5824
  /*
5816
5825
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5829,7 +5838,7 @@
5829
5838
  }
5830
5839
  }
5831
5840
 
5832
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5841
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
5833
5842
 
5834
5843
  /*
5835
5844
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5900,7 +5909,7 @@
5900
5909
  }
5901
5910
  }
5902
5911
 
5903
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5912
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
5904
5913
 
5905
5914
  /*
5906
5915
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6251,7 +6260,7 @@
6251
6260
  return baseAccount;
6252
6261
  }
6253
6262
 
6254
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6263
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
6255
6264
  /*
6256
6265
  * Copyright (c) Microsoft Corporation. All rights reserved.
6257
6266
  * Licensed under the MIT License.
@@ -6261,7 +6270,7 @@
6261
6270
  UPN: "UPN",
6262
6271
  };
6263
6272
 
6264
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6273
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
6265
6274
  /*
6266
6275
  * Copyright (c) Microsoft Corporation. All rights reserved.
6267
6276
  * Licensed under the MIT License.
@@ -6280,7 +6289,7 @@
6280
6289
  }
6281
6290
  }
6282
6291
 
6283
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6292
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
6284
6293
  /*
6285
6294
  * Copyright (c) Microsoft Corporation. All rights reserved.
6286
6295
  * Licensed under the MIT License.
@@ -6302,7 +6311,7 @@
6302
6311
  };
6303
6312
  }
6304
6313
 
6305
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6314
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
6306
6315
 
6307
6316
  /*
6308
6317
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6388,7 +6397,7 @@
6388
6397
  }
6389
6398
  }
6390
6399
 
6391
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6400
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
6392
6401
 
6393
6402
  /*
6394
6403
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6419,7 +6428,7 @@
6419
6428
  return new NetworkError(error, httpStatus, responseHeaders);
6420
6429
  }
6421
6430
 
6422
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6431
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
6423
6432
 
6424
6433
  /*
6425
6434
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6499,7 +6508,7 @@
6499
6508
  ThrottlingUtils.preProcess(cacheManager, thumbprint, correlationId);
6500
6509
  let response;
6501
6510
  try {
6502
- response = await invokeAsync((networkClient.sendPostRequestAsync.bind(networkClient)), NetworkClientSendPostRequestAsync, logger, performanceClient, correlationId)(tokenEndpoint, options);
6511
+ response = await invokeAsync((networkClient.sendPostRequestAsync.bind(networkClient)), NetworkClientSendPostRequestAsync, logger, performanceClient, correlationId)(tokenEndpoint, { ...options, correlationId, performanceClient });
6503
6512
  const responseHeaders = response.headers || {};
6504
6513
  performanceClient?.addFields({
6505
6514
  refreshTokenSize: response.body.refresh_token?.length || 0,
@@ -6535,7 +6544,7 @@
6535
6544
  return response;
6536
6545
  }
6537
6546
 
6538
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6547
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
6539
6548
 
6540
6549
  /*
6541
6550
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6792,7 +6801,7 @@
6792
6801
  }
6793
6802
  }
6794
6803
 
6795
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6804
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
6796
6805
 
6797
6806
  /*
6798
6807
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7019,7 +7028,7 @@
7019
7028
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7020
7029
  }
7021
7030
 
7022
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7031
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
7023
7032
 
7024
7033
  /*
7025
7034
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7040,7 +7049,7 @@
7040
7049
  return new JoseHeaderError(code, correlationId);
7041
7050
  }
7042
7051
 
7043
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7052
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
7044
7053
  /*
7045
7054
  * Copyright (c) Microsoft Corporation. All rights reserved.
7046
7055
  * Licensed under the MIT License.
@@ -7048,7 +7057,7 @@
7048
7057
  const missingKidError = "missing_kid_error";
7049
7058
  const missingAlgError = "missing_alg_error";
7050
7059
 
7051
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7060
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
7052
7061
 
7053
7062
  /*
7054
7063
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7088,7 +7097,7 @@
7088
7097
  }
7089
7098
  }
7090
7099
 
7091
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7100
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
7092
7101
 
7093
7102
  /*
7094
7103
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7637,7 +7646,7 @@
7637
7646
  }
7638
7647
  }
7639
7648
 
7640
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7649
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
7641
7650
 
7642
7651
  /*
7643
7652
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7858,7 +7867,7 @@
7858
7867
  }
7859
7868
  }
7860
7869
 
7861
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7870
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
7862
7871
 
7863
7872
  /*
7864
7873
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8151,7 +8160,7 @@
8151
8160
  clearNativeBrokerErrorCode() { }
8152
8161
  }
8153
8162
 
8154
- /*! @azure/msal-common v16.11.1 2026-07-07 */
8163
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
8155
8164
 
8156
8165
  /*
8157
8166
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8259,7 +8268,7 @@
8259
8268
  }
8260
8269
  }
8261
8270
 
8262
- /*! @azure/msal-common v16.11.1 2026-07-07 */
8271
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
8263
8272
 
8264
8273
  /*
8265
8274
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8275,7 +8284,7 @@
8275
8284
  },
8276
8285
  };
8277
8286
 
8278
- /*! @azure/msal-common v16.11.1 2026-07-07 */
8287
+ /*! @azure/msal-common v16.11.3 2026-07-29 */
8279
8288
 
8280
8289
  /*
8281
8290
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8478,6 +8487,7 @@
8478
8487
  const failedToParseResponse = "failed_to_parse_response";
8479
8488
  const unableToLoadToken = "unable_to_load_token";
8480
8489
  const cryptoKeyNotFound = "crypto_key_not_found";
8490
+ const invalidPublicJwk = "invalid_public_jwk";
8481
8491
  const authCodeRequired = "auth_code_required";
8482
8492
  const authCodeOrNativeAccountIdRequired = "auth_code_or_nativeAccountId_required";
8483
8493
  const spaCodeAndNativeAccountIdPresent = "spa_code_and_nativeAccountId_present";
@@ -8525,6 +8535,7 @@
8525
8535
  invalidBase64String: invalidBase64String,
8526
8536
  invalidCacheType: invalidCacheType,
8527
8537
  invalidPopTokenRequest: invalidPopTokenRequest,
8538
+ invalidPublicJwk: invalidPublicJwk,
8528
8539
  nativeConnectionNotEstablished: nativeConnectionNotEstablished,
8529
8540
  nativeExtensionNotInstalled: nativeExtensionNotInstalled,
8530
8541
  nativeHandshakeTimeout: nativeHandshakeTimeout,
@@ -8887,6 +8898,12 @@
8887
8898
  const HKDF = "HKDF";
8888
8899
  // SHA-256 hashing algorithm
8889
8900
  const S256_HASH_ALG = "SHA-256";
8901
+ const JSON_WEB_KEY_TYPE_EC = "EC";
8902
+ const JSON_WEB_KEY_TYPE_RSA = "RSA";
8903
+ const MISSING_JWK_KTY_SUBERROR = "missing_jwk_kty";
8904
+ const UNSUPPORTED_JWK_KTY_SUBERROR = "unsupported_jwk_kty";
8905
+ const MISSING_JWK_MEMBER_SUBERROR = "missing_jwk_member";
8906
+ const EMPTY_JWK_MEMBER_SUBERROR = "empty_jwk_member";
8890
8907
  // MOD length for PoP tokens
8891
8908
  const MODULUS_LENGTH = 2048;
8892
8909
  // Public Exponent
@@ -8903,12 +8920,15 @@
8903
8920
  const DERIVE_KEY = "deriveKey";
8904
8921
  // Suberror
8905
8922
  const SUBTLE_SUBERROR = "crypto_subtle_undefined";
8906
- const keygenAlgorithmOptions = {
8923
+ const RSA_KEYGEN_ALGORITHM_OPTIONS = {
8907
8924
  name: PKCS1_V15_KEYGEN_ALG,
8908
8925
  hash: S256_HASH_ALG,
8909
8926
  modulusLength: MODULUS_LENGTH,
8910
8927
  publicExponent: PUBLIC_EXPONENT,
8911
8928
  };
8929
+ const RSA_SIGN_ALGORITHM_OPTIONS = {
8930
+ name: PKCS1_V15_KEYGEN_ALG,
8931
+ };
8912
8932
  /**
8913
8933
  * Check whether browser crypto is available.
8914
8934
  */
@@ -8992,12 +9012,13 @@
8992
9012
  return text;
8993
9013
  }
8994
9014
  /**
8995
- * Generates a keypair based on current keygen algorithm config.
9015
+ * Generates a keypair based on the provided algorithm config.
8996
9016
  * @param extractable
8997
9017
  * @param usages
9018
+ * @param algorithm
8998
9019
  */
8999
- async function generateKeyPair(extractable, usages) {
9000
- return window.crypto.subtle.generateKey(keygenAlgorithmOptions, extractable, usages);
9020
+ async function generateKeyPair(extractable, usages, algorithm) {
9021
+ return window.crypto.subtle.generateKey(algorithm, extractable, usages);
9001
9022
  }
9002
9023
  /**
9003
9024
  * Export key as Json Web Key (JWK)
@@ -9011,17 +9032,19 @@
9011
9032
  * @param key
9012
9033
  * @param extractable
9013
9034
  * @param usages
9035
+ * @param algorithm
9014
9036
  */
9015
- async function importJwk(key, extractable, usages) {
9016
- return window.crypto.subtle.importKey(KEY_FORMAT_JWK, key, keygenAlgorithmOptions, extractable, usages);
9037
+ async function importJwk(key, extractable, usages, algorithm) {
9038
+ return window.crypto.subtle.importKey(KEY_FORMAT_JWK, key, algorithm, extractable, usages);
9017
9039
  }
9018
9040
  /**
9019
- * Signs given data with given key
9041
+ * Signs given data with given key.
9020
9042
  * @param key
9021
9043
  * @param data
9044
+ * @param algorithm
9022
9045
  */
9023
- async function sign(key, data) {
9024
- return window.crypto.subtle.sign(keygenAlgorithmOptions, key, data);
9046
+ async function sign(key, data, algorithm) {
9047
+ return window.crypto.subtle.sign(algorithm, key, data);
9025
9048
  }
9026
9049
  /**
9027
9050
  * Generates Base64 encoded jwk used in the Encrypted Authorize Response (EAR) flow
@@ -9164,6 +9187,43 @@
9164
9187
  const hashBuffer = await sha256Digest(plainText);
9165
9188
  const hashBytes = new Uint8Array(hashBuffer);
9166
9189
  return urlEncodeArr(hashBytes);
9190
+ }
9191
+ const JWK_THUMBPRINT_REQUIRED_MEMBERS = {
9192
+ [JSON_WEB_KEY_TYPE_EC]: ["crv", "kty", "x", "y"],
9193
+ [JSON_WEB_KEY_TYPE_RSA]: ["e", "kty", "n"],
9194
+ };
9195
+ function getJwkThumbprintMembers(publicJwk) {
9196
+ const kty = publicJwk.kty;
9197
+ if (typeof kty !== "string" || kty.length === 0) {
9198
+ throw createBrowserAuthError(invalidPublicJwk, "", MISSING_JWK_KTY_SUBERROR);
9199
+ }
9200
+ const requiredMembers = JWK_THUMBPRINT_REQUIRED_MEMBERS[kty];
9201
+ if (!requiredMembers) {
9202
+ throw createBrowserAuthError(invalidPublicJwk, "", UNSUPPORTED_JWK_KTY_SUBERROR);
9203
+ }
9204
+ return requiredMembers.reduce((thumbprintMembers, memberName) => {
9205
+ const memberValue = publicJwk[memberName];
9206
+ if (typeof memberValue !== "string") {
9207
+ throw createBrowserAuthError(invalidPublicJwk, "", MISSING_JWK_MEMBER_SUBERROR);
9208
+ }
9209
+ if (memberValue.length === 0) {
9210
+ throw createBrowserAuthError(invalidPublicJwk, "", EMPTY_JWK_MEMBER_SUBERROR);
9211
+ }
9212
+ thumbprintMembers[memberName] = memberValue;
9213
+ return thumbprintMembers;
9214
+ }, {});
9215
+ }
9216
+ /**
9217
+ * Computes an RFC 7638 JWK thumbprint for a public key.
9218
+ * The required members for the JWK key type are serialised in lexicographic order
9219
+ * and the SHA-256 digest is returned as a base64url string.
9220
+ * @internal
9221
+ */
9222
+ async function computeJwkThumbprint(publicJwk) {
9223
+ const thumbprintMembers = getJwkThumbprintMembers(publicJwk);
9224
+ // RFC 7638 §3.3: use only required members, sorted lexicographically
9225
+ const thumbprintJson = JSON.stringify(thumbprintMembers, Object.keys(thumbprintMembers).sort());
9226
+ return hashString(thumbprintJson);
9167
9227
  }
9168
9228
 
9169
9229
  /*
@@ -10019,20 +10079,14 @@
10019
10079
  async getPublicKeyThumbprint(request) {
10020
10080
  const publicKeyThumbMeasurement = this.performanceClient?.startMeasurement(CryptoOptsGetPublicKeyThumbprint, request.correlationId);
10021
10081
  // Generate Keypair
10022
- const keyPair = await generateKeyPair(CryptoOps.EXTRACTABLE, CryptoOps.POP_KEY_USAGES);
10082
+ const keyPair = await generateKeyPair(CryptoOps.EXTRACTABLE, CryptoOps.POP_KEY_USAGES, RSA_KEYGEN_ALGORITHM_OPTIONS);
10023
10083
  // Generate Thumbprint for Public Key
10024
10084
  const publicKeyJwk = await exportJwk(keyPair.publicKey);
10025
- const pubKeyThumprintObj = {
10026
- e: publicKeyJwk.e,
10027
- kty: publicKeyJwk.kty,
10028
- n: publicKeyJwk.n,
10029
- };
10030
- const publicJwkString = getSortedObjectString(pubKeyThumprintObj);
10031
- const publicJwkHash = await this.hashString(publicJwkString);
10085
+ const publicJwkHash = await computeJwkThumbprint(publicKeyJwk);
10032
10086
  // Generate Thumbprint for Private Key
10033
10087
  const privateKeyJwk = await exportJwk(keyPair.privateKey);
10034
10088
  // Re-import private key to make it unextractable
10035
- const unextractablePrivateKey = await importJwk(privateKeyJwk, false, ["sign"]);
10089
+ const unextractablePrivateKey = await importJwk(privateKeyJwk, false, ["sign"], RSA_KEYGEN_ALGORITHM_OPTIONS);
10036
10090
  // Store Keypair data in keystore
10037
10091
  await this.cache.setItem(publicJwkHash, {
10038
10092
  privateKey: unextractablePrivateKey,
@@ -10117,7 +10171,7 @@
10117
10171
  // Sign token
10118
10172
  const encoder = new TextEncoder();
10119
10173
  const tokenBuffer = encoder.encode(tokenString);
10120
- const signatureBuffer = await sign(cachedKeyPair.privateKey, tokenBuffer);
10174
+ const signatureBuffer = await sign(cachedKeyPair.privateKey, tokenBuffer, RSA_SIGN_ALGORITHM_OPTIONS);
10121
10175
  const encodedSignature = urlEncodeArr(new Uint8Array(signatureBuffer));
10122
10176
  const signedJwt = `${tokenString}.${encodedSignature}`;
10123
10177
  if (signJwtMeasurement) {
@@ -10733,7 +10787,7 @@
10733
10787
 
10734
10788
  /* eslint-disable header/header */
10735
10789
  const name = "@azure/msal-browser";
10736
- const version = "5.17.0";
10790
+ const version = "5.17.3";
10737
10791
 
10738
10792
  /*
10739
10793
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -13199,50 +13253,63 @@
13199
13253
  const nativeATMeasurement = this.performanceClient.startMeasurement(NativeInteractionClientAcquireToken, this.correlationId);
13200
13254
  const reqTimestamp = nowSeconds();
13201
13255
  const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
13256
+ // initialize native request (statically builds the request; does not contact the broker)
13257
+ let nativeRequest;
13202
13258
  try {
13203
- // initialize native request
13204
- const nativeRequest = await this.initializePlatformRequest(request);
13205
- // check if the tokens can be retrieved from internal cache
13206
- try {
13207
- const result = await this.acquireTokensFromCache(this.accountId, nativeRequest);
13208
- nativeATMeasurement.end({
13209
- success: true,
13259
+ nativeRequest = await this.initializePlatformRequest(request);
13260
+ }
13261
+ catch (e) {
13262
+ /*
13263
+ * Request initialization (e.g. PoP token generation or authority
13264
+ * resolution) failed before the broker was contacted, so end the
13265
+ * measurement here to avoid an orphaned sub-measurement.
13266
+ * Broker was never engaged, so this was not a native broker outcome.
13267
+ */
13268
+ nativeATMeasurement.add({
13269
+ isNativeBroker: false,
13270
+ });
13271
+ nativeATMeasurement.end({
13272
+ success: false,
13273
+ }, e);
13274
+ throw e;
13275
+ }
13276
+ // check if the tokens can be retrieved from internal cache
13277
+ try {
13278
+ const result = await this.acquireTokensFromCache(this.accountId, nativeRequest);
13279
+ // Served from the native internal cache; token did not come directly from the broker
13280
+ nativeATMeasurement.add({
13281
+ isNativeBroker: false,
13282
+ });
13283
+ nativeATMeasurement.end({
13284
+ success: true,
13285
+ fromCache: true,
13286
+ });
13287
+ return result;
13288
+ }
13289
+ catch (e) {
13290
+ if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
13291
+ this.logger.info("0eitbc", this.correlationId);
13292
+ nativeATMeasurement.add({
13210
13293
  isNativeBroker: false,
13211
- fromCache: true,
13212
13294
  });
13213
- return result;
13214
- }
13215
- catch (e) {
13216
- if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
13217
- this.logger.info("0eitbc", this.correlationId);
13218
- nativeATMeasurement.end({
13219
- success: false,
13220
- brokerErrorCode: "cache_request_failed",
13221
- });
13222
- throw e;
13223
- }
13224
- // continue with a native call for any and all errors
13225
- this.logger.info("0957j1", this.correlationId);
13226
- }
13227
- const validatedResponse = await this.platformAuthProvider.sendMessage(nativeRequest);
13228
- return await this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp)
13229
- .then((result) => {
13230
- nativeATMeasurement.end({
13231
- success: true,
13232
- isNativeBroker: true,
13233
- requestId: result.requestId,
13234
- });
13235
- serverTelemetryManager.clearNativeBrokerErrorCode();
13236
- return result;
13237
- })
13238
- .catch((error) => {
13239
13295
  nativeATMeasurement.end({
13240
13296
  success: false,
13241
- errorCode: error.errorCode,
13242
- subErrorCode: error.subError,
13243
13297
  });
13244
- throw error;
13298
+ throw e;
13299
+ }
13300
+ // continue with a native call for any and all errors
13301
+ this.logger.info("0957j1", this.correlationId);
13302
+ }
13303
+ // dispatch the request to the broker
13304
+ try {
13305
+ const validatedResponse = await this.platformAuthProvider.sendMessage(nativeRequest);
13306
+ const result = await this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp, request.storeInCache);
13307
+ nativeATMeasurement.end({
13308
+ success: true,
13309
+ requestId: result.requestId,
13245
13310
  });
13311
+ serverTelemetryManager.clearNativeBrokerErrorCode();
13312
+ return result;
13246
13313
  }
13247
13314
  catch (e) {
13248
13315
  if (e instanceof NativeAuthError) {
@@ -13250,10 +13317,29 @@
13250
13317
  }
13251
13318
  nativeATMeasurement.end({
13252
13319
  success: false,
13253
- });
13320
+ }, e);
13321
+ this.setBrokerErrorTelemetry(e);
13254
13322
  throw e;
13255
13323
  }
13256
13324
  }
13325
+ /**
13326
+ * Records platform-broker error telemetry on the root event for the current
13327
+ * correlationId. `isNativeBroker` is set optimistically to true because the
13328
+ * broker was engaged; when the caller subsequently falls back to a web flow
13329
+ * that succeeds, the root success measurement overrides it to false via
13330
+ * `result.fromPlatformBroker`. Terminal broker errors (no fallback) retain
13331
+ * true. `brokerErrorName`/`brokerErrorCode` are recorded when the error is an `AuthError`.
13332
+ * @param error error thrown by the broker interaction
13333
+ */
13334
+ setBrokerErrorTelemetry(error) {
13335
+ if (error instanceof AuthError) {
13336
+ this.performanceClient.addFields({
13337
+ isNativeBroker: true,
13338
+ brokerErrorName: error.name,
13339
+ brokerErrorCode: error.errorCode,
13340
+ }, this.correlationId);
13341
+ }
13342
+ }
13257
13343
  /**
13258
13344
  * Creates silent flow request
13259
13345
  * @param request
@@ -13325,11 +13411,21 @@
13325
13411
  const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
13326
13412
  serverTelemetryManager.setNativeBrokerErrorCode(e.errorCode);
13327
13413
  if (isFatalNativeAuthError(e)) {
13414
+ /*
13415
+ * Fatal error on redirect initiate always falls back to a
13416
+ * regular web redirect, so this request did not complete
13417
+ * natively. Token telemetry for the eventual outcome lands
13418
+ * in handleRedirectPromise (phase 2).
13419
+ */
13420
+ this.setBrokerErrorTelemetry(e);
13328
13421
  throw e;
13329
13422
  }
13330
13423
  }
13331
13424
  }
13332
- this.browserStorage.setTemporaryCache(TemporaryCacheKeys.NATIVE_REQUEST, JSON.stringify(nativeRequest), true);
13425
+ this.browserStorage.setTemporaryCache(TemporaryCacheKeys.NATIVE_REQUEST, JSON.stringify({
13426
+ ...nativeRequest,
13427
+ storeInCache: request.storeInCache,
13428
+ }), true);
13333
13429
  const navigationOptions = {
13334
13430
  apiId: ApiId.acquireTokenRedirect,
13335
13431
  timeout: this.config.system.redirectNavigationTimeout,
@@ -13359,7 +13455,11 @@
13359
13455
  this.performanceClient?.addFields({ errorCode: "no_cached_request" }, this.correlationId);
13360
13456
  return null;
13361
13457
  }
13362
- const { prompt, ...request } = cachedRequest;
13458
+ /*
13459
+ * storeInCache is a client-side cache directive persisted alongside the cached
13460
+ * request (not a broker-contract parameter), so extract it here before resending.
13461
+ */
13462
+ const { prompt, storeInCache, ...request } = cachedRequest;
13363
13463
  if (prompt) {
13364
13464
  this.logger.verbose("0ac34v", this.correlationId);
13365
13465
  }
@@ -13368,13 +13468,13 @@
13368
13468
  try {
13369
13469
  this.logger.verbose("003x5a", this.correlationId);
13370
13470
  const response = await this.platformAuthProvider.sendMessage(request);
13371
- const authResult = await this.handleNativeResponse(response, request, reqTimestamp);
13471
+ const authResult = await this.handleNativeResponse(response, request, reqTimestamp, storeInCache);
13372
13472
  const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
13373
13473
  serverTelemetryManager.clearNativeBrokerErrorCode();
13374
- this.performanceClient?.addFields({ isNativeBroker: true }, this.correlationId);
13375
13474
  return authResult;
13376
13475
  }
13377
13476
  catch (e) {
13477
+ this.setBrokerErrorTelemetry(e);
13378
13478
  throw e;
13379
13479
  }
13380
13480
  }
@@ -13392,7 +13492,7 @@
13392
13492
  * @param request
13393
13493
  * @param reqTimestamp
13394
13494
  */
13395
- async handleNativeResponse(response, request, reqTimestamp) {
13495
+ async handleNativeResponse(response, request, reqTimestamp, storeInCache) {
13396
13496
  this.logger.trace("1bojln", this.correlationId);
13397
13497
  // generate identifiers
13398
13498
  const idTokenClaims = extractTokenClaims(response.id_token, base64Decode, this.correlationId);
@@ -13421,8 +13521,8 @@
13421
13521
  const result = await this.generateAuthenticationResult(response, request, idTokenClaims, baseAccount, authority.canonicalAuthority, reqTimestamp);
13422
13522
  // cache accounts and tokens in the appropriate storage
13423
13523
  await this.cacheAccount(baseAccount, isKmsi(idTokenClaims));
13424
- await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache() // environment
13425
- );
13524
+ await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache(), // environment
13525
+ storeInCache);
13426
13526
  return result;
13427
13527
  }
13428
13528
  /**
@@ -13543,7 +13643,9 @@
13543
13643
  correlationId: this.correlationId,
13544
13644
  state: response.state,
13545
13645
  fromPlatformBroker: true,
13546
- ...(request.resource && { resource: request.resource }),
13646
+ ...(request.extraParameters?.resource && {
13647
+ resource: request.extraParameters.resource,
13648
+ }),
13547
13649
  };
13548
13650
  return result;
13549
13651
  }
@@ -13567,7 +13669,7 @@
13567
13669
  * @param tenantId
13568
13670
  * @param reqTimestamp
13569
13671
  */
13570
- async cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, tenantId, reqTimestamp, environment) {
13672
+ async cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, tenantId, reqTimestamp, environment, storeInCache) {
13571
13673
  const cachedIdToken = createIdTokenEntity(homeAccountIdentifier, environment, response.id_token || "", request.clientId, idTokenClaims.tid || "");
13572
13674
  // cache accessToken in inmemory storage
13573
13675
  const expiresIn = request.tokenType === AuthenticationScheme$1.POP
@@ -13579,14 +13681,14 @@
13579
13681
  const responseScopes = this.generateScopes(response.scope, request.scope);
13580
13682
  const cachedAccessToken = createAccessTokenEntity(homeAccountIdentifier, environment, response.access_token, request.clientId, idTokenClaims.tid || tenantId, responseScopes.printScopes(), tokenExpirationSeconds, 0, base64Decode, request.correlationId, undefined, request.tokenType, undefined, request.keyId);
13581
13683
  // save idtoken credential in configured browser storage
13582
- if (!!cachedIdToken && request.storeInCache?.idToken !== false) {
13684
+ if (!!cachedIdToken && storeInCache?.idToken !== false) {
13583
13685
  await this.browserStorage.setIdTokenCredential(cachedIdToken, this.correlationId, isKmsi(idTokenClaims));
13584
13686
  }
13585
13687
  // save access token credential in memory storage
13586
13688
  const nativeCacheRecord = {
13587
13689
  accessToken: cachedAccessToken,
13588
13690
  };
13589
- return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId, request.storeInCache);
13691
+ return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId, storeInCache);
13590
13692
  }
13591
13693
  getExpiresInValue(tokenType, expiresIn) {
13592
13694
  return tokenType === AuthenticationScheme$1.POP
@@ -13658,13 +13760,12 @@
13658
13760
  const configClaims = request.skipBrokerClaims && !!request.embeddedClientId
13659
13761
  ? undefined
13660
13762
  : this.config.auth.clientCapabilities;
13661
- // scopes are expected to be received by the native broker as "scope" and will be added to the request below. Other properties that should be dropped from the request to the native broker can be included in the object destructuring here.
13662
- const { scopes, claims, ...remainingProperties } = request;
13763
+ // scopes are expected to be received by the native broker as "scope" and will be added to the request below. 'resource' is added in extraParameters for MCP scenarios.
13764
+ const { scopes, claims } = request;
13663
13765
  const scopeSet = new ScopeSet(scopes || [], this.correlationId);
13664
13766
  scopeSet.appendScopes(OIDC_DEFAULT_SCOPES$1);
13665
13767
  const mergedClaims = buildMergedClaims$1(claims, configClaims?.length ? configClaims : undefined);
13666
13768
  const validatedRequest = {
13667
- ...remainingProperties,
13668
13769
  claims: mergedClaims,
13669
13770
  accountId: this.accountId,
13670
13771
  clientId: this.config.auth.clientId,
@@ -13673,19 +13774,28 @@
13673
13774
  redirectUri: getRedirectUri(request.redirectUri, this.config.auth.redirectUri, this.logger, this.correlationId),
13674
13775
  prompt: this.getPrompt(request.prompt),
13675
13776
  correlationId: this.correlationId,
13777
+ isSts: false,
13676
13778
  tokenType: request.authenticationScheme,
13677
13779
  windowTitleSubstring: document.title,
13780
+ nonce: request.nonce,
13781
+ state: request.state,
13782
+ loginHint: request.loginHint,
13678
13783
  extraParameters: {
13679
13784
  ...request.extraParameters,
13785
+ ...(request.resource && { resource: request.resource }), // resource is set for MCP scenarios
13680
13786
  },
13681
13787
  extendedExpiryToken: false,
13682
13788
  keyId: request.popKid,
13789
+ resourceRequestMethod: request.resourceRequestMethod,
13790
+ resourceRequestUri: request.resourceRequestUri,
13791
+ shrClaims: request.shrClaims,
13792
+ shrNonce: request.shrNonce,
13683
13793
  };
13684
13794
  // Check for PoP token requests: signPopToken should only be set to true if popKid is not set
13685
13795
  if (validatedRequest.signPopToken && !!request.popKid) {
13686
13796
  throw createBrowserAuthError(invalidPopTokenRequest, this.correlationId);
13687
13797
  }
13688
- this.handleExtraBrokerParams(validatedRequest);
13798
+ this.handleExtraBrokerParams(validatedRequest, request.embeddedClientId);
13689
13799
  validatedRequest.extraParameters =
13690
13800
  validatedRequest.extraParameters || {};
13691
13801
  validatedRequest.extraParameters.telemetry =
@@ -13760,19 +13870,19 @@
13760
13870
  * @param request {PlatformAuthRequest}
13761
13871
  * @private
13762
13872
  */
13763
- handleExtraBrokerParams(request) {
13873
+ handleExtraBrokerParams(request, embeddedClientId) {
13764
13874
  const hasExtraBrokerParams = request.extraParameters &&
13765
13875
  request.extraParameters.hasOwnProperty(BROKER_CLIENT_ID) &&
13766
13876
  request.extraParameters.hasOwnProperty(BROKER_REDIRECT_URI) &&
13767
13877
  request.extraParameters.hasOwnProperty(CLIENT_ID);
13768
- if (!request.embeddedClientId && !hasExtraBrokerParams) {
13878
+ if (!embeddedClientId && !hasExtraBrokerParams) {
13769
13879
  return;
13770
13880
  }
13771
13881
  let child_client_id = "";
13772
13882
  const child_redirect_uri = request.redirectUri;
13773
- if (request.embeddedClientId) {
13883
+ if (embeddedClientId) {
13774
13884
  request.redirectUri = this.config.auth.redirectUri;
13775
- child_client_id = request.embeddedClientId;
13885
+ child_client_id = embeddedClientId;
13776
13886
  }
13777
13887
  else if (request.extraParameters) {
13778
13888
  request.redirectUri =
@@ -13780,7 +13890,15 @@
13780
13890
  child_client_id =
13781
13891
  request.extraParameters[CLIENT_ID];
13782
13892
  }
13893
+ const {
13894
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13895
+ [BROKER_CLIENT_ID]: _brkClientId,
13896
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13897
+ [BROKER_REDIRECT_URI]: _brkRedirectUri,
13898
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13899
+ [CLIENT_ID]: _clientId, ...remainingExtraParameters } = request.extraParameters || {};
13783
13900
  request.extraParameters = {
13901
+ ...remainingExtraParameters,
13784
13902
  child_client_id,
13785
13903
  child_redirect_uri,
13786
13904
  };
@@ -14205,6 +14323,8 @@
14205
14323
  * Copyright (c) Microsoft Corporation. All rights reserved.
14206
14324
  * Licensed under the MIT License.
14207
14325
  */
14326
+ const MAX_FETCH_POST_RETRIES = 1;
14327
+ const RETRY_DELAY_MS = 100;
14208
14328
  /**
14209
14329
  * This class implements the Fetch API for GET and POST requests. See more here: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
14210
14330
  */
@@ -14253,21 +14373,40 @@
14253
14373
  async sendPostRequestAsync(url, options) {
14254
14374
  const reqBody = (options && options.body) || "";
14255
14375
  const reqHeaders = getFetchHeaders(options);
14376
+ const correlationId = options?.correlationId;
14377
+ const performanceClient = options?.performanceClient;
14256
14378
  let response;
14257
- let responseStatus = 0;
14258
- let responseHeaders = {};
14259
- try {
14260
- response = await fetch(url, {
14261
- method: HTTP_REQUEST_TYPE.POST,
14262
- headers: reqHeaders,
14263
- body: reqBody,
14264
- });
14379
+ let lastError;
14380
+ for (let attempt = 1; attempt <= MAX_FETCH_POST_RETRIES + 1; attempt++) {
14381
+ try {
14382
+ response = await fetch(url, {
14383
+ method: HTTP_REQUEST_TYPE.POST,
14384
+ headers: reqHeaders,
14385
+ body: reqBody,
14386
+ });
14387
+ break;
14388
+ }
14389
+ catch (e) {
14390
+ lastError = e;
14391
+ if (!shouldRetryPostFetchError(lastError, attempt)) {
14392
+ throw createNetworkError(createBrowserAuthError(window.navigator.onLine !== false
14393
+ ? postRequestFailed
14394
+ : noNetworkConnectivity, correlationId || ""), undefined, undefined, lastError);
14395
+ }
14396
+ // Brief backoff before retry
14397
+ await new Promise((resolve) => setTimeout(resolve, RETRY_DELAY_MS));
14398
+ if (correlationId) {
14399
+ performanceClient?.incrementFields({ fetchRetryCount: 1 }, correlationId);
14400
+ }
14401
+ }
14265
14402
  }
14266
- catch (e) {
14267
- throw createNetworkError(createBrowserAuthError(window.navigator.onLine
14403
+ if (!response) {
14404
+ throw createNetworkError(createBrowserAuthError(window.navigator.onLine !== false
14268
14405
  ? postRequestFailed
14269
- : noNetworkConnectivity, ""), undefined, undefined, e);
14406
+ : noNetworkConnectivity, correlationId || ""), undefined, undefined, lastError);
14270
14407
  }
14408
+ let responseStatus = 0;
14409
+ let responseHeaders = {};
14271
14410
  responseHeaders = getHeaderDict(response.headers);
14272
14411
  try {
14273
14412
  responseStatus = response.status;
@@ -14278,10 +14417,15 @@
14278
14417
  };
14279
14418
  }
14280
14419
  catch (e) {
14281
- throw createNetworkError(createBrowserAuthError(failedToParseResponse, ""), responseStatus, responseHeaders, e);
14420
+ throw createNetworkError(createBrowserAuthError(failedToParseResponse, correlationId || ""), responseStatus, responseHeaders, e);
14282
14421
  }
14283
14422
  }
14284
14423
  }
14424
+ function shouldRetryPostFetchError(error, attempt) {
14425
+ return (attempt <= MAX_FETCH_POST_RETRIES &&
14426
+ window.navigator.onLine !== false &&
14427
+ error.name !== "AbortError");
14428
+ }
14285
14429
  /**
14286
14430
  * Get Fetch API Headers object from string map
14287
14431
  * @param inputHeaders
@@ -14767,7 +14911,7 @@
14767
14911
  }
14768
14912
  initializePlatformDOMRequest(request) {
14769
14913
  this.logger.trace(`15d6yv ${this.platformAuthType}`, request.correlationId);
14770
- const { accountId, clientId, authority, scope, redirectUri, correlationId, state, storeInCache, embeddedClientId, extraParameters, ...remainingProperties } = request;
14914
+ const { accountId, clientId, authority, scope, redirectUri, correlationId, state, extraParameters, ...remainingProperties } = request;
14771
14915
  const validExtraParameters = this.getDOMExtraParams(remainingProperties, correlationId);
14772
14916
  const platformDOMRequest = {
14773
14917
  accountId: accountId,
@@ -14783,8 +14927,6 @@
14783
14927
  redirectUri: redirectUri,
14784
14928
  scope: scope,
14785
14929
  state: state,
14786
- storeInCache: storeInCache,
14787
- embeddedClientId: embeddedClientId,
14788
14930
  };
14789
14931
  return platformDOMRequest;
14790
14932
  }
@@ -16568,6 +16710,7 @@
16568
16710
  this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, exports.InteractionType.Redirect);
16569
16711
  rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
16570
16712
  this.logger.trace("12v7is", correlationId);
16713
+ // Cached nativeAccountId routes directly to the broker (no /authorize call)
16571
16714
  rootMeasurement.add({
16572
16715
  isPlatformBrokerRequest: true,
16573
16716
  });
@@ -16604,6 +16747,7 @@
16604
16747
  }
16605
16748
  rootMeasurement.end({
16606
16749
  success: true,
16750
+ isNativeBroker: result.fromPlatformBroker ?? false,
16607
16751
  }, undefined, result.account);
16608
16752
  // Fire-and-forget SSO capability verification in background
16609
16753
  this.verifySsoCapability(cachedRedirectRequest, exports.InteractionType.Redirect);
@@ -16613,8 +16757,8 @@
16613
16757
  * Instrument an event only if an error code is set. Otherwise, discard it when the redirect response
16614
16758
  * is empty and the error code is missing.
16615
16759
  */
16616
- if (rootMeasurement.event.errorCode) {
16617
- rootMeasurement.end({ success: false }, undefined);
16760
+ if (!!rootMeasurement.event.errorCode) {
16761
+ rootMeasurement.end({ success: false });
16618
16762
  }
16619
16763
  else {
16620
16764
  rootMeasurement.discard();
@@ -16673,10 +16817,6 @@
16673
16817
  this.canUsePlatformBroker(request)) {
16674
16818
  const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient, this.platformAuthProvider, this.getNativeAccountId(request), this.nativeInternalStorage, correlationId);
16675
16819
  result = invokeAsync(nativeClient.acquireTokenRedirect.bind(nativeClient), NativeInteractionClientAcquireTokenRedirect, this.logger, this.performanceClient, correlationId)(request, atrMeasurement).catch((e) => {
16676
- atrMeasurement.add({
16677
- brokerErrorName: e.name,
16678
- brokerErrorCode: e.errorCode,
16679
- });
16680
16820
  if (e instanceof NativeAuthError &&
16681
16821
  isFatalNativeAuthError(e)) {
16682
16822
  this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
@@ -16745,6 +16885,7 @@
16745
16885
  let result;
16746
16886
  const pkce = this.getPreGeneratedPkceCodes(correlationId);
16747
16887
  if (this.canUsePlatformBroker(request)) {
16888
+ // Cached nativeAccountId routes directly to the broker (no /authorize call)
16748
16889
  atPopupMeasurement.add({
16749
16890
  isPlatformBrokerRequest: true,
16750
16891
  });
@@ -16755,15 +16896,11 @@
16755
16896
  .then((response) => {
16756
16897
  atPopupMeasurement.end({
16757
16898
  success: true,
16758
- isNativeBroker: true,
16899
+ isNativeBroker: response.fromPlatformBroker ?? false,
16759
16900
  }, undefined, response.account);
16760
16901
  return response;
16761
16902
  })
16762
16903
  .catch((e) => {
16763
- atPopupMeasurement.add({
16764
- brokerErrorName: e.name,
16765
- brokerErrorCode: e.errorCode,
16766
- });
16767
16904
  if (e instanceof NativeAuthError &&
16768
16905
  isFatalNativeAuthError(e)) {
16769
16906
  this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
@@ -16794,6 +16931,7 @@
16794
16931
  }
16795
16932
  atPopupMeasurement.end({
16796
16933
  success: true,
16934
+ isNativeBroker: result.fromPlatformBroker ?? false,
16797
16935
  accessTokenSize: result.accessToken.length,
16798
16936
  idTokenSize: result.idToken.length,
16799
16937
  }, undefined, result.account);
@@ -16987,14 +17125,11 @@
16987
17125
  this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, validRequest);
16988
17126
  let result;
16989
17127
  if (this.canUsePlatformBroker(validRequest)) {
17128
+ // Cached nativeAccountId routes directly to the broker (no /authorize call)
16990
17129
  this.ssoSilentMeasurement?.add({
16991
17130
  isPlatformBrokerRequest: true,
16992
17131
  });
16993
17132
  result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch((e) => {
16994
- this.ssoSilentMeasurement?.add({
16995
- brokerErrorName: e.name,
16996
- brokerErrorCode: e.errorCode,
16997
- });
16998
17133
  // If native token acquisition fails for availability reasons fallback to standard flow
16999
17134
  if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
17000
17135
  this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
@@ -17017,7 +17152,7 @@
17017
17152
  }
17018
17153
  this.ssoSilentMeasurement?.end({
17019
17154
  success: true,
17020
- isNativeBroker: response.fromPlatformBroker,
17155
+ isNativeBroker: response.fromPlatformBroker ?? false,
17021
17156
  accessTokenSize: response.accessToken.length,
17022
17157
  idTokenSize: response.idToken.length,
17023
17158
  }, undefined, response.account);
@@ -17070,6 +17205,7 @@
17070
17205
  this.hybridAuthCodeResponses.delete(hybridAuthCode);
17071
17206
  atbcMeasurement.end({
17072
17207
  success: true,
17208
+ isNativeBroker: false,
17073
17209
  accessTokenSize: result.accessToken.length,
17074
17210
  idTokenSize: result.idToken.length,
17075
17211
  }, undefined, result.account);
@@ -17100,10 +17236,6 @@
17100
17236
  ...request,
17101
17237
  correlationId,
17102
17238
  }, ApiId.acquireTokenByCode, request.nativeAccountId).catch((e) => {
17103
- atbcMeasurement.add({
17104
- brokerErrorName: e.name,
17105
- brokerErrorCode: e.errorCode,
17106
- });
17107
17239
  // If native token acquisition fails for availability reasons fallback to standard flow
17108
17240
  if (e instanceof NativeAuthError &&
17109
17241
  isFatalNativeAuthError(e)) {
@@ -17113,6 +17245,7 @@
17113
17245
  });
17114
17246
  atbcMeasurement.end({
17115
17247
  success: true,
17248
+ isNativeBroker: result.fromPlatformBroker ?? false,
17116
17249
  }, undefined, result.account);
17117
17250
  return result;
17118
17251
  }
@@ -17153,6 +17286,7 @@
17153
17286
  .then((response) => {
17154
17287
  this.acquireTokenByCodeAsyncMeasurement?.end({
17155
17288
  success: true,
17289
+ isNativeBroker: false,
17156
17290
  fromCache: response.fromCache,
17157
17291
  });
17158
17292
  return response;
@@ -17330,8 +17464,16 @@
17330
17464
  /**
17331
17465
  * Acquire a token from native device (e.g. WAM)
17332
17466
  * @param request
17467
+ * @param apiId
17468
+ * @param accountId
17469
+ * @param cacheLookupPolicy
17333
17470
  */
17334
17471
  async acquireTokenNative(request, apiId, accountId, cacheLookupPolicy) {
17472
+ /*
17473
+ * Callers always normalize correlationId onto the request before delegating
17474
+ * here, so it is guaranteed defined and is the single id used to key this
17475
+ * flow's telemetry.
17476
+ */
17335
17477
  const correlationId = this.getRequestCorrelationId(request);
17336
17478
  this.logger.trace("0b9y3p", correlationId);
17337
17479
  if (!this.platformAuthProvider) {
@@ -17585,6 +17727,7 @@
17585
17727
  .then((result) => {
17586
17728
  atsMeasurement.end({
17587
17729
  success: true,
17730
+ isNativeBroker: result.fromPlatformBroker ?? false,
17588
17731
  fromCache: result.fromCache,
17589
17732
  accessTokenSize: result.accessToken.length,
17590
17733
  idTokenSize: result.idToken.length,
@@ -17721,7 +17864,7 @@
17721
17864
  if (request.correlationId) {
17722
17865
  this.performanceClient.addFields({
17723
17866
  fromCache: response.fromCache,
17724
- isNativeBroker: response.fromPlatformBroker,
17867
+ isNativeBroker: response.fromPlatformBroker ?? false,
17725
17868
  }, request.correlationId);
17726
17869
  }
17727
17870
  return response;
@@ -17747,10 +17890,6 @@
17747
17890
  this.logger.verbose("0sczo4", silentRequest.correlationId);
17748
17891
  this.performanceClient.addFields({ isPlatformBrokerRequest: true }, silentRequest.correlationId);
17749
17892
  return this.acquireTokenNative(silentRequest, ApiId.acquireTokenSilent_silentFlow, silentRequest.account.nativeAccountId, cacheLookupPolicy).catch(async (e) => {
17750
- this.performanceClient.addFields({
17751
- brokerErrorName: e.name,
17752
- brokerErrorCode: e.errorCode,
17753
- }, silentRequest.correlationId);
17754
17893
  // If native token acquisition fails for availability reasons fallback to web flow
17755
17894
  if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
17756
17895
  this.logger.verbose("07rkmb", silentRequest.correlationId);