@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.msalCustomAuth = {}));
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.
@@ -289,7 +289,7 @@
289
289
  // Token renewal offset default in seconds
290
290
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
291
291
 
292
- /*! @azure/msal-common v16.11.1 2026-07-07 */
292
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
293
293
  /*
294
294
  * Copyright (c) Microsoft Corporation. All rights reserved.
295
295
  * Licensed under the MIT License.
@@ -318,7 +318,7 @@
318
318
  return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
319
319
  }
320
320
 
321
- /*! @azure/msal-common v16.11.1 2026-07-07 */
321
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
322
322
 
323
323
  /*
324
324
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -341,7 +341,7 @@
341
341
  return new ClientAuthError(errorCode, correlationId, additionalMessage);
342
342
  }
343
343
 
344
- /*! @azure/msal-common v16.11.1 2026-07-07 */
344
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
345
345
  /*
346
346
  * Copyright (c) Microsoft Corporation. All rights reserved.
347
347
  * Licensed under the MIT License.
@@ -378,7 +378,7 @@
378
378
  const resourceParameterRequired = "resource_parameter_required";
379
379
  const misplacedResourceParam = "misplaced_resource_parameter";
380
380
 
381
- /*! @azure/msal-common v16.11.1 2026-07-07 */
381
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
382
382
 
383
383
  /*
384
384
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -416,7 +416,7 @@
416
416
  };
417
417
  }
418
418
 
419
- /*! @azure/msal-common v16.11.1 2026-07-07 */
419
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
420
420
 
421
421
  /*
422
422
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -482,7 +482,7 @@
482
482
  return matches[2];
483
483
  }
484
484
 
485
- /*! @azure/msal-common v16.11.1 2026-07-07 */
485
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
486
486
 
487
487
  /*
488
488
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -570,7 +570,7 @@
570
570
  return updatedAccountInfo;
571
571
  }
572
572
 
573
- /*! @azure/msal-common v16.11.1 2026-07-07 */
573
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
574
574
  /*
575
575
  * Copyright (c) Microsoft Corporation. All rights reserved.
576
576
  * Licensed under the MIT License.
@@ -585,7 +585,7 @@
585
585
  Ciam: 3,
586
586
  };
587
587
 
588
- /*! @azure/msal-common v16.11.1 2026-07-07 */
588
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
589
589
  /*
590
590
  * Copyright (c) Microsoft Corporation. All rights reserved.
591
591
  * Licensed under the MIT License.
@@ -607,7 +607,7 @@
607
607
  return null;
608
608
  }
609
609
 
610
- /*! @azure/msal-common v16.11.1 2026-07-07 */
610
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
611
611
  /*
612
612
  * Copyright (c) Microsoft Corporation. All rights reserved.
613
613
  * Licensed under the MIT License.
@@ -631,7 +631,7 @@
631
631
  EAR: "EAR",
632
632
  };
633
633
 
634
- /*! @azure/msal-common v16.11.1 2026-07-07 */
634
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
635
635
  /**
636
636
  * Returns the AccountInfo interface for this account.
637
637
  * @internal
@@ -820,7 +820,7 @@
820
820
  entity.hasOwnProperty("authorityType"));
821
821
  }
822
822
 
823
- /*! @azure/msal-common v16.11.1 2026-07-07 */
823
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
824
824
  /*
825
825
  * Copyright (c) Microsoft Corporation. All rights reserved.
826
826
  * Licensed under the MIT License.
@@ -830,7 +830,7 @@
830
830
  */
831
831
  const unexpectedError = "unexpected_error";
832
832
 
833
- /*! @azure/msal-common v16.11.1 2026-07-07 */
833
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
834
834
 
