@azure/msal-browser 5.17.0 → 5.17.1

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 (220) 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 +1 -1
  10. package/dist/cache/CacheHelpers.mjs +1 -1
  11. package/dist/cache/CacheKeys.mjs +1 -1
  12. package/dist/cache/CookieStorage.mjs +1 -1
  13. package/dist/cache/DatabaseStorage.mjs +1 -1
  14. package/dist/cache/EncryptedData.mjs +1 -1
  15. package/dist/cache/LocalStorage.mjs +1 -1
  16. package/dist/cache/MemoryStorage.mjs +1 -1
  17. package/dist/cache/SessionStorage.mjs +1 -1
  18. package/dist/cache/TokenCache.mjs +1 -1
  19. package/dist/config/Configuration.mjs +1 -1
  20. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  21. package/dist/controllers/StandardController.mjs +1 -1
  22. package/dist/crypto/BrowserCrypto.mjs +61 -12
  23. package/dist/crypto/BrowserCrypto.mjs.map +1 -1
  24. package/dist/crypto/CryptoOps.mjs +6 -12
  25. package/dist/crypto/CryptoOps.mjs.map +1 -1
  26. package/dist/crypto/PkceGenerator.mjs +1 -1
  27. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  28. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  29. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  30. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
  31. package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  32. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  33. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  34. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  35. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  36. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  37. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  38. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  39. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  40. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  41. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  42. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  43. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  44. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  48. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  49. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  50. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  51. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  52. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  53. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  54. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  55. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  56. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  57. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  58. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  59. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  60. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  61. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  62. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  63. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  64. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  65. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  66. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  67. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  68. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  69. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  70. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  71. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  72. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  73. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  74. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  75. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  76. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  77. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  78. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  79. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  80. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  81. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  82. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  83. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  84. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  85. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  86. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  87. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  88. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  89. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  90. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  91. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  92. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  93. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  94. package/dist/custom_auth/index.mjs +1 -1
  95. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  96. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  97. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  98. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  99. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  100. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  101. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  102. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  103. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  104. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  105. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  106. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  107. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  108. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  109. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  110. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  111. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  112. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  113. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  114. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  115. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  116. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  117. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  118. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  119. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  120. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  121. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  122. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  123. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  124. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  125. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  126. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  127. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  128. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  129. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  130. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  131. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  132. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  133. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  134. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  135. package/dist/encode/Base64Decode.mjs +1 -1
  136. package/dist/encode/Base64Encode.mjs +1 -1
  137. package/dist/error/BrowserAuthError.mjs +1 -1
  138. package/dist/error/BrowserAuthErrorCodes.mjs +3 -2
  139. package/dist/error/BrowserAuthErrorCodes.mjs.map +1 -1
  140. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  141. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  142. package/dist/error/NativeAuthError.mjs +1 -1
  143. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  144. package/dist/error/NestedAppAuthError.mjs +1 -1
  145. package/dist/event/EventHandler.mjs +1 -1
  146. package/dist/event/EventMessage.mjs +1 -1
  147. package/dist/event/EventType.mjs +1 -1
  148. package/dist/index.mjs +1 -1
  149. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  150. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  151. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  152. package/dist/interaction_client/PopupClient.mjs +1 -1
  153. package/dist/interaction_client/RedirectClient.mjs +1 -1
  154. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  155. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  156. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  157. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  158. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  159. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  160. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  161. package/dist/log-strings-mapping.json +2 -2
  162. package/dist/naa/BridgeError.mjs +1 -1
  163. package/dist/naa/BridgeProxy.mjs +1 -1
  164. package/dist/naa/BridgeStatusCode.mjs +1 -1
  165. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  166. package/dist/navigation/NavigationClient.mjs +1 -1
  167. package/dist/network/FetchClient.mjs +1 -1
  168. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  169. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  170. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  171. package/dist/packageMetadata.mjs +2 -2
  172. package/dist/popup_relay/constants.mjs +1 -1
  173. package/dist/popup_relay/index.mjs +1 -1
  174. package/dist/popup_relay/relayClient.mjs +1 -1
  175. package/dist/protocol/Authorize.mjs +1 -1
  176. package/dist/redirect_bridge/index.mjs +1 -1
  177. package/dist/request/RequestHelpers.mjs +1 -1
  178. package/dist/response/ResponseHandler.mjs +1 -1
  179. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  180. package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
  181. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  182. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  183. package/dist/utils/BrowserConstants.mjs +1 -1
  184. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  185. package/dist/utils/BrowserUtils.mjs +1 -1
  186. package/dist/utils/Helpers.mjs +1 -1
  187. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  188. package/lib/custom-auth-path/log-strings-mapping.json +2 -2
  189. package/lib/custom-auth-path/msal-custom-auth.cjs +134 -86
  190. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  191. package/lib/custom-auth-path/msal-custom-auth.js +134 -86
  192. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  193. package/lib/log-strings-mapping.json +2 -2
  194. package/lib/msal-browser.cjs +142 -89
  195. package/lib/msal-browser.cjs.map +1 -1
  196. package/lib/msal-browser.js +142 -89
  197. package/lib/msal-browser.js.map +1 -1
  198. package/lib/msal-browser.min.js +2 -2
  199. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  200. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  201. package/lib/popup-relay/msal-popup-relay.js +2 -2
  202. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  203. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  204. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  205. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  206. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  207. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  208. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  209. package/package.json +2 -2
  210. package/src/crypto/BrowserCrypto.ts +104 -9
  211. package/src/crypto/CryptoOps.ts +13 -12
  212. package/src/error/BrowserAuthErrorCodes.ts +1 -0
  213. package/src/packageMetadata.ts +1 -1
  214. package/types/crypto/BrowserCrypto.d.ts +19 -5
  215. package/types/crypto/BrowserCrypto.d.ts.map +1 -1
  216. package/types/crypto/CryptoOps.d.ts.map +1 -1
  217. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  218. package/types/error/BrowserAuthErrorCodes.d.ts +1 -0
  219. package/types/error/BrowserAuthErrorCodes.d.ts.map +1 -1
  220. 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.1 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2";
