@azure/msal-browser 5.30.0 → 5.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (516) hide show
  1. package/README.md +4 -2
  2. package/dist/app/IPublicClientApplication.mjs +4 -1
  3. package/dist/app/IPublicClientApplication.mjs.map +1 -1
  4. package/dist/app/PublicClientApplication.mjs +14 -2
  5. package/dist/app/PublicClientApplication.mjs.map +1 -1
  6. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  7. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +10 -23
  8. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
  9. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  10. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +2 -3
  11. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
  12. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +1 -1
  13. package/dist/cache/AccountManager.mjs +1 -1
  14. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  15. package/dist/cache/BrowserCacheManager.mjs +39 -2
  16. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  17. package/dist/cache/CacheHelpers.mjs +1 -1
  18. package/dist/cache/CacheKeys.mjs +1 -1
  19. package/dist/cache/CookieStorage.mjs +1 -1
  20. package/dist/cache/DatabaseStorage.mjs +1 -1
  21. package/dist/cache/EncryptedData.mjs +1 -1
  22. package/dist/cache/LocalStorage.mjs +1 -1
  23. package/dist/cache/MemoryStorage.mjs +1 -1
  24. package/dist/cache/SessionStorage.mjs +1 -1
  25. package/dist/cache/TokenCache.mjs +1 -1
  26. package/dist/config/Configuration.mjs +1 -1
  27. package/dist/controllers/NestedAppAuthController.mjs +26 -5
  28. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  29. package/dist/controllers/StandardController.mjs +44 -11
  30. package/dist/controllers/StandardController.mjs.map +1 -1
  31. package/dist/crypto/BrowserCrypto.mjs +5 -3
  32. package/dist/crypto/BrowserCrypto.mjs.map +1 -1
  33. package/dist/crypto/CryptoOps.mjs +1 -1
  34. package/dist/crypto/PkceGenerator.mjs +1 -1
  35. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  36. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  37. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  38. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -4
  39. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
  40. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +11 -4
  41. package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  42. package/dist/custom_auth/core/CustomAuthAuthority.mjs +3 -3
  43. package/dist/custom_auth/core/CustomAuthAuthority.mjs.map +1 -1
  44. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -4
  50. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs.map +1 -1
  51. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -3
  52. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs.map +1 -1
  53. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  54. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  55. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -8
  56. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +1 -1
  57. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  58. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -3
  59. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs.map +1 -1
  60. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -3
  61. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs.map +1 -1
  62. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  63. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  64. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -7
  65. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map +1 -1
  66. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +1 -2
  67. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -1
  68. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +1 -2
  69. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
  70. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +1 -1
  71. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +1 -2
  72. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -1
  73. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +1 -2
  74. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs.map +1 -1
  75. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +2 -5
  76. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
  77. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs +1 -2
  78. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs.map +1 -1
  79. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +1 -1
  80. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +1 -2
  81. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -1
  82. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +1 -2
  83. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -1
  84. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -2
  85. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -1
  86. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +1 -2
  87. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
  88. package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs +2 -3
  89. package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -1
  90. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  91. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  92. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  93. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  94. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  95. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  96. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  97. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  98. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  99. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  100. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  101. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  102. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  103. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  104. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  105. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  106. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  107. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  108. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  109. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  110. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  111. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  112. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +32 -27
  113. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
  114. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +1 -1
  115. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +6 -2
  116. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -1
  117. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  118. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  119. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  120. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  121. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  122. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  123. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  124. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  125. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  126. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -1
  127. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +7 -5
  128. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -1
  129. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +12 -3
  130. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -1
  131. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
  132. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +9 -39
  133. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -1
  134. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +1 -1
  135. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
  136. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
  137. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -1
  138. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +1 -1
  139. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -1
  140. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  141. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  142. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +1 -1
  143. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  144. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  145. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  146. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  147. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  148. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  149. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  150. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  151. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  152. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  153. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  154. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  155. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +2 -1
  156. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +1 -1
  157. package/dist/custom_auth/index.mjs +1 -1
  158. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  159. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  160. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  161. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  162. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  163. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  164. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  165. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  166. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  167. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  168. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  169. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +1 -2
  170. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
  171. package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs +1 -1
  172. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  173. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  174. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  175. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  176. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -3
  177. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
  178. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -3
  179. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
  180. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -3
  181. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +1 -1
  182. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  183. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  184. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  185. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  186. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  187. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  188. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +1 -2
  189. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -1
  190. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs +1 -1
  191. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  192. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  193. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  194. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  195. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  196. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  197. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  198. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  199. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  200. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  201. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  202. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  203. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  204. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  205. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +1 -2
  206. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -1
  207. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs +1 -1
  208. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs +1 -1
  209. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs +1 -1
  210. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +1 -1
  211. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  212. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  213. package/dist/encode/Base64Decode.mjs +1 -1
  214. package/dist/encode/Base64Encode.mjs +1 -1
  215. package/dist/error/BrowserAuthError.mjs +1 -1
  216. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  217. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  218. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  219. package/dist/error/NativeAuthError.mjs +1 -1
  220. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  221. package/dist/error/NestedAppAuthError.mjs +1 -1
  222. package/dist/event/EventHandler.mjs +1 -1
  223. package/dist/event/EventMessage.mjs +1 -1
  224. package/dist/event/EventType.mjs +1 -1
  225. package/dist/index.mjs +1 -1
  226. package/dist/interaction_client/BaseInteractionClient.mjs +4 -2
  227. package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
  228. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  229. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +18 -5
  230. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  231. package/dist/interaction_client/PopupClient.mjs +1 -1
  232. package/dist/interaction_client/RedirectClient.mjs +1 -1
  233. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  234. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  235. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  236. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  237. package/dist/interaction_client/StandardInteractionClient.mjs +2 -1
  238. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
  239. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  240. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  241. package/dist/log-strings-mapping.json +695 -695
  242. package/dist/naa/BridgeError.mjs +1 -1
  243. package/dist/naa/BridgeProxy.mjs +1 -1
  244. package/dist/naa/BridgeStatusCode.mjs +1 -1
  245. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  246. package/dist/navigation/NavigationClient.mjs +1 -1
  247. package/dist/network/FetchClient.mjs +1 -1
  248. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  249. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  250. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  251. package/dist/packageMetadata.mjs +2 -2
  252. package/dist/popup_relay/constants.mjs +1 -1
  253. package/dist/popup_relay/index.mjs +1 -1
  254. package/dist/popup_relay/relayClient.mjs +1 -1
  255. package/dist/protocol/Authorize.mjs +2 -1
  256. package/dist/protocol/Authorize.mjs.map +1 -1
  257. package/dist/redirect_bridge/index.mjs +1 -1
  258. package/dist/request/RequestHelpers.mjs +2 -1
  259. package/dist/request/RequestHelpers.mjs.map +1 -1
  260. package/dist/request/SilentRequestHelpers.mjs +6 -4
  261. package/dist/request/SilentRequestHelpers.mjs.map +1 -1
  262. package/dist/response/ResponseHandler.mjs +1 -1
  263. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  264. package/dist/telemetry/BrowserPerformanceEvents.mjs +7 -2
  265. package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
  266. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  267. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  268. package/dist/utils/BrowserConstants.mjs +1 -1
  269. package/dist/utils/BrowserDetection.mjs +1 -1
  270. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  271. package/dist/utils/BrowserUtils.mjs +1 -1
  272. package/dist/utils/Helpers.mjs +1 -1
  273. package/dist/utils/IframeMonitor.mjs +1 -1
  274. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  275. package/dist/utils/PopupMonitor.mjs +1 -1
  276. package/dist/utils/PopupOriginCheck.mjs +1 -1
  277. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  278. package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
  279. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  280. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  281. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
  282. package/dist/webBrokerBridge/index.mjs +1 -1
  283. package/lib/custom-auth-path/log-strings-mapping.json +2 -2
  284. package/lib/custom-auth-path/msal-custom-auth.cjs +386 -252
  285. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  286. package/lib/custom-auth-path/msal-custom-auth.js +386 -252
  287. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  288. package/lib/log-strings-mapping.json +2 -2
  289. package/lib/msal-browser.cjs +411 -153
  290. package/lib/msal-browser.cjs.map +1 -1
  291. package/lib/msal-browser.js +411 -153
  292. package/lib/msal-browser.js.map +1 -1
  293. package/lib/msal-browser.min.js +2 -2
  294. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  295. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  296. package/lib/popup-relay/msal-popup-relay.js +2 -2
  297. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  298. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  299. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  300. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  301. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  302. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  303. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  304. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
  305. package/package.json +2 -2
  306. package/src/app/IPublicClientApplication.ts +16 -0
  307. package/src/app/PublicClientApplication.ts +22 -0
  308. package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +11 -44
  309. package/src/broker/nativeBroker/PlatformAuthProvider.ts +1 -2
  310. package/src/broker/nativeBroker/PlatformAuthResponse.ts +2 -6
  311. package/src/cache/BrowserCacheManager.ts +65 -1
  312. package/src/controllers/NestedAppAuthController.ts +35 -2
  313. package/src/controllers/StandardController.ts +76 -12
  314. package/src/controllers/UnknownOperatingContextController.ts +10 -0
  315. package/src/crypto/BrowserCrypto.ts +4 -2
  316. package/src/custom_auth/CustomAuthActionInputs.ts +0 -9
  317. package/src/custom_auth/CustomAuthPublicClientApplication.ts +0 -3
  318. package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +0 -3
  319. package/src/custom_auth/controller/CustomAuthStandardController.ts +15 -2
  320. package/src/custom_auth/core/CustomAuthAuthority.ts +2 -1
  321. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts +0 -3
  322. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts +0 -2
  323. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts +0 -7
  324. package/src/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.ts +0 -2
  325. package/src/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.ts +0 -2
  326. package/src/custom_auth/core/auth_flow/mfa/state/MfaState.ts +0 -6
  327. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +0 -1
  328. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +0 -1
  329. package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +0 -4
  330. package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +0 -1
  331. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +0 -1
  332. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +0 -2
  333. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +0 -2
  334. package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +0 -2
  335. package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +0 -2
  336. package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +0 -2
  337. package/src/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.ts +0 -2
  338. package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +0 -2
  339. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +0 -1
  340. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +0 -3
  341. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +0 -1
  342. package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +0 -1
  343. package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +0 -1
  344. package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +0 -1
  345. package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +0 -1
  346. package/src/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.ts +8 -6
  347. package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +1 -0
  348. package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +43 -29
  349. package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +21 -2
  350. package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +12 -8
  351. package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +35 -4
  352. package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +10 -47
  353. package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +1 -0
  354. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +9 -0
  355. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +5 -5
  356. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +2 -5
  357. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +2 -4
  358. package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +1 -0
  359. package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +0 -2
  360. package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +0 -1
  361. package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +0 -2
  362. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +0 -2
  363. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +0 -2
  364. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +0 -2
  365. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +0 -2
  366. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +0 -1
  367. package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +0 -2
  368. package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +0 -2
  369. package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +0 -1
  370. package/src/interaction_client/BaseInteractionClient.ts +6 -1
  371. package/src/interaction_client/PlatformAuthInteractionClient.ts +28 -8
  372. package/src/interaction_client/StandardInteractionClient.ts +1 -0
  373. package/src/packageMetadata.ts +1 -1
  374. package/src/protocol/Authorize.ts +5 -0
  375. package/src/request/EndSessionPopupRequest.ts +3 -0
  376. package/src/request/RedirectRequest.ts +3 -0
  377. package/src/request/RequestHelpers.ts +5 -0
  378. package/src/request/SilentRequestHelpers.ts +9 -4
  379. package/src/telemetry/BrowserPerformanceEvents.ts +7 -0
  380. package/types/app/IPublicClientApplication.d.ts +8 -0
  381. package/types/app/IPublicClientApplication.d.ts.map +1 -1
  382. package/types/app/PublicClientApplication.d.ts +6 -1
  383. package/types/app/PublicClientApplication.d.ts.map +1 -1
  384. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +0 -1
  385. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
  386. package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
  387. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +2 -6
  388. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
  389. package/types/cache/BrowserCacheManager.d.ts +20 -2
  390. package/types/cache/BrowserCacheManager.d.ts.map +1 -1
  391. package/types/controllers/NestedAppAuthController.d.ts +5 -0
  392. package/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  393. package/types/controllers/StandardController.d.ts +4 -0
  394. package/types/controllers/StandardController.d.ts.map +1 -1
  395. package/types/controllers/UnknownOperatingContextController.d.ts +5 -0
  396. package/types/controllers/UnknownOperatingContextController.d.ts.map +1 -1
  397. package/types/crypto/BrowserCrypto.d.ts.map +1 -1
  398. package/types/custom_auth/CustomAuthActionInputs.d.ts +0 -9
  399. package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  400. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  401. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +0 -3
  402. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
  403. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +0 -3
  404. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -1
  405. package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  406. package/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
  407. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +0 -3
  408. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -1
  409. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +0 -2
  410. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -1
  411. package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +0 -7
  412. package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -1
  413. package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +0 -2
  414. package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -1
  415. package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +0 -2
  416. package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -1
  417. package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +0 -6
  418. package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -1
  419. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +0 -1
  420. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -1
  421. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +0 -1
  422. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -1
  423. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +0 -4
  424. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -1
  425. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +0 -1
  426. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
  427. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +0 -1
  428. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -1
  429. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +0 -2
  430. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts.map +1 -1
  431. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +0 -2
  432. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -1
  433. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +0 -2
  434. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -1
  435. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +0 -2
  436. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
  437. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +0 -2
  438. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
  439. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +0 -2
  440. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -1
  441. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +0 -2
  442. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
  443. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts +0 -1
  444. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts.map +1 -1
  445. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +0 -1
  446. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
  447. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts +0 -1
  448. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -1
  449. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +0 -1
  450. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
  451. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +0 -1
  452. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -1
  453. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +0 -1
  454. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -1
  455. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +0 -1
  456. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
  457. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +0 -1
  458. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -1
  459. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +1 -0
  460. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
  461. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +3 -2
  462. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
  463. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +10 -1
  464. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -1
  465. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +1 -1
  466. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -1
  467. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -1
  468. package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -1
  469. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -0
  470. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
  471. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +8 -0
  472. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
  473. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +4 -5
  474. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -1
  475. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +3 -6
  476. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -1
  477. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +2 -5
  478. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
  479. package/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
  480. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +0 -2
  481. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
  482. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +0 -1
  483. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
  484. package/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +0 -2
  485. package/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  486. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +0 -2
  487. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  488. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +0 -2
  489. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  490. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +0 -2
  491. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -1
  492. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +0 -2
  493. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
  494. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +0 -1
  495. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
  496. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +0 -2
  497. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -1
  498. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +0 -2
  499. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
  500. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +0 -1
  501. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
  502. package/types/interaction_client/BaseInteractionClient.d.ts +3 -2
  503. package/types/interaction_client/BaseInteractionClient.d.ts.map +1 -1
  504. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  505. package/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  506. package/types/packageMetadata.d.ts +1 -1
  507. package/types/protocol/Authorize.d.ts.map +1 -1
  508. package/types/request/EndSessionPopupRequest.d.ts +3 -0
  509. package/types/request/EndSessionPopupRequest.d.ts.map +1 -1
  510. package/types/request/RedirectRequest.d.ts +3 -0
  511. package/types/request/RedirectRequest.d.ts.map +1 -1
  512. package/types/request/RequestHelpers.d.ts.map +1 -1
  513. package/types/request/SilentRequestHelpers.d.ts +1 -1
  514. package/types/request/SilentRequestHelpers.d.ts.map +1 -1
  515. package/types/telemetry/BrowserPerformanceEvents.d.ts +5 -0
  516. package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.30.0 2026-11-18 */