835
835
  /*
836
836
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -850,7 +850,7 @@
850
850
  return new ClientConfigurationError(errorCode, correlationId);
851
851
  }
852
852
 
853
- /*! @azure/msal-common v16.11.1 2026-07-07 */
853
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
854
854
  /*
855
855
  * Copyright (c) Microsoft Corporation. All rights reserved.
856
856
  * Licensed under the MIT License.
@@ -876,7 +876,7 @@
876
876
  const invalidPlatformBrokerConfiguration = "invalid_platform_broker_configuration";
877
877
  const issuerValidationFailed = "issuer_validation_failed";
878
878
 
879
- /*! @azure/msal-common v16.11.1 2026-07-07 */
879
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
880
880
  /*
881
881
  * Copyright (c) Microsoft Corporation. All rights reserved.
882
882
  * Licensed under the MIT License.
@@ -888,7 +888,7 @@
888
888
  response.hasOwnProperty("jwks_uri"));
889
889
  }
890
890
 
891
- /*! @azure/msal-common v16.11.1 2026-07-07 */
891
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
892
892
  /*
893
893
  * Copyright (c) Microsoft Corporation. All rights reserved.
894
894
  * Licensed under the MIT License.
@@ -968,7 +968,7 @@
968
968
  }
969
969
  }
970
970
 
971
- /*! @azure/msal-common v16.11.1 2026-07-07 */
971
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
972
972
 
973
973
  /*
974
974
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1126,7 +1126,7 @@
1126
1126
  }
1127
1127
  }
1128
1128
 
1129
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1129
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
1130
1130
 
1131
1131
  /*
1132
1132
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1292,7 +1292,7 @@
1292
1292
  return null;
1293
1293
  }
1294
1294
 
1295
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1295
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
1296
1296
  /*
1297
1297
  * Copyright (c) Microsoft Corporation. All rights reserved.
1298
1298
  * Licensed under the MIT License.
@@ -1301,7 +1301,7 @@
1301
1301
  // AzureCloudInstance is not specified.
1302
1302
  None: "none"};
1303
1303
 
1304
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1304
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
1305
1305
  /*
1306
1306
  * Copyright (c) Microsoft Corporation. All rights reserved.
1307
1307
  * Licensed under the MIT License.
@@ -1311,7 +1311,7 @@
1311
1311
  response.hasOwnProperty("metadata"));
1312
1312
  }
1313
1313
 
1314
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1314
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
1315
1315
  /*
1316
1316
  * Copyright (c) Microsoft Corporation. All rights reserved.
1317
1317
  * Licensed under the MIT License.
@@ -1321,7 +1321,7 @@
1321
1321
  response.hasOwnProperty("error_description"));
1322
1322
  }
1323
1323
 
1324
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1324
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
1325
1325
  /*
1326
1326
  * Copyright (c) Microsoft Corporation. All rights reserved.
1327
1327
  * Licensed under the MIT License.
@@ -1392,7 +1392,7 @@
1392
1392
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
1393
1393
  const SetUserData = "setUserData";
1394
1394
 
1395
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1395
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
1396
1396
  /*
1397
1397
  * Copyright (c) Microsoft Corporation. All rights reserved.
1398
1398
  * Licensed under the MIT License.
@@ -1485,7 +1485,7 @@
1485
1485
  };
1486
1486
  };
1487
1487
 
1488
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1488
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
1489
1489
 
1490
1490
  /*
1491
1491
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1596,7 +1596,7 @@
1596
1596
  },
1597
1597
  };
1598
1598
 
1599
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1599
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
1600
1600
  /*
1601
1601
  * Copyright (c) Microsoft Corporation. All rights reserved.
1602
1602
  * Licensed under the MIT License.
@@ -1661,7 +1661,7 @@
1661
1661
  return cachedAtSec > nowSeconds();
1662
1662
  }
1663
1663
 
1664
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1664
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
1665
1665
 
1666
1666
  /*
1667
1667
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1928,7 +1928,7 @@
1928
1928
  return metadata.expiresAt <= nowSeconds();
1929
1929
  }
1930
1930
 
1931
- /*! @azure/msal-common v16.11.1 2026-07-07 */
1931
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
1932
1932
 
