@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,8 +1,8 @@
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
  'use strict';
4
4
 
5
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6
6
  /*
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
8
  * Licensed under the MIT License.
@@ -62,7 +62,7 @@ const ATTRIBUTE_TOKENS = "attribute_tokens";
62
62
  */
63
63
  const POPUP_ORIGIN_CHECK_DONE = "pocd";
64
64
 
65
- /*! @azure/msal-common v16.17.0 2026-11-18 */
65
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
66
66
  /*
67
67
  * Copyright (c) Microsoft Corporation. All rights reserved.
68
68
  * Licensed under the MIT License.
@@ -296,7 +296,7 @@ const JsonWebTokenTypes = {
296
296
  // Token renewal offset default in seconds
297
297
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
298
298
 
299
- /*! @azure/msal-common v16.17.0 2026-11-18 */
299
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
300
300
  /*
301
301
  * Copyright (c) Microsoft Corporation. All rights reserved.
302
302
  * Licensed under the MIT License.
@@ -325,7 +325,7 @@ function createAuthError(code, correlationId, additionalMessage) {
325
325
  return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
326
326
  }
327
327
 
328
- /*! @azure/msal-common v16.17.0 2026-11-18 */
328
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
329
329
 
330
330
  /*
331
331
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -348,7 +348,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
348
348
  return new ClientAuthError(errorCode, correlationId, additionalMessage);
349
349
  }
350
350
 
351
- /*! @azure/msal-common v16.17.0 2026-11-18 */
351
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
352
352
  /*
353
353
  * Copyright (c) Microsoft Corporation. All rights reserved.
354
354
  * Licensed under the MIT License.
@@ -386,7 +386,7 @@ const methodNotImplemented = "method_not_implemented";
386
386
  const resourceParameterRequired = "resource_parameter_required";
387
387
  const misplacedResourceParam = "misplaced_resource_parameter";
388
388
 
389
- /*! @azure/msal-common v16.17.0 2026-11-18 */
389
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
390
390
 
391
391
  /*
392
392
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -424,7 +424,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
424
424
  };
425
425
  }
426
426
 
427
- /*! @azure/msal-common v16.17.0 2026-11-18 */
427
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
428
428
 
429
429
  /*
430
430
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -490,7 +490,7 @@ function getJWSPayload(authToken, correlationId) {
490
490
  return matches[2];
491
491
  }
492
492
 
493
- /*! @azure/msal-common v16.17.0 2026-11-18 */
493
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
494
494
 
495
495
  /*
496
496
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -578,7 +578,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
578
578
  return updatedAccountInfo;
579
579
  }
580
580
 
581
- /*! @azure/msal-common v16.17.0 2026-11-18 */
581
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
582
582
  /*
583
583
  * Copyright (c) Microsoft Corporation. All rights reserved.
584
584
  * Licensed under the MIT License.
@@ -592,7 +592,7 @@ const AuthorityType = {
592
592
  Ciam: 3,
593
593
  };
594
594
 
595
- /*! @azure/msal-common v16.17.0 2026-11-18 */
595
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
596
596
  /*
597
597
  * Copyright (c) Microsoft Corporation. All rights reserved.
598
598
  * Licensed under the MIT License.
@@ -614,7 +614,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
614
614
  return null;
615
615
  }
616
616
 
617
- /*! @azure/msal-common v16.17.0 2026-11-18 */
617
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
618
618
  /*
619
619
  * Copyright (c) Microsoft Corporation. All rights reserved.
620
620
  * Licensed under the MIT License.
@@ -638,7 +638,7 @@ const ProtocolMode = {
638
638
  EAR: "EAR",
639
639
  };
640
640
 
641
- /*! @azure/msal-common v16.17.0 2026-11-18 */
641
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
642
642
  /**
643
643
  * Returns the AccountInfo interface for this account.
644
644
  * @internal
@@ -827,7 +827,7 @@ function isAccountEntity(entity) {
827
827
  entity.hasOwnProperty("authorityType"));
828
828
  }
829
829
 
830
- /*! @azure/msal-common v16.17.0 2026-11-18 */
830
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
831
831
  /*
832
832
  * Copyright (c) Microsoft Corporation. All rights reserved.
833
833
  * Licensed under the MIT License.
@@ -837,7 +837,7 @@ function isAccountEntity(entity) {
837
837
  */
838
838
  const unexpectedError = "unexpected_error";
839
839
 
840
- /*! @azure/msal-common v16.17.0 2026-11-18 */
840
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
841
841
 
842
842
  /*
843
843
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -857,7 +857,7 @@ function createClientConfigurationError(errorCode, correlationId) {
857
857
  return new ClientConfigurationError(errorCode, correlationId);
858
858
  }
859
859
 
860
- /*! @azure/msal-common v16.17.0 2026-11-18 */
860
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
861
861
  /*
862
862
  * Copyright (c) Microsoft Corporation. All rights reserved.
863
863
  * Licensed under the MIT License.
@@ -897,7 +897,7 @@ function getResponseHeader(headers, name) {
897
897
  return headerName === undefined ? undefined : headers[headerName];
898
898
  }
899
899
 
900
- /*! @azure/msal-common v16.17.0 2026-11-18 */
900
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
901
901
  /*
902
902
  * Copyright (c) Microsoft Corporation. All rights reserved.
903
903
  * Licensed under the MIT License.
@@ -928,7 +928,7 @@ const invalidDpopHtu = "invalid_dpop_htu";
928
928
  const invalidDpopNonce = "invalid_dpop_nonce";
929
929
  const dpopMissingResourceContext = "dpop_missing_resource_context";
930
930
 
931
- /*! @azure/msal-common v16.17.0 2026-11-18 */
931
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
932
932
  /*
933
933
  * Copyright (c) Microsoft Corporation. All rights reserved.
934
934
  * Licensed under the MIT License.
@@ -940,7 +940,7 @@ function isOpenIdConfigResponse(response) {
940
940
  response.hasOwnProperty("jwks_uri"));
941
941
  }
942
942
 
943
- /*! @azure/msal-common v16.17.0 2026-11-18 */
943
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
944
944
  /*
945
945
  * Copyright (c) Microsoft Corporation. All rights reserved.
946
946
  * Licensed under the MIT License.
@@ -1020,7 +1020,7 @@ class StringUtils {
1020
1020
  }
1021
1021
  }
1022
1022
 
1023
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1023
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1024
1024
 
1025
1025
  /*
1026
1026
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1207,7 +1207,7 @@ class UrlString {
1207
1207
  }
1208
1208
  }
1209
1209
 
1210
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1210
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1211
1211
 
1212
1212
  /*
1213
1213
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1361,7 +1361,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
1361
1361
  return null;
1362
1362
  }
1363
1363
 
1364
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1364
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1365
1365
  /*
1366
1366
  * Copyright (c) Microsoft Corporation. All rights reserved.
1367
1367
  * Licensed under the MIT License.
@@ -1370,7 +1370,7 @@ const AzureCloudInstance = {
1370
1370
  // AzureCloudInstance is not specified.
1371
1371
  None: "none"};
1372
1372
 
1373
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1373
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1374
1374
  /*
1375
1375
  * Copyright (c) Microsoft Corporation. All rights reserved.
1376
1376
  * Licensed under the MIT License.
@@ -1380,7 +1380,7 @@ function isCloudInstanceDiscoveryResponse(response) {
1380
1380
  response.hasOwnProperty("metadata"));
1381
1381
  }
1382
1382
 
1383
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1383
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1384
1384
  /*
1385
1385
  * Copyright (c) Microsoft Corporation. All rights reserved.
1386
1386
  * Licensed under the MIT License.
@@ -1390,7 +1390,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
1390
1390
  response.hasOwnProperty("error_description"));
1391
1391
  }
1392
1392
 
1393
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1393
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1394
1394
  /*
1395
1395
  * Copyright (c) Microsoft Corporation. All rights reserved.
1396
1396
  * Licensed under the MIT License.
@@ -1461,7 +1461,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
1461
1461
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
1462
1462
  const SetUserData = "setUserData";
1463
1463
 
1464
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1464
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1465
1465
  /*
1466
1466
  * Copyright (c) Microsoft Corporation. All rights reserved.
1467
1467
  * Licensed under the MIT License.
@@ -1555,7 +1555,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
1555
1555
  };
1556
1556
  };
1557
1557
 
1558
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1558
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1559
1559
 
1560
1560
  /*
1561
1561
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1684,7 +1684,7 @@ RegionDiscovery.IMDS_OPTIONS = {
1684
1684
  },
1685
1685
  };
1686
1686
 
1687
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1687
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1688
1688
  /*
1689
1689
  * Copyright (c) Microsoft Corporation. All rights reserved.
1690
1690
  * Licensed under the MIT License.
@@ -1749,7 +1749,7 @@ function wasClockTurnedBack(cachedAt) {
1749
1749
  return cachedAtSec > nowSeconds();
1750
1750
  }
1751
1751
 
1752
- /*! @azure/msal-common v16.17.0 2026-11-18 */
1752
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
1753
1753
 
1754
1754
  /*
1755
1755
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2036,7 +2036,7 @@ function serializeAttributeTokens(attributeTokens) {
2036
2036
  return [...attributeTokens].sort().join(" ");
2037
2037
  }
2038
2038
 
2039
- /*! @azure/msal-common v16.17.0 2026-11-18 */
2039
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
2040
2040
 
2041
2041
  /*
2042
2042
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3007,7 +3007,7 @@ function buildStaticAuthorityOptions(authOptions) {
3007
3007
  };
3008
3008
  }
3009
3009
 
3010
- /*! @azure/msal-common v16.17.0 2026-11-18 */
3010
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
3011
3011
 
3012
3012
  /*
3013
3013
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3041,7 +3041,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
3041
3041
  }
3042
3042
  }
3043
3043
 
3044
- /*! @azure/msal-common v16.17.0 2026-11-18 */
3044
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
3045
3045
 
3046
3046
  /*
3047
3047
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3237,7 +3237,7 @@ class ScopeSet {
3237
3237
  }
3238
3238
  }
3239
3239
 
3240
- /*! @azure/msal-common v16.17.0 2026-11-18 */
3240
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
3241
3241
 
3242
3242
  /*
3243
3243
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3738,7 +3738,7 @@ function addAttributeTokens(parameters, attributeTokens) {
3738
3738
  }
3739
3739
  }
3740
3740
 
3741
- /*! @azure/msal-common v16.17.0 2026-11-18 */
3741
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
3742
3742
 
3743
3743
  /*
3744
3744
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3869,7 +3869,7 @@ function validateUrl(url, logger, correlationId) {
3869
3869
  }
3870
3870
  }
3871
3871
 
3872
- /*! @azure/msal-common v16.17.0 2026-11-18 */
3872
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
3873
3873
 
3874
3874
  /*
3875
3875
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3917,7 +3917,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
3917
3917
  },
3918
3918
  };
3919
3919
 
3920
- /*! @azure/msal-common v16.17.0 2026-11-18 */
3920
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
3921
3921
 
3922
3922
  /*
3923
3923
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3940,7 +3940,7 @@ const DEFAULT_TOKEN_BINDING_KEY_MANAGER = {
3940
3940
  },
3941
3941
  };
3942
3942
 
3943
- /*! @azure/msal-common v16.17.0 2026-11-18 */
3943
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
3944
3944
  /*
3945
3945
  * Copyright (c) Microsoft Corporation. All rights reserved.
3946
3946
  * Licensed under the MIT License.
@@ -4215,12 +4215,12 @@ class Logger {
4215
4215
  }
4216
4216
  }
4217
4217
 
4218
- /*! @azure/msal-common v16.17.0 2026-11-18 */
4218
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
4219
4219
  /* eslint-disable header/header */
4220
4220
  const name$1 = "@azure/msal-common";
4221
- const version$1 = "16.17.0";
4221
+ const version$1 = "16.18.0";
4222
4222
 
4223
- /*! @azure/msal-common v16.17.0 2026-11-18 */
4223
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
4224
4224
  /*
4225
4225
  * Copyright (c) Microsoft Corporation. All rights reserved.
4226
4226
  * Licensed under the MIT License.
@@ -4228,7 +4228,7 @@ const version$1 = "16.17.0";
4228
4228
  const cacheQuotaExceeded = "cache_quota_exceeded";
4229
4229
  const cacheErrorUnknown = "cache_error_unknown";
4230
4230
 
4231
- /*! @azure/msal-common v16.17.0 2026-11-18 */
4231
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
4232
4232
 