4162
4170
 
4163
- /*! @azure/msal-common v16.11.1 2026-07-07 */
4171
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
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.2 2026-07-15 */
5358
5366
  /*
5359
5367
  * Copyright (c) Microsoft Corporation. All rights reserved.
5360
5368
  * Licensed under the MIT License.
@@ -5418,7 +5426,7 @@
5418
5426
  "redirectBridgeMessageVersion",
5419
5427
  ]);
5420
5428
 
5421
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5429
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5422
5430
 
5423
5431
  /*
5424
5432
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5476,7 +5484,7 @@
5476
5484
  }
5477
5485
  }
5478
5486
 
5479
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5487
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5480
5488
 
5481
5489
  /*
5482
5490
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5572,7 +5580,7 @@
5572
5580
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
5573
5581
  }
5574
5582
 
5575
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5583
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5576
5584
  /*
5577
5585
  * Copyright (c) Microsoft Corporation. All rights reserved.
5578
5586
  * Licensed under the MIT License.
@@ -5599,7 +5607,7 @@
5599
5607
  }
5600
5608
  }
5601
5609
 
5602
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5610
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5603
5611
 
5604
5612
  /*
5605
5613
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5679,7 +5687,7 @@
5679
5687
  }
5680
5688
  }
5681
5689
 
5682
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5690
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5683
5691
  /*
5684
5692
  * Copyright (c) Microsoft Corporation. All rights reserved.
5685
5693
  * Licensed under the MIT License.
@@ -5743,7 +5751,7 @@
5743
5751
  uiNotAllowed: uiNotAllowed
5744
5752
  });
5745
5753
 
5746
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5754
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5747
5755
 
5748
5756
  /*
5749
5757
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5810,7 +5818,7 @@
5810
5818
  return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
5811
5819
  }
5812
5820
 
5813
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5821
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5814
5822
 
5815
5823
  /*
5816
5824
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5829,7 +5837,7 @@
5829
5837
  }
5830
5838
  }
5831
5839
 
5832
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5840
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5833
5841
 
5834
5842
  /*
5835
5843
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5900,7 +5908,7 @@
5900
5908
  }
5901
5909
  }
5902
5910
 
5903
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5911
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5904
5912
 
5905
5913
  /*
5906
5914
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6251,7 +6259,7 @@
6251
6259
  return baseAccount;
6252
6260
  }
6253
6261
 
6254
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6262
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6255
6263
  /*
6256
6264
  * Copyright (c) Microsoft Corporation. All rights reserved.
6257
6265
  * Licensed under the MIT License.
@@ -6261,7 +6269,7 @@
6261
6269
  UPN: "UPN",
6262
6270
  };
6263
6271
 
6264
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6272
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6265
6273
  /*
6266
6274
  * Copyright (c) Microsoft Corporation. All rights reserved.
6267
6275
  * Licensed under the MIT License.
@@ -6280,7 +6288,7 @@
6280
6288
  }
6281
6289
  }
6282
6290
 
6283
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6291
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6284
6292
  /*
6285
6293
  * Copyright (c) Microsoft Corporation. All rights reserved.
6286
6294
  * Licensed under the MIT License.
@@ -6302,7 +6310,7 @@
6302
6310
  };
6303
6311
  }
6304
6312
 
6305
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6313
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6306
6314
 
6307
6315
  /*
6308
6316
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6388,7 +6396,7 @@
6388
6396
  }
6389
6397
  }
6390
6398
 
6391
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6399
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6392
6400
 
6393
6401
  /*
6394
6402
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6419,7 +6427,7 @@
6419
6427
  return new NetworkError(error, httpStatus, responseHeaders);
6420
6428
  }
6421
6429
 
6422
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6430
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6423
6431
 
6424
6432
  /*
6425
6433
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6535,7 +6543,7 @@
6535
6543
  return response;
6536
6544
  }
6537
6545
 
6538
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6546
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6539
6547
 
6540
6548
  /*
6541
6549
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6792,7 +6800,7 @@
6792
6800
  }
6793
6801
  }
6794
6802
 
6795
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6803
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6796
6804
 
6797
6805
  /*
6798
6806
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7019,7 +7027,7 @@
7019
7027
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7020
7028
  }
7021
7029
 
7022
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7030
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
7023
7031
 
7024
7032
  /*
7025
7033
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7040,7 +7048,7 @@
7040
7048
  return new JoseHeaderError(code, correlationId);
7041
7049
  }
7042
7050
 
7043
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7051
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
7044
7052
  /*
7045
7053
  * Copyright (c) Microsoft Corporation. All rights reserved.
7046
7054
  * Licensed under the MIT License.
@@ -7048,7 +7056,7 @@
7048
7056
  const missingKidError = "missing_kid_error";
7049
7057
  const missingAlgError = "missing_alg_error";
7050
7058
 
7051
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7059
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
7052
7060
 
7053
7061
  /*
7054
7062
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7088,7 +7096,7 @@
7088
7096
  }
7089
7097
  }
7090
7098
 
7091
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7099
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
7092
7100
 
7093
7101
  /*
7094
7102
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7637,7 +7645,7 @@
7637
7645
  }
7638
7646
  }
7639
7647
 
7640
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7648
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
7641
7649
 
7642
7650
  /*
7643
7651
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7858,7 +7866,7 @@
7858
7866
  }
7859
7867
  }
7860
7868
 
7861
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7869
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
7862
7870
 
7863
7871
  /*
7864
7872
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8151,7 +8159,7 @@
8151
8159
  clearNativeBrokerErrorCode() { }
8152
8160
  }
8153
8161
 
8154
- /*! @azure/msal-common v16.11.1 2026-07-07 */
8162
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
8155
8163
 