1933
1933
  /*
1934
1934
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2898,7 +2898,7 @@
2898
2898
  };
2899
2899
  }
2900
2900
 
2901
- /*! @azure/msal-common v16.11.1 2026-07-07 */
2901
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
2902
2902
 
2903
2903
  /*
2904
2904
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2932,7 +2932,7 @@
2932
2932
  }
2933
2933
  }
2934
2934
 
2935
- /*! @azure/msal-common v16.11.1 2026-07-07 */
2935
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
2936
2936
 
2937
2937
  /*
2938
2938
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3128,7 +3128,7 @@
3128
3128
  }
3129
3129
  }
3130
3130
 
3131
- /*! @azure/msal-common v16.11.1 2026-07-07 */
3131
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
3132
3132
 
3133
3133
  /*
3134
3134
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3543,7 +3543,7 @@
3543
3543
  }
3544
3544
  }
3545
3545
 
3546
- /*! @azure/msal-common v16.11.1 2026-07-07 */
3546
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
3547
3547
 
3548
3548
  /*
3549
3549
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3665,12 +3665,16 @@
3665
3665
  }
3666
3666
  }
3667
3667
 
3668
- /*! @azure/msal-common v16.11.1 2026-07-07 */
3668
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
3669
3669
 
3670
3670
  /*
3671
3671
  * Copyright (c) Microsoft Corporation. All rights reserved.
3672
3672
  * Licensed under the MIT License.
3673
3673
  */
3674
+ /**
3675
+ * Default crypto implementation used when a platform-specific implementation has
3676
+ * not been provided.
3677
+ */
3674
3678
  const DEFAULT_CRYPTO_IMPLEMENTATION = {
3675
3679
  createNewGuid: () => {
3676
3680
  throw createClientAuthError(methodNotImplemented, "");
@@ -3704,7 +3708,7 @@
3704
3708
  },
3705
3709
  };
3706
3710
 
3707
- /*! @azure/msal-common v16.11.1 2026-07-07 */
3711
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
3708
3712
  /*
3709
3713
  * Copyright (c) Microsoft Corporation. All rights reserved.
3710
3714
  * Licensed under the MIT License.
@@ -3979,12 +3983,12 @@
3979
3983
  }
3980
3984
  }
3981
3985
 
3982
- /*! @azure/msal-common v16.11.1 2026-07-07 */
3986
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
3983
3987
  /* eslint-disable header/header */
3984
3988
  const name$1 = "@azure/msal-common";
3985
- const version$1 = "16.11.1";
3989
+ const version$1 = "16.11.2";
3986
3990
 
3987
- /*! @azure/msal-common v16.11.1 2026-07-07 */
3991
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
3988
3992
  /*
3989
3993
  * Copyright (c) Microsoft Corporation. All rights reserved.
3990
3994
  * Licensed under the MIT License.
@@ -3992,7 +3996,7 @@
3992
3996
  const cacheQuotaExceeded = "cache_quota_exceeded";
3993
3997
  const cacheErrorUnknown = "cache_error_unknown";
3994
3998
 
3995
- /*! @azure/msal-common v16.11.1 2026-07-07 */
3999
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
3996
4000
 
3997
4001
  /*
3998
4002
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4030,7 +4034,7 @@
4030
4034
  }
4031
4035
  }
4032
4036
 
4033
- /*! @azure/msal-common v16.11.1 2026-07-07 */
4037
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
4034
4038
 