4233
4233
  /*
4234
4234
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4266,7 +4266,7 @@ function createCacheError(e) {
4266
4266
  }
4267
4267
  }
4268
4268
 
4269
- /*! @azure/msal-common v16.17.0 2026-11-18 */
4269
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
4270
4270
 
4271
4271
  /*
4272
4272
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5493,7 +5493,7 @@ class DefaultStorageClass extends CacheManager {
5493
5493
  }
5494
5494
  }
5495
5495
 
5496
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5496
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5497
5497
  /*
5498
5498
  * Copyright (c) Microsoft Corporation. All rights reserved.
5499
5499
  * Licensed under the MIT License.
@@ -5507,7 +5507,7 @@ class DefaultStorageClass extends CacheManager {
5507
5507
  const PerformanceEventStatus = {
5508
5508
  InProgress: 1};
5509
5509
 
5510
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5510
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5511
5511
 
5512
5512
  /*
5513
5513
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5565,7 +5565,7 @@ class StubPerformanceClient {
5565
5565
  }
5566
5566
  }
5567
5567
 
5568
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5568
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5569
5569
 
5570
5570
  /*
5571
5571
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5619,7 +5619,7 @@ const DEFAULT_TELEMETRY_OPTIONS = {
5619
5619
  * @returns Configuration
5620
5620
  * @internal
5621
5621
  */