8156
8164
  /*
8157
8165
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8259,7 +8267,7 @@
8259
8267
  }
8260
8268
  }
8261
8269
 
8262
- /*! @azure/msal-common v16.11.1 2026-07-07 */
8270
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
8263
8271
 
8264
8272
  /*
8265
8273
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8275,7 +8283,7 @@
8275
8283
  },
8276
8284
  };
8277
8285
 
8278
- /*! @azure/msal-common v16.11.1 2026-07-07 */
8286
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
8279
8287
 
8280
8288
  /*
8281
8289
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8478,6 +8486,7 @@
8478
8486
  const failedToParseResponse = "failed_to_parse_response";
8479
8487
  const unableToLoadToken = "unable_to_load_token";
8480
8488
  const cryptoKeyNotFound = "crypto_key_not_found";
8489
+ const invalidPublicJwk = "invalid_public_jwk";
8481
8490
  const authCodeRequired = "auth_code_required";
8482
8491
  const authCodeOrNativeAccountIdRequired = "auth_code_or_nativeAccountId_required";
8483
8492
  const spaCodeAndNativeAccountIdPresent = "spa_code_and_nativeAccountId_present";
@@ -8525,6 +8534,7 @@
8525
8534
  invalidBase64String: invalidBase64String,
8526
8535
  invalidCacheType: invalidCacheType,
8527
8536
  invalidPopTokenRequest: invalidPopTokenRequest,
8537
+ invalidPublicJwk: invalidPublicJwk,
8528
8538
  nativeConnectionNotEstablished: nativeConnectionNotEstablished,
8529
8539
  nativeExtensionNotInstalled: nativeExtensionNotInstalled,
8530
8540
  nativeHandshakeTimeout: nativeHandshakeTimeout,
@@ -8887,6 +8897,12 @@
8887
8897
  const HKDF = "HKDF";
8888
8898
  // SHA-256 hashing algorithm
8889
8899
  const S256_HASH_ALG = "SHA-256";
8900
+ const JSON_WEB_KEY_TYPE_EC = "EC";
8901
+ const JSON_WEB_KEY_TYPE_RSA = "RSA";
8902
+ const MISSING_JWK_KTY_SUBERROR = "missing_jwk_kty";
8903
+ const UNSUPPORTED_JWK_KTY_SUBERROR = "unsupported_jwk_kty";
8904
+ const MISSING_JWK_MEMBER_SUBERROR = "missing_jwk_member";
8905
+ const EMPTY_JWK_MEMBER_SUBERROR = "empty_jwk_member";
8890
8906
  // MOD length for PoP tokens
8891
8907
  const MODULUS_LENGTH = 2048;
8892
8908
  // Public Exponent
@@ -8903,12 +8919,15 @@
8903
8919
  const DERIVE_KEY = "deriveKey";
8904
8920
  // Suberror
8905
8921
  const SUBTLE_SUBERROR = "crypto_subtle_undefined";
8906
- const keygenAlgorithmOptions = {
8922
+ const RSA_KEYGEN_ALGORITHM_OPTIONS = {
8907
8923
  name: PKCS1_V15_KEYGEN_ALG,
8908
8924
  hash: S256_HASH_ALG,
8909
8925
  modulusLength: MODULUS_LENGTH,
8910
8926
  publicExponent: PUBLIC_EXPONENT,
8911
8927
  };
8928
+ const RSA_SIGN_ALGORITHM_OPTIONS = {
8929
+ name: PKCS1_V15_KEYGEN_ALG,
8930
+ };
8912
8931
  /**
8913
8932
  * Check whether browser crypto is available.
8914
8933
  */