1
+ /*! @azure/msal-browser v5.31.0 2026-12-02 */
2
2
  'use strict';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -6,7 +6,7 @@
6
6
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
7
7
  })(this, (function (exports) { 'use strict';
8
8
 
9
- /*! @azure/msal-common v16.17.0 2026-11-18 */
9
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
12
12
  * Licensed under the MIT License.
@@ -66,7 +66,7 @@
66
66
  */
67
67
  const POPUP_ORIGIN_CHECK_DONE = "pocd";
68
68
 
69
- /*! @azure/msal-common v16.17.0 2026-11-18 */
69
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
70
70
  /*
71
71
  * Copyright (c) Microsoft Corporation. All rights reserved.
72
72
  * Licensed under the MIT License.
@@ -305,7 +305,7 @@
305
305
  // Token renewal offset default in seconds
306
306
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
307
307
 
308
- /*! @azure/msal-common v16.17.0 2026-11-18 */
308
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
309
309
  /*
310
310
  * Copyright (c) Microsoft Corporation. All rights reserved.
311
311
  * Licensed under the MIT License.
@@ -334,7 +334,7 @@
334
334
  return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
335
335
  }
336
336
 
337
- /*! @azure/msal-common v16.17.0 2026-11-18 */
337
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
338
338
 
339
339
  /*
340
340
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -357,7 +357,7 @@
357
357
  return new ClientAuthError(errorCode, correlationId, additionalMessage);
358
358
  }
359
359
 
360
- /*! @azure/msal-common v16.17.0 2026-11-18 */
360
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
361
361
  /*
362
362
  * Copyright (c) Microsoft Corporation. All rights reserved.
363
363
  * Licensed under the MIT License.
@@ -443,7 +443,7 @@
443
443
  userCanceled: userCanceled
444
444
  });
445
445
 
446
- /*! @azure/msal-common v16.17.0 2026-11-18 */
446
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
447
447
 
448
448
  /*
449
449
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -481,7 +481,7 @@
481
481
  };
482
482
  }
483
483
 
484
- /*! @azure/msal-common v16.17.0 2026-11-18 */
484
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
485
485
 
486
486
  /*
487
487
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -547,7 +547,7 @@
547
547
  return matches[2];
548
548
  }
549
549
 
550
- /*! @azure/msal-common v16.17.0 2026-11-18 */
550
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
551
551
 
552
552
  /*
553
553
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -635,7 +635,7 @@
635
635
  return updatedAccountInfo;
636
636
  }
637
637
 
638
- /*! @azure/msal-common v16.17.0 2026-11-18 */
638
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
639
639
  /*
640
640
  * Copyright (c) Microsoft Corporation. All rights reserved.
641
641
  * Licensed under the MIT License.
@@ -649,7 +649,7 @@
649
649
  Ciam: 3,
650
650
  };
651
651
 
652
- /*! @azure/msal-common v16.17.0 2026-11-18 */
652
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
653
653
  /*
654
654
  * Copyright (c) Microsoft Corporation. All rights reserved.
655
655
  * Licensed under the MIT License.
@@ -671,7 +671,7 @@
671
671
  return null;
672
672
  }
673
673
 
674
- /*! @azure/msal-common v16.17.0 2026-11-18 */
674
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
675
675
  /*
676
676
  * Copyright (c) Microsoft Corporation. All rights reserved.
677
677
  * Licensed under the MIT License.
@@ -695,7 +695,7 @@
695
695
  EAR: "EAR",
696
696
  };
697
697
 
698
- /*! @azure/msal-common v16.17.0 2026-11-18 */
698
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
699
699
  /**
700
700
  * Returns the AccountInfo interface for this account.
701
701
  * @internal
@@ -884,7 +884,7 @@
884
884
  entity.hasOwnProperty("authorityType"));
885
885
  }
886
886
 
887
- /*! @azure/msal-common v16.17.0 2026-11-18 */
887
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
888
888
  /*
889
889
  * Copyright (c) Microsoft Corporation. All rights reserved.
890
890
  * Licensed under the MIT License.
@@ -901,7 +901,7 @@
901
901
  unexpectedError: unexpectedError
902
902
  });
903
903
 
904
- /*! @azure/msal-common v16.17.0 2026-11-18 */
904
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
905
905
 
906
906
  /*
907
907
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -921,7 +921,7 @@
921
921
  return new ClientConfigurationError(errorCode, correlationId);
922
922
  }
923
923
 
924
- /*! @azure/msal-common v16.17.0 2026-11-18 */
924
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
925
925
  /*
926
926
  * Copyright (c) Microsoft Corporation. All rights reserved.
927
927
  * Licensed under the MIT License.
@@ -961,7 +961,7 @@
961
961
  return headerName === undefined ? undefined : headers[headerName];
962
962
  }
963
963
 
964
- /*! @azure/msal-common v16.17.0 2026-11-18 */
964
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
965
965
  /*
966
966
  * Copyright (c) Microsoft Corporation. All rights reserved.
967
967
  * Licensed under the MIT License.
@@ -1031,7 +1031,7 @@
1031
1031
  urlParseError: urlParseError
1032
1032
  });
1033
1033
 
1034
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1034
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1035
1035
 
1036
1036
  /*
1037
1037
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1051,21 +1051,38 @@
1051
1051
  * @returns
1052
1052
  */
1053
1053
  getShrNonce() {
1054
- // Attempt to parse nonce from Authentiacation-Info
1054
+ // Attempt to parse nonce from Authentication-Info
1055
1055
  const authenticationInfo = getResponseHeader(this.headers, HeaderNames.AuthenticationInfo);
1056
1056
  if (authenticationInfo) {
1057
- const authenticationInfoChallenges = this.parseChallenges(authenticationInfo);
1058
- if (authenticationInfoChallenges.nextnonce) {
1059
- return authenticationInfoChallenges.nextnonce;
1057
+ // Also support the legacy PoP-prefixed Authentication-Info form.
1058
+ const parameters = this.parseChallenges(authenticationInfo.trim().replace(/^PoP[ \t]+/i, ""));
1059
+ for (const parameter of parameters) {
1060
+ const nextNonce = getHeaderParameter(parameter, "nextnonce");
1061
+ if (nextNonce) {
1062
+ return nextNonce;
1063
+ }
1060
1064
  }
1061
1065
  throw createClientConfigurationError(invalidAuthenticationHeader, "");
1062
1066
  }
1063
1067
  // Attempt to parse nonce from WWW-Authenticate
1064
1068
  const wwwAuthenticate = getResponseHeader(this.headers, HeaderNames.WWWAuthenticate);
1065
1069
  if (wwwAuthenticate) {
1066
- const wwwAuthenticateChallenges = this.parseChallenges(wwwAuthenticate);
1067
- if (wwwAuthenticateChallenges.nonce) {
1068
- return wwwAuthenticateChallenges.nonce;
1070
+ let isPopChallenge = false;
1071
+ for (const parameter of this.parseChallenges(wwwAuthenticate)) {
1072
+ const scheme = /^[^ \t=]+/.exec(parameter)?.[0] || "";
1073
+ const remainder = parameter.slice(scheme.length).trim();
1074
+ let authParameter = parameter;
1075
+ // A scheme starts a new challenge; whitespace before '=' does not.
1076
+ if (scheme && !remainder.startsWith("=")) {
1077
+ isPopChallenge = scheme.toLowerCase() === "pop";
1078
+ authParameter = remainder;
1079
+ }
1080
+ if (isPopChallenge) {
1081
+ const nonce = getHeaderParameter(authParameter, "nonce");
1082
+ if (nonce) {
1083
+ return nonce;
1084
+ }
1085
+ }
1069
1086
  }
1070
1087
  throw createClientConfigurationError(invalidAuthenticationHeader, "");
1071
1088
  }
@@ -1073,24 +1090,53 @@
1073
1090
  throw createClientConfigurationError(missingNonceAuthenticationHeader, "");
1074
1091
  }
1075
1092
  /**
1076
- * Parses an HTTP header's challenge set into a key/value map.
1093
+ * Splits authentication parameters without splitting commas inside quoted strings.
1077
1094
  * @param header
1078
1095
  * @returns
1079
1096
  */
1080
1097
  parseChallenges(header) {
1081
- const schemeSeparator = header.indexOf(" ");
1082
- const challenges = header.substr(schemeSeparator + 1).split(",");
1083
- const challengeMap = {};
1084
- challenges.forEach((challenge) => {
1085
- const [key, value] = challenge.split("=");
1086
- // Remove escaped quotation marks (', ") from challenge string to keep only the challenge value
1087
- challengeMap[key] = unescape(value.replace(/['"]+/g, ""));
1088
- });
1089
- return challengeMap;
1098
+ const parameters = [];
1099
+ let inQuotes = false;
1100
+ let start = 0;
1101
+ for (let i = 0; i < header.length; i++) {
1102
+ const character = header[i];
1103
+ if (inQuotes && character === "\\") {
1104
+ i++;
1105
+ }
1106
+ else if (character === '"') {
1107
+ inQuotes = !inQuotes;
1108
+ }
1109
+ else if (character === "," && !inQuotes) {
1110
+ parameters.push(header.slice(start, i).trim());
1111
+ start = i + 1;
1112
+ }
1113
+ }
1114
+ if (!inQuotes) {
1115
+ parameters.push(header.slice(start).trim());
1116
+ }
1117
+ return parameters;
1118
+ }
1119
+ }
1120
+ /**
1121
+ * Reads a named authentication parameter, removing only HTTP quoted-string syntax.
1122
+ * @param parameter - A single authentication parameter.
1123
+ * @param name - The parameter name to read.
1124
+ * @returns The opaque parameter value, or undefined if the name does not match.
1125
+ */
1126
+ function getHeaderParameter(parameter, name) {
1127
+ const separator = parameter.indexOf("=");
1128
+ if (separator === -1 ||
1129
+ parameter.slice(0, separator).trim().toLowerCase() !== name) {
1130
+ return undefined;
1090
1131
  }
1132
+ const value = parameter.slice(separator + 1).trim();
1133
+ if (value.startsWith('"') && value.endsWith('"')) {
1134
+ return value.slice(1, -1).replace(/\\(.)/g, "$1");
1135
+ }
1136
+ return value;
1091
1137
  }
1092
1138
 
1093
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1139
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1094
1140
  /*
1095
1141
  * Copyright (c) Microsoft Corporation. All rights reserved.
1096
1142
  * Licensed under the MIT License.
@@ -1102,7 +1148,7 @@
1102
1148
  response.hasOwnProperty("jwks_uri"));
1103
1149
  }
1104
1150
 
1105
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1151
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1106
1152
  /*
1107
1153
  * Copyright (c) Microsoft Corporation. All rights reserved.
1108
1154
  * Licensed under the MIT License.
@@ -1182,7 +1228,7 @@
1182
1228
  }
1183
1229
  }
1184
1230
 
1185
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1231
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1186
1232
 
1187
1233
  /*
1188
1234
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1369,7 +1415,7 @@
1369
1415
  }
1370
1416
  }
1371
1417
 
1372
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1418
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1373
1419
 
1374
1420
  /*
1375
1421
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1523,7 +1569,7 @@
1523
1569
  return null;
1524
1570
  }
1525
1571
 
1526
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1572
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1527
1573
  /*
1528
1574
  * Copyright (c) Microsoft Corporation. All rights reserved.
1529
1575
  * Licensed under the MIT License.
@@ -1541,7 +1587,7 @@
1541
1587
  AzureUsGovernment: "https://login.microsoftonline.us",
1542
1588
  };
1543
1589
 
1544
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1590
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1545
1591
  /*
1546
1592
  * Copyright (c) Microsoft Corporation. All rights reserved.
1547
1593
  * Licensed under the MIT License.
@@ -1551,7 +1597,7 @@
1551
1597
  response.hasOwnProperty("metadata"));
1552
1598
  }
1553
1599
 
1554
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1600
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1555
1601
  /*
1556
1602
  * Copyright (c) Microsoft Corporation. All rights reserved.
1557
1603
  * Licensed under the MIT License.
@@ -1561,7 +1607,7 @@
1561
1607
  response.hasOwnProperty("error_description"));
1562
1608
  }
1563
1609
 
1564
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1610
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1565
1611
  /*
1566
1612
  * Copyright (c) Microsoft Corporation. All rights reserved.
1567
1613
  * Licensed under the MIT License.
@@ -1632,7 +1678,7 @@
1632
1678
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
1633
1679
  const SetUserData = "setUserData";
1634
1680
 
1635
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1681
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1636
1682
  /*
1637
1683
  * Copyright (c) Microsoft Corporation. All rights reserved.
1638
1684
  * Licensed under the MIT License.
@@ -1726,7 +1772,7 @@
1726
1772
  };
1727
1773
  };
1728
1774
 
1729
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1775
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1730
1776
 
1731
1777
  /*
1732
1778
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1855,7 +1901,7 @@
1855
1901
  },
1856
1902
  };
1857
1903
 
1858
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1904
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1859
1905
  /*
1860
1906
  * Copyright (c) Microsoft Corporation. All rights reserved.
1861
1907
  * Licensed under the MIT License.
@@ -1920,7 +1966,7 @@
1920
1966
  return cachedAtSec > nowSeconds();
1921
1967
  }
1922
1968
 
1923
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1969
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1924
1970
 
1925
1971
  /*
1926
1972
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2207,7 +2253,7 @@
2207
2253
  return [...attributeTokens].sort().join(" ");
2208
2254
  }
2209
2255
 
2210
- /*! @azure/msal-common v16.17.0 2026-11-18 */
2256
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
2211
2257
 
2212
2258
  /*
2213
2259
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3178,7 +3224,7 @@
3178
3224
  };
3179
3225
  }
3180
3226
 
3181
- /*! @azure/msal-common v16.17.0 2026-11-18 */
3227
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
3182
3228
 
3183
3229
  /*
3184
3230
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3212,7 +3258,7 @@
3212
3258
  }
3213
3259
  }
3214
3260
 
3215
- /*! @azure/msal-common v16.17.0 2026-11-18 */
3261
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
3216
3262
 
3217
3263
  /*
3218
3264
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3408,7 +3454,7 @@
3408
3454
  }
3409
3455
  }
3410
3456
 
3411
- /*! @azure/msal-common v16.17.0 2026-11-18 */
3457
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
3412
3458
 
3413
3459
  /*
3414
3460
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3909,7 +3955,7 @@
3909
3955
  }
3910
3956
  }
3911
3957
 
3912
- /*! @azure/msal-common v16.17.0 2026-11-18 */
3958
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
3913
3959
 
3914
3960
  /*
3915
3961
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4040,7 +4086,7 @@
4040
4086
  }
4041
4087
  }
4042
4088
 
4043
- /*! @azure/msal-common v16.17.0 2026-11-18 */
4089
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
4044
4090
 
4045
4091
  /*
4046
4092
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4088,7 +4134,7 @@
4088
4134
  },
4089
4135
  };
4090
4136
 
4091
- /*! @azure/msal-common v16.17.0 2026-11-18 */
4137
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
4092
4138
 
4093
4139
  /*
4094
4140
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4111,7 +4157,7 @@
4111
4157
  },
4112
4158
  };
4113
4159
 
4114
- /*! @azure/msal-common v16.17.0 2026-11-18 */
4160
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
4115
4161
  /*
4116
4162
  * Copyright (c) Microsoft Corporation. All rights reserved.
4117
4163
  * Licensed under the MIT License.
@@ -4400,12 +4446,12 @@
4400
4446
  }
4401
4447
  }
4402
4448
 
4403
- /*! @azure/msal-common v16.17.0 2026-11-18 */
4449
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
4404
4450
  /* eslint-disable header/header */
4405
4451
  const name$1 = "@azure/msal-common";
4406
- const version$1 = "16.17.0";
4452
+ const version$1 = "16.18.0";
4407
4453
 
4408
- /*! @azure/msal-common v16.17.0 2026-11-18 */
4454
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
4409
4455
  /*
4410
4456
  * Copyright (c) Microsoft Corporation. All rights reserved.
4411
4457
  * Licensed under the MIT License.
@@ -4413,7 +4459,7 @@
4413
4459
  const cacheQuotaExceeded = "cache_quota_exceeded";
4414
4460
  const cacheErrorUnknown = "cache_error_unknown";
4415
4461
 
4416
- /*! @azure/msal-common v16.17.0 2026-11-18 */
4462
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
4417
4463
 
4418
4464
  /*
4419
4465
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4451,7 +4497,7 @@
4451
4497
  }
4452
4498
  }
4453
4499
 
4454
- /*! @azure/msal-common v16.17.0 2026-11-18 */
4500
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
4455
4501
 
4456
4502
  /*
4457
4503
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5679,7 +5725,7 @@
5679
5725
  }
5680
5726
  }
5681
5727
 
5682
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5728
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5683
5729
  /*
5684
5730
  * Copyright (c) Microsoft Corporation. All rights reserved.
5685
5731
  * Licensed under the MIT License.
@@ -5745,7 +5791,7 @@
5745
5791
  "fetchRetryCount",
5746
5792
  ]);
5747
5793
 
5748
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5794
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5749
5795
 
5750
5796
  /*
5751
5797
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5803,7 +5849,7 @@
5803
5849
  }
5804
5850
  }
5805
5851
 
5806
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5852
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5807
5853
 
5808
5854
  /*
5809
5855
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5857,7 +5903,7 @@
5857
5903
  * @returns Configuration
5858
5904
  * @internal
5859
5905
  */
5860
- function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, tokenBindingKeyManager: tokenBindingKeyManager, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }) {
5906
+ function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, tokenBindingKeyManager: tokenBindingKeyManager, dpopNonceProvider: dpopNonceProvider, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }) {
5861
5907
  const loggerOptions = {
5862
5908
  ...DEFAULT_LOGGER_IMPLEMENTATION,
5863
5909
  ...userLoggerOption,
@@ -5872,6 +5918,7 @@
5872
5918
  networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
5873
5919
  cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
5874
5920
  tokenBindingKeyManager: resolvedTokenBindingKeyManager,
5921
+ dpopNonceProvider,
5875
5922
  clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
5876
5923
  libraryInfo: { ...DEFAULT_LIBRARY_INFO, ...libraryInfo },
5877
5924
  telemetry: { ...DEFAULT_TELEMETRY_OPTIONS, ...telemetry },
@@ -5901,7 +5948,7 @@
5901
5948
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
5902
5949
  }
5903
5950
 
5904
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5951
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5905
5952
  /*
5906
5953
  * Copyright (c) Microsoft Corporation. All rights reserved.
5907
5954
  * Licensed under the MIT License.
@@ -5928,7 +5975,7 @@
5928
5975
  }
5929
5976
  }
5930
5977
 
5931
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5978
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5932
5979
 
5933
5980
  /*
5934
5981
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5949,7 +5996,7 @@
5949
5996
  return new JoseHeaderError(code, correlationId);
5950
5997
  }
5951
5998
 
5952
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5999
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5953
6000
  /*
5954
6001
  * Copyright (c) Microsoft Corporation. All rights reserved.
5955
6002
  * Licensed under the MIT License.
@@ -5974,7 +6021,7 @@
5974
6021
  return Object.getPrototypeOf(value) === proto;
5975
6022
  }
5976
6023
 
5977
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6024
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5978
6025
  /*
5979
6026
  * Copyright (c) Microsoft Corporation. All rights reserved.
5980
6027
  * Licensed under the MIT License.
@@ -5984,7 +6031,7 @@
5984
6031
  const missingJwkError = "missing_jwk_error";
5985
6032
  const invalidJwkError = "invalid_jwk_error";
5986
6033
 
5987
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6034
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5988
6035
 
5989
6036
  /*
5990
6037
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6050,7 +6097,7 @@
6050
6097
  }
6051
6098
  }
6052
6099
 
6053
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6100
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6054
6101
 
6055
6102
  /*
6056
6103
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6151,7 +6198,50 @@
6151
6198
  }
6152
6199
  }
6153
6200
 
6154
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6201
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6202
+
6203
+ /*
6204
+ * Copyright (c) Microsoft Corporation. All rights reserved.
6205
+ * Licensed under the MIT License.
6206
+ */
6207
+ /**
6208
+ * Validates that a DPoP nonce is a non-empty string and returns the opaque
6209
+ * value unchanged.
6210
+ * @internal
6211
+ */
6212
+ function validateDpopNonce(nonce, correlationId = "") {
6213
+ if (typeof nonce !== "string" || nonce.length === 0) {
6214
+ throw createClientConfigurationError(invalidDpopNonce, correlationId);
6215
+ }
6216
+ return nonce;
6217
+ }
6218
+ /**
6219
+ * Returns the normalized HTTPS origin used to scope a resource-server nonce.
6220
+ * @internal
6221
+ */
6222
+ function canonicalizeDpopResourceServer(resourceRequestUri, correlationId = "") {
6223
+ if (typeof resourceRequestUri !== "string" ||
6224
+ !/^https:\/\//i.test(resourceRequestUri)) {
6225
+ throw createClientConfigurationError(invalidDpopHtu, correlationId);
6226
+ }
6227
+ let parsedUrl;
6228
+ try {
6229
+ parsedUrl = new URL(resourceRequestUri);
6230
+ }
6231
+ catch {
6232
+ throw createClientConfigurationError(invalidDpopHtu, correlationId);
6233
+ }
6234
+ if (parsedUrl.protocol !== "https:" ||
6235
+ parsedUrl.origin === "null" ||
6236
+ !parsedUrl.hostname ||
6237
+ parsedUrl.username ||
6238
+ parsedUrl.password) {
6239
+ throw createClientConfigurationError(invalidDpopHtu, correlationId);
6240
+ }
6241
+ return parsedUrl.origin;
6242
+ }
6243
+
6244
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6155
6245
 
6156
6246
  /*
6157
6247
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6196,11 +6286,6 @@
6196
6286
  parsedUrl.hash = "";
6197
6287
  return parsedUrl.href;
6198
6288
  }
6199
- function validateDpopNonce(nonce, correlationId) {
6200
- if (nonce !== undefined && nonce.trim().length === 0) {
6201
- throw createClientConfigurationError(invalidDpopNonce, correlationId);
6202
- }
6203
- }
6204
6289
  /**
6205
6290
  * Validates and normalizes the HTTP resource context for a DPoP-bound request.
6206
6291
  * @internal
@@ -6244,7 +6329,6 @@
6244
6329
  * - jti is a fresh CSPRNG-backed unique identifier for every proof.
6245
6330
  */
6246
6331
  buildTokenProofClaims(params, correlationId = "") {
6247
- validateDpopNonce(params.nonce, correlationId);
6248
6332
  const claims = {
6249
6333
  jti: this.cryptoUtils.createNewGuid(),
6250
6334
  htm: "POST",
@@ -6252,7 +6336,7 @@
6252
6336
  iat: nowSeconds(),
6253
6337
  };
6254
6338
  if (params.nonce !== undefined) {
6255
- claims.nonce = params.nonce;
6339
+ claims.nonce = validateDpopNonce(params.nonce, correlationId);
6256
6340
  }
6257
6341
  return claims;
6258
6342
  }
@@ -6270,7 +6354,6 @@
6270
6354
  * - jti is a fresh CSPRNG-backed unique identifier for every proof.
6271
6355
  */
6272
6356
  buildResourceProofClaims(params, correlationId = "") {
6273
- validateDpopNonce(params.nonce, correlationId);
6274
6357
  const resourceContext = normalizeDpopResourceRequestContext(params, correlationId);
6275
6358
  const claims = {
6276
6359
  jti: this.cryptoUtils.createNewGuid(),
@@ -6280,7 +6363,7 @@
6280
6363
  iat: nowSeconds(),
6281
6364
  };
6282
6365
  if (params.nonce !== undefined) {
6283
- claims.nonce = params.nonce;
6366
+ claims.nonce = validateDpopNonce(params.nonce, correlationId);
6284
6367
  }
6285
6368
  return claims;
6286
6369
  }
@@ -6306,7 +6389,7 @@
6306
6389
  }
6307
6390
  }
6308
6391
 
6309
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6392
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6310
6393
  /*
6311
6394
  * Copyright (c) Microsoft Corporation. All rights reserved.
6312
6395
  * Licensed under the MIT License.
@@ -6370,7 +6453,7 @@
6370
6453
  uiNotAllowed: uiNotAllowed
6371
6454
  });
6372
6455
 
6373
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6456
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6374
6457
 
6375
6458
  /*
6376
6459
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6437,7 +6520,7 @@
6437
6520
  return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
6438
6521
  }
6439
6522
 
6440
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6523
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6441
6524
 
6442
6525
  /*
6443
6526
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6456,7 +6539,7 @@
6456
6539
  }
6457
6540
  }
6458
6541
 
6459
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6542
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6460
6543
 
6461
6544
  /*
6462
6545
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6527,18 +6610,29 @@
6527
6610
  }
6528
6611
  }
6529
6612
 
6530
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6613
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6531
6614
 
6532
6615
  /*
6533
6616
  * Copyright (c) Microsoft Corporation. All rights reserved.
6534
6617
  * Licensed under the MIT License.
6535
6618
  */
6619
+ /*
6620
+ * Retains the signing key for fresh proofs on deduplicated calls without
6621
+ * exposing it on the public AuthenticationResult.
6622
+ */
6623
+ const dpopKeyIdByAuthenticationResult = new WeakMap();
6624
+ function getDpopNonceForRequest(dpopNonceProvider, request) {
6625
+ if (!request.resourceRequestUri || !dpopNonceProvider) {
6626
+ return undefined;
6627
+ }
6628
+ return dpopNonceProvider.getDpopNonce(request.resourceRequestUri, request.correlationId);
6629
+ }
6536
6630
  /**
6537
6631
  * Class that handles response parsing.
6538
6632
  * @internal
6539
6633
  */
6540
6634
  class ResponseHandler {
6541
- constructor(clientId, cacheStorage, cryptoObj, logger, performanceClient, serializableCache, persistencePlugin, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER) {
6635
+ constructor(clientId, cacheStorage, cryptoObj, logger, performanceClient, serializableCache, persistencePlugin, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER, dpopNonceProvider) {
6542
6636
  this.clientId = clientId;
6543
6637
  this.cacheStorage = cacheStorage;
6544
6638
  this.cryptoObj = cryptoObj;
@@ -6547,6 +6641,7 @@
6547
6641
  this.performanceClient = performanceClient;
6548
6642
  this.serializableCache = serializableCache;
6549
6643
  this.persistencePlugin = persistencePlugin;
6644
+ this.dpopNonceProvider = dpopNonceProvider;
6550
6645
  }
6551
6646
  /**
6552
6647
  * Function which validates server authorization token response.
@@ -6685,6 +6780,7 @@
6685
6780
  requestState: requestStateObj,
6686
6781
  requestId: serverRequestId,
6687
6782
  tokenBindingKeyManager: this.tokenBindingKeyManager,
6783
+ dpopNonceProvider: this.dpopNonceProvider,
6688
6784
  });
6689
6785
  }
6690
6786
  }
@@ -6704,6 +6800,7 @@
6704
6800
  serverTokenResponse,
6705
6801
  requestId: serverRequestId,
6706
6802
  tokenBindingKeyManager: this.tokenBindingKeyManager,
6803
+ dpopNonceProvider: this.dpopNonceProvider,
6707
6804
  });
6708
6805
  }
6709
6806
  /**
@@ -6801,7 +6898,7 @@
6801
6898
  * @param stateString
6802
6899
  */
6803
6900
  static async generateAuthenticationResult(cryptoObj, authority, cacheRecord, fromTokenCache, request, performanceClient, options = {}) {
6804
- const { idTokenClaims, requestState, serverTokenResponse, requestId, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER, } = options;
6901
+ const { idTokenClaims, requestState, serverTokenResponse, requestId, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER, dpopNonceProvider, } = options;
6805
6902
  let accessToken = "";
6806
6903
  let responseScopes = [];
6807
6904
  let expiresOn = null;
@@ -6809,8 +6906,13 @@
6809
6906
  let refreshOn;
6810
6907
  let familyId = "";
6811
6908
  let dpopProof;
6909
+ const cachedAccessTokenType = cacheRecord.accessToken?.tokenType || "";
6910
+ const isDpopAccessToken = cachedAccessTokenType.toLowerCase() ===
6911
+ AuthenticationScheme$1.DPOP.toLowerCase();
6912
+ const resultTokenType = isDpopAccessToken
6913
+ ? AuthenticationScheme$1.DPOP
6914
+ : cachedAccessTokenType;
6812
6915
  if (cacheRecord.accessToken) {
6813
- const accessTokenType = cacheRecord.accessToken.tokenType?.toLowerCase();
6814
6916
  /*
6815
6917
  * if the request object has `popKid` property, `signPopToken` will be set to false and
6816
6918
  * the token will be returned unsigned
@@ -6828,15 +6930,17 @@
6828
6930
  else {
6829
6931
  accessToken = cacheRecord.accessToken.secret;
6830
6932
  }
6831
- if (accessTokenType ===
6832
- AuthenticationScheme$1.DPOP.toLowerCase()) {
6933
+ if (isDpopAccessToken) {
6833
6934
  if (!cacheRecord.accessToken.keyId) {
6834
6935
  throw createClientAuthError(keyIdMissing, request.correlationId);
6835
6936
  }
6836
6937
  const dpopProofGenerator = new DpopProofGenerator(cryptoObj, tokenBindingKeyManager);
6938
+ const dpopNonce = getDpopNonceForRequest(dpopNonceProvider, request);
6939
+ performanceClient?.addFields({ dpopNonceAppliedToProof: Boolean(dpopNonce) }, request.correlationId);
6837
6940
  dpopProof = await dpopProofGenerator.generateResourceProof({
6838
6941
  htu: request.resourceRequestUri,
6839
6942
  htm: request.resourceRequestMethod,
6943
+ nonce: dpopNonce,
6840
6944
  accessToken: cacheRecord.accessToken.secret,
6841
6945
  }, cacheRecord.accessToken.keyId, request.correlationId);
6842
6946
  }
@@ -6884,7 +6988,7 @@
6884
6988
  ? updateAccountTenantProfileData(getAccountInfo(cacheRecord.account), undefined, // tenantProfile optional
6885
6989
  idTokenClaims, cacheRecord.idToken?.secret)
6886
6990
  : null;
6887
- return {
6991
+ const authenticationResult = {
6888
6992
  authority: authority.canonicalAuthority,
6889
6993
  uniqueId: uid,
6890
6994
  tenantId: tid,
@@ -6901,16 +7005,49 @@
6901
7005
  correlationId: request.correlationId,
6902
7006
  requestId: requestId || "",
6903
7007
  familyId: familyId,
6904
- tokenType: cacheRecord.accessToken?.tokenType?.toLowerCase() ===
6905
- AuthenticationScheme$1.DPOP.toLowerCase()
6906
- ? AuthenticationScheme$1.DPOP
6907
- : cacheRecord.accessToken?.tokenType || "",
7008
+ tokenType: resultTokenType,
6908
7009
  state: requestState ? requestState.userRequestState : "",
6909
7010
  cloudGraphHostName: cacheRecord.account?.cloudGraphHostName || "",
6910
7011
  msGraphHost: cacheRecord.account?.msGraphHost || "",
6911
7012
  code: serverTokenResponse?.spa_code,
6912
7013
  fromPlatformBroker: false,
6913
7014
  };
7015
+ if (isDpopAccessToken && cacheRecord.accessToken?.keyId) {
7016
+ ResponseHandler.setDpopKeyId(authenticationResult, cacheRecord.accessToken.keyId);
7017
+ }
7018
+ return authenticationResult;
7019
+ }
7020
+ /**
7021
+ * Retains an MSAL-owned DPoP key for fresh proofs on deduplicated calls.
7022
+ * @internal
7023
+ */
7024
+ static setDpopKeyId(authenticationResult, keyId) {
7025
+ dpopKeyIdByAuthenticationResult.set(authenticationResult, keyId);
7026
+ }
7027
+ /**
7028
+ * Returns whether MSAL can generate another proof for this result.
7029
+ * @internal
7030
+ */
7031
+ static hasDpopKeyId(authenticationResult) {
7032
+ return dpopKeyIdByAuthenticationResult.has(authenticationResult);
7033
+ }
7034
+ /**
7035
+ * Generates a fresh resource proof for a previously constructed DPoP result.
7036
+ * @internal
7037
+ */
7038
+ static async generateDpopResourceProof(cryptoObj, authenticationResult, request, performanceClient, options = {}) {
7039
+ const keyId = dpopKeyIdByAuthenticationResult.get(authenticationResult);
7040
+ if (!keyId) {
7041
+ throw createClientAuthError(keyIdMissing, request.correlationId);
7042
+ }
7043
+ const dpopNonce = getDpopNonceForRequest(options.dpopNonceProvider, request);
7044
+ performanceClient.addFields({ dpopNonceAppliedToProof: Boolean(dpopNonce) }, request.correlationId);
7045
+ return new DpopProofGenerator(cryptoObj, options.tokenBindingKeyManager ?? DEFAULT_TOKEN_BINDING_KEY_MANAGER).generateResourceProof({
7046
+ htu: request.resourceRequestUri,
7047
+ htm: request.resourceRequestMethod,
7048
+ nonce: dpopNonce,
7049
+ accessToken: authenticationResult.accessToken,
7050
+ }, keyId, request.correlationId);
6914
7051
  }
6915
7052
  }
6916
7053
  /** @internal */
@@ -6955,7 +7092,7 @@
6955
7092
  return baseAccount;
6956
7093
  }
6957
7094
 
6958
- /*! @azure/msal-common v16.17.0 2026-11-18 */
7095
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6959
7096
  /*
6960
7097
  * Copyright (c) Microsoft Corporation. All rights reserved.
6961
7098
  * Licensed under the MIT License.
@@ -6965,7 +7102,7 @@
6965
7102
  UPN: "UPN",
6966
7103
  };
6967
7104
 
6968
- /*! @azure/msal-common v16.17.0 2026-11-18 */
7105
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6969
7106
  /*
6970
7107
  * Copyright (c) Microsoft Corporation. All rights reserved.
6971
7108
  * Licensed under the MIT License.
@@ -6984,7 +7121,7 @@
6984
7121
  }
6985
7122
  }
6986
7123
 
6987
- /*! @azure/msal-common v16.17.0 2026-11-18 */
7124
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6988
7125
 
6989
7126
  /*
6990
7127
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7008,7 +7145,7 @@
7008
7145
  };
7009
7146
  }
7010
7147
 
7011
- /*! @azure/msal-common v16.17.0 2026-11-18 */
7148
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
7012
7149
 
7013
7150
  /*
7014
7151
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7098,7 +7235,7 @@
7098
7235
  return undefined;
7099
7236
  }
7100
7237
 
7101
- /*! @azure/msal-common v16.17.0 2026-11-18 */
7238
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
7102
7239
 
7103
7240
  /*
7104
7241
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7129,7 +7266,7 @@
7129
7266
  return new NetworkError(error, httpStatus, responseHeaders);
7130
7267
  }
7131
7268
 
7132
- /*! @azure/msal-common v16.17.0 2026-11-18 */
7269
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
7133
7270
 
7134
7271
  /*
7135
7272
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7263,7 +7400,7 @@
7263
7400
  return response;
7264
7401
  }
7265
7402
 
7266
- /*! @azure/msal-common v16.17.0 2026-11-18 */
7403
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
7267
7404
 
7268
7405
  /*
7269
7406
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7314,7 +7451,7 @@
7314
7451
  const response = await invokeAsync(this.executeTokenRequest.bind(this), AuthClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(this.authority, request, this.serverTelemetryManager);
7315
7452
  // Retrieve requestId from response headers
7316
7453
  const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
7317
- const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager);
7454
+ const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager, this.config.dpopNonceProvider);
7318
7455
  // Validate response. This function throws a server error if an error is returned by the server.
7319
7456
  responseHandler.validateTokenResponse(response.body, request.correlationId);
7320
7457
  return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, authCodePayload, undefined, undefined, undefined, requestId);
@@ -7531,7 +7668,7 @@
7531
7668
  }
7532
7669
  }
7533
7670
 
7534
- /*! @azure/msal-common v16.17.0 2026-11-18 */
7671
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
7535
7672
 
7536
7673
  /*
7537
7674
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7761,7 +7898,7 @@
7761
7898
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7762
7899
  }
7763
7900
 
7764
- /*! @azure/msal-common v16.17.0 2026-11-18 */
7901
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
7765
7902
 
7766
7903
  /*
7767
7904
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8310,7 +8447,7 @@
8310
8447
  }
8311
8448
  }
8312
8449
 
8313
- /*! @azure/msal-common v16.17.0 2026-11-18 */
8450
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
8314
8451
 
8315
8452
  /*
8316
8453
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8345,7 +8482,7 @@
8345
8482
  const response = await invokeAsync(this.executeTokenRequest.bind(this), RefreshTokenClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(request, this.authority);
8346
8483
  // Retrieve requestId from response headers
8347
8484
  const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
8348
- const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager);
8485
+ const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager, this.config.dpopNonceProvider);
8349
8486
  responseHandler.validateTokenResponse(response.body, request.correlationId);
8350
8487
  return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, undefined, undefined, true, request.forceCache, requestId);
8351
8488
  }
@@ -8545,7 +8682,7 @@
8545
8682
  }
8546
8683
  }
8547
8684
 
8548
- /*! @azure/msal-common v16.17.0 2026-11-18 */
8685
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
8549
8686
 
8550
8687
  /*
8551
8688
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8838,7 +8975,7 @@
8838
8975
  clearNativeBrokerErrorCode() { }
8839
8976
  }
8840
8977
 
8841
- /*! @azure/msal-common v16.17.0 2026-11-18 */
8978
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
8842
8979
 
8843
8980
  /*
8844
8981
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8961,11 +9098,12 @@
8961
9098
  return ResponseHandler.generateAuthenticationResult(this.cryptoUtils, this.authority, cacheRecord, true, request, this.performanceClient, {
8962
9099
  idTokenClaims,
8963
9100
  tokenBindingKeyManager: this.config.tokenBindingKeyManager,
9101
+ dpopNonceProvider: this.config.dpopNonceProvider,
8964
9102
  });
8965
9103
  }
8966
9104
  }
8967
9105
 
8968
- /*! @azure/msal-common v16.17.0 2026-11-18 */
9106
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
8969
9107
 
8970
9108
  /*
8971
9109
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8981,7 +9119,7 @@
8981
9119
  },
8982
9120
  };
8983
9121
 
8984
- /*! @azure/msal-common v16.17.0 2026-11-18 */
9122
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
8985
9123
 
8986
9124
  /*
8987
9125
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9033,6 +9171,11 @@
9033
9171
  * Internal API for acquireTokenSilent.
9034
9172
  */
9035
9173
  const AcquireTokenSilentAsync = "acquireTokenSilentAsync";
9174
+ /**
9175
+ * loadDpopNonce API in StandardController (msal-browser).
9176
+ * Stores a resource-server DPoP nonce in controller-owned memory.
9177
+ */
9178
+ const StandardControllerLoadDpopNonce = "standardControllerLoadDpopNonce";
9036
9179
  /**
9037
9180
  * provisionTokenBindingKey API in TokenBindingKeyManager class (msal-browser).
9038
9181
  * Used to provision token-binding key material and return a key identifier.
@@ -9999,7 +10142,9 @@
9999
10142
  const iv = base64DecToArr(earJweParts[2]);
10000
10143
  const ciphertext = base64DecToArr(earJweParts[3]);
10001
10144
  const tag = base64DecToArr(earJweParts[4]);
10002
- const tagLengthBits = tag.byteLength * 8;
10145
+ if (tag.byteLength !== 16) {
10146
+ throw new Error("Invalid AES-GCM authentication tag length");
10147
+ }
10003
10148
  // Concat ciphertext and tag
10004
10149
  const encryptedData = new Uint8Array(ciphertext.length + tag.length);
10005
10150
  encryptedData.set(ciphertext);
@@ -10007,7 +10152,7 @@
10007
10152
  const decryptedData = await window.crypto.subtle.decrypt({
10008
10153
  name: AES_GCM,
10009
10154
  iv: iv,
10010
- tagLength: tagLengthBits,
10155
+ tagLength: 128,
10011
10156
  additionalData: header,
10012
10157
  }, key, encryptedData);
10013
10158
  return new TextDecoder().decode(decryptedData);
@@ -11905,7 +12050,7 @@
11905
12050
 
11906
12051
  /* eslint-disable header/header */
11907
12052
  const name = "@azure/msal-browser";
11908
- const version = "5.30.0";
12053
+ const version = "5.31.0";
11909
12054
 
11910
12055
  /*
11911
12056
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11927,6 +12072,7 @@
11927
12072
  * Copyright (c) Microsoft Corporation. All rights reserved.
11928
12073
  * Licensed under the MIT License.
11929
12074
  */
12075
+ const MAX_RESOURCE_SERVER_NONCES = 50;
11930
12076
  /**
11931
12077
  * Reason an old-schema cache entry was removed during migration.
11932
12078
  */
@@ -11942,6 +12088,7 @@
11942
12088
  class BrowserCacheManager extends CacheManager {
11943
12089
  constructor(clientId, cacheConfig, cryptoImpl, logger, performanceClient, eventHandler, staticAuthorityOptions, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER) {
11944
12090
  super(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions, tokenBindingKeyManager);
12091
+ this.dpopNonces = new Map();
11945
12092
  this.cacheConfig = cacheConfig;
11946
12093
  this.logger = logger;
11947
12094
  this.internalStorage = new MemoryStorage();
@@ -12962,6 +13109,40 @@
12962
13109
  const version = this.internalStorage.getItem(InMemoryCacheKeys.WRAPPER_VER) || "";
12963
13110
  return [sku, version];
12964
13111
  }
13112
+ /**
13113
+ * Stores a validated resource-server DPoP nonce in PCA-local memory.
13114
+ * @internal
13115
+ */
13116
+ setDpopNonce(resourceRequestUri, dpopNonce, correlationId = "") {
13117
+ const resourceServer = canonicalizeDpopResourceServer(resourceRequestUri, correlationId);
13118
+ const validatedNonce = validateDpopNonce(dpopNonce, correlationId);
13119
+ // Reinsert replacements so eviction remains oldest-write ordered.
13120
+ this.dpopNonces.delete(resourceServer);
13121
+ this.dpopNonces.set(resourceServer, validatedNonce);
13122
+ if (this.dpopNonces.size > MAX_RESOURCE_SERVER_NONCES) {
13123
+ const oldestResourceServer = this.dpopNonces.keys().next().value;
13124
+ if (oldestResourceServer) {
13125
+ this.dpopNonces.delete(oldestResourceServer);
13126
+ }
13127
+ this.performanceClient.incrementFields({ "ext.dpopNonceCacheEvictionCount": 1 }, correlationId);
13128
+ }
13129
+ }
13130
+ /**
13131
+ * Reads the current resource-server DPoP nonce from PCA-local memory.
13132
+ * This optional structural capability is consumed by msal-common without
13133
+ * adding methods to the CacheManager abstraction.
13134
+ * @internal
13135
+ */
13136
+ getDpopNonce(resourceRequestUri, correlationId = "") {
13137
+ return this.dpopNonces.get(canonicalizeDpopResourceServer(resourceRequestUri, correlationId));
13138
+ }
13139
+ /**
13140
+ * Clears all PCA-local DPoP nonce state.
13141
+ * @internal
13142
+ */
13143
+ clearDpopNonces() {
13144
+ this.dpopNonces.clear();
13145
+ }
12965
13146
  /**
12966
13147
  *
12967
13148
  * @param key
@@ -13106,6 +13287,7 @@
13106
13287
  }
13107
13288
  });
13108
13289
  this.internalStorage.clear();
13290
+ this.dpopNonces.clear();
13109
13291
  }
13110
13292
  /**
13111
13293
  * Prepend msal.<client-id> to each key
@@ -13636,7 +13818,7 @@
13636
13818
  * Licensed under the MIT License.
13637
13819
  */
13638
13820
  class BaseInteractionClient {
13639
- constructor(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, correlationId, platformAuthProvider, tokenBindingKeyManager) {
13821
+ constructor(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, correlationId, platformAuthProvider, tokenBindingKeyManager, dpopNonceProvider) {
13640
13822
  this.config = config;
13641
13823
  this.browserStorage = storageImpl;
13642
13824
  this.browserCrypto = browserCrypto;
@@ -13650,6 +13832,7 @@
13650
13832
  this.tokenBindingKeyManager =
13651
13833
  tokenBindingKeyManager ||
13652
13834
  new TokenBindingKeyManager(this.logger, this.performanceClient);
13835
+ this.dpopNonceProvider = dpopNonceProvider ?? storageImpl;
13653
13836
  }
13654
13837
  }
13655
13838
  /**
@@ -13748,6 +13931,7 @@
13748
13931
  * @returns A promise that resolves when the cache has been cleared.
13749
13932
  */
13750
13933
  async function clearCacheOnLogout(browserStorage, browserCrypto, logger, correlationId, account) {
13934
+ browserStorage.clearDpopNonces();
13751
13935
  if (account) {
13752
13936
  // Clear given account.
13753
13937
  try {
@@ -13895,6 +14079,7 @@
13895
14079
  }
13896
14080
  logger.verbose(`1ecmns ${validatedRequest.authenticationScheme}`, correlationId);
13897
14081
  }
14082
+ performanceClient.addFields({ authenticationScheme: validatedRequest.authenticationScheme }, correlationId);
13898
14083
  return validatedRequest;
13899
14084
  }
13900
14085
  async function initializeSilentRequest(request, account, config, performanceClient, logger) {
@@ -14169,6 +14354,7 @@
14169
14354
  },
14170
14355
  cryptoInterface: this.browserCrypto,
14171
14356
  tokenBindingKeyManager: this.tokenBindingKeyManager,
14357
+ dpopNonceProvider: this.dpopNonceProvider,
14172
14358
  networkInterface: this.networkClient,
14173
14359
  storageInterface: this.browserStorage,
14174
14360
  serverTelemetryManager: serverTelemetryManager,
@@ -14809,7 +14995,7 @@
14809
14995
  this.accountId = accountId;
14810
14996
  this.platformAuthProvider = provider;
14811
14997
  this.nativeStorageManager = nativeStorageImpl;
14812
- this.silentCacheClient = new SilentCacheClient(config, this.nativeStorageManager, browserCrypto, logger, eventHandler, navigationClient, performanceClient, correlationId, provider, this.tokenBindingKeyManager);
14998
+ this.silentCacheClient = new SilentCacheClient(config, this.nativeStorageManager, browserCrypto, logger, eventHandler, navigationClient, performanceClient, correlationId, provider, this.tokenBindingKeyManager, browserStorage);
14813
14999
  const extensionName = this.platformAuthProvider.getExtensionName();
14814
15000
  this.skus = ServerTelemetryManager.makeExtraSkuString({
14815
15001
  libraryName: BrowserConstants.MSAL_SKU,
@@ -15194,6 +15380,11 @@
15194
15380
  const shouldRemoveGeneratedDpopKey = isL3DpopResponse ||
15195
15381
  (this.isDpopBrokerRequest(request) &&
15196
15382
  storeInCache?.accessToken === false);
15383
+ if (dpopBrokerOutcome === "L1" &&
15384
+ !shouldRemoveGeneratedDpopKey &&
15385
+ request.keyId) {
15386
+ ResponseHandler.setDpopKeyId(result, request.keyId);
15387
+ }
15197
15388
  if (shouldRemoveGeneratedDpopKey) {
15198
15389
  await this.resetGeneratedDpopRequestKey(request);
15199
15390
  }
@@ -15462,7 +15653,12 @@
15462
15653
  const configClaims = request.skipBrokerClaims && !!request.embeddedClientId
15463
15654
  ? undefined
15464
15655
  : this.config.auth.clientCapabilities;
15465
- const { scopes, claims, dpopNonce } = request;
15656
+ const { scopes, claims } = request;
15657
+ const dpopNonce = request.authenticationScheme ===
15658
+ AuthenticationScheme$1.DPOP &&
15659
+ request.resourceRequestUri
15660
+ ? this.browserStorage.getDpopNonce(request.resourceRequestUri, this.correlationId)
15661
+ : undefined;
15466
15662
  const scopeSet = new ScopeSet([...(scopes || []), ...OIDC_DEFAULT_SCOPES$1], this.correlationId);
15467
15663
  const mergedClaims = buildMergedClaims$1(claims, configClaims?.length ? configClaims : undefined);
15468
15664
  const hasAttributeTokens = !!request.attributeTokens?.length;
@@ -15772,11 +15968,14 @@
15772
15968
  return brokerProof;
15773
15969
  }
15774
15970
  const dpopProofGenerator = new DpopProofGenerator(this.browserCrypto, this.tokenBindingKeyManager);
15971
+ const currentNonce = request.resourceRequestUri
15972
+ ? this.browserStorage.getDpopNonce(request.resourceRequestUri, this.correlationId)
15973
+ : undefined;
15775
15974
  return dpopProofGenerator.generateResourceProof({
15776
15975
  htu: request.resourceRequestUri,
15777
15976
  htm: request.resourceRequestMethod,
15778
15977
  accessToken: response.access_token,
15779
- nonce: request.extraParametersNoCache?.pop_nonce,
15978
+ nonce: currentNonce ?? request.extraParametersNoCache?.pop_nonce,
15780
15979
  }, request.keyId, this.correlationId);
15781
15980
  }
15782
15981
  /**
@@ -16264,6 +16463,7 @@
16264
16463
  // Instrument clientdata telemetry fields from the authorize response
16265
16464
  instrumentClientData(response, request.correlationId, performanceClient);
16266
16465
  if (response.accountId) {
16466
+ validateAuthorizationResponse(response, request.state, request.correlationId);
16267
16467
  return invokeAsync(handleResponsePlatformBroker, HandleResponsePlatformBroker, logger, performanceClient, request.correlationId)(request, response.accountId, apiId, config, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider, tokenBindingKeyManager);
16268
16468
  }
16269
16469
  const authCodeRequest = {
@@ -17121,7 +17321,6 @@
17121
17321
  * Copyright (c) Microsoft Corporation. All rights reserved.
17122
17322
  * Licensed under the MIT License.
17123
17323
  */
17124
- const PLATFORM_AUTH_DOM_DPOP_NOT_SUPPORTED = "platform_auth_dom_dpop_not_supported";
17125
17324
  class PlatformAuthDOMHandler {
17126
17325
  constructor(logger, performanceClient, correlationId) {
17127
17326
  this.logger = logger;
@@ -17201,11 +17400,9 @@
17201
17400
  });
17202
17401
  this.logger.trace(`02bcil ${this.platformAuthType}`, correlationId);
17203
17402
  try {
17204
- if (request.tokenType?.trim().toLowerCase() ===
17205
- PlatformAuthTokenType.DPOP_WITH_PROOF) {
17206
- throw createBrowserAuthError(PLATFORM_AUTH_DOM_DPOP_NOT_SUPPORTED, correlationId);
17207
- }
17208
17403
  const platformDOMRequest = invoke(this.initializePlatformDOMRequest.bind(this), PlatformAuthDOMInitializeRequest, this.logger, this.performanceClient, correlationId)(request);
17404
+ request.bindingPreferenceSent =
17405
+ platformDOMRequest.preferBinding !== undefined;
17209
17406
  const response =
17210
17407
  // @ts-ignore
17211
17408
  await window.navigator.platformAuthentication.executeGetToken(platformDOMRequest);
@@ -17250,8 +17447,12 @@
17250
17447
  preferBinding: preferBinding,
17251
17448
  enclave: enclave,
17252
17449
  requestConfirmation: reqCnf,
17253
- extraParametersNoCache,
17450
+ extraParametersNoCache: extraParametersNoCache && {
17451
+ ...extraParametersNoCache,
17452
+ },
17254
17453
  };
17454
+ delete platformDOMRequest.extraParameters?.bindingPreferenceSent;
17455
+ delete platformDOMRequest.extraParametersNoCache?.bindingPreferenceSent;
17255
17456
  return platformDOMRequest;
17256
17457
  }
17257
17458
  validatePlatformBrokerResponse(response, correlationId) {
@@ -17268,7 +17469,8 @@
17268
17469
  requiredKeys.every((key) => Object.prototype.hasOwnProperty.call(response, key));
17269
17470
  if (response &&
17270
17471
  Object.prototype.hasOwnProperty.call(response, "isSuccess")) {
17271
- if (isValid) {
17472
+ if (isValid &&
17473
+ response.isSuccess === true) {
17272
17474
  this.logger.trace(`0h4vei ${this.platformAuthType}`, correlationId);
17273
17475
  try {
17274
17476
  const validatedResponse = this.convertToPlatformBrokerResponse(response, correlationId);
@@ -17321,7 +17523,6 @@
17321
17523
  convertToPlatformBrokerResponse(response, correlationId) {
17322
17524
  this.logger.trace(`14913t ${this.platformAuthType}`, correlationId);
17323
17525
  const responseProperties = response.properties || {};
17324
- const bindingAttested = this.parseDOMBoolean(responseProperties.binding_attested, "binding_attested", correlationId);
17325
17526
  const nativeResponse = {
17326
17527
  access_token: response.accessToken,
17327
17528
  id_token: response.idToken,
@@ -17333,21 +17534,9 @@
17333
17534
  properties: responseProperties,
17334
17535
  extendedLifetimeToken: response.extendedLifetimeToken ?? false,
17335
17536
  shr: response.proofOfPossessionPayload,
17336
- token_type: responseProperties.token_type,
17337
- DPoP: responseProperties.dpop_proof,
17338
- binding_attested: bindingAttested,
17339
17537
  };
17340
17538
  return nativeResponse;
17341
17539
  }
17342
- parseDOMBoolean(value, propertyName, correlationId) {
17343
- if (value === undefined) {
17344
- return undefined;
17345
- }
17346
- if (value === "true" || value === "false") {
17347
- return value === "true";
17348
- }
17349
- throw createAuthError(unexpectedError, correlationId, `Platform broker returned invalid ${propertyName} value.`);
17350
- }
17351
17540
  getDOMExtraParams(extraParameters, correlationId) {
17352
17541
  try {
17353
17542
  const stringifiedProperties = {};
@@ -17460,8 +17649,7 @@
17460
17649
  const schemeSupported = !authenticationScheme ||
17461
17650
  authenticationScheme === AuthenticationScheme$1.BEARER ||
17462
17651
  authenticationScheme === AuthenticationScheme$1.POP ||
17463
- (authenticationScheme === AuthenticationScheme$1.DPOP &&
17464
- !(platformAuthProvider instanceof PlatformAuthDOMHandler));
17652
+ authenticationScheme === AuthenticationScheme$1.DPOP;
17465
17653
  const fields = {
17466
17654
  allowPlatformBroker: config.system.allowPlatformBroker,
17467
17655
  ...(config.system.allowPlatformBroker && {
@@ -19044,7 +19232,10 @@
19044
19232
  account,
19045
19233
  });
19046
19234
  return {
19047
- key: `platform:${getPlatformSilentRequestKey(platformRequest, config)}`,
19235
+ key: platformRequest.authenticationScheme ===
19236
+ AuthenticationScheme$1.DPOP
19237
+ ? undefined
19238
+ : `platform:${getPlatformSilentRequestKey(platformRequest, config)}`,
19048
19239
  request: platformRequest,
19049
19240
  account: platformRequest.account,
19050
19241
  };
@@ -19076,7 +19267,6 @@
19076
19267
  loginHint: request.loginHint,
19077
19268
  popKid: request.popKid,
19078
19269
  shrNonce: request.shrNonce,
19079
- dpopNonce: request.dpopNonce,
19080
19270
  skipBrokerClaims: request.embeddedClientId
19081
19271
  ? !!request.skipBrokerClaims
19082
19272
  : undefined,
@@ -20325,6 +20515,16 @@
20325
20515
  getLogger() {
20326
20516
  return this.logger;
20327
20517
  }
20518
+ /**
20519
+ * Stores a resource-server DPoP nonce for the matching HTTPS origin.
20520
+ */
20521
+ async loadDpopNonce(resourceRequestUri, dpopNonce) {
20522
+ blockNonBrowserEnvironment();
20523
+ const correlationId = createNewGuid();
20524
+ return invokeAsync(async () => {
20525
+ this.browserStorage.setDpopNonce(resourceRequestUri, dpopNonce, correlationId);
20526
+ }, StandardControllerLoadDpopNonce, this.logger, this.performanceClient, correlationId)();
20527
+ }
20328
20528
  /**
20329
20529
  * Replaces the default logger set in configurations with new Logger with new configurations
20330
20530
  * @param logger Logger instance
@@ -20479,32 +20679,55 @@
20479
20679
  correlationId,
20480
20680
  config: this.config,
20481
20681
  }, this.platformAuthProvider, this.logger, this.performanceClient);
20482
- const shouldDeduplicate = preparedRequest.request.authenticationScheme !==
20483
- AuthenticationScheme$1.DPOP;
20682
+ const requestKey = preparedRequest.key;
20683
+ const shouldDeduplicate = requestKey !== undefined;
20484
20684
  const inProgressRequest = shouldDeduplicate
20485
- ? this.activeSilentTokenRequests.get(preparedRequest.key)
20685
+ ? this.activeSilentTokenRequests.get(requestKey)
20486
20686
  : undefined;
20487
20687
  if (typeof inProgressRequest === "undefined") {
20488
20688
  this.logger.verbose(shouldDeduplicate
20489
20689
  ? "0fcjbk"
20490
- : "acquireTokenSilent called for DPoP request, starting an independent operation", correlationId);
20690
+ : "acquireTokenSilent called for platform DPoP request, starting an independent operation", correlationId);
20491
20691
  this.performanceClient.addFields({ deduped: false }, correlationId);
20492
20692
  const activeRequest = invokeAsync(this.acquireTokenSilentAsync.bind(this), AcquireTokenSilentAsync, this.logger, this.performanceClient, correlationId)({
20493
20693
  ...preparedRequest.request,
20494
20694
  correlationId,
20495
20695
  }, preparedRequest.account);
20496
- if (!shouldDeduplicate) {
20696
+ if (requestKey === undefined) {
20497
20697
  return activeRequest;
20498
20698
  }
20499
- this.activeSilentTokenRequests.set(preparedRequest.key, activeRequest);
20699
+ this.activeSilentTokenRequests.set(requestKey, activeRequest);
20500
20700
  return activeRequest.finally(() => {
20501
- this.activeSilentTokenRequests.delete(preparedRequest.key);
20701
+ this.activeSilentTokenRequests.delete(requestKey);
20502
20702
  });
20503
20703
  }
20504
20704
  else {
20505
20705
  this.logger.verbose("1yq7nb", correlationId);
20506
20706
  this.performanceClient.addFields({ deduped: true }, correlationId);
20507
- return inProgressRequest;
20707
+ const joiningRequest = {
20708
+ ...preparedRequest.request,
20709
+ correlationId,
20710
+ };
20711
+ const result = await inProgressRequest;
20712
+ if (joiningRequest.authenticationScheme !==
20713
+ AuthenticationScheme$1.DPOP) {
20714
+ return result;
20715
+ }
20716
+ if (result.fromPlatformBroker &&
20717
+ !ResponseHandler.hasDpopKeyId(result)) {
20718
+ return invokeAsync(this.acquireTokenSilentAsync.bind(this), AcquireTokenSilentAsync, this.logger, this.performanceClient, correlationId)(joiningRequest, result.account || preparedRequest.account);
20719
+ }
20720
+ const dpopProof = await ResponseHandler.generateDpopResourceProof(this.browserCrypto, result, {
20721
+ ...joiningRequest,
20722
+ authority: joiningRequest.authority || this.config.auth.authority,
20723
+ }, this.performanceClient, {
20724
+ tokenBindingKeyManager: this.tokenBindingKeyManager,
20725
+ dpopNonceProvider: this.browserStorage,
20726
+ });
20727
+ return {
20728
+ ...result,
20729
+ dpopProof,
20730
+ };
20508
20731
  }
20509
20732
  }
20510
20733
  /**
@@ -21272,8 +21495,21 @@
21272
21495
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
21273
21496
  isBroker) {
21274
21497
  const initCorrelationId = request?.correlationId || createNewGuid();
21275
- await this.browserStorage.initialize(initCorrelationId);
21276
- return Promise.resolve();
21498
+ const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication, initCorrelationId);
21499
+ initMeasurement.add({
21500
+ nestedAppAuthRequest: true,
21501
+ bridgeType: "NAA",
21502
+ });
21503
+ try {
21504
+ await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient, initCorrelationId)(initCorrelationId);
21505
+ }
21506
+ catch (error) {
21507
+ initMeasurement.discard();
21508
+ throw error;
21509
+ }
21510
+ initMeasurement.end({
21511
+ success: true,
21512
+ });
21277
21513
  }
21278
21514
  /**
21279
21515
  * Validate the incoming request and add correlationId if not present
@@ -21682,6 +21918,13 @@
21682
21918
  async clearCache(logoutRequest) {
21683
21919
  throw NestedAppAuthError.createUnsupportedError(logoutRequest?.correlationId);
21684
21920
  }
21921
+ /**
21922
+ * Rejects DPoP nonce loading until nested app authentication supports
21923
+ * forwarding the complete resource proof context.
21924
+ */
21925
+ loadDpopNonce() {
21926
+ return Promise.reject(NestedAppAuthError.createUnsupportedError());
21927
+ }
21685
21928
  async hydrateCache(result, request) {
21686
21929
  this.logger.verbose("16jycr", result.correlationId);
21687
21930
  const accountEntity = createAccountEntityFromAccountInfo(result.account, result.cloudGraphHostName, result.msGraphHost);
@@ -22311,6 +22554,12 @@
22311
22554
  getActiveAccount() {
22312
22555
  return this.controller.getActiveAccount();
22313
22556
  }
22557
+ /**
22558
+ * Stores an opaque resource-server DPoP nonce for the matching HTTPS origin.
22559
+ */
22560
+ loadDpopNonce(resourceRequestUri, dpopNonce) {
22561
+ return this.controller.loadDpopNonce(resourceRequestUri, dpopNonce);
22562
+ }
22314
22563
  /**
22315
22564
  * Called by wrapper libraries (Angular & React) to set SKU and Version passed down to telemetry, logger, etc.
22316
22565
  * @param sku
@@ -22357,10 +22606,11 @@
22357
22606
  * @param configuration
22358
22607
  * @param correlationId
22359
22608
  * @param pcaFactory
22609
+ * @param standardPcaFactory
22360
22610
  * @returns IPublicClientApplication
22361
22611
  *
22362
22612
  */
22363
- async function createNestablePublicClientApplication(configuration, correlationId, pcaFactory) {
22613
+ async function createNestablePublicClientApplication(configuration, correlationId, pcaFactory, standardPcaFactory) {
22364
22614
  const nestedAppAuth = new NestedAppOperatingContext(configuration);
22365
22615
  await nestedAppAuth.initialize(correlationId);
22366
22616
  if (nestedAppAuth.isAvailable()) {
@@ -22372,6 +22622,11 @@
22372
22622
  await nestablePCA.initialize({ correlationId: cid });
22373
22623
  return nestablePCA;
22374
22624
  }
22625
+ if (standardPcaFactory) {
22626
+ const standardPCA = standardPcaFactory(configuration);
22627
+ await standardPCA.initialize(correlationId ? { correlationId } : undefined);
22628
+ return standardPCA;
22629
+ }
22375
22630
  return createStandardPublicClientApplication(configuration);
22376
22631
  }
22377
22632
  /**
@@ -22504,6 +22759,9 @@
22504
22759
  clearCache: () => {
22505
22760
  return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled, ""));
22506
22761
  },
22762
+ loadDpopNonce: () => {
22763
+ return Promise.reject(createBrowserConfigurationAuthError(stubbedPublicClientApplicationCalled, ""));
22764
+ },
22507
22765
  };
22508
22766
 
22509
22767
  /*