5622
- 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, }) {
5622
+ 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, }) {
5623
5623
  const loggerOptions = {
5624
5624
  ...DEFAULT_LOGGER_IMPLEMENTATION,
5625
5625
  ...userLoggerOption,
@@ -5634,6 +5634,7 @@ function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions:
5634
5634
  networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
5635
5635
  cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
5636
5636
  tokenBindingKeyManager: resolvedTokenBindingKeyManager,
5637
+ dpopNonceProvider,
5637
5638
  clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
5638
5639
  libraryInfo: { ...DEFAULT_LIBRARY_INFO, ...libraryInfo },
5639
5640
  telemetry: { ...DEFAULT_TELEMETRY_OPTIONS, ...telemetry },
@@ -5663,7 +5664,7 @@ function isOidcProtocolMode(config) {
5663
5664
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
5664
5665
  }
5665
5666
 
5666
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5667
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5667
5668
  /*
5668
5669
  * Copyright (c) Microsoft Corporation. All rights reserved.
5669
5670
  * Licensed under the MIT License.
@@ -5690,7 +5691,7 @@ function isOidcProtocolMode(config) {
5690
5691
  }
5691
5692
  }
5692
5693
 
5693
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5694
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5694
5695
 
5695
5696
  /*
5696
5697
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5711,7 +5712,7 @@ function createJoseHeaderError(code, correlationId) {
5711
5712
  return new JoseHeaderError(code, correlationId);
5712
5713
  }
5713
5714
 
5714
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5715
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5715
5716
  /*
5716
5717
  * Copyright (c) Microsoft Corporation. All rights reserved.
5717
5718
  * Licensed under the MIT License.
@@ -5736,7 +5737,7 @@ function isPlainObject(value) {
5736
5737
  return Object.getPrototypeOf(value) === proto;
5737
5738
  }
5738
5739
 
5739
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5740
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5740
5741
  /*
5741
5742
  * Copyright (c) Microsoft Corporation. All rights reserved.
5742
5743
  * Licensed under the MIT License.
@@ -5746,7 +5747,7 @@ const missingAlgError = "missing_alg_error";
5746
5747
  const missingJwkError = "missing_jwk_error";
5747
5748
  const invalidJwkError = "invalid_jwk_error";
5748
5749
 
5749
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5750
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5750
5751
 
5751
5752
  /*
5752
5753
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5812,7 +5813,7 @@ class JoseHeader {
5812
5813
  }
5813
5814
  }
5814
5815
 
5815
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5816
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5816
5817
 
5817
5818
  /*
5818
5819
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5913,7 +5914,50 @@ class PopTokenGenerator {
5913
5914
  }
5914
5915
  }
5915
5916
 
5916
- /*! @azure/msal-common v16.17.0 2026-11-18 */
5917
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5918
+
5919
+ /*
5920
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5921
+ * Licensed under the MIT License.
5922
+ */
5923
+ /**
5924
+ * Validates that a DPoP nonce is a non-empty string and returns the opaque
5925
+ * value unchanged.
5926
+ * @internal
5927
+ */
5928
+ function validateDpopNonce(nonce, correlationId = "") {
5929
+ if (typeof nonce !== "string" || nonce.length === 0) {
5930
+ throw createClientConfigurationError(invalidDpopNonce, correlationId);
5931
+ }
5932
+ return nonce;
5933
+ }
5934
+ /**
5935
+ * Returns the normalized HTTPS origin used to scope a resource-server nonce.
5936
+ * @internal
5937
+ */
5938
+ function canonicalizeDpopResourceServer(resourceRequestUri, correlationId = "") {
5939
+ if (typeof resourceRequestUri !== "string" ||
5940
+ !/^https:\/\//i.test(resourceRequestUri)) {
5941
+ throw createClientConfigurationError(invalidDpopHtu, correlationId);
5942
+ }
5943
+ let parsedUrl;
5944
+ try {
5945
+ parsedUrl = new URL(resourceRequestUri);
5946
+ }
5947
+ catch {
5948
+ throw createClientConfigurationError(invalidDpopHtu, correlationId);
5949
+ }
5950
+ if (parsedUrl.protocol !== "https:" ||
5951
+ parsedUrl.origin === "null" ||
5952
+ !parsedUrl.hostname ||
5953
+ parsedUrl.username ||
5954
+ parsedUrl.password) {
5955
+ throw createClientConfigurationError(invalidDpopHtu, correlationId);
5956
+ }
5957
+ return parsedUrl.origin;
5958
+ }
5959
+
5960
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
5917
5961
 
5918
5962
  /*
5919
5963
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5958,11 +6002,6 @@ function normalizeHtu(url, correlationId) {
5958
6002
  parsedUrl.hash = "";
5959
6003
  return parsedUrl.href;
5960
6004
  }
5961
- function validateDpopNonce(nonce, correlationId) {
5962
- if (nonce !== undefined && nonce.trim().length === 0) {
5963
- throw createClientConfigurationError(invalidDpopNonce, correlationId);
5964
- }
5965
- }
5966
6005
  /**
5967
6006
  * Validates and normalizes the HTTP resource context for a DPoP-bound request.
5968
6007
  * @internal
@@ -6006,7 +6045,6 @@ class DpopProofGenerator {
6006
6045
  * - jti is a fresh CSPRNG-backed unique identifier for every proof.
6007
6046
  */
6008
6047
  buildTokenProofClaims(params, correlationId = "") {
6009
- validateDpopNonce(params.nonce, correlationId);
6010
6048
  const claims = {
6011
6049
  jti: this.cryptoUtils.createNewGuid(),
6012
6050
  htm: "POST",
@@ -6014,7 +6052,7 @@ class DpopProofGenerator {
6014
6052
  iat: nowSeconds(),
6015
6053
  };
6016
6054
  if (params.nonce !== undefined) {
6017
- claims.nonce = params.nonce;
6055
+ claims.nonce = validateDpopNonce(params.nonce, correlationId);
6018
6056
  }
6019
6057
  return claims;
6020
6058
  }
@@ -6032,7 +6070,6 @@ class DpopProofGenerator {
6032
6070
  * - jti is a fresh CSPRNG-backed unique identifier for every proof.
6033
6071
  */
6034
6072
  buildResourceProofClaims(params, correlationId = "") {
6035
- validateDpopNonce(params.nonce, correlationId);
6036
6073
  const resourceContext = normalizeDpopResourceRequestContext(params, correlationId);
6037
6074
  const claims = {
6038
6075
  jti: this.cryptoUtils.createNewGuid(),
@@ -6042,7 +6079,7 @@ class DpopProofGenerator {
6042
6079
  iat: nowSeconds(),
6043
6080
  };
6044
6081
  if (params.nonce !== undefined) {
6045
- claims.nonce = params.nonce;
6082
+ claims.nonce = validateDpopNonce(params.nonce, correlationId);
6046
6083
  }
6047
6084
  return claims;
6048
6085
  }
@@ -6068,7 +6105,7 @@ class DpopProofGenerator {
6068
6105
  }
6069
6106
  }
6070
6107
 
6071
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6108
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6072
6109
  /*
6073
6110
  * Copyright (c) Microsoft Corporation. All rights reserved.
6074
6111
  * Licensed under the MIT License.
@@ -6119,7 +6156,7 @@ const badToken = "bad_token";
6119
6156
  */
6120
6157
  const interruptedUser = "interrupted_user";
6121
6158
 
6122
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6159
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6123
6160
 
6124
6161
  /*
6125
6162
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6186,7 +6223,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
6186
6223
  return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
6187
6224
  }
6188
6225
 
6189
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6226
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6190
6227
 
6191
6228
  /*
6192
6229
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6205,7 +6242,7 @@ class ServerError extends AuthError {
6205
6242
  }
6206
6243
  }
6207
6244
 
6208
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6245
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6209
6246
 
6210
6247
  /*
6211
6248
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6276,18 +6313,29 @@ function parseRequestState(base64Decode, state, correlationId) {
6276
6313
  }
6277
6314
  }
6278
6315
 
6279
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6316
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6280
6317
 
6281
6318
  /*
6282
6319
  * Copyright (c) Microsoft Corporation. All rights reserved.
6283
6320
  * Licensed under the MIT License.
6284
6321
  */
6322
+ /*
6323
+ * Retains the signing key for fresh proofs on deduplicated calls without
6324
+ * exposing it on the public AuthenticationResult.
6325
+ */
6326
+ const dpopKeyIdByAuthenticationResult = new WeakMap();
6327
+ function getDpopNonceForRequest(dpopNonceProvider, request) {
6328
+ if (!request.resourceRequestUri || !dpopNonceProvider) {
6329
+ return undefined;
6330
+ }
6331
+ return dpopNonceProvider.getDpopNonce(request.resourceRequestUri, request.correlationId);
6332
+ }
6285
6333
  /**
6286
6334
  * Class that handles response parsing.
6287
6335
  * @internal
6288
6336
  */
6289
6337
  class ResponseHandler {
6290
- constructor(clientId, cacheStorage, cryptoObj, logger, performanceClient, serializableCache, persistencePlugin, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER) {
6338
+ constructor(clientId, cacheStorage, cryptoObj, logger, performanceClient, serializableCache, persistencePlugin, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER, dpopNonceProvider) {
6291
6339
  this.clientId = clientId;
6292
6340
  this.cacheStorage = cacheStorage;
6293
6341
  this.cryptoObj = cryptoObj;
@@ -6296,6 +6344,7 @@ class ResponseHandler {
6296
6344
  this.performanceClient = performanceClient;
6297
6345
  this.serializableCache = serializableCache;
6298
6346
  this.persistencePlugin = persistencePlugin;
6347
+ this.dpopNonceProvider = dpopNonceProvider;
6299
6348
  }
6300
6349
  /**
6301
6350
  * Function which validates server authorization token response.
@@ -6434,6 +6483,7 @@ class ResponseHandler {
6434
6483
  requestState: requestStateObj,
6435
6484
  requestId: serverRequestId,
6436
6485
  tokenBindingKeyManager: this.tokenBindingKeyManager,
6486
+ dpopNonceProvider: this.dpopNonceProvider,
6437
6487
  });
6438
6488
  }
6439
6489
  }
@@ -6453,6 +6503,7 @@ class ResponseHandler {
6453
6503
  serverTokenResponse,
6454
6504
  requestId: serverRequestId,
6455
6505
  tokenBindingKeyManager: this.tokenBindingKeyManager,
6506
+ dpopNonceProvider: this.dpopNonceProvider,
6456
6507
  });
6457
6508
  }
6458
6509
  /**
@@ -6550,7 +6601,7 @@ class ResponseHandler {
6550
6601
  * @param stateString
6551
6602
  */
6552
6603
  static async generateAuthenticationResult(cryptoObj, authority, cacheRecord, fromTokenCache, request, performanceClient, options = {}) {
6553
- const { idTokenClaims, requestState, serverTokenResponse, requestId, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER, } = options;
6604
+ const { idTokenClaims, requestState, serverTokenResponse, requestId, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER, dpopNonceProvider, } = options;
6554
6605
  let accessToken = "";
6555
6606
  let responseScopes = [];
6556
6607
  let expiresOn = null;
@@ -6558,8 +6609,13 @@ class ResponseHandler {
6558
6609
  let refreshOn;
6559
6610
  let familyId = "";
6560
6611
  let dpopProof;
6612
+ const cachedAccessTokenType = cacheRecord.accessToken?.tokenType || "";
6613
+ const isDpopAccessToken = cachedAccessTokenType.toLowerCase() ===
6614
+ AuthenticationScheme.DPOP.toLowerCase();
6615
+ const resultTokenType = isDpopAccessToken
6616
+ ? AuthenticationScheme.DPOP
6617
+ : cachedAccessTokenType;
6561
6618
  if (cacheRecord.accessToken) {
6562
- const accessTokenType = cacheRecord.accessToken.tokenType?.toLowerCase();
6563
6619
  /*
6564
6620
  * if the request object has `popKid` property, `signPopToken` will be set to false and
6565
6621
  * the token will be returned unsigned
@@ -6577,15 +6633,17 @@ class ResponseHandler {
6577
6633
  else {
6578
6634
  accessToken = cacheRecord.accessToken.secret;
6579
6635
  }
6580
- if (accessTokenType ===
6581
- AuthenticationScheme.DPOP.toLowerCase()) {
6636
+ if (isDpopAccessToken) {
6582
6637
  if (!cacheRecord.accessToken.keyId) {
6583
6638
  throw createClientAuthError(keyIdMissing, request.correlationId);
6584
6639
  }
6585
6640
  const dpopProofGenerator = new DpopProofGenerator(cryptoObj, tokenBindingKeyManager);
6641
+ const dpopNonce = getDpopNonceForRequest(dpopNonceProvider, request);
6642
+ performanceClient?.addFields({ dpopNonceAppliedToProof: Boolean(dpopNonce) }, request.correlationId);
6586
6643
  dpopProof = await dpopProofGenerator.generateResourceProof({
6587
6644
  htu: request.resourceRequestUri,
6588
6645
  htm: request.resourceRequestMethod,
6646
+ nonce: dpopNonce,
6589
6647
  accessToken: cacheRecord.accessToken.secret,
6590
6648
  }, cacheRecord.accessToken.keyId, request.correlationId);
6591
6649
  }
@@ -6633,7 +6691,7 @@ class ResponseHandler {
6633
6691
  ? updateAccountTenantProfileData(getAccountInfo(cacheRecord.account), undefined, // tenantProfile optional
6634
6692
  idTokenClaims, cacheRecord.idToken?.secret)
6635
6693
  : null;
6636
- return {
6694
+ const authenticationResult = {
6637
6695
  authority: authority.canonicalAuthority,
6638
6696
  uniqueId: uid,
6639
6697
  tenantId: tid,
@@ -6650,16 +6708,49 @@ class ResponseHandler {
6650
6708
  correlationId: request.correlationId,
6651
6709
  requestId: requestId || "",
6652
6710
  familyId: familyId,
6653
- tokenType: cacheRecord.accessToken?.tokenType?.toLowerCase() ===
6654
- AuthenticationScheme.DPOP.toLowerCase()
6655
- ? AuthenticationScheme.DPOP
6656
- : cacheRecord.accessToken?.tokenType || "",
6711
+ tokenType: resultTokenType,
6657
6712
  state: requestState ? requestState.userRequestState : "",
6658
6713
  cloudGraphHostName: cacheRecord.account?.cloudGraphHostName || "",
6659
6714
  msGraphHost: cacheRecord.account?.msGraphHost || "",
6660
6715
  code: serverTokenResponse?.spa_code,
6661
6716
  fromPlatformBroker: false,
6662
6717
  };
6718
+ if (isDpopAccessToken && cacheRecord.accessToken?.keyId) {
6719
+ ResponseHandler.setDpopKeyId(authenticationResult, cacheRecord.accessToken.keyId);
6720
+ }
6721
+ return authenticationResult;
6722
+ }
6723
+ /**
6724
+ * Retains an MSAL-owned DPoP key for fresh proofs on deduplicated calls.
6725
+ * @internal
6726
+ */
6727
+ static setDpopKeyId(authenticationResult, keyId) {
6728
+ dpopKeyIdByAuthenticationResult.set(authenticationResult, keyId);
6729
+ }
6730
+ /**
6731
+ * Returns whether MSAL can generate another proof for this result.
6732
+ * @internal
6733
+ */
6734
+ static hasDpopKeyId(authenticationResult) {
6735
+ return dpopKeyIdByAuthenticationResult.has(authenticationResult);
6736
+ }
6737
+ /**
6738
+ * Generates a fresh resource proof for a previously constructed DPoP result.
6739
+ * @internal
6740
+ */
6741
+ static async generateDpopResourceProof(cryptoObj, authenticationResult, request, performanceClient, options = {}) {
6742
+ const keyId = dpopKeyIdByAuthenticationResult.get(authenticationResult);
6743
+ if (!keyId) {
6744
+ throw createClientAuthError(keyIdMissing, request.correlationId);
6745
+ }
6746
+ const dpopNonce = getDpopNonceForRequest(options.dpopNonceProvider, request);
6747
+ performanceClient.addFields({ dpopNonceAppliedToProof: Boolean(dpopNonce) }, request.correlationId);
6748
+ return new DpopProofGenerator(cryptoObj, options.tokenBindingKeyManager ?? DEFAULT_TOKEN_BINDING_KEY_MANAGER).generateResourceProof({
6749
+ htu: request.resourceRequestUri,
6750
+ htm: request.resourceRequestMethod,
6751
+ nonce: dpopNonce,
6752
+ accessToken: authenticationResult.accessToken,
6753
+ }, keyId, request.correlationId);
6663
6754
  }
6664
6755
  }
6665
6756
  /** @internal */
@@ -6704,7 +6795,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
6704
6795
  return baseAccount;
6705
6796
  }
6706
6797
 
6707
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6798
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6708
6799
  /*
6709
6800
  * Copyright (c) Microsoft Corporation. All rights reserved.
6710
6801
  * Licensed under the MIT License.
@@ -6714,7 +6805,7 @@ const CcsCredentialType = {
6714
6805
  UPN: "UPN",
6715
6806
  };
6716
6807
 
6717
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6808
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6718
6809
  /*
6719
6810
  * Copyright (c) Microsoft Corporation. All rights reserved.
6720
6811
  * Licensed under the MIT License.
@@ -6733,7 +6824,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
6733
6824
  }
6734
6825
  }
6735
6826
 
6736
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6827
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6737
6828
 
6738
6829
  /*
6739
6830
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6757,7 +6848,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
6757
6848
  };
6758
6849
  }
6759
6850
 
6760
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6851
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6761
6852
 
6762
6853
  /*
6763
6854
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6847,7 +6938,7 @@ function getRetryAfterHeader(response) {
6847
6938
  return undefined;
6848
6939
  }
6849
6940
 
6850
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6941
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6851
6942
 
6852
6943
  /*
6853
6944
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6878,7 +6969,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
6878
6969
  return new NetworkError(error, httpStatus, responseHeaders);
6879
6970
  }
6880
6971
 
6881
- /*! @azure/msal-common v16.17.0 2026-11-18 */
6972
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
6882
6973
 
6883
6974
  /*
6884
6975
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7012,7 +7103,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
7012
7103
  return response;
7013
7104
  }
7014
7105
 
7015
- /*! @azure/msal-common v16.17.0 2026-11-18 */
7106
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
7016
7107
 
7017
7108
  /*
7018
7109
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7063,7 +7154,7 @@ class AuthorizationCodeClient {
7063
7154
  const response = await invokeAsync(this.executeTokenRequest.bind(this), AuthClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(this.authority, request, this.serverTelemetryManager);
7064
7155
  // Retrieve requestId from response headers
7065
7156
  const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
7066
- 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);
7157
+ 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);
7067
7158
  // Validate response. This function throws a server error if an error is returned by the server.
7068
7159
  responseHandler.validateTokenResponse(response.body, request.correlationId);
7069
7160
  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);
@@ -7280,7 +7371,7 @@ class AuthorizationCodeClient {
7280
7371
  }
7281
7372
  }
7282
7373
 
7283
- /*! @azure/msal-common v16.17.0 2026-11-18 */
7374
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
7284
7375
 
7285
7376
  /*
7286
7377
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7510,7 +7601,7 @@ function extractLoginHint(account) {
7510
7601
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7511
7602
  }
7512
7603
 
7513
- /*! @azure/msal-common v16.17.0 2026-11-18 */
7604
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
7514
7605
 
7515
7606
  /*
7516
7607
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7545,7 +7636,7 @@ class RefreshTokenClient {
7545
7636
  const response = await invokeAsync(this.executeTokenRequest.bind(this), RefreshTokenClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(request, this.authority);
7546
7637
  // Retrieve requestId from response headers
7547
7638
  const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
7548
- 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);
7639
+ 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);
7549
7640
  responseHandler.validateTokenResponse(response.body, request.correlationId);
7550
7641
  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);
7551
7642
  }
@@ -7745,7 +7836,7 @@ class RefreshTokenClient {
7745
7836
  }
7746
7837
  }
7747
7838
 
7748
- /*! @azure/msal-common v16.17.0 2026-11-18 */
7839
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
7749
7840
 
7750
7841
  /*
7751
7842
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8038,7 +8129,7 @@ class StubServerTelemetryManager extends ServerTelemetryManager {
8038
8129
  clearNativeBrokerErrorCode() { }
8039
8130
  }
8040
8131
 
8041
- /*! @azure/msal-common v16.17.0 2026-11-18 */
8132
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
8042
8133
 
8043
8134
  /*
8044
8135
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8161,11 +8252,12 @@ class SilentFlowClient {
8161
8252
  return ResponseHandler.generateAuthenticationResult(this.cryptoUtils, this.authority, cacheRecord, true, request, this.performanceClient, {
8162
8253
  idTokenClaims,
8163
8254
  tokenBindingKeyManager: this.config.tokenBindingKeyManager,
8255
+ dpopNonceProvider: this.config.dpopNonceProvider,
8164
8256
  });
8165
8257
  }
8166
8258
  }
8167
8259
 
8168
- /*! @azure/msal-common v16.17.0 2026-11-18 */
8260
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
8169
8261
 
8170
8262
  /*
8171
8263
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8181,7 +8273,7 @@ const StubbedNetworkModule = {
8181
8273
  },
8182
8274
  };
8183
8275
 
8184
- /*! @azure/msal-common v16.17.0 2026-11-18 */
8276
+ /*! @azure/msal-common v16.18.0 2026-12-02 */
8185
8277
 
8186
8278
  /*
8187
8279
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8633,7 +8725,7 @@ function filterReservedSignUpAttributesV2(attributes, logger, correlationId) {
8633
8725
 
8634
8726
  /* eslint-disable header/header */
8635
8727
  const name = "@azure/msal-browser";
8636
- const version = "5.30.0";
8728
+ const version = "5.31.0";
8637
8729
 
8638
8730
  /*
8639
8731
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8963,7 +9055,6 @@ class SignInResult extends AuthFlowResultBase {
8963
9055
  }
8964
9056
  /**
8965
9057
  * Checks if the result requires authentication method registration.
8966
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8967
9058
  */
8968
9059
  isAuthMethodRegistrationRequired() {
8969
9060
  return (this.state.stateType ===
@@ -8971,7 +9062,6 @@ class SignInResult extends AuthFlowResultBase {
8971
9062
  }
8972
9063
  /**
8973
9064
  * Checks if the result requires MFA.
8974
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8975
9065
  */
8976
9066
  isMfaRequired() {
8977
9067
  return this.state.stateType === MFA_AWAITING_STATE_TYPE;
@@ -9162,6 +9252,11 @@ const AcquireTokenByRefreshToken = "acquireTokenByRefreshToken";
9162
9252
  * Internal API for acquireTokenSilent.
9163
9253
  */
9164
9254
  const AcquireTokenSilentAsync = "acquireTokenSilentAsync";
9255
+ /**
9256
+ * loadDpopNonce API in StandardController (msal-browser).
9257
+ * Stores a resource-server DPoP nonce in controller-owned memory.
9258
+ */
9259
+ const StandardControllerLoadDpopNonce = "standardControllerLoadDpopNonce";
9165
9260
  /**
9166
9261
  * provisionTokenBindingKey API in TokenBindingKeyManager class (msal-browser).
9167
9262
  * Used to provision token-binding key material and return a key identifier.
@@ -10025,7 +10120,9 @@ async function decryptEarResponse(earJwk, earJwe) {
10025
10120
  const iv = base64DecToArr(earJweParts[2]);
10026
10121
  const ciphertext = base64DecToArr(earJweParts[3]);
10027
10122
  const tag = base64DecToArr(earJweParts[4]);
10028
- const tagLengthBits = tag.byteLength * 8;
10123
+ if (tag.byteLength !== 16) {
10124
+ throw new Error("Invalid AES-GCM authentication tag length");
10125
+ }
10029
10126
  // Concat ciphertext and tag
10030
10127
  const encryptedData = new Uint8Array(ciphertext.length + tag.length);
10031
10128
  encryptedData.set(ciphertext);
@@ -10033,7 +10130,7 @@ async function decryptEarResponse(earJwk, earJwe) {
10033
10130
  const decryptedData = await window.crypto.subtle.decrypt({
10034
10131
  name: AES_GCM,
10035
10132
  iv: iv,
10036
- tagLength: tagLengthBits,
10133
+ tagLength: 128,
10037
10134
  additionalData: header,
10038
10135
  }, key, encryptedData);
10039
10136
  return new TextDecoder().decode(decryptedData);
@@ -11097,7 +11194,7 @@ TokenBindingKeyManager.TOKEN_BINDING_KEY_USAGES = [
11097
11194
  * Licensed under the MIT License.
11098
11195
  */
11099
11196
  class BaseInteractionClient {
11100
- constructor(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, correlationId, platformAuthProvider, tokenBindingKeyManager) {
11197
+ constructor(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, correlationId, platformAuthProvider, tokenBindingKeyManager, dpopNonceProvider) {
11101
11198
  this.config = config;
11102
11199
  this.browserStorage = storageImpl;
11103
11200
  this.browserCrypto = browserCrypto;
@@ -11111,6 +11208,7 @@ class BaseInteractionClient {
11111
11208
  this.tokenBindingKeyManager =
11112
11209
  tokenBindingKeyManager ||
11113
11210
  new TokenBindingKeyManager(this.logger, this.performanceClient);
11211
+ this.dpopNonceProvider = dpopNonceProvider ?? storageImpl;
11114
11212
  }
11115
11213
  }
11116
11214
  /**
@@ -11209,6 +11307,7 @@ async function getDiscoveredAuthority(config, correlationId, performanceClient,
11209
11307
  * @returns A promise that resolves when the cache has been cleared.
11210
11308
  */
11211
11309
  async function clearCacheOnLogout(browserStorage, browserCrypto, logger, correlationId, account) {
11310
+ browserStorage.clearDpopNonces();
11212
11311
  if (account) {
11213
11312
  // Clear given account.
11214
11313
  try {
@@ -11490,6 +11589,7 @@ async function initializeBaseRequest(request, config, performanceClient, logger,
11490
11589
  }
11491
11590
  logger.verbose(`1ecmns ${validatedRequest.authenticationScheme}`, correlationId);
11492
11591
  }
11592
+ performanceClient.addFields({ authenticationScheme: validatedRequest.authenticationScheme }, correlationId);
11493
11593
  return validatedRequest;
11494
11594
  }
11495
11595
  async function initializeSilentRequest(request, account, config, performanceClient, logger) {
@@ -11764,6 +11864,7 @@ class StandardInteractionClient extends BaseInteractionClient {
11764
11864
  },
11765
11865
  cryptoInterface: this.browserCrypto,
11766
11866
  tokenBindingKeyManager: this.tokenBindingKeyManager,
11867
+ dpopNonceProvider: this.dpopNonceProvider,
11767
11868
  networkInterface: this.networkClient,
11768
11869
  storageInterface: this.browserStorage,
11769
11870
  serverTelemetryManager: serverTelemetryManager,
@@ -12871,27 +12972,21 @@ class ResponseHandlerV2 {
12871
12972
  * Copyright (c) Microsoft Corporation. All rights reserved.
12872
12973
  * Licensed under the MIT License.
12873
12974
  */
12874
- const API_MARKERS = ["/api/", "/oauth2/"];
12875
- /*
12876
- * Resolves a HAL href against the configured authority. Absolute HTTP(S) URLs
12877
- * pass through; relative URLs retain their API path and query while using the
12878
- * configured tenant path.
12879
- *
12880
- * TODO: Remove tenant-path rewriting once the service consistently returns links that can be
12881
- * resolved directly against the configured authority.
12882
- */
12883
12975
  function resolveHrefV2(base, href) {
12884
12976
  const trimmed = href.trim();
12885
12977
  if (!trimmed) {
12886
12978
  throw new ParsedUrlError(InvalidUrl, "The HAL href cannot be empty");
12887
12979
  }
12888
- const absolute = tryParseAbsolute(trimmed);
12889
- if (absolute) {
12890
- return absolute;
12891
- }
12892
12980
  let resolved;
12893
12981
  try {
12894
- resolved = new URL(trimmed, base.origin);
12982
+ let path = trimmed.startsWith("/") ? trimmed : `/${trimmed}`;
12983
+ const lowerHref = trimmed.toLowerCase();
12984
+ if (lowerHref.startsWith("https://") ||
12985
+ lowerHref.startsWith("http://")) {
12986
+ const absoluteHref = new URL(trimmed);
12987
+ path = `${absoluteHref.pathname}${absoluteHref.search}${absoluteHref.hash}`;
12988
+ }
12989
+ resolved = new URL(`${base.origin}${path}`);
12895
12990
  }
12896
12991
  catch (e) {
12897
12992
  throw new ParsedUrlError(InvalidUrl, `The HAL href "${href}" could not be resolved: ${e}`);
@@ -12899,31 +12994,7 @@ function resolveHrefV2(base, href) {
12899
12994
  if (resolved.protocol !== "http:" && resolved.protocol !== "https:") {
12900
12995
  throw new ParsedUrlError(InvalidUrl, `The HAL href "${href}" must use the HTTP or HTTPS protocol`);
12901
12996
  }
12902
- const tenantPath = base.pathname.endsWith("/")
12903
- ? base.pathname.slice(0, -1)
12904
- : base.pathname;
12905
- resolved.pathname = tenantPath + apiPath(resolved.pathname);
12906
12997
  return resolved;
12907
- }
12908
- function tryParseAbsolute(href) {
12909
- try {
12910
- const url = new URL(href);
12911
- return url.protocol === "http:" || url.protocol === "https:"
12912
- ? url
12913
- : undefined;
12914
- }
12915
- catch {
12916
- return undefined;
12917
- }
12918
- }
12919
- function apiPath(path) {
12920
- for (const marker of API_MARKERS) {
12921
- const index = path.indexOf(marker);
12922
- if (index >= 0) {
12923
- return path.slice(index);
12924
- }
12925
- }
12926
- return path.startsWith("/") ? path : `/${path}`;
12927
12998
  }
12928
12999
 
12929
13000
  /*
@@ -13030,17 +13101,17 @@ class BaseApiClientV2 {
13030
13101
  * Redeems a continuation token for an authorization code and then tokens.
13031
13102
  */
13032
13103
  async completeWithTokens(request, context) {
13033
- const code = await this.authorizeChallengeContinue(request.continuationToken, context);
13104
+ const code = await this.authorizeChallengeContinue(request.continueHref, request.continuationToken, context);
13034
13105
  return this.token(code, context);
13035
13106
  }
13036
13107
  /*
13037
13108
  * Redeems a continuation token for an authorization code.
13038
13109
  */
13039
- async authorizeChallengeContinue(continuationToken, context) {
13110
+ async authorizeChallengeContinue(continueHref, continuationToken, context) {
13040
13111
  const request = {
13041
13112
  continuation_token: continuationToken,
13042
13113
  };
13043
- const parsedResponse = await this.postOAuthForm(AUTHORIZE_CHALLENGE, request, context);
13114
+ const parsedResponse = await this.postOAuthForm(resolveHrefV2(this.baseRequestUrl, continueHref), request, context);
13044
13115
  this.throwOnApiError(parsedResponse);
13045
13116
  const code = parsedResponse.body.code;
13046
13117
  if (!code) {
@@ -13089,7 +13160,9 @@ class BaseApiClientV2 {
13089
13160
  }
13090
13161
  async postOAuthForm(endpoint, data, context) {
13091
13162
  const formData = new URLSearchParams(Object.entries(data));
13092
- const url = buildUrl(this.baseRequestUrl.href, endpoint, this.customAuthApiQueryParams);
13163
+ const url = typeof endpoint === "string"
13164
+ ? buildUrl(this.baseRequestUrl.href, endpoint, this.customAuthApiQueryParams)
13165
+ : endpoint;
13093
13166
  const response = await this.sendRequest(url, HttpMethod.POST, formData, URL_FORM_CONTENT_TYPE, context);
13094
13167
  const parsedResponse = await this.handler.parseResponse(response, context.correlationId);
13095
13168
  this.throwOnWebFallback(parsedResponse);
@@ -13231,6 +13304,7 @@ class CustomAuthApiClientV2 extends BaseApiClientV2 {
13231
13304
  return {
13232
13305
  nextAction: SignUpSubmitAttributesNextActionV2.CONTINUE,
13233
13306
  continuationToken,
13307
+ continueHref: this.handler.requireHref(parsedResponse.body._links?.continue?.href, ResponseStateV2.CONTINUE, correlationId),
13234
13308
  };
13235
13309
  }
13236
13310
  if (parsedResponse.body.action === COLLECT_ATTRIBUTES_RELATION) {
@@ -13308,6 +13382,7 @@ class CustomAuthApiClientV2 extends BaseApiClientV2 {
13308
13382
  return {
13309
13383
  nextAction: ResponseStateV2.CONTINUE,
13310
13384
  continuationToken: this.handler.requireContinuationToken(parsedResponse.continuationToken, parsedResponse.correlationId),
13385
+ continueHref: this.handler.requireHref(parsedResponse.body._links?.continue?.href, ResponseStateV2.CONTINUE, parsedResponse.correlationId),
13311
13386
  };
13312
13387
  }
13313
13388
  /*
@@ -13355,6 +13430,7 @@ class CustomAuthApiClientV2 extends BaseApiClientV2 {
13355
13430
  return {
13356
13431
  nextAction,
13357
13432
  continuationToken,
13433
+ continueHref: this.handler.requireHref(parsedResponse.body._links?.continue?.href, ResponseStateV2.CONTINUE, correlationId),
13358
13434
  };
13359
13435
  }
13360
13436
  const message = `Password reset poll next action '${nextAction}' is not supported.`;
@@ -13378,6 +13454,7 @@ class CustomAuthApiClientV2 extends BaseApiClientV2 {
13378
13454
  return {
13379
13455
  nextAction: ResponseStateV2.CONTINUE,
13380
13456
  continuationToken,
13457
+ continueHref: this.handler.requireHref(parsedResponse.body._links?.continue?.href, ResponseStateV2.CONTINUE, correlationId),
13381
13458
  };
13382
13459
  }
13383
13460
  if (parsedResponse.body.action === COLLECT_ATTRIBUTES_RELATION) {
@@ -13486,11 +13563,16 @@ class CustomAuthApiClientV2 extends BaseApiClientV2 {
13486
13563
  }
13487
13564
  resolveMethods(methods, correlationId) {
13488
13565
  const resolved = [];
13489
- methods.forEach((method, index) => {
13566
+ methods.forEach((method) => {
13490
13567
  const href = method._links?.challenge?.href;
13491
13568
  if (href) {
13569
+ if (typeof method.id !== "string" || !method.id.trim()) {
13570
+ const message = "Invalid HAL response: authentication method ID is missing or malformed";
13571
+ this.logger?.error(message, correlationId);
13572
+ throw new CustomAuthApiError(INVALID_HAL_RESPONSE, message, correlationId);
13573
+ }
13492
13574
  resolved.push({
13493
- id: method.id ?? method.type ?? `method-${index}`,
13575
+ id: method.id,
13494
13576
  type: method.type,
13495
13577
  hint: method.hint,
13496
13578
  challengeHref: href,
@@ -13570,6 +13652,7 @@ const FLOW_METHOD_SELECTION_REQUIRED_V2 = "FlowMethodSelectionRequiredResultV2";
13570
13652
  const FLOW_CODE_REQUIRED_V2 = "FlowCodeRequiredResultV2";
13571
13653
  const FLOW_EXISTING_ACCOUNT_CODE_REQUIRED_V2 = "FlowExistingAccountCodeRequiredResultV2";
13572
13654
  const FLOW_EXISTING_ACCOUNT_PASSWORD_REQUIRED_V2 = "FlowExistingAccountPasswordRequiredResultV2";
13655
+ const FLOW_EXISTING_ACCOUNT_START_V2 = "FlowExistingAccountStartResultV2";
13573
13656
  const FLOW_PASSWORD_REQUIRED_V2 = "FlowPasswordRequiredResultV2";
13574
13657
  const FLOW_SIGN_UP_PASSWORD_REQUIRED_V2 = "FlowSignUpPasswordRequiredResultV2";
13575
13658
  const FLOW_MFA_REQUIRED_V2 = "FlowMFARequiredResultV2";
@@ -13591,6 +13674,9 @@ function createFlowExistingAccountCodeRequiredResultV2(input) {
13591
13674
  function createFlowExistingAccountPasswordRequiredResultV2(input) {
13592
13675
  return { type: FLOW_EXISTING_ACCOUNT_PASSWORD_REQUIRED_V2, ...input };
13593
13676
  }
13677
+ function createFlowExistingAccountStartResultV2(input) {
13678
+ return { type: FLOW_EXISTING_ACCOUNT_START_V2, ...input };
13679
+ }
13594
13680
  function createFlowPasswordRequiredResultV2(input) {
13595
13681
  return { type: FLOW_PASSWORD_REQUIRED_V2, ...input };
13596
13682
  }
@@ -13625,7 +13711,6 @@ function createFlowAuthMethodVerificationRequiredResultV2(input) {
13625
13711
  */
13626
13712
  /**
13627
13713
  * The native auth V2 flow that a result or error originates from.
13628
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
13629
13714
  */
13630
13715
  const CustomAuthFlowScenarioV2 = {
13631
13716
  SignIn: "signIn",
@@ -13793,17 +13878,25 @@ class FlowInteractionClientV2 extends InteractionClientBaseV2 {
13793
13878
  codeLength: startResult.codeLength,
13794
13879
  });
13795
13880
  }
13796
- const continuationState = {
13797
- continuationToken: startResult.continuationToken,
13798
- scenario: CustomAuthFlowScenarioV2.SignUp,
13799
- scopes,
13800
- links: {},
13801
- signUp: {
13802
- purpose: "existingAccount",
13881
+ return createFlowExistingAccountStartResultV2({
13882
+ correlationId,
13883
+ continuationState: {
13884
+ continuationToken: startResult.continuationToken,
13885
+ scenario: CustomAuthFlowScenarioV2.SignIn,
13886
+ scopes,
13887
+ links: {},
13888
+ signUp: {
13889
+ purpose: "existingAccount",
13890
+ },
13803
13891
  },
13804
- };
13805
- this.ensureAuthenticationFactor(startResult.authenticationFactor, AuthenticationFactorV2.SINGLE_FACTOR, "existing-account sign-up", correlationId);
13806
- const supportedMethods = startResult.methods
13892
+ authenticationFactor: startResult.authenticationFactor,
13893
+ methods: startResult.methods,
13894
+ });
13895
+ }
13896
+ async challengeExistingAccount(parameters) {
13897
+ const { continuationState, correlationId } = parameters;
13898
+ this.ensureAuthenticationFactor(parameters.authenticationFactor, AuthenticationFactorV2.SINGLE_FACTOR, "existing-account sign-up", correlationId);
13899
+ const supportedMethods = parameters.methods
13807
13900
  .map((method) => ({
13808
13901
  id: method.id,
13809
13902
  type: method.type ?? "",
@@ -13969,11 +14062,11 @@ class FlowInteractionClientV2 extends InteractionClientBaseV2 {
13969
14062
  continuationState: {
13970
14063
  ...continuationState,
13971
14064
  continuationToken: result.continuationToken,
13972
- links: {},
14065
+ links: { continue: result.continueHref },
13973
14066
  },
13974
14067
  });
13975
14068
  }
13976
- return this.completeSignInAfterVerification(continuationState, result.continuationToken, correlationId);
14069
+ return this.completeSignInAfterVerification(continuationState, result.continuationToken, result.continueHref, correlationId);
13977
14070
  }
13978
14071
  /*
13979
14072
  * Requests a replacement authentication-method activation challenge.
@@ -14011,7 +14104,7 @@ class FlowInteractionClientV2 extends InteractionClientBaseV2 {
14011
14104
  continuationState: {
14012
14105
  ...continuationState,
14013
14106
  continuationToken: verifyResult.continuationToken,
14014
- links: {},
14107
+ links: { continue: verifyResult.continueHref },
14015
14108
  },
14016
14109
  });
14017
14110
  }
@@ -14033,10 +14126,6 @@ class FlowInteractionClientV2 extends InteractionClientBaseV2 {
14033
14126
  if (continuationState.scenario === CustomAuthFlowScenarioV2.SignIn) {
14034
14127
  return this.handleSignInVerification(continuationState, verifyResult, correlationId);
14035
14128
  }
14036
- if (continuationState.scenario === CustomAuthFlowScenarioV2.SignUp &&
14037
- continuationState.signUp?.purpose === "existingAccount") {
14038
- return this.handleSignInVerification(continuationState, verifyResult, correlationId);
14039
- }
14040
14129
  if (continuationState.scenario === CustomAuthFlowScenarioV2.SignUp) {
14041
14130
  return this.handleSignUpVerification(continuationState, verifyResult, correlationId);
14042
14131
  }
@@ -14064,9 +14153,9 @@ class FlowInteractionClientV2 extends InteractionClientBaseV2 {
14064
14153
  codeLength: challengeResult.codeLength,
14065
14154
  });
14066
14155
  }
14067
- async submitSignUpAttributes(parameters) {
14156
+ async submitSignUpAttributes(parameters, step = "submitAttributes") {
14068
14157
  const { continuationState, correlationId, attributes: submittedAttributes, } = parameters;
14069
- const context = this.createRequestContext(this.resolveStepApiId(continuationState.scenario, "submitAttributes", correlationId), correlationId);
14158
+ const context = this.createRequestContext(this.resolveStepApiId(continuationState.scenario, step, correlationId), correlationId);
14070
14159
  this.logger.verbose("0js2ub", correlationId);
14071
14160
  const submittedAttributeIds = Object.keys(submittedAttributes);
14072
14161
  const submitResult = await this.apiClient.submitSignUpAttributes(this.requireLink(correlationId, continuationState.links.submitAttributes), {
@@ -14163,7 +14252,7 @@ class FlowInteractionClientV2 extends InteractionClientBaseV2 {
14163
14252
  continuationToken: pollResult.continuationToken,
14164
14253
  scenario: continuationState.scenario,
14165
14254
  scopes: continuationState.scopes,
14166
- links: {},
14255
+ links: { continue: pollResult.continueHref },
14167
14256
  },
14168
14257
  });
14169
14258
  }
@@ -14189,6 +14278,7 @@ class FlowInteractionClientV2 extends InteractionClientBaseV2 {
14189
14278
  this.logger.verbose("09mk3f", correlationId);
14190
14279
  const tokenResponse = await this.apiClient.completeWithTokens({
14191
14280
  continuationToken: continuationState.continuationToken,
14281
+ continueHref: this.requireLink(correlationId, continuationState.links.continue),
14192
14282
  }, context);
14193
14283
  const authenticationResult = await this.handleTokenResponse(tokenResponse, continuationState.scopes, correlationId, apiId);
14194
14284
  this.logger.verbose("15nu4j", correlationId);
@@ -14227,7 +14317,7 @@ class FlowInteractionClientV2 extends InteractionClientBaseV2 {
14227
14317
  });
14228
14318
  }
14229
14319
  if (verifyResult.nextAction === ResponseStateV2.CONTINUE) {
14230
- return this.completeSignInAfterVerification(continuationState, verifyResult.continuationToken, correlationId);
14320
+ return this.completeSignInAfterVerification(continuationState, verifyResult.continuationToken, verifyResult.continueHref, correlationId);
14231
14321
  }
14232
14322
  const message = `Verification next action '${verifyResult.nextAction}' is not supported for authentication.`;
14233
14323
  this.logger.error(message, correlationId);
@@ -14283,7 +14373,7 @@ class FlowInteractionClientV2 extends InteractionClientBaseV2 {
14283
14373
  continuationState: {
14284
14374
  ...continuationState,
14285
14375
  continuationToken: verifyResult.continuationToken,
14286
- links: {},
14376
+ links: { continue: verifyResult.continueHref },
14287
14377
  },
14288
14378
  });
14289
14379
  }
@@ -14422,7 +14512,7 @@ class FlowInteractionClientV2 extends InteractionClientBaseV2 {
14422
14512
  continuationState: {
14423
14513
  ...continuationState,
14424
14514
  continuationToken: result.continuationToken,
14425
- links: {},
14515
+ links: { continue: result.continueHref },
14426
14516
  },
14427
14517
  });
14428
14518
  }
@@ -14484,13 +14574,13 @@ class FlowInteractionClientV2 extends InteractionClientBaseV2 {
14484
14574
  password: parameters.password,
14485
14575
  }, context);
14486
14576
  }
14487
- completeSignInAfterVerification(continuationState, continuationToken, correlationId) {
14577
+ completeSignInAfterVerification(continuationState, continuationToken, continueHref, correlationId) {
14488
14578
  return this.signInWithContinuation({
14489
14579
  correlationId,
14490
14580
  continuationState: {
14491
14581
  ...continuationState,
14492
14582
  continuationToken,
14493
- links: {},
14583
+ links: { continue: continueHref },
14494
14584
  },
14495
14585
  });
14496
14586
  }
@@ -14555,7 +14645,6 @@ class FlowInteractionClientV2 extends InteractionClientBaseV2 {
14555
14645
  */
14556
14646
  /**
14557
14647
  * Terminal state indicating the operation failed.
14558
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
14559
14648
  */
14560
14649
  class FailedStateV2 extends AuthFlowStateBase {
14561
14650
  constructor() {
@@ -14585,7 +14674,6 @@ const USER_NOT_FOUND = "userNotFound";
14585
14674
  */
14586
14675
  /**
14587
14676
  * Error returned by a native authentication V2 operation.
14588
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
14589
14677
  */
14590
14678
  class AuthFlowErrorV2 {
14591
14679
  constructor(errorData, scenario = CustomAuthFlowScenarioV2.Unknown, errorContext = "default") {
@@ -14738,7 +14826,6 @@ class AuthFlowErrorV2 {
14738
14826
  */
14739
14827
  /**
14740
14828
  * Result of a native auth V2 operation.
14741
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
14742
14829
  */
14743
14830
  class CustomAuthResultV2 {
14744
14831
  constructor(state, data, scenario = CustomAuthFlowScenarioV2.Unknown) {
@@ -14813,7 +14900,6 @@ class CustomAuthResultV2 {
14813
14900
  */
14814
14901
  /**
14815
14902
  * Terminal state indicating the operation completed successfully.
14816
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
14817
14903
  */
14818
14904
  class CompletedStateV2 extends AuthFlowStateBase {
14819
14905
  constructor() {
@@ -14828,7 +14914,6 @@ class CompletedStateV2 extends AuthFlowStateBase {
14828
14914
  */
14829
14915
  /**
14830
14916
  * State returned when a completed V2 flow can sign the user in.
14831
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
14832
14917
  */
14833
14918
  class SignInContinuationStateV2 extends AuthFlowActionRequiredStateBase {
14834
14919
  constructor() {
@@ -14897,7 +14982,6 @@ class ChallengeVerificationStateBaseV2 extends AuthFlowActionRequiredStateBase {
14897
14982
  /**
14898
14983
  * State returned when a newly registered authentication method must be
14899
14984
  * activated with the challenge sent by the service.
14900
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
14901
14985
  */
14902
14986
  class AuthMethodVerificationRequiredStateV2 extends AuthFlowActionRequiredStateBase {
14903
14987
  constructor(stateParameters) {
@@ -14984,7 +15068,6 @@ class AuthMethodVerificationRequiredStateV2 extends AuthFlowActionRequiredStateB
14984
15068
  */
14985
15069
  /**
14986
15070
  * State returned when an authentication method must be registered.
14987
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
14988
15071
  */
14989
15072
  class AuthMethodRegistrationRequiredStateV2 extends AuthFlowActionRequiredStateBase {
14990
15073
  constructor(stateParameters) {
@@ -15042,7 +15125,6 @@ class AuthMethodRegistrationRequiredStateV2 extends AuthFlowActionRequiredStateB
15042
15125
  */
15043
15126
  /**
15044
15127
  * State returned when first-factor authentication requires a one-time code.
15045
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
15046
15128
  */
15047
15129
  class CodeRequiredStateV2 extends ChallengeVerificationStateBaseV2 {
15048
15130
  constructor() {
@@ -15163,7 +15245,6 @@ class CodeRequiredStateV2 extends ChallengeVerificationStateBaseV2 {
15163
15245
  /**
15164
15246
  * State returned when authentication requires verification of an email or SMS MFA
15165
15247
  * challenge. It allows the app to submit the challenge or request a replacement.
15166
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
15167
15248
  */
15168
15249
  class MFAVerificationRequiredStateV2 extends ChallengeVerificationStateBaseV2 {
15169
15250
  constructor() {
@@ -15387,7 +15468,6 @@ class ExistingAccountPasswordRequiredStateV2 extends AuthFlowActionRequiredState
15387
15468
  */
15388
15469
  /**
15389
15470
  * State returned when the user must select an authentication method.
15390
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
15391
15471
  */
15392
15472
  class AuthMethodSelectionRequiredStateV2 extends AuthFlowActionRequiredStateBase {
15393
15473
  constructor(stateParameters) {
@@ -15414,9 +15494,7 @@ class AuthMethodSelectionRequiredStateV2 extends AuthFlowActionRequiredStateBase
15414
15494
  cacheClient: this.stateParameters.cacheClient,
15415
15495
  signInStateTransitionHandler,
15416
15496
  };
15417
- const isExistingAccountSignUp = continuationState.scenario ===
15418
- CustomAuthFlowScenarioV2.SignUp &&
15419
- continuationState.signUp?.purpose === "existingAccount";
15497
+ const isExistingAccountSignUp = continuationState.signUp?.purpose === "existingAccount";
15420
15498
  const channel = result.type === FLOW_CODE_REQUIRED_V2
15421
15499
  ? result.channel?.toLowerCase()
15422
15500
  : undefined;
@@ -15523,7 +15601,6 @@ class AuthMethodSelectionRequiredStateV2 extends AuthFlowActionRequiredStateBase
15523
15601
  */
15524
15602
  /**
15525
15603
  * State returned when sign-in or sign-up requires a password.
15526
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
15527
15604
  */
15528
15605
  class PasswordRequiredStateV2 extends AuthFlowActionRequiredStateBase {
15529
15606
  constructor(stateParameters) {
@@ -15568,7 +15645,7 @@ class PasswordRequiredStateV2 extends AuthFlowActionRequiredStateBase {
15568
15645
  correlationId,
15569
15646
  continuationState,
15570
15647
  attributes: { password },
15571
- });
15648
+ }, "submitPassword");
15572
15649
  return signUpStateTransitionHandler.handleAttributeSubmission(result, { ...this.stateParameters, signUpStateTransitionHandler }, "password");
15573
15650
  }
15574
15651
  async submitSignInPassword(password) {
@@ -15644,7 +15721,6 @@ class SignInStateTransitionHandlerV2 {
15644
15721
  * State returned when the user must supply a new password. Submission can
15645
15722
  * require method registration or MFA, and the flow is not complete until any
15646
15723
  * subsequent required actions finish.
15647
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
15648
15724
  */
15649
15725
  class NewPasswordRequiredStateV2 extends AuthFlowActionRequiredStateBase {
15650
15726
  constructor() {
@@ -15737,7 +15813,6 @@ class ResetPasswordStateTransitionHandlerV2 {
15737
15813
  */
15738
15814
  /**
15739
15815
  * State returned when sign-up requires profile or custom attributes.
15740
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
15741
15816
  */
15742
15817
  class AttributesRequiredStateV2 extends AuthFlowActionRequiredStateBase {
15743
15818
  constructor(stateParameters) {
@@ -15835,7 +15910,7 @@ class CustomAuthAuthority extends Authority {
15835
15910
  * @param customAuthProxyDomain - The custom auth proxy domain.
15836
15911
  */
15837
15912
  constructor(authority, config, networkInterface, cacheManager, logger, performanceClient, customAuthProxyDomain) {
15838
- const ciamAuthorityUrl = CustomAuthAuthority.transformCIAMAuthority(authority, "");
15913
+ const ciamAuthorityUrl = CustomAuthAuthority.transformCIAMAuthority(formatAuthorityUri(authority), "");
15839
15914
  const authorityOptions = {
15840
15915
  protocolMode: config.system.protocolMode,
15841
15916
  OIDCOptions: config.auth.OIDCOptions,
@@ -17140,6 +17215,7 @@ class CustomAuthSilentCacheClient extends CustomAuthInteractionClientBase {
17140
17215
  },
17141
17216
  cryptoInterface: this.browserCrypto,
17142
17217
  tokenBindingKeyManager: this.tokenBindingKeyManager,
17218
+ dpopNonceProvider: this.browserStorage,
17143
17219
  networkInterface: this.networkClient,
17144
17220
  storageInterface: this.browserStorage,
17145
17221
  serverTelemetryManager: serverTelemetryManager,
@@ -17237,7 +17313,6 @@ class SignInSubmitCodeResult extends AuthFlowResultBase {
17237
17313
  }
17238
17314
  /**
17239
17315
  * Checks if the result requires authentication method registration.
17240
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17241
17316
  */
17242
17317
  isAuthMethodRegistrationRequired() {
17243
17318
  return (this.state.stateType ===
@@ -17245,7 +17320,6 @@ class SignInSubmitCodeResult extends AuthFlowResultBase {
17245
17320
  }
17246
17321
  /**
17247
17322
  * Checks if the result requires MFA.
17248
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17249
17323
  */
17250
17324
  isMfaRequired() {
17251
17325
  return this.state.stateType === MFA_AWAITING_STATE_TYPE;
@@ -17327,7 +17401,6 @@ class AuthMethodRegistrationChallengeMethodResult extends AuthFlowResultBase {
17327
17401
  /**
17328
17402
  * Checks if the result indicates that verification is required.
17329
17403
  * @returns true if verification is required, false otherwise.
17330
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17331
17404
  */
17332
17405
  isVerificationRequired() {
17333
17406
  return (this.state.stateType ===
@@ -17336,7 +17409,6 @@ class AuthMethodRegistrationChallengeMethodResult extends AuthFlowResultBase {
17336
17409
  /**
17337
17410
  * Checks if the result indicates that registration is completed (fast-pass scenario).
17338
17411
  * @returns true if registration is completed, false otherwise.
17339
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17340
17412
  */
17341
17413
  isCompleted() {
17342
17414
  return (this.state.stateType ===
@@ -17345,7 +17417,6 @@ class AuthMethodRegistrationChallengeMethodResult extends AuthFlowResultBase {
17345
17417
  /**
17346
17418
  * Checks if the result is in a failed state.
17347
17419
  * @returns true if the result is failed, false otherwise.
17348
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17349
17420
  */
17350
17421
  isFailed() {
17351
17422
  return (this.state.stateType === AUTH_METHOD_REGISTRATION_FAILED_STATE_TYPE);
@@ -17373,7 +17444,6 @@ class AuthMethodRegistrationSubmitChallengeResult extends AuthFlowResultBase {
17373
17444
  /**
17374
17445
  * Checks if the result indicates that registration is completed.
17375
17446
  * @returns true if registration is completed, false otherwise.
17376
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17377
17447
  */
17378
17448
  isCompleted() {
17379
17449
  return (this.state.stateType ===
@@ -17382,7 +17452,6 @@ class AuthMethodRegistrationSubmitChallengeResult extends AuthFlowResultBase {
17382
17452
  /**
17383
17453
  * Checks if the result is in a failed state.
17384
17454
  * @returns true if the result is failed, false otherwise.
17385
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17386
17455
  */
17387
17456
  isFailed() {
17388
17457
  return (this.state.stateType === AUTH_METHOD_REGISTRATION_FAILED_STATE_TYPE);
@@ -17483,7 +17552,6 @@ class AuthMethodRegistrationRequiredState extends AuthMethodRegistrationState {
17483
17552
  /**
17484
17553
  * Gets the available authentication methods for registration.
17485
17554
  * @returns Array of available authentication methods.
17486
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17487
17555
  */
17488
17556
  getAuthMethods() {
17489
17557
  return this.stateParameters.authMethods;
@@ -17492,7 +17560,6 @@ class AuthMethodRegistrationRequiredState extends AuthMethodRegistrationState {
17492
17560
  * Challenges an authentication method for registration.
17493
17561
  * @param authMethodDetails The authentication method details to challenge.
17494
17562
  * @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
17495
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17496
17563
  */
17497
17564
  async challengeAuthMethod(authMethodDetails) {
17498
17565
  return this.challengeAuthMethodInternal(authMethodDetails);
@@ -17512,7 +17579,6 @@ class AuthMethodVerificationRequiredState extends AuthMethodRegistrationState {
17512
17579
  /**
17513
17580
  * Gets the length of the expected verification code.
17514
17581
  * @returns The code length.
17515
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17516
17582
  */
17517
17583
  getCodeLength() {
17518
17584
  return this.stateParameters.codeLength;
@@ -17520,7 +17586,6 @@ class AuthMethodVerificationRequiredState extends AuthMethodRegistrationState {
17520
17586
  /**
17521
17587
  * Gets the channel through which the challenge was sent.
17522
17588
  * @returns The challenge channel (e.g., "email").
17523
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17524
17589
  */
17525
17590
  getChannel() {
17526
17591
  return this.stateParameters.challengeChannel;
@@ -17528,7 +17593,6 @@ class AuthMethodVerificationRequiredState extends AuthMethodRegistrationState {
17528
17593
  /**
17529
17594
  * Gets the target label indicating where the challenge was sent.
17530
17595
  * @returns The challenge target label (e.g., masked email address).
17531
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17532
17596
  */
17533
17597
  getSentTo() {
17534
17598
  return this.stateParameters.challengeTargetLabel;
@@ -17537,7 +17601,6 @@ class AuthMethodVerificationRequiredState extends AuthMethodRegistrationState {
17537
17601
  * Submits the verification challenge to complete the authentication method registration.
17538
17602
  * @param code The verification code entered by the user.
17539
17603
  * @returns Promise that resolves to AuthMethodRegistrationSubmitChallengeResult.
17540
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17541
17604
  */
17542
17605
  async submitChallenge(code) {
17543
17606
  try {
@@ -17566,7 +17629,6 @@ class AuthMethodVerificationRequiredState extends AuthMethodRegistrationState {
17566
17629
  * Challenges a different authentication method for registration.
17567
17630
  * @param authMethodDetails The authentication method details to challenge.
17568
17631
  * @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
17569
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17570
17632
  */
17571
17633
  async challengeAuthMethod(authMethodDetails) {
17572
17634
  return this.challengeAuthMethodInternal(authMethodDetails);
@@ -17647,7 +17709,6 @@ class MfaSubmitChallengeResult extends AuthFlowResultBase {
17647
17709
  /**
17648
17710
  * Checks if the MFA flow is completed successfully.
17649
17711
  * @returns true if completed, false otherwise.
17650
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17651
17712
  */
17652
17713
  isCompleted() {
17653
17714
  return this.state.stateType === MFA_COMPLETED_STATE_TYPE;
@@ -17655,7 +17716,6 @@ class MfaSubmitChallengeResult extends AuthFlowResultBase {
17655
17716
  /**
17656
17717
  * Checks if the result is in a failed state.
17657
17718
  * @returns true if the result is failed, false otherwise.
17658
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17659
17719
  */
17660
17720
  isFailed() {
17661
17721
  return this.state.stateType === MFA_FAILED_STATE_TYPE;
@@ -17684,7 +17744,6 @@ class MfaRequestChallengeResult extends AuthFlowResultBase {
17684
17744
  /**
17685
17745
  * Checks if the result indicates that verification is required.
17686
17746
  * @returns true if verification is required, false otherwise.
17687
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17688
17747
  */
17689
17748
  isVerificationRequired() {
17690
17749
  return this.state.stateType === MFA_VERIFICATION_REQUIRED_STATE_TYPE;
@@ -17692,7 +17751,6 @@ class MfaRequestChallengeResult extends AuthFlowResultBase {
17692
17751
  /**
17693
17752
  * Checks if the result is in a failed state.
17694
17753
  * @returns true if the result is failed, false otherwise.
17695
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17696
17754
  */
17697
17755
  isFailed() {
17698
17756
  return this.state.stateType === MFA_FAILED_STATE_TYPE;
@@ -17725,7 +17783,6 @@ class MfaState extends AuthFlowActionRequiredStateBase {
17725
17783
  * Requests an MFA challenge for a specific authentication method.
17726
17784
  * @param authMethodId The authentication method ID to use for the challenge.
17727
17785
  * @returns Promise that resolves to MfaRequestChallengeResult.
17728
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17729
17786
  */
17730
17787
  async requestChallenge(authMethodId) {
17731
17788
  try {
@@ -17774,7 +17831,6 @@ class MfaAwaitingState extends MfaState {
17774
17831
  /**
17775
17832
  * Gets the available authentication methods for MFA.
17776
17833
  * @returns Array of available authentication methods.
17777
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17778
17834
  */
17779
17835
  getAuthMethods() {
17780
17836
  return this.stateParameters.authMethods;
@@ -17795,7 +17851,6 @@ class MfaVerificationRequiredState extends MfaState {
17795
17851
  /**
17796
17852
  * Gets the length of the code that the user needs to provide.
17797
17853
  * @returns The expected code length.
17798
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17799
17854
  */
17800
17855
  getCodeLength() {
17801
17856
  return this.stateParameters.codeLength;
@@ -17803,7 +17858,6 @@ class MfaVerificationRequiredState extends MfaState {
17803
17858
  /**
17804
17859
  * Gets the channel through which the challenge was sent.
17805
17860
  * @returns The challenge channel (e.g., "email").
17806
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17807
17861
  */
17808
17862
  getChannel() {
17809
17863
  return this.stateParameters.challengeChannel;
@@ -17811,7 +17865,6 @@ class MfaVerificationRequiredState extends MfaState {
17811
17865
  /**
17812
17866
  * Gets the target label indicating where the challenge was sent.
17813
17867
  * @returns The challenge target label (e.g., masked email address).
17814
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17815
17868
  */
17816
17869
  getSentTo() {
17817
17870
  return this.stateParameters.challengeTargetLabel;
@@ -17820,7 +17873,6 @@ class MfaVerificationRequiredState extends MfaState {
17820
17873
  * Submits the MFA challenge (e.g., OTP code) to complete the authentication.
17821
17874
  * @param challenge The challenge code (e.g., OTP code) entered by the user.
17822
17875
  * @returns Promise that resolves to MfaSubmitChallengeResult.
17823
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17824
17876
  */
17825
17877
  async submitChallenge(challenge) {
17826
17878
  try {
@@ -18067,7 +18119,6 @@ class SignInSubmitPasswordResult extends AuthFlowResultBase {
18067
18119
  }
18068
18120
  /**
18069
18121
  * Checks if the result requires authentication method registration.
18070
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
18071
18122
  */
18072
18123
  isAuthMethodRegistrationRequired() {
18073
18124
  return (this.state.stateType ===
@@ -18075,7 +18126,6 @@ class SignInSubmitPasswordResult extends AuthFlowResultBase {
18075
18126
  }
18076
18127
  /**
18077
18128
  * Checks if the result requires MFA.
18078
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
18079
18129
  */
18080
18130
  isMfaRequired() {
18081
18131
  return this.state.stateType === MFA_AWAITING_STATE_TYPE;
@@ -19651,6 +19701,7 @@ function removeElementFromArray(array, element) {
19651
19701
  * Copyright (c) Microsoft Corporation. All rights reserved.
19652
19702
  * Licensed under the MIT License.
19653
19703
  */
19704
+ const MAX_RESOURCE_SERVER_NONCES = 50;
19654
19705
  /**
19655
19706
  * Reason an old-schema cache entry was removed during migration.
19656
19707
  */
@@ -19666,6 +19717,7 @@ const MigrationRemovalReason = {
19666
19717
  class BrowserCacheManager extends CacheManager {
19667
19718
  constructor(clientId, cacheConfig, cryptoImpl, logger, performanceClient, eventHandler, staticAuthorityOptions, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER) {
19668
19719
  super(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions, tokenBindingKeyManager);
19720
+ this.dpopNonces = new Map();
19669
19721
  this.cacheConfig = cacheConfig;
19670
19722
  this.logger = logger;
19671
19723
  this.internalStorage = new MemoryStorage();
@@ -20686,6 +20738,40 @@ class BrowserCacheManager extends CacheManager {
20686
20738
  const version = this.internalStorage.getItem(InMemoryCacheKeys.WRAPPER_VER) || "";
20687
20739
  return [sku, version];
20688
20740
  }
20741
+ /**
20742
+ * Stores a validated resource-server DPoP nonce in PCA-local memory.
20743
+ * @internal
20744
+ */
20745
+ setDpopNonce(resourceRequestUri, dpopNonce, correlationId = "") {
20746
+ const resourceServer = canonicalizeDpopResourceServer(resourceRequestUri, correlationId);
20747
+ const validatedNonce = validateDpopNonce(dpopNonce, correlationId);
20748
+ // Reinsert replacements so eviction remains oldest-write ordered.
20749
+ this.dpopNonces.delete(resourceServer);
20750
+ this.dpopNonces.set(resourceServer, validatedNonce);
20751
+ if (this.dpopNonces.size > MAX_RESOURCE_SERVER_NONCES) {
20752
+ const oldestResourceServer = this.dpopNonces.keys().next().value;
20753
+ if (oldestResourceServer) {
20754
+ this.dpopNonces.delete(oldestResourceServer);
20755
+ }
20756
+ this.performanceClient.incrementFields({ "ext.dpopNonceCacheEvictionCount": 1 }, correlationId);
20757
+ }
20758
+ }
20759
+ /**
20760
+ * Reads the current resource-server DPoP nonce from PCA-local memory.
20761
+ * This optional structural capability is consumed by msal-common without
20762
+ * adding methods to the CacheManager abstraction.
20763
+ * @internal
20764
+ */
20765
+ getDpopNonce(resourceRequestUri, correlationId = "") {
20766
+ return this.dpopNonces.get(canonicalizeDpopResourceServer(resourceRequestUri, correlationId));
20767
+ }
20768
+ /**
20769
+ * Clears all PCA-local DPoP nonce state.
20770
+ * @internal
20771
+ */
20772
+ clearDpopNonces() {
20773
+ this.dpopNonces.clear();
20774
+ }
20689
20775
  /**
20690
20776
  *
20691
20777
  * @param key
@@ -20830,6 +20916,7 @@ class BrowserCacheManager extends CacheManager {
20830
20916
  }
20831
20917
  });
20832
20918
  this.internalStorage.clear();
20919
+ this.dpopNonces.clear();
20833
20920
  }
20834
20921
  /**
20835
20922
  * Prepend msal.<client-id> to each key
@@ -21933,7 +22020,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
21933
22020
  this.accountId = accountId;
21934
22021
  this.platformAuthProvider = provider;
21935
22022
  this.nativeStorageManager = nativeStorageImpl;
21936
- this.silentCacheClient = new SilentCacheClient(config, this.nativeStorageManager, browserCrypto, logger, eventHandler, navigationClient, performanceClient, correlationId, provider, this.tokenBindingKeyManager);
22023
+ this.silentCacheClient = new SilentCacheClient(config, this.nativeStorageManager, browserCrypto, logger, eventHandler, navigationClient, performanceClient, correlationId, provider, this.tokenBindingKeyManager, browserStorage);
21937
22024
  const extensionName = this.platformAuthProvider.getExtensionName();
21938
22025
  this.skus = ServerTelemetryManager.makeExtraSkuString({
21939
22026
  libraryName: BrowserConstants.MSAL_SKU,
@@ -22318,6 +22405,11 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
22318
22405
  const shouldRemoveGeneratedDpopKey = isL3DpopResponse ||
22319
22406
  (this.isDpopBrokerRequest(request) &&
22320
22407
  storeInCache?.accessToken === false);
22408
+ if (dpopBrokerOutcome === "L1" &&
22409
+ !shouldRemoveGeneratedDpopKey &&
22410
+ request.keyId) {
22411
+ ResponseHandler.setDpopKeyId(result, request.keyId);
22412
+ }
22321
22413
  if (shouldRemoveGeneratedDpopKey) {
22322
22414
  await this.resetGeneratedDpopRequestKey(request);
22323
22415
  }
@@ -22586,7 +22678,12 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
22586
22678
  const configClaims = request.skipBrokerClaims && !!request.embeddedClientId
22587
22679
  ? undefined
22588
22680
  : this.config.auth.clientCapabilities;
22589
- const { scopes, claims, dpopNonce } = request;
22681
+ const { scopes, claims } = request;
22682
+ const dpopNonce = request.authenticationScheme ===
22683
+ AuthenticationScheme.DPOP &&
22684
+ request.resourceRequestUri
22685
+ ? this.browserStorage.getDpopNonce(request.resourceRequestUri, this.correlationId)
22686
+ : undefined;
22590
22687
  const scopeSet = new ScopeSet([...(scopes || []), ...OIDC_DEFAULT_SCOPES], this.correlationId);
22591
22688
  const mergedClaims = buildMergedClaims(claims, configClaims?.length ? configClaims : undefined);
22592
22689
  const hasAttributeTokens = !!request.attributeTokens?.length;
@@ -22896,11 +22993,14 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
22896
22993
  return brokerProof;
22897
22994
  }
22898
22995
  const dpopProofGenerator = new DpopProofGenerator(this.browserCrypto, this.tokenBindingKeyManager);
22996
+ const currentNonce = request.resourceRequestUri
22997
+ ? this.browserStorage.getDpopNonce(request.resourceRequestUri, this.correlationId)
22998
+ : undefined;
22899
22999
  return dpopProofGenerator.generateResourceProof({
22900
23000
  htu: request.resourceRequestUri,
22901
23001
  htm: request.resourceRequestMethod,
22902
23002
  accessToken: response.access_token,
22903
- nonce: request.extraParametersNoCache?.pop_nonce,
23003
+ nonce: currentNonce ?? request.extraParametersNoCache?.pop_nonce,
22904
23004
  }, request.keyId, this.correlationId);
22905
23005
  }
22906
23006
  /**
@@ -23388,6 +23488,7 @@ async function handleResponseCode(request, response, codeVerifier, apiId, config
23388
23488
  // Instrument clientdata telemetry fields from the authorize response
23389
23489
  instrumentClientData(response, request.correlationId, performanceClient);
23390
23490
  if (response.accountId) {
23491
+ validateAuthorizationResponse(response, request.state, request.correlationId);
23391
23492
  return invokeAsync(handleResponsePlatformBroker, HandleResponsePlatformBroker, logger, performanceClient, request.correlationId)(request, response.accountId, apiId, config, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider, tokenBindingKeyManager);
23392
23493
  }
23393
23494
  const authCodeRequest = {
@@ -24245,7 +24346,6 @@ class PlatformAuthExtensionHandler {
24245
24346
  * Copyright (c) Microsoft Corporation. All rights reserved.
24246
24347
  * Licensed under the MIT License.
24247
24348
  */
24248
- const PLATFORM_AUTH_DOM_DPOP_NOT_SUPPORTED = "platform_auth_dom_dpop_not_supported";
24249
24349
  class PlatformAuthDOMHandler {
24250
24350
  constructor(logger, performanceClient, correlationId) {
24251
24351
  this.logger = logger;
@@ -24325,11 +24425,9 @@ class PlatformAuthDOMHandler {
24325
24425
  });
24326
24426
  this.logger.trace(`02bcil ${this.platformAuthType}`, correlationId);
24327
24427
  try {
24328
- if (request.tokenType?.trim().toLowerCase() ===
24329
- PlatformAuthTokenType.DPOP_WITH_PROOF) {
24330
- throw createBrowserAuthError(PLATFORM_AUTH_DOM_DPOP_NOT_SUPPORTED, correlationId);
24331
- }
24332
24428
  const platformDOMRequest = invoke(this.initializePlatformDOMRequest.bind(this), PlatformAuthDOMInitializeRequest, this.logger, this.performanceClient, correlationId)(request);
24429
+ request.bindingPreferenceSent =
24430
+ platformDOMRequest.preferBinding !== undefined;
24333
24431
  const response =
24334
24432
  // @ts-ignore
24335
24433
  await window.navigator.platformAuthentication.executeGetToken(platformDOMRequest);
@@ -24374,8 +24472,12 @@ class PlatformAuthDOMHandler {
24374
24472
  preferBinding: preferBinding,
24375
24473
  enclave: enclave,
24376
24474
  requestConfirmation: reqCnf,
24377
- extraParametersNoCache,
24475
+ extraParametersNoCache: extraParametersNoCache && {
24476
+ ...extraParametersNoCache,
24477
+ },
24378
24478
  };
24479
+ delete platformDOMRequest.extraParameters?.bindingPreferenceSent;
24480
+ delete platformDOMRequest.extraParametersNoCache?.bindingPreferenceSent;
24379
24481
  return platformDOMRequest;
24380
24482
  }
24381
24483
  validatePlatformBrokerResponse(response, correlationId) {
@@ -24392,7 +24494,8 @@ class PlatformAuthDOMHandler {
24392
24494
  requiredKeys.every((key) => Object.prototype.hasOwnProperty.call(response, key));
24393
24495
  if (response &&
24394
24496
  Object.prototype.hasOwnProperty.call(response, "isSuccess")) {
24395
- if (isValid) {
24497
+ if (isValid &&
24498
+ response.isSuccess === true) {
24396
24499
  this.logger.trace(`0h4vei ${this.platformAuthType}`, correlationId);
24397
24500
  try {
24398
24501
  const validatedResponse = this.convertToPlatformBrokerResponse(response, correlationId);
@@ -24445,7 +24548,6 @@ class PlatformAuthDOMHandler {
24445
24548
  convertToPlatformBrokerResponse(response, correlationId) {
24446
24549
  this.logger.trace(`14913t ${this.platformAuthType}`, correlationId);
24447
24550
  const responseProperties = response.properties || {};
24448
- const bindingAttested = this.parseDOMBoolean(responseProperties.binding_attested, "binding_attested", correlationId);
24449
24551
  const nativeResponse = {
24450
24552
  access_token: response.accessToken,
24451
24553
  id_token: response.idToken,
@@ -24457,21 +24559,9 @@ class PlatformAuthDOMHandler {
24457
24559
  properties: responseProperties,
24458
24560
  extendedLifetimeToken: response.extendedLifetimeToken ?? false,
24459
24561
  shr: response.proofOfPossessionPayload,
24460
- token_type: responseProperties.token_type,
24461
- DPoP: responseProperties.dpop_proof,
24462
- binding_attested: bindingAttested,
24463
24562
  };
24464
24563
  return nativeResponse;
24465
24564
  }
24466
- parseDOMBoolean(value, propertyName, correlationId) {
24467
- if (value === undefined) {
24468
- return undefined;
24469
- }
24470
- if (value === "true" || value === "false") {
24471
- return value === "true";
24472
- }
24473
- throw createAuthError(unexpectedError, correlationId, `Platform broker returned invalid ${propertyName} value.`);
24474
- }
24475
24565
  getDOMExtraParams(extraParameters, correlationId) {
24476
24566
  try {
24477
24567
  const stringifiedProperties = {};
@@ -24567,8 +24657,7 @@ function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvid
24567
24657
  const schemeSupported = !authenticationScheme ||
24568
24658
  authenticationScheme === AuthenticationScheme.BEARER ||
24569
24659
  authenticationScheme === AuthenticationScheme.POP ||
24570
- (authenticationScheme === AuthenticationScheme.DPOP &&
24571
- !(platformAuthProvider instanceof PlatformAuthDOMHandler));
24660
+ authenticationScheme === AuthenticationScheme.DPOP;
24572
24661
  const fields = {
24573
24662
  allowPlatformBroker: config.system.allowPlatformBroker,
24574
24663
  ...(config.system.allowPlatformBroker && {
@@ -26139,7 +26228,10 @@ function preparePlatformSilentRequest({ request, account, config, }) {
26139
26228
  account,
26140
26229
  });
26141
26230
  return {
26142
- key: `platform:${getPlatformSilentRequestKey(platformRequest, config)}`,
26231
+ key: platformRequest.authenticationScheme ===
26232
+ AuthenticationScheme.DPOP
26233
+ ? undefined
26234
+ : `platform:${getPlatformSilentRequestKey(platformRequest, config)}`,
26143
26235
  request: platformRequest,
26144
26236
  account: platformRequest.account,
26145
26237
  };
@@ -26171,7 +26263,6 @@ function getPlatformSilentRequestKey(request, config) {
26171
26263
  loginHint: request.loginHint,
26172
26264
  popKid: request.popKid,
26173
26265
  shrNonce: request.shrNonce,
26174
- dpopNonce: request.dpopNonce,
26175
26266
  skipBrokerClaims: request.embeddedClientId
26176
26267
  ? !!request.skipBrokerClaims
26177
26268
  : undefined,
@@ -27420,6 +27511,16 @@ class StandardController {
27420
27511
  getLogger() {
27421
27512
  return this.logger;
27422
27513
  }
27514
+ /**
27515
+ * Stores a resource-server DPoP nonce for the matching HTTPS origin.
27516
+ */
27517
+ async loadDpopNonce(resourceRequestUri, dpopNonce) {
27518
+ blockNonBrowserEnvironment();
27519
+ const correlationId = createNewGuid();
27520
+ return invokeAsync(async () => {
27521
+ this.browserStorage.setDpopNonce(resourceRequestUri, dpopNonce, correlationId);
27522
+ }, StandardControllerLoadDpopNonce, this.logger, this.performanceClient, correlationId)();
27523
+ }
27423
27524
  /**
27424
27525
  * Replaces the default logger set in configurations with new Logger with new configurations
27425
27526
  * @param logger Logger instance
@@ -27574,32 +27675,55 @@ class StandardController {
27574
27675
  correlationId,
27575
27676
  config: this.config,
27576
27677
  }, this.platformAuthProvider, this.logger, this.performanceClient);
27577
- const shouldDeduplicate = preparedRequest.request.authenticationScheme !==
27578
- AuthenticationScheme.DPOP;
27678
+ const requestKey = preparedRequest.key;
27679
+ const shouldDeduplicate = requestKey !== undefined;
27579
27680
  const inProgressRequest = shouldDeduplicate
27580
- ? this.activeSilentTokenRequests.get(preparedRequest.key)
27681
+ ? this.activeSilentTokenRequests.get(requestKey)
27581
27682
  : undefined;
27582
27683
  if (typeof inProgressRequest === "undefined") {
27583
27684
  this.logger.verbose(shouldDeduplicate
27584
27685
  ? "0fcjbk"
27585
- : "acquireTokenSilent called for DPoP request, starting an independent operation", correlationId);
27686
+ : "acquireTokenSilent called for platform DPoP request, starting an independent operation", correlationId);
27586
27687
  this.performanceClient.addFields({ deduped: false }, correlationId);
27587
27688
  const activeRequest = invokeAsync(this.acquireTokenSilentAsync.bind(this), AcquireTokenSilentAsync, this.logger, this.performanceClient, correlationId)({
27588
27689
  ...preparedRequest.request,
27589
27690
  correlationId,
27590
27691
  }, preparedRequest.account);
27591
- if (!shouldDeduplicate) {
27692
+ if (requestKey === undefined) {
27592
27693
  return activeRequest;
27593
27694
  }
27594
- this.activeSilentTokenRequests.set(preparedRequest.key, activeRequest);
27695
+ this.activeSilentTokenRequests.set(requestKey, activeRequest);
27595
27696
  return activeRequest.finally(() => {
27596
- this.activeSilentTokenRequests.delete(preparedRequest.key);
27697
+ this.activeSilentTokenRequests.delete(requestKey);
27597
27698
  });
27598
27699
  }
27599
27700
  else {
27600
27701
  this.logger.verbose("1yq7nb", correlationId);
27601
27702
  this.performanceClient.addFields({ deduped: true }, correlationId);
27602
- return inProgressRequest;
27703
+ const joiningRequest = {
27704
+ ...preparedRequest.request,
27705
+ correlationId,
27706
+ };
27707
+ const result = await inProgressRequest;
27708
+ if (joiningRequest.authenticationScheme !==
27709
+ AuthenticationScheme.DPOP) {
27710
+ return result;
27711
+ }
27712
+ if (result.fromPlatformBroker &&
27713
+ !ResponseHandler.hasDpopKeyId(result)) {
27714
+ return invokeAsync(this.acquireTokenSilentAsync.bind(this), AcquireTokenSilentAsync, this.logger, this.performanceClient, correlationId)(joiningRequest, result.account || preparedRequest.account);
27715
+ }
27716
+ const dpopProof = await ResponseHandler.generateDpopResourceProof(this.browserCrypto, result, {
27717
+ ...joiningRequest,
27718
+ authority: joiningRequest.authority || this.config.auth.authority,
27719
+ }, this.performanceClient, {
27720
+ tokenBindingKeyManager: this.tokenBindingKeyManager,
27721
+ dpopNonceProvider: this.browserStorage,
27722
+ });
27723
+ return {
27724
+ ...result,
27725
+ dpopProof,
27726
+ };
27603
27727
  }
27604
27728
  }
27605
27729
  /**
@@ -28222,6 +28346,7 @@ class CustomAuthStandardController extends StandardController {
28222
28346
  }
28223
28347
  async signUpV2(inputs) {
28224
28348
  const correlationId = this.getCorrelationId(inputs);
28349
+ let scenario = CustomAuthFlowScenarioV2.SignUp;
28225
28350
  try {
28226
28351
  ensureArgumentIsNotNullOrUndefined("inputs", inputs, correlationId);
28227
28352
  this.ensureUsernameIsValidV2(inputs.username, correlationId);
@@ -28233,13 +28358,19 @@ class CustomAuthStandardController extends StandardController {
28233
28358
  }
28234
28359
  this.ensureUserNotSignedIn(correlationId);
28235
28360
  this.logger.verbose("0010xn", correlationId);
28236
- const result = await this.flowClientV2.signUp({
28361
+ const startResult = await this.flowClientV2.signUp({
28237
28362
  correlationId,
28238
28363
  username: inputs.username,
28239
28364
  scopes: inputs.scopes,
28240
28365
  claims: inputs.claims,
28241
28366
  attributes: inputs.attributes,
28242
28367
  });
28368
+ if (startResult.type === FLOW_EXISTING_ACCOUNT_START_V2) {
28369
+ scenario = startResult.continuationState.scenario;
28370
+ }
28371
+ const result = startResult.type === FLOW_EXISTING_ACCOUNT_START_V2
28372
+ ? await this.flowClientV2.challengeExistingAccount(startResult)
28373
+ : startResult;
28243
28374
  if (result.type === FLOW_CODE_REQUIRED_V2) {
28244
28375
  return new CustomAuthResultV2(new CodeRequiredStateV2({
28245
28376
  correlationId: result.correlationId,
@@ -28298,7 +28429,7 @@ class CustomAuthStandardController extends StandardController {
28298
28429
  catch (error) {
28299
28430
  this.logger.errorPii(`196wno ${error}`, correlationId);
28300
28431
  return CustomAuthResultV2.createWithError(error, {
28301
- scenario: CustomAuthFlowScenarioV2.SignUp,
28432
+ scenario,
28302
28433
  correlationId,
28303
28434
  });
28304
28435
  }
@@ -29137,6 +29268,12 @@ class PublicClientApplication {
29137
29268
  getActiveAccount() {
29138
29269
  return this.controller.getActiveAccount();
29139
29270
  }
29271
+ /**
29272
+ * Stores an opaque resource-server DPoP nonce for the matching HTTPS origin.
29273
+ */
29274
+ loadDpopNonce(resourceRequestUri, dpopNonce) {
29275
+ return this.controller.loadDpopNonce(resourceRequestUri, dpopNonce);
29276
+ }
29140
29277
  /**
29141
29278
  * Called by wrapper libraries (Angular & React) to set SKU and Version passed down to telemetry, logger, etc.
29142
29279
  * @param sku
@@ -29280,7 +29417,6 @@ class CustomAuthPublicClientApplication extends PublicClientApplication {
29280
29417
  }
29281
29418
  /**
29282
29419
  * Starts native auth V2 sign-in.
29283
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
29284
29420
  * @param inputs - Inputs for the sign-in V2 flow.
29285
29421
  * @returns A promise that resolves to the sign-in start result.
29286
29422
  */
@@ -29289,7 +29425,6 @@ class CustomAuthPublicClientApplication extends PublicClientApplication {
29289
29425
  }
29290
29426
  /**
29291
29427
  * Starts native auth V2 sign-up.
29292
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
29293
29428
  * @param inputs - Inputs for the sign-up V2 flow.
29294
29429
  * @returns A promise that resolves to the sign-up start result.
29295
29430
  */
@@ -29298,7 +29433,6 @@ class CustomAuthPublicClientApplication extends PublicClientApplication {
29298
29433
  }
29299
29434
  /**
29300
29435
  * Starts native auth V2 self-service password reset.
29301
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
29302
29436
  * @param {ResetPasswordInputsV2} inputs - Inputs for the reset-password V2 flow
29303
29437
  * @returns {Promise<ResetPasswordStartResultV2>} - A promise that resolves to ResetPasswordStartResultV2
29304
29438
  */