4035
4039
  /*
4036
4040
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5177,7 +5181,7 @@
5177
5181
  }
5178
5182
  }
5179
5183
 
5180
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5184
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5181
5185
  /*
5182
5186
  * Copyright (c) Microsoft Corporation. All rights reserved.
5183
5187
  * Licensed under the MIT License.
@@ -5191,7 +5195,7 @@
5191
5195
  const PerformanceEventStatus = {
5192
5196
  InProgress: 1};
5193
5197
 
5194
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5198
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5195
5199
 
5196
5200
  /*
5197
5201
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5249,7 +5253,7 @@
5249
5253
  }
5250
5254
  }
5251
5255
 
5252
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5256
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5253
5257
 
5254
5258
  /*
5255
5259
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5345,7 +5349,7 @@
5345
5349
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
5346
5350
  }
5347
5351
 
5348
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5352
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5349
5353
  /*
5350
5354
  * Copyright (c) Microsoft Corporation. All rights reserved.
5351
5355
  * Licensed under the MIT License.
@@ -5372,7 +5376,7 @@
5372
5376
  }
5373
5377
  }
5374
5378
 
5375
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5379
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5376
5380
 
5377
5381
  /*
5378
5382
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5452,7 +5456,7 @@
5452
5456
  }
5453
5457
  }
5454
5458
 
5455
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5459
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5456
5460
  /*
5457
5461
  * Copyright (c) Microsoft Corporation. All rights reserved.
5458
5462
  * Licensed under the MIT License.
@@ -5503,7 +5507,7 @@
5503
5507
  */
5504
5508
  const interruptedUser = "interrupted_user";
5505
5509
 
5506
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5510
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5507
5511
 
5508
5512
  /*
5509
5513
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5570,7 +5574,7 @@
5570
5574
  return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
5571
5575
  }
5572
5576
 
5573
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5577
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5574
5578
 
5575
5579
  /*
5576
5580
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5589,7 +5593,7 @@
5589
5593
  }
5590
5594
  }
5591
5595
 
5592
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5596
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5593
5597
 
5594
5598
  /*
5595
5599
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5660,7 +5664,7 @@
5660
5664
  }
5661
5665
  }
5662
5666
 
5663
- /*! @azure/msal-common v16.11.1 2026-07-07 */
5667
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
5664
5668
 
5665
5669
  /*
5666
5670
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6011,7 +6015,7 @@
6011
6015
  return baseAccount;
6012
6016
  }
6013
6017
 
6014
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6018
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6015
6019
  /*
6016
6020
  * Copyright (c) Microsoft Corporation. All rights reserved.
6017
6021
  * Licensed under the MIT License.
@@ -6021,7 +6025,7 @@
6021
6025
  UPN: "UPN",
6022
6026
  };
6023
6027
 
6024
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6028
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6025
6029
  /*
6026
6030
  * Copyright (c) Microsoft Corporation. All rights reserved.
6027
6031
  * Licensed under the MIT License.
@@ -6040,7 +6044,7 @@
6040
6044
  }
6041
6045
  }
6042
6046
 
6043
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6047
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6044
6048
  /*
6045
6049
  * Copyright (c) Microsoft Corporation. All rights reserved.
6046
6050
  * Licensed under the MIT License.
@@ -6062,7 +6066,7 @@
6062
6066
  };
6063
6067
  }
6064
6068
 
6065
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6069
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6066
6070
 
6067
6071
  /*
6068
6072
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6148,7 +6152,7 @@
6148
6152
  }
6149
6153
  }
6150
6154
 
6151
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6155
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6152
6156
 
6153
6157
  /*
6154
6158
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6179,7 +6183,7 @@
6179
6183
  return new NetworkError(error, httpStatus, responseHeaders);
6180
6184
  }
6181
6185
 
6182
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6186
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6183
6187
 
6184
6188
  /*
6185
6189
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6295,7 +6299,7 @@
6295
6299
  return response;
6296
6300
  }
6297
6301
 
6298
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6302
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6299
6303
 
6300
6304
  /*
6301
6305
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6552,7 +6556,7 @@
6552
6556
  }
6553
6557
  }
6554
6558
 
6555
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6559
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6556
6560
 
6557
6561
  /*
6558
6562
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6779,7 +6783,7 @@
6779
6783
  return account.loginHint || account.idTokenClaims?.login_hint || null;
6780
6784
  }
6781
6785
 
6782
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6786
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6783
6787
 
6784
6788
  /*
6785
6789
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6800,7 +6804,7 @@
6800
6804
  return new JoseHeaderError(code, correlationId);
6801
6805
  }
6802
6806
 
6803
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6807
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6804
6808
  /*
6805
6809
  * Copyright (c) Microsoft Corporation. All rights reserved.
6806
6810
  * Licensed under the MIT License.
@@ -6808,7 +6812,7 @@
6808
6812
  const missingKidError = "missing_kid_error";
6809
6813
  const missingAlgError = "missing_alg_error";
6810
6814
 
6811
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6815
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6812
6816
 
6813
6817
  /*
6814
6818
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6848,7 +6852,7 @@
6848
6852
  }
6849
6853
  }
6850
6854
 
6851
- /*! @azure/msal-common v16.11.1 2026-07-07 */
6855
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
6852
6856
 