@@ -8992,12 +9011,13 @@
8992
9011
  return text;
8993
9012
  }
8994
9013
  /**
8995
- * Generates a keypair based on current keygen algorithm config.
9014
+ * Generates a keypair based on the provided algorithm config.
8996
9015
  * @param extractable
8997
9016
  * @param usages
9017
+ * @param algorithm
8998
9018
  */
8999
- async function generateKeyPair(extractable, usages) {
9000
- return window.crypto.subtle.generateKey(keygenAlgorithmOptions, extractable, usages);
9019
+ async function generateKeyPair(extractable, usages, algorithm) {
9020
+ return window.crypto.subtle.generateKey(algorithm, extractable, usages);
9001
9021
  }
9002
9022
  /**
9003
9023
  * Export key as Json Web Key (JWK)
@@ -9011,17 +9031,19 @@
9011
9031
  * @param key
9012
9032
  * @param extractable
9013
9033
  * @param usages
9034
+ * @param algorithm
9014
9035
  */
9015
- async function importJwk(key, extractable, usages) {
9016
- return window.crypto.subtle.importKey(KEY_FORMAT_JWK, key, keygenAlgorithmOptions, extractable, usages);
9036
+ async function importJwk(key, extractable, usages, algorithm) {
9037
+ return window.crypto.subtle.importKey(KEY_FORMAT_JWK, key, algorithm, extractable, usages);
9017
9038
  }
9018
9039
  /**
9019
- * Signs given data with given key
9040
+ * Signs given data with given key.
9020
9041
  * @param key
9021
9042
  * @param data
9043
+ * @param algorithm
9022
9044
  */
9023
- async function sign(key, data) {
9024
- return window.crypto.subtle.sign(keygenAlgorithmOptions, key, data);
9045
+ async function sign(key, data, algorithm) {
9046
+ return window.crypto.subtle.sign(algorithm, key, data);
9025
9047
  }
9026
9048
  /**
9027
9049
  * Generates Base64 encoded jwk used in the Encrypted Authorize Response (EAR) flow
@@ -9164,6 +9186,43 @@
9164
9186
  const hashBuffer = await sha256Digest(plainText);
9165
9187
  const hashBytes = new Uint8Array(hashBuffer);
9166
9188
  return urlEncodeArr(hashBytes);
9189
+ }
9190
+ const JWK_THUMBPRINT_REQUIRED_MEMBERS = {
9191
+ [JSON_WEB_KEY_TYPE_EC]: ["crv", "kty", "x", "y"],
9192
+ [JSON_WEB_KEY_TYPE_RSA]: ["e", "kty", "n"],
9193
+ };
9194
+ function getJwkThumbprintMembers(publicJwk) {
9195
+ const kty = publicJwk.kty;
9196
+ if (typeof kty !== "string" || kty.length === 0) {
9197
+ throw createBrowserAuthError(invalidPublicJwk, "", MISSING_JWK_KTY_SUBERROR);
9198
+ }
9199
+ const requiredMembers = JWK_THUMBPRINT_REQUIRED_MEMBERS[kty];
9200
+ if (!requiredMembers) {
9201
+ throw createBrowserAuthError(invalidPublicJwk, "", UNSUPPORTED_JWK_KTY_SUBERROR);
9202
+ }
9203
+ return requiredMembers.reduce((thumbprintMembers, memberName) => {
9204
+ const memberValue = publicJwk[memberName];
9205
+ if (typeof memberValue !== "string") {
9206
+ throw createBrowserAuthError(invalidPublicJwk, "", MISSING_JWK_MEMBER_SUBERROR);
9207
+ }
9208
+ if (memberValue.length === 0) {
9209
+ throw createBrowserAuthError(invalidPublicJwk, "", EMPTY_JWK_MEMBER_SUBERROR);
9210
+ }
9211
+ thumbprintMembers[memberName] = memberValue;
9212
+ return thumbprintMembers;
9213
+ }, {});
9214
+ }
9215
+ /**
9216
+ * Computes an RFC 7638 JWK thumbprint for a public key.
9217
+ * The required members for the JWK key type are serialised in lexicographic order
9218
+ * and the SHA-256 digest is returned as a base64url string.
9219
+ * @internal
9220
+ */
9221
+ async function computeJwkThumbprint(publicJwk) {
9222
+ const thumbprintMembers = getJwkThumbprintMembers(publicJwk);
9223
+ // RFC 7638 §3.3: use only required members, sorted lexicographically
9224
+ const thumbprintJson = JSON.stringify(thumbprintMembers, Object.keys(thumbprintMembers).sort());
9225
+ return hashString(thumbprintJson);
9167
9226
  }
9168
9227
 
9169
9228
  /*
@@ -10019,20 +10078,14 @@
10019
10078
  async getPublicKeyThumbprint(request) {
10020
10079
  const publicKeyThumbMeasurement = this.performanceClient?.startMeasurement(CryptoOptsGetPublicKeyThumbprint, request.correlationId);
10021
10080
  // Generate Keypair
10022
- const keyPair = await generateKeyPair(CryptoOps.EXTRACTABLE, CryptoOps.POP_KEY_USAGES);
10081
+ const keyPair = await generateKeyPair(CryptoOps.EXTRACTABLE, CryptoOps.POP_KEY_USAGES, RSA_KEYGEN_ALGORITHM_OPTIONS);
10023
10082
  // Generate Thumbprint for Public Key
10024
10083
  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);
10084
+ const publicJwkHash = await computeJwkThumbprint(publicKeyJwk);
10032
10085
  // Generate Thumbprint for Private Key
10033
10086
  const privateKeyJwk = await exportJwk(keyPair.privateKey);
10034
10087
  // Re-import private key to make it unextractable
10035
- const unextractablePrivateKey = await importJwk(privateKeyJwk, false, ["sign"]);
10088
+ const unextractablePrivateKey = await importJwk(privateKeyJwk, false, ["sign"], RSA_KEYGEN_ALGORITHM_OPTIONS);
10036
10089
  // Store Keypair data in keystore
10037
10090
  await this.cache.setItem(publicJwkHash, {
10038
10091
  privateKey: unextractablePrivateKey,
@@ -10117,7 +10170,7 @@
10117
10170
  // Sign token
10118
10171
  const encoder = new TextEncoder();
10119
10172
  const tokenBuffer = encoder.encode(tokenString);
10120
- const signatureBuffer = await sign(cachedKeyPair.privateKey, tokenBuffer);
10173
+ const signatureBuffer = await sign(cachedKeyPair.privateKey, tokenBuffer, RSA_SIGN_ALGORITHM_OPTIONS);
10121
10174
  const encodedSignature = urlEncodeArr(new Uint8Array(signatureBuffer));
10122
10175
  const signedJwt = `${tokenString}.${encodedSignature}`;
10123
10176
  if (signJwtMeasurement) {
@@ -10733,7 +10786,7 @@
10733
10786
 
10734
10787
  /* eslint-disable header/header */
10735
10788
  const name = "@azure/msal-browser";
10736
- const version = "5.17.0";
10789
+ const version = "5.17.1";
10737
10790
 
10738
10791
  /*
10739
10792
  * Copyright (c) Microsoft Corporation. All rights reserved.