@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
@@ -43,7 +43,7 @@ import {
43
43
  EmbeddedMethodV2,
44
44
  EmbeddedEnrollmentMethodV2,
45
45
  EnrollmentResponseV2,
46
- HalResponseBaseV2,
46
+ ContinueResponseV2,
47
47
  } from "./response/ResponsesV2.js";
48
48
  import {
49
49
  RequestContextV2,
@@ -199,6 +199,11 @@ export class CustomAuthApiClientV2 extends BaseApiClientV2 {
199
199
  return {
200
200
  nextAction: SignUpSubmitAttributesNextActionV2.CONTINUE,
201
201
  continuationToken,
202
+ continueHref: this.handler.requireHref(
203
+ parsedResponse.body._links?.continue?.href,
204
+ ResponseStateV2.CONTINUE,
205
+ correlationId
206
+ ),
202
207
  };
203
208
  }
204
209
 
@@ -386,7 +391,7 @@ export class CustomAuthApiClientV2 extends BaseApiClientV2 {
386
391
  request: AuthMethodRegistrationVerificationRequestV2,
387
392
  context: RequestContextV2
388
393
  ): Promise<ActivationResultV2> {
389
- const parsedResponse = await this.sendActionRequest<HalResponseBaseV2>(
394
+ const parsedResponse = await this.sendActionRequest<ContinueResponseV2>(
390
395
  activateHref,
391
396
  HttpMethod.POST,
392
397
  request,
@@ -407,6 +412,11 @@ export class CustomAuthApiClientV2 extends BaseApiClientV2 {
407
412
  parsedResponse.continuationToken,
408
413
  parsedResponse.correlationId
409
414
  ),
415
+ continueHref: this.handler.requireHref(
416
+ parsedResponse.body._links?.continue?.href,
417
+ ResponseStateV2.CONTINUE,
418
+ parsedResponse.correlationId
419
+ ),
410
420
  };
411
421
  }
412
422
 
@@ -512,6 +522,11 @@ export class CustomAuthApiClientV2 extends BaseApiClientV2 {
512
522
  return {
513
523
  nextAction,
514
524
  continuationToken,
525
+ continueHref: this.handler.requireHref(
526
+ parsedResponse.body._links?.continue?.href,
527
+ ResponseStateV2.CONTINUE,
528
+ correlationId
529
+ ),
515
530
  };
516
531
  }
517
532
 
@@ -568,6 +583,11 @@ export class CustomAuthApiClientV2 extends BaseApiClientV2 {
568
583
  return {
569
584
  nextAction: ResponseStateV2.CONTINUE,
570
585
  continuationToken,
586
+ continueHref: this.handler.requireHref(
587
+ parsedResponse.body._links?.continue?.href,
588
+ ResponseStateV2.CONTINUE,
589
+ correlationId
590
+ ),
571
591
  };
572
592
  }
573
593
 
@@ -789,12 +809,23 @@ export class CustomAuthApiClientV2 extends BaseApiClientV2 {
789
809
  ): StartMethodV2[] {
790
810
  const resolved: StartMethodV2[] = [];
791
811
 
792
- methods.forEach((method, index) => {
812
+ methods.forEach((method) => {
793
813
  const href = method._links?.challenge?.href;
794
814
 
795
815
  if (href) {
816
+ if (typeof method.id !== "string" || !method.id.trim()) {
817
+ const message =
818
+ "Invalid HAL response: authentication method ID is missing or malformed";
819
+ this.logger?.error(message, correlationId);
820
+ throw new CustomAuthApiError(
821
+ INVALID_HAL_RESPONSE,
822
+ message,
823
+ correlationId
824
+ );
825
+ }
826
+
796
827
  resolved.push({
797
- id: method.id ?? method.type ?? `method-${index}`,
828
+ id: method.id,
798
829
  type: method.type,
799
830
  hint: method.hint,
800
831
  challengeHref: href,
@@ -6,16 +6,6 @@
6
6
  import { ParsedUrlError } from "../../../error/ParsedUrlError.js";
7
7
  import { InvalidUrl } from "../../../error/ParsedUrlErrorCodes.js";
8
8
 
9
- const API_MARKERS = ["/api/", "/oauth2/"];
10
-
11
- /*
12
- * Resolves a HAL href against the configured authority. Absolute HTTP(S) URLs
13
- * pass through; relative URLs retain their API path and query while using the
14
- * configured tenant path.
15
- *
16
- * TODO: Remove tenant-path rewriting once the service consistently returns links that can be
17
- * resolved directly against the configured authority.
18
- */
19
9
  export function resolveHrefV2(base: URL, href: string): URL {
20
10
  const trimmed = href.trim();
21
11
 
@@ -23,16 +13,19 @@ export function resolveHrefV2(base: URL, href: string): URL {
23
13
  throw new ParsedUrlError(InvalidUrl, "The HAL href cannot be empty");
24
14
  }
25
15
 
26
- const absolute = tryParseAbsolute(trimmed);
27
-
28
- if (absolute) {
29
- return absolute;
30
- }
31
-
32
16
  let resolved: URL;
33
17
 
34
18
  try {
35
- resolved = new URL(trimmed, base.origin);
19
+ let path = trimmed.startsWith("/") ? trimmed : `/${trimmed}`;
20
+ const lowerHref = trimmed.toLowerCase();
21
+ if (
22
+ lowerHref.startsWith("https://") ||
23
+ lowerHref.startsWith("http://")
24
+ ) {
25
+ const absoluteHref = new URL(trimmed);
26
+ path = `${absoluteHref.pathname}${absoluteHref.search}${absoluteHref.hash}`;
27
+ }
28
+ resolved = new URL(`${base.origin}${path}`);
36
29
  } catch (e) {
37
30
  throw new ParsedUrlError(
38
31
  InvalidUrl,
@@ -47,35 +40,5 @@ export function resolveHrefV2(base: URL, href: string): URL {
47
40
  );
48
41
  }
49
42
 
50
- const tenantPath = base.pathname.endsWith("/")
51
- ? base.pathname.slice(0, -1)
52
- : base.pathname;
53
-
54
- resolved.pathname = tenantPath + apiPath(resolved.pathname);
55
-
56
43
  return resolved;
57
44
  }
58
-
59
- function tryParseAbsolute(href: string): URL | undefined {
60
- try {
61
- const url = new URL(href);
62
-
63
- return url.protocol === "http:" || url.protocol === "https:"
64
- ? url
65
- : undefined;
66
- } catch {
67
- return undefined;
68
- }
69
- }
70
-
71
- function apiPath(path: string): string {
72
- for (const marker of API_MARKERS) {
73
- const index = path.indexOf(marker);
74
-
75
- if (index >= 0) {
76
- return path.slice(index);
77
- }
78
- }
79
-
80
- return path.startsWith("/") ? path : `/${path}`;
81
- }
@@ -61,6 +61,7 @@ export interface TokenRequestV2 extends OAuthFormRequestV2 {
61
61
  */
62
62
  export interface CompleteWithTokensRequestV2 {
63
63
  continuationToken: string;
64
+ continueHref: string;
64
65
  }
65
66
 
66
67
  /*
@@ -50,6 +50,12 @@ export interface AuthorizeChallengeContinueResponseV2 {
50
50
  code?: string;
51
51
  }
52
52
 
53
+ export interface ContinueResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
54
+ _links?: {
55
+ continue?: HalLink;
56
+ };
57
+ }
58
+
53
59
  export interface AuthorizeChallengeEntryResponseV2
54
60
  extends OAuthErrorResponseV2 {
55
61
  continuation_token?: string;
@@ -128,6 +134,7 @@ export interface SignUpSubmitAttributesResponseV2
128
134
  extends Omit<CodeChallengeResponseV2, "_links" | "_embedded"> {
129
135
  attributes?: SignUpAttributeResponseV2[];
130
136
  _links?: {
137
+ continue?: HalLink;
131
138
  verify?: HalLink;
132
139
  resend?: HalLink;
133
140
  submitAttributes?: HalLink;
@@ -143,6 +150,7 @@ export interface VerifyResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
143
150
  payload?: Record<string, unknown>;
144
151
  attributes?: SignUpAttributeResponseV2[];
145
152
  _links?: {
153
+ continue?: HalLink;
146
154
  update?: HalLink;
147
155
  submitAttributes?: HalLink;
148
156
  };
@@ -174,6 +182,7 @@ export interface UpdatePasswordResponseV2
174
182
 
175
183
  export interface PollResponseV2 extends Omit<HalResponseBaseV2, "_links"> {
176
184
  _links?: {
185
+ continue?: HalLink;
177
186
  poll?: HalLink;
178
187
  };
179
188
  _embedded?: {
@@ -50,11 +50,14 @@ export interface EnrollmentResultV2 {
50
50
  resendHref?: string;
51
51
  }
52
52
 
53
- export interface ActivationResultV2 {
53
+ export interface ContinueResultV2 {
54
54
  nextAction: typeof ResponseStateV2.CONTINUE;
55
55
  continuationToken: string;
56
+ continueHref: string;
56
57
  }
57
58
 
59
+ export type ActivationResultV2 = ContinueResultV2;
60
+
58
61
  export const AuthenticationFactorV2 = {
59
62
  SINGLE_FACTOR: "singleFactor",
60
63
  MULTI_FACTOR: "multiFactor",
@@ -99,10 +102,7 @@ export type VerifyResultV2 =
99
102
  continuationToken: string;
100
103
  updateHref: string;
101
104
  }
102
- | {
103
- nextAction: typeof ResponseStateV2.CONTINUE;
104
- continuationToken: string;
105
- }
105
+ | ContinueResultV2
106
106
  | {
107
107
  nextAction: typeof CHALLENGE_RELATION;
108
108
  continuationToken: string;
@@ -5,6 +5,7 @@
5
5
 
6
6
  import type {
7
7
  AuthenticationFactorV2,
8
+ ContinueResultV2,
8
9
  EnrollmentMethodV2,
9
10
  StartMethodV2,
10
11
  } from "./BaseResultsV2.js";
@@ -12,7 +13,6 @@ import {
12
13
  CHALLENGE_RELATION,
13
14
  ENROLL_RELATION,
14
15
  POLL_RELATION,
15
- ResponseStateV2,
16
16
  } from "../ApiClientConstantsV2.js";
17
17
 
18
18
  export interface ResetPasswordUpdateResultV2 {
@@ -37,7 +37,4 @@ export type ResetPasswordPollResultV2 =
37
37
  authenticationFactor: AuthenticationFactorV2;
38
38
  methods: StartMethodV2[];
39
39
  }
40
- | {
41
- nextAction: typeof ResponseStateV2.CONTINUE;
42
- continuationToken: string;
43
- };
40
+ | ContinueResultV2;
@@ -5,6 +5,7 @@
5
5
 
6
6
  import type {
7
7
  ChallengeVerificationResultV2,
8
+ ContinueResultV2,
8
9
  EnrollmentRequiredResultV2,
9
10
  StartResultV2,
10
11
  } from "./BaseResultsV2.js";
@@ -42,7 +43,4 @@ export type SignUpSubmitAttributesApiResultV2 =
42
43
  submitAttributesHref: string;
43
44
  }
44
45
  | EnrollmentRequiredResultV2
45
- | {
46
- nextAction: typeof SignUpSubmitAttributesNextActionV2.CONTINUE;
47
- continuationToken: string;
48
- };
46
+ | ContinueResultV2;
@@ -213,6 +213,7 @@ export class CustomAuthSilentCacheClient extends CustomAuthInteractionClientBase
213
213
  },
214
214
  cryptoInterface: this.browserCrypto,
215
215
  tokenBindingKeyManager: this.tokenBindingKeyManager,
216
+ dpopNonceProvider: this.browserStorage,
216
217
  networkInterface: this.networkClient,
217
218
  storageInterface: this.browserStorage,
218
219
  serverTelemetryManager: serverTelemetryManager,
@@ -11,7 +11,6 @@ import type { AuthMethodSelectionRequiredStateV2 } from "../../../../core/auth_f
11
11
 
12
12
  /**
13
13
  * States returned after submitting a new password.
14
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
15
14
  */
16
15
  export type SubmitNewPasswordResultStateV2 =
17
16
  | SignInContinuationStateV2
@@ -21,7 +20,6 @@ export type SubmitNewPasswordResultStateV2 =
21
20
 
22
21
  /**
23
22
  * Result of submitting a new password.
24
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
25
23
  */
26
24
  export type SubmitNewPasswordResultV2 =
27
25
  CustomAuthResultV2<SubmitNewPasswordResultStateV2>;
@@ -23,7 +23,6 @@ import type { SubmitNewPasswordResultV2 } from "../result/SubmitNewPasswordResul
23
23
  * State returned when the user must supply a new password. Submission can
24
24
  * require method registration or MFA, and the flow is not complete until any
25
25
  * subsequent required actions finish.
26
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
27
26
  */
28
27
  export class NewPasswordRequiredStateV2 extends AuthFlowActionRequiredStateBase<NewPasswordRequiredStateParametersV2> {
29
28
  readonly stateType = "newPasswordRequired";
@@ -83,7 +83,6 @@ export class SignInResult extends AuthFlowResultBase<
83
83
 
84
84
  /**
85
85
  * Checks if the result requires authentication method registration.
86
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
87
86
  */
88
87
  isAuthMethodRegistrationRequired(): this is SignInResult & {
89
88
  state: AuthMethodRegistrationRequiredState;
@@ -96,7 +95,6 @@ export class SignInResult extends AuthFlowResultBase<
96
95
 
97
96
  /**
98
97
  * Checks if the result requires MFA.
99
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
100
98
  */
101
99
  isMfaRequired(): this is SignInResult & { state: MfaAwaitingState } {
102
100
  return this.state.stateType === MFA_AWAITING_STATE_TYPE;
@@ -57,7 +57,6 @@ export class SignInSubmitCodeResult extends AuthFlowResultBase<
57
57
 
58
58
  /**
59
59
  * Checks if the result requires authentication method registration.
60
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
61
60
  */
62
61
  isAuthMethodRegistrationRequired(): this is SignInSubmitCodeResult & {
63
62
  state: AuthMethodRegistrationRequiredState;
@@ -70,7 +69,6 @@ export class SignInSubmitCodeResult extends AuthFlowResultBase<
70
69
 
71
70
  /**
72
71
  * Checks if the result requires MFA.
73
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
74
72
  */
75
73
  isMfaRequired(): this is SignInSubmitCodeResult & {
76
74
  state: MfaAwaitingState;
@@ -54,7 +54,6 @@ export class SignInSubmitPasswordResult extends AuthFlowResultBase<
54
54
 
55
55
  /**
56
56
  * Checks if the result requires authentication method registration.
57
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
58
57
  */
59
58
  isAuthMethodRegistrationRequired(): this is SignInSubmitPasswordResult & {
60
59
  state: AuthMethodRegistrationRequiredState;
@@ -67,7 +66,6 @@ export class SignInSubmitPasswordResult extends AuthFlowResultBase<
67
66
 
68
67
  /**
69
68
  * Checks if the result requires MFA.
70
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
71
69
  */
72
70
  isMfaRequired(): this is SignInSubmitPasswordResult & {
73
71
  state: MfaAwaitingState;
@@ -10,13 +10,11 @@ import type { CustomAuthAccountData } from "../../../../get_account/auth_flow/Cu
10
10
 
11
11
  /**
12
12
  * States returned when signing in from a V2 continuation.
13
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
14
13
  */
15
14
  export type SignInContinuationResultStateV2 = CompletedStateV2 | FailedStateV2;
16
15
 
17
16
  /**
18
17
  * Result of signing the user in from a V2 continuation.
19
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
20
18
  */
21
19
  export type SignInContinuationResultV2 = CustomAuthResultV2<
22
20
  SignInContinuationResultStateV2,
@@ -11,7 +11,6 @@ import type { CodeRequiredStateV2 } from "../../../../core/auth_flow/v2/state/Co
11
11
 
12
12
  /**
13
13
  * States returned when native auth V2 sign-in starts.
14
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
15
14
  */
16
15
  export type SignInStartResultStateV2 =
17
16
  | PasswordRequiredStateV2
@@ -21,7 +20,6 @@ export type SignInStartResultStateV2 =
21
20
 
22
21
  /**
23
22
  * Result of starting native auth V2 sign-in.
24
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
25
23
  */
26
24
  export type SignInStartResultV2 = CustomAuthResultV2<
27
25
  SignInStartResultStateV2,
@@ -12,7 +12,6 @@ import type { SignInContinuationResultV2 } from "../result/SignInContinuationRes
12
12
 
13
13
  /**
14
14
  * State returned when a completed V2 flow can sign the user in.
15
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
16
15
  */
17
16
  export class SignInContinuationStateV2 extends AuthFlowActionRequiredStateBase<SignInContinuationStateParametersV2> {
18
17
  readonly stateType = "signInContinuation";
@@ -12,7 +12,6 @@ import type { AuthMethodSelectionRequiredStateV2 } from "../../../../core/auth_f
12
12
 
13
13
  /**
14
14
  * States returned when native auth V2 sign-up starts.
15
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
16
15
  */
17
16
  export type SignUpStartResultStateV2 =
18
17
  | CodeRequiredStateV2
@@ -23,6 +22,5 @@ export type SignUpStartResultStateV2 =
23
22
 
24
23
  /**
25
24
  * Result of starting native auth V2 sign-up.
26
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
27
25
  */
28
26
  export type SignUpStartResultV2 = CustomAuthResultV2<SignUpStartResultStateV2>;
@@ -12,7 +12,6 @@ import type { AttributesRequiredStateV2 } from "../state/AttributesRequiredState
12
12
 
13
13
  /**
14
14
  * States returned after submitting sign-up attributes.
15
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
16
15
  */
17
16
  export type SubmitAttributesResultStateV2 =
18
17
  | AttributesRequiredStateV2
@@ -23,7 +22,6 @@ export type SubmitAttributesResultStateV2 =
23
22
 
24
23
  /**
25
24
  * Result of submitting sign-up attributes.
26
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
27
25
  */
28
26
  export type SubmitAttributesResultV2 = CustomAuthResultV2<
29
27
  SubmitAttributesResultStateV2,
@@ -13,7 +13,6 @@ import * as ArgumentValidator from "../../../../core/utils/ArgumentValidator.js"
13
13
 
14
14
  /**
15
15
  * State returned when sign-up requires profile or custom attributes.
16
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17
16
  */
18
17
  export class AttributesRequiredStateV2 extends AuthFlowActionRequiredStateBase<AttributesRequiredStateParametersV2> {
19
18
  readonly stateType = "attributesRequired";
@@ -22,6 +22,7 @@ import {
22
22
  invokeAsync,
23
23
  StringDict,
24
24
  ITokenBindingKeyManager,
25
+ IDpopNonceProvider,
25
26
  } from "@azure/msal-common/browser";
26
27
  import * as BrowserPerformanceEvents from "../telemetry/BrowserPerformanceEvents.js";
27
28
  import { BrowserConfiguration } from "../config/Configuration.js";
@@ -51,6 +52,7 @@ export abstract class BaseInteractionClient {
51
52
  protected correlationId: string;
52
53
  protected performanceClient: IPerformanceClient;
53
54
  protected tokenBindingKeyManager: ITokenBindingKeyManager;
55
+ protected readonly dpopNonceProvider: IDpopNonceProvider;
54
56
 
55
57
  constructor(
56
58
  config: BrowserConfiguration,
@@ -62,7 +64,8 @@ export abstract class BaseInteractionClient {
62
64
  performanceClient: IPerformanceClient,
63
65
  correlationId: string,
64
66
  platformAuthProvider?: IPlatformAuthHandler,
65
- tokenBindingKeyManager?: ITokenBindingKeyManager
67
+ tokenBindingKeyManager?: ITokenBindingKeyManager,
68
+ dpopNonceProvider?: IDpopNonceProvider
66
69
  ) {
67
70
  this.config = config;
68
71
  this.browserStorage = storageImpl;
@@ -77,6 +80,7 @@ export abstract class BaseInteractionClient {
77
80
  this.tokenBindingKeyManager =
78
81
  tokenBindingKeyManager ||
79
82
  new TokenBindingKeyManager(this.logger, this.performanceClient);
83
+ this.dpopNonceProvider = dpopNonceProvider ?? storageImpl;
80
84
  }
81
85
 
82
86
  abstract acquireToken(
@@ -256,6 +260,7 @@ export async function clearCacheOnLogout(
256
260
  correlationId: string,
257
261
  account?: AccountInfo | null
258
262
  ): Promise<void> {
263
+ browserStorage.clearDpopNonces();
259
264
  if (account) {
260
265
  // Clear given account.
261
266
  try {
@@ -27,6 +27,7 @@ import {
27
27
  PerformanceEvents,
28
28
  PopTokenGenerator,
29
29
  RequestParameterBuilder,
30
+ ResponseHandler,
30
31
  ScopeSet,
31
32
  ServerTelemetryManager,
32
33
  SignedHttpRequestParameters,
@@ -158,7 +159,8 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
158
159
  performanceClient,
159
160
  correlationId,
160
161
  provider,
161
- this.tokenBindingKeyManager
162
+ this.tokenBindingKeyManager,
163
+ browserStorage
162
164
  );
163
165
 
164
166
  const extensionName = this.platformAuthProvider.getExtensionName();
@@ -858,6 +860,13 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
858
860
  isL3DpopResponse ||
859
861
  (this.isDpopBrokerRequest(request) &&
860
862
  storeInCache?.accessToken === false);
863
+ if (
864
+ dpopBrokerOutcome === "L1" &&
865
+ !shouldRemoveGeneratedDpopKey &&
866
+ request.keyId
867
+ ) {
868
+ ResponseHandler.setDpopKeyId(result, request.keyId);
869
+ }
861
870
  if (shouldRemoveGeneratedDpopKey) {
862
871
  await this.resetGeneratedDpopRequestKey(request);
863
872
  }
@@ -1315,12 +1324,16 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
1315
1324
  ? undefined
1316
1325
  : this.config.auth.clientCapabilities;
1317
1326
 
1318
- const { scopes, claims, dpopNonce } = request as (
1319
- | PopupRequest
1320
- | SsoSilentRequest
1321
- ) & {
1322
- dpopNonce?: string;
1323
- };
1327
+ const { scopes, claims } = request;
1328
+ const dpopNonce =
1329
+ request.authenticationScheme ===
1330
+ Constants.AuthenticationScheme.DPOP &&
1331
+ request.resourceRequestUri
1332
+ ? this.browserStorage.getDpopNonce(
1333
+ request.resourceRequestUri,
1334
+ this.correlationId
1335
+ )
1336
+ : undefined;
1324
1337
  const scopeSet = new ScopeSet(
1325
1338
  [...(scopes || []), ...Constants.OIDC_DEFAULT_SCOPES],
1326
1339
  this.correlationId
@@ -1873,12 +1886,19 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
1873
1886
  this.browserCrypto,
1874
1887
  this.tokenBindingKeyManager
1875
1888
  );
1889
+ const currentNonce = request.resourceRequestUri
1890
+ ? this.browserStorage.getDpopNonce(
1891
+ request.resourceRequestUri,
1892
+ this.correlationId
1893
+ )
1894
+ : undefined;
1876
1895
  return dpopProofGenerator.generateResourceProof(
1877
1896
  {
1878
1897
  htu: request.resourceRequestUri,
1879
1898
  htm: request.resourceRequestMethod,
1880
1899
  accessToken: response.access_token,
1881
- nonce: request.extraParametersNoCache?.pop_nonce,
1900
+ nonce:
1901
+ currentNonce ?? request.extraParametersNoCache?.pop_nonce,
1882
1902
  },
1883
1903
  request.keyId as string,
1884
1904
  this.correlationId
@@ -304,6 +304,7 @@ export abstract class StandardInteractionClient extends BaseInteractionClient {
304
304
  },
305
305
  cryptoInterface: this.browserCrypto,
306
306
  tokenBindingKeyManager: this.tokenBindingKeyManager,
307
+ dpopNonceProvider: this.dpopNonceProvider,
307
308
  networkInterface: this.networkClient,
308
309
  storageInterface: this.browserStorage,
309
310
  serverTelemetryManager: serverTelemetryManager,
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable header/header */
2
2
  export const name = "@azure/msal-browser";
3
- export const version = "5.30.0";
3
+ export const version = "5.31.0";
@@ -668,6 +668,11 @@ export async function handleResponseCode(
668
668
  instrumentClientData(response, request.correlationId, performanceClient);
669
669
 
670
670
  if (response.accountId) {
671
+ AuthorizeProtocol.validateAuthorizationResponse(
672
+ response,
673
+ request.state,
674
+ request.correlationId
675
+ );
671
676
  return invokeAsync(
672
677
  handleResponsePlatformBroker,
673
678
  BrowserPerformanceEvents.HandleResponsePlatformBroker,
@@ -16,6 +16,9 @@ export type EndSessionPopupRequest = Partial<CommonEndSessionRequest> & {
16
16
  authority?: string;
17
17
  /**
18
18
  * URI to navigate the main window to after logout is complete
19
+ * Must be an application-controlled, trusted destination. Validate query parameters and other input that your application does not fully control before using them as the destination.
20
+ * For navigation within your app, validate that the resolved URL uses HTTPS and matches your application's origin.
21
+ * Allow HTTP only for local development on localhost or loopback addresses.
19
22
  */
20
23
  mainWindowRedirectUri?: string;
21
24
  /**
@@ -27,6 +27,9 @@ export type RedirectRequest = Partial<
27
27
  scopes: Array<string>;
28
28
  /**
29
29
  * The page that should be returned to after loginRedirect or acquireTokenRedirect. This should only be used if this is different from the redirectUri and will default to the page that initiates the request. When the navigateToLoginRequestUrl config option is set to false this parameter will be ignored.
30
+ * Must be an application-controlled, trusted destination. Validate query parameters and other input that your application does not fully control before using them as the destination.
31
+ * For navigation within your app, validate that the resolved URL uses HTTPS and matches your application's origin.
32
+ * Allow HTTP only for local development on localhost or loopback addresses.
30
33
  */
31
34
  redirectStartPage?: string;
32
35
  };
@@ -243,6 +243,11 @@ export async function initializeBaseRequest(
243
243
  );
244
244
  }
245
245
 
246
+ performanceClient.addFields(
247
+ { authenticationScheme: validatedRequest.authenticationScheme },
248
+ correlationId
249
+ );
250
+
246
251
  return validatedRequest;
247
252
  }
248
253