6853
6857
  /*
6854
6858
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7069,7 +7073,7 @@
7069
7073
  }
7070
7074
  }
7071
7075
 
7072
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7076
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
7073
7077
 
7074
7078
  /*
7075
7079
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7362,7 +7366,7 @@
7362
7366
  clearNativeBrokerErrorCode() { }
7363
7367
  }
7364
7368
 
7365
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7369
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
7366
7370
 
7367
7371
  /*
7368
7372
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7470,7 +7474,7 @@
7470
7474
  }
7471
7475
  }
7472
7476
 
7473
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7477
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
7474
7478
 
7475
7479
  /*
7476
7480
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7486,7 +7490,7 @@
7486
7490
  },
7487
7491
  };
7488
7492
 
7489
- /*! @azure/msal-common v16.11.1 2026-07-07 */
7493
+ /*! @azure/msal-common v16.11.2 2026-07-15 */
7490
7494
 
7491
7495
  /*
7492
7496
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7914,7 +7918,7 @@
7914
7918
 
7915
7919
  /* eslint-disable header/header */
7916
7920
  const name = "@azure/msal-browser";
7917
- const version = "5.17.0";
7921
+ const version = "5.17.1";
7918
7922
 
7919
7923
  /*
7920
7924
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8585,6 +8589,7 @@
8585
8589
  const getRequestFailed = "get_request_failed";
8586
8590
  const failedToParseResponse = "failed_to_parse_response";
8587
8591
  const cryptoKeyNotFound = "crypto_key_not_found";
8592
+ const invalidPublicJwk = "invalid_public_jwk";
8588
8593
  const authCodeRequired = "auth_code_required";
8589
8594
  const authCodeOrNativeAccountIdRequired = "auth_code_or_nativeAccountId_required";
8590
8595
  const spaCodeAndNativeAccountIdPresent = "spa_code_and_nativeAccountId_present";
@@ -8906,6 +8911,12 @@
8906
8911
  const HKDF = "HKDF";
8907
8912
  // SHA-256 hashing algorithm
8908
8913
  const S256_HASH_ALG = "SHA-256";
8914
+ const JSON_WEB_KEY_TYPE_EC = "EC";
8915
+ const JSON_WEB_KEY_TYPE_RSA = "RSA";
8916
+ const MISSING_JWK_KTY_SUBERROR = "missing_jwk_kty";
8917
+ const UNSUPPORTED_JWK_KTY_SUBERROR = "unsupported_jwk_kty";
8918
+ const MISSING_JWK_MEMBER_SUBERROR = "missing_jwk_member";
8919
+ const EMPTY_JWK_MEMBER_SUBERROR = "empty_jwk_member";
8909
8920
  // MOD length for PoP tokens
8910
8921
  const MODULUS_LENGTH = 2048;
8911
8922
  // Public Exponent
@@ -8922,12 +8933,15 @@
8922
8933
  const DERIVE_KEY = "deriveKey";
8923
8934
  // Suberror
8924
8935
  const SUBTLE_SUBERROR = "crypto_subtle_undefined";
8925
- const keygenAlgorithmOptions = {
8936
+ const RSA_KEYGEN_ALGORITHM_OPTIONS = {
8926
8937
  name: PKCS1_V15_KEYGEN_ALG,
8927
8938
  hash: S256_HASH_ALG,
8928
8939
  modulusLength: MODULUS_LENGTH,
8929
8940
  publicExponent: PUBLIC_EXPONENT,
8930
8941
  };
8942
+ const RSA_SIGN_ALGORITHM_OPTIONS = {
8943
+ name: PKCS1_V15_KEYGEN_ALG,
8944
+ };
8931
8945
  /**
8932
8946
  * Check whether browser crypto is available.
8933
8947
  */
@@ -9011,12 +9025,13 @@
9011
9025
  return text;
9012
9026
  }
9013
9027
  /**
9014
- * Generates a keypair based on current keygen algorithm config.
9028
+ * Generates a keypair based on the provided algorithm config.
9015
9029
  * @param extractable
9016
9030
  * @param usages
9031
+ * @param algorithm
9017
9032
  */
9018
- async function generateKeyPair(extractable, usages) {
9019
- return window.crypto.subtle.generateKey(keygenAlgorithmOptions, extractable, usages);
9033
+ async function generateKeyPair(extractable, usages, algorithm) {
9034
+ return window.crypto.subtle.generateKey(algorithm, extractable, usages);
9020
9035
  }
9021
9036
  /**
9022
9037
  * Export key as Json Web Key (JWK)
@@ -9030,17 +9045,19 @@
9030
9045
  * @param key
9031
9046
  * @param extractable
9032
9047
  * @param usages
9048
+ * @param algorithm
9033
9049
  */
9034
- async function importJwk(key, extractable, usages) {
9035
- return window.crypto.subtle.importKey(KEY_FORMAT_JWK, key, keygenAlgorithmOptions, extractable, usages);
9050
+ async function importJwk(key, extractable, usages, algorithm) {
9051
+ return window.crypto.subtle.importKey(KEY_FORMAT_JWK, key, algorithm, extractable, usages);
9036
9052
  }
9037
9053
  /**
9038
- * Signs given data with given key
9054
+ * Signs given data with given key.
9039
9055
  * @param key
9040
9056
  * @param data
9057
+ * @param algorithm
9041
9058
  */
9042
- async function sign(key, data) {
9043
- return window.crypto.subtle.sign(keygenAlgorithmOptions, key, data);
9059
+ async function sign(key, data, algorithm) {
9060
+ return window.crypto.subtle.sign(algorithm, key, data);
9044
9061
  }
9045
9062
  /**
9046
9063
  * Generates Base64 encoded jwk used in the Encrypted Authorize Response (EAR) flow
@@ -9183,6 +9200,43 @@
9183
9200
  const hashBuffer = await sha256Digest(plainText);
9184
9201
  const hashBytes = new Uint8Array(hashBuffer);
9185
9202
  return urlEncodeArr(hashBytes);
9203
+ }
9204
+ const JWK_THUMBPRINT_REQUIRED_MEMBERS = {
9205
+ [JSON_WEB_KEY_TYPE_EC]: ["crv", "kty", "x", "y"],
9206
+ [JSON_WEB_KEY_TYPE_RSA]: ["e", "kty", "n"],
9207
+ };
9208
+ function getJwkThumbprintMembers(publicJwk) {
9209
+ const kty = publicJwk.kty;
9210
+ if (typeof kty !== "string" || kty.length === 0) {
9211
+ throw createBrowserAuthError(invalidPublicJwk, "", MISSING_JWK_KTY_SUBERROR);
9212
+ }
9213
+ const requiredMembers = JWK_THUMBPRINT_REQUIRED_MEMBERS[kty];
9214
+ if (!requiredMembers) {
9215
+ throw createBrowserAuthError(invalidPublicJwk, "", UNSUPPORTED_JWK_KTY_SUBERROR);
9216
+ }
9217
+ return requiredMembers.reduce((thumbprintMembers, memberName) => {
9218
+ const memberValue = publicJwk[memberName];
9219
+ if (typeof memberValue !== "string") {
9220
+ throw createBrowserAuthError(invalidPublicJwk, "", MISSING_JWK_MEMBER_SUBERROR);
9221
+ }
9222
+ if (memberValue.length === 0) {
9223
+ throw createBrowserAuthError(invalidPublicJwk, "", EMPTY_JWK_MEMBER_SUBERROR);
9224
+ }
9225
+ thumbprintMembers[memberName] = memberValue;
9226
+ return thumbprintMembers;
9227
+ }, {});
9228
+ }
9229
+ /**
9230
+ * Computes an RFC 7638 JWK thumbprint for a public key.
9231
+ * The required members for the JWK key type are serialised in lexicographic order
9232
+ * and the SHA-256 digest is returned as a base64url string.
9233
+ * @internal
9234
+ */
9235
+ async function computeJwkThumbprint(publicJwk) {
9236
+ const thumbprintMembers = getJwkThumbprintMembers(publicJwk);
9237
+ // RFC 7638 §3.3: use only required members, sorted lexicographically
9238
+ const thumbprintJson = JSON.stringify(thumbprintMembers, Object.keys(thumbprintMembers).sort());
9239
+ return hashString(thumbprintJson);
9186
9240
  }
9187
9241
 
9188
9242
  /*
@@ -14444,20 +14498,14 @@
14444
14498
  async getPublicKeyThumbprint(request) {
14445
14499
  const publicKeyThumbMeasurement = this.performanceClient?.startMeasurement(CryptoOptsGetPublicKeyThumbprint, request.correlationId);
14446
14500
  // Generate Keypair
14447
- const keyPair = await generateKeyPair(CryptoOps.EXTRACTABLE, CryptoOps.POP_KEY_USAGES);
14501
+ const keyPair = await generateKeyPair(CryptoOps.EXTRACTABLE, CryptoOps.POP_KEY_USAGES, RSA_KEYGEN_ALGORITHM_OPTIONS);
14448
14502
  // Generate Thumbprint for Public Key
14449
14503
  const publicKeyJwk = await exportJwk(keyPair.publicKey);
14450
- const pubKeyThumprintObj = {
14451
- e: publicKeyJwk.e,
14452
- kty: publicKeyJwk.kty,
14453
- n: publicKeyJwk.n,
14454
- };
14455
- const publicJwkString = getSortedObjectString(pubKeyThumprintObj);
14456
- const publicJwkHash = await this.hashString(publicJwkString);
14504
+ const publicJwkHash = await computeJwkThumbprint(publicKeyJwk);
14457
14505
  // Generate Thumbprint for Private Key
14458
14506
  const privateKeyJwk = await exportJwk(keyPair.privateKey);
14459
14507
  // Re-import private key to make it unextractable
14460
- const unextractablePrivateKey = await importJwk(privateKeyJwk, false, ["sign"]);
14508
+ const unextractablePrivateKey = await importJwk(privateKeyJwk, false, ["sign"], RSA_KEYGEN_ALGORITHM_OPTIONS);
14461
14509
  // Store Keypair data in keystore
14462
14510
  await this.cache.setItem(publicJwkHash, {
14463
14511
  privateKey: unextractablePrivateKey,
@@ -14542,7 +14590,7 @@
14542
14590
  // Sign token
14543
14591
  const encoder = new TextEncoder();
14544
14592
  const tokenBuffer = encoder.encode(tokenString);
14545
- const signatureBuffer = await sign(cachedKeyPair.privateKey, tokenBuffer);
14593
+ const signatureBuffer = await sign(cachedKeyPair.privateKey, tokenBuffer, RSA_SIGN_ALGORITHM_OPTIONS);
14546
14594
  const encodedSignature = urlEncodeArr(new Uint8Array(signatureBuffer));
14547
14595
  const signedJwt = `${tokenString}.${encodedSignature}`;
14548
14596
  if (signJwtMeasurement) {