@azure/msal-browser 5.28.0 → 5.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (507) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  4. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  5. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  7. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +1 -1
  8. package/dist/cache/AccountManager.mjs +1 -1
  9. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  10. package/dist/cache/BrowserCacheManager.mjs +1 -1
  11. package/dist/cache/CacheHelpers.mjs +1 -1
  12. package/dist/cache/CacheKeys.mjs +1 -1
  13. package/dist/cache/CookieStorage.mjs +1 -1
  14. package/dist/cache/DatabaseStorage.mjs +1 -1
  15. package/dist/cache/EncryptedData.mjs +1 -1
  16. package/dist/cache/LocalStorage.mjs +1 -1
  17. package/dist/cache/MemoryStorage.mjs +1 -1
  18. package/dist/cache/SessionStorage.mjs +1 -1
  19. package/dist/cache/TokenCache.mjs +1 -1
  20. package/dist/config/Configuration.mjs +1 -1
  21. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  22. package/dist/controllers/StandardController.mjs +1 -1
  23. package/dist/crypto/BrowserCrypto.mjs +1 -1
  24. package/dist/crypto/CryptoOps.mjs +1 -1
  25. package/dist/crypto/PkceGenerator.mjs +1 -1
  26. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  27. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  28. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  29. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +6 -4
  30. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
  31. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +58 -62
  32. package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  33. package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  34. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  35. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  36. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  37. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  38. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  39. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  40. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  41. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  42. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  43. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  44. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  50. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +3 -5
  51. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -1
  52. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +19 -13
  53. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
  54. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +8 -2
  55. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -1
  56. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +58 -69
  57. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -1
  58. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +3 -3
  59. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +42 -15
  60. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
  61. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs +17 -4
  62. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs.map +1 -1
  63. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +1 -1
  64. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +14 -18
  65. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -1
  66. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +2 -4
  67. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -1
  68. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +2 -3
  69. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -1
  70. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +17 -6
  71. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
  72. package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs +110 -0
  73. package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -0
  74. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  75. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  76. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  77. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  78. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +2 -1
  79. package/dist/custom_auth/core/error/InvalidArgumentError.mjs.map +1 -1
  80. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  81. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  82. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  83. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  84. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  85. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  86. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  87. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  88. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  89. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  90. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  91. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  92. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  93. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  94. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  95. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  96. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  97. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +256 -150
  98. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
  99. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +2 -6
  100. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -1
  101. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +10 -3
  102. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -1
  103. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  104. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  105. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  106. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  107. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  108. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  109. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  110. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  111. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  112. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -7
  113. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -1
  114. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +1 -1
  115. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +35 -19
  116. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -1
  117. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
  118. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +1 -1
  119. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +20 -9
  120. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -1
  121. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
  122. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
  123. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -1
  124. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +1 -2
  125. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -1
  126. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  127. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  128. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +5 -7
  129. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -1
  130. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +3 -2
  131. package/dist/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
  132. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +17 -2
  133. package/dist/custom_auth/core/utils/ArgumentValidator.mjs.map +1 -1
  134. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  135. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  136. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  137. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  138. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  139. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  140. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  141. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  142. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  143. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  144. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  145. package/dist/custom_auth/index.mjs +4 -3
  146. package/dist/custom_auth/index.mjs.map +1 -1
  147. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  148. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  149. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  150. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  151. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  152. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  153. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  154. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  155. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  156. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  157. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  158. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +23 -7
  159. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
  160. package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs +24 -0
  161. package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs.map +1 -0
  162. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  163. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  164. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  165. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  166. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  167. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  168. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  169. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  170. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  171. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  172. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  173. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  174. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  175. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +4 -7
  176. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -1
  177. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs +2 -2
  178. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs.map +1 -1
  179. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  180. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  181. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  182. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  183. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  184. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  185. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  186. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  187. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  188. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  189. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  190. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  191. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  192. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  193. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +17 -8
  194. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -1
  195. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs +78 -0
  196. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs.map +1 -0
  197. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs +48 -0
  198. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs.map +1 -0
  199. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs +49 -0
  200. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs.map +1 -0
  201. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +17 -24
  202. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +1 -1
  203. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  204. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  205. package/dist/encode/Base64Decode.mjs +1 -1
  206. package/dist/encode/Base64Encode.mjs +1 -1
  207. package/dist/error/BrowserAuthError.mjs +1 -1
  208. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  209. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  210. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  211. package/dist/error/NativeAuthError.mjs +1 -1
  212. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  213. package/dist/error/NestedAppAuthError.mjs +1 -1
  214. package/dist/event/EventHandler.mjs +1 -1
  215. package/dist/event/EventMessage.mjs +1 -1
  216. package/dist/event/EventType.mjs +1 -1
  217. package/dist/index.mjs +1 -1
  218. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  219. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  220. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +38 -31
  221. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  222. package/dist/interaction_client/PopupClient.mjs +1 -1
  223. package/dist/interaction_client/RedirectClient.mjs +6 -2
  224. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  225. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  226. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  227. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  228. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  229. package/dist/interaction_client/StandardInteractionClient.mjs +5 -1
  230. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
  231. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  232. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  233. package/dist/log-strings-mapping.json +21 -9
  234. package/dist/naa/BridgeError.mjs +1 -1
  235. package/dist/naa/BridgeProxy.mjs +1 -1
  236. package/dist/naa/BridgeStatusCode.mjs +1 -1
  237. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  238. package/dist/navigation/NavigationClient.mjs +1 -1
  239. package/dist/network/FetchClient.mjs +1 -1
  240. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  241. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  242. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  243. package/dist/packageMetadata.mjs +2 -2
  244. package/dist/popup_relay/constants.mjs +1 -1
  245. package/dist/popup_relay/index.mjs +1 -1
  246. package/dist/popup_relay/relayClient.mjs +1 -1
  247. package/dist/protocol/Authorize.mjs +1 -1
  248. package/dist/redirect_bridge/index.mjs +1 -1
  249. package/dist/request/RequestHelpers.mjs +1 -1
  250. package/dist/request/SilentRequestHelpers.mjs +1 -1
  251. package/dist/response/ResponseHandler.mjs +1 -1
  252. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  253. package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
  254. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  255. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  256. package/dist/utils/BrowserConstants.mjs +1 -1
  257. package/dist/utils/BrowserDetection.mjs +1 -1
  258. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  259. package/dist/utils/BrowserUtils.mjs +1 -1
  260. package/dist/utils/Helpers.mjs +1 -1
  261. package/dist/utils/IframeMonitor.mjs +1 -1
  262. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  263. package/dist/utils/PopupMonitor.mjs +1 -1
  264. package/dist/utils/PopupOriginCheck.mjs +1 -1
  265. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  266. package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
  267. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  268. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  269. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
  270. package/dist/webBrokerBridge/index.mjs +1 -1
  271. package/lib/custom-auth-path/log-strings-mapping.json +21 -9
  272. package/lib/custom-auth-path/msal-custom-auth.cjs +1160 -765
  273. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  274. package/lib/custom-auth-path/msal-custom-auth.js +1160 -765
  275. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  276. package/lib/log-strings-mapping.json +7 -3
  277. package/lib/msal-browser.cjs +187 -117
  278. package/lib/msal-browser.cjs.map +1 -1
  279. package/lib/msal-browser.js +187 -117
  280. package/lib/msal-browser.js.map +1 -1
  281. package/lib/msal-browser.min.js +2 -2
  282. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  283. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  284. package/lib/popup-relay/msal-popup-relay.js +2 -2
  285. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  286. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  287. package/lib/redirect-bridge/msal-redirect-bridge.cjs +39 -10
  288. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  289. package/lib/redirect-bridge/msal-redirect-bridge.js +39 -10
  290. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  291. package/lib/redirect-bridge/msal-redirect-bridge.min.js +2 -2
  292. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
  293. package/package.json +2 -2
  294. package/src/custom_auth/CustomAuthActionInputs.ts +12 -5
  295. package/src/custom_auth/CustomAuthPublicClientApplication.ts +5 -3
  296. package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +5 -3
  297. package/src/custom_auth/controller/CustomAuthStandardController.ts +79 -110
  298. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +1 -2
  299. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +1 -4
  300. package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +5 -4
  301. package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +28 -16
  302. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +6 -0
  303. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +83 -72
  304. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +3 -3
  305. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +7 -5
  306. package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +10 -6
  307. package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +9 -6
  308. package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +4 -6
  309. package/src/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.ts +36 -0
  310. package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +6 -8
  311. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +2 -2
  312. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +61 -12
  313. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +21 -3
  314. package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +30 -24
  315. package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +1 -3
  316. package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +11 -2
  317. package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +1 -2
  318. package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +26 -7
  319. package/src/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.ts +179 -0
  320. package/src/custom_auth/core/error/InvalidArgumentError.ts +1 -1
  321. package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +12 -12
  322. package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +394 -238
  323. package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +2 -6
  324. package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +2 -15
  325. package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +63 -26
  326. package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +0 -6
  327. package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +74 -26
  328. package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +48 -9
  329. package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +4 -6
  330. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +0 -6
  331. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +14 -53
  332. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +0 -18
  333. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +32 -13
  334. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +8 -9
  335. package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +4 -5
  336. package/src/custom_auth/core/telemetry/PublicApiId.ts +1 -0
  337. package/src/custom_auth/core/utils/ArgumentValidator.ts +26 -0
  338. package/src/custom_auth/index.ts +10 -11
  339. package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +6 -7
  340. package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +28 -5
  341. package/src/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.ts +30 -0
  342. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +4 -8
  343. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +4 -7
  344. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +3 -6
  345. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.ts +0 -3
  346. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.ts +2 -3
  347. package/src/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.ts +49 -0
  348. package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +8 -4
  349. package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +16 -4
  350. package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +26 -5
  351. package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.ts +101 -0
  352. package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.ts +53 -0
  353. package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.ts +97 -0
  354. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.ts +0 -6
  355. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +25 -48
  356. package/src/interaction_client/PlatformAuthInteractionClient.ts +53 -38
  357. package/src/interaction_client/RedirectClient.ts +5 -1
  358. package/src/interaction_client/StandardInteractionClient.ts +4 -0
  359. package/src/packageMetadata.ts +1 -1
  360. package/types/custom_auth/CustomAuthActionInputs.d.ts +12 -5
  361. package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  362. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  363. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +5 -3
  364. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
  365. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +5 -3
  366. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -1
  367. package/types/custom_auth/controller/CustomAuthStandardController.d.ts +2 -0
  368. package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  369. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +1 -2
  370. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -1
  371. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +1 -4
  372. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -1
  373. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +5 -4
  374. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -1
  375. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +17 -8
  376. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
  377. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +6 -0
  378. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -1
  379. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +23 -44
  380. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -1
  381. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +3 -3
  382. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +7 -6
  383. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -1
  384. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +7 -6
  385. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -1
  386. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +8 -7
  387. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
  388. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +4 -6
  389. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
  390. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +20 -0
  391. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -0
  392. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +6 -8
  393. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
  394. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts +2 -2
  395. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +3 -6
  396. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
  397. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts +3 -3
  398. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -1
  399. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +6 -8
  400. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
  401. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +1 -3
  402. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -1
  403. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +9 -2
  404. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -1
  405. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +1 -2
  406. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -1
  407. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +5 -6
  408. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
  409. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +23 -0
  410. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -0
  411. package/types/custom_auth/core/error/InvalidArgumentError.d.ts +1 -0
  412. package/types/custom_auth/core/error/InvalidArgumentError.d.ts.map +1 -1
  413. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +8 -1
  414. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
  415. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +12 -10
  416. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
  417. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +1 -1
  418. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -1
  419. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +2 -5
  420. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -1
  421. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +22 -3
  422. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -1
  423. package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -1
  424. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -1
  425. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +2 -1
  426. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -1
  427. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -1
  428. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
  429. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -1
  430. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +8 -8
  431. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
  432. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -1
  433. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +18 -6
  434. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -1
  435. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +6 -10
  436. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
  437. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +0 -4
  438. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -1
  439. package/types/custom_auth/core/telemetry/PublicApiId.d.ts +1 -0
  440. package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  441. package/types/custom_auth/core/utils/ArgumentValidator.d.ts +3 -0
  442. package/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
  443. package/types/custom_auth/index.d.ts +5 -5
  444. package/types/custom_auth/index.d.ts.map +1 -1
  445. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +6 -8
  446. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
  447. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +7 -5
  448. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
  449. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.d.ts +7 -0
  450. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.d.ts.map +1 -0
  451. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +4 -8
  452. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -1
  453. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +5 -6
  454. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
  455. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +3 -6
  456. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
  457. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts +0 -1
  458. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts.map +1 -1
  459. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts +3 -2
  460. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts.map +1 -1
  461. package/types/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.d.ts +27 -0
  462. package/types/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.d.ts.map +1 -0
  463. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +6 -3
  464. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -1
  465. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +12 -3
  466. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
  467. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +8 -3
  468. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
  469. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.d.ts +24 -0
  470. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.d.ts.map +1 -0
  471. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.d.ts +18 -0
  472. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.d.ts.map +1 -0
  473. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.d.ts +7 -0
  474. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.d.ts.map +1 -0
  475. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts +0 -4
  476. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts.map +1 -1
  477. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts +5 -4
  478. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -1
  479. package/types/interaction_client/PlatformAuthInteractionClient.d.ts +4 -3
  480. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  481. package/types/interaction_client/RedirectClient.d.ts.map +1 -1
  482. package/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  483. package/types/packageMetadata.d.ts +1 -1
  484. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +0 -82
  485. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +0 -1
  486. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +0 -25
  487. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs.map +0 -1
  488. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +0 -45
  489. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +0 -1
  490. package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +0 -23
  491. package/src/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.ts +0 -19
  492. package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +0 -22
  493. package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +0 -115
  494. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.ts +0 -34
  495. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +0 -61
  496. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +0 -14
  497. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +0 -1
  498. package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts +0 -13
  499. package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts.map +0 -1
  500. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +0 -9
  501. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +0 -1
  502. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +0 -17
  503. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +0 -1
  504. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts +0 -11
  505. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts.map +0 -1
  506. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts +0 -19
  507. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +0 -1
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- /*! @azure/msal-common v16.16.0 2026-11-05 */
5
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
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.16.0 2026-11-05 */
65
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
66
66
  /*
67
67
  * Copyright (c) Microsoft Corporation. All rights reserved.
68
68
  * Licensed under the MIT License.
@@ -301,7 +301,7 @@ const JsonWebTokenTypes$1 = {
301
301
  // Token renewal offset default in seconds
302
302
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
303
303
 
304
- /*! @azure/msal-common v16.16.0 2026-11-05 */
304
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
305
305
  /*
306
306
  * Copyright (c) Microsoft Corporation. All rights reserved.
307
307
  * Licensed under the MIT License.
@@ -330,7 +330,7 @@ function createAuthError(code, correlationId, additionalMessage) {
330
330
  return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
331
331
  }
332
332
 
333
- /*! @azure/msal-common v16.16.0 2026-11-05 */
333
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
334
334
 
335
335
  /*
336
336
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -353,7 +353,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
353
353
  return new ClientAuthError(errorCode, correlationId, additionalMessage);
354
354
  }
355
355
 
356
- /*! @azure/msal-common v16.16.0 2026-11-05 */
356
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
357
357
  /*
358
358
  * Copyright (c) Microsoft Corporation. All rights reserved.
359
359
  * Licensed under the MIT License.
@@ -439,7 +439,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
439
439
  userCanceled: userCanceled
440
440
  });
441
441
 
442
- /*! @azure/msal-common v16.16.0 2026-11-05 */
442
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
443
443
 
444
444
  /*
445
445
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -477,7 +477,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
477
477
  };
478
478
  }
479
479
 
480
- /*! @azure/msal-common v16.16.0 2026-11-05 */
480
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
481
481
 
482
482
  /*
483
483
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -543,7 +543,7 @@ function getJWSPayload(authToken, correlationId) {
543
543
  return matches[2];
544
544
  }
545
545
 
546
- /*! @azure/msal-common v16.16.0 2026-11-05 */
546
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
547
547
 
548
548
  /*
549
549
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -631,7 +631,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
631
631
  return updatedAccountInfo;
632
632
  }
633
633
 
634
- /*! @azure/msal-common v16.16.0 2026-11-05 */
634
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
635
635
  /*
636
636
  * Copyright (c) Microsoft Corporation. All rights reserved.
637
637
  * Licensed under the MIT License.
@@ -645,7 +645,7 @@ const AuthorityType = {
645
645
  Ciam: 3,
646
646
  };
647
647
 
648
- /*! @azure/msal-common v16.16.0 2026-11-05 */
648
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
649
649
  /*
650
650
  * Copyright (c) Microsoft Corporation. All rights reserved.
651
651
  * Licensed under the MIT License.
@@ -667,7 +667,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
667
667
  return null;
668
668
  }
669
669
 
670
- /*! @azure/msal-common v16.16.0 2026-11-05 */
670
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
671
671
  /*
672
672
  * Copyright (c) Microsoft Corporation. All rights reserved.
673
673
  * Licensed under the MIT License.
@@ -691,7 +691,7 @@ const ProtocolMode = {
691
691
  EAR: "EAR",
692
692
  };
693
693
 
694
- /*! @azure/msal-common v16.16.0 2026-11-05 */
694
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
695
695
  /**
696
696
  * Returns the AccountInfo interface for this account.
697
697
  * @internal
@@ -880,7 +880,7 @@ function isAccountEntity(entity) {
880
880
  entity.hasOwnProperty("authorityType"));
881
881
  }
882
882
 
883
- /*! @azure/msal-common v16.16.0 2026-11-05 */
883
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
884
884
  /*
885
885
  * Copyright (c) Microsoft Corporation. All rights reserved.
886
886
  * Licensed under the MIT License.
@@ -897,7 +897,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
897
897
  unexpectedError: unexpectedError
898
898
  });
899
899
 
900
- /*! @azure/msal-common v16.16.0 2026-11-05 */
900
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
901
901
 
902
902
  /*
903
903
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -917,7 +917,7 @@ function createClientConfigurationError(errorCode, correlationId) {
917
917
  return new ClientConfigurationError(errorCode, correlationId);
918
918
  }
919
919
 
920
- /*! @azure/msal-common v16.16.0 2026-11-05 */
920
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
921
921
  /*
922
922
  * Copyright (c) Microsoft Corporation. All rights reserved.
923
923
  * Licensed under the MIT License.
@@ -957,7 +957,7 @@ function getResponseHeader(headers, name) {
957
957
  return headerName === undefined ? undefined : headers[headerName];
958
958
  }
959
959
 
960
- /*! @azure/msal-common v16.16.0 2026-11-05 */
960
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
961
961
  /*
962
962
  * Copyright (c) Microsoft Corporation. All rights reserved.
963
963
  * Licensed under the MIT License.
@@ -1027,7 +1027,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
1027
1027
  urlParseError: urlParseError
1028
1028
  });
1029
1029
 
1030
- /*! @azure/msal-common v16.16.0 2026-11-05 */
1030
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
1031
1031
 
1032
1032
  /*
1033
1033
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1086,7 +1086,7 @@ class AuthenticationHeaderParser {
1086
1086
  }
1087
1087
  }
1088
1088
 
1089
- /*! @azure/msal-common v16.16.0 2026-11-05 */
1089
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
1090
1090
  /*
1091
1091
  * Copyright (c) Microsoft Corporation. All rights reserved.
1092
1092
  * Licensed under the MIT License.
@@ -1098,7 +1098,7 @@ function isOpenIdConfigResponse(response) {
1098
1098
  response.hasOwnProperty("jwks_uri"));
1099
1099
  }
1100
1100
 
1101
- /*! @azure/msal-common v16.16.0 2026-11-05 */
1101
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
1102
1102
  /*
1103
1103
  * Copyright (c) Microsoft Corporation. All rights reserved.
1104
1104
  * Licensed under the MIT License.
@@ -1178,12 +1178,18 @@ class StringUtils {
1178
1178
  }
1179
1179
  }
1180
1180
 
1181
- /*! @azure/msal-common v16.16.0 2026-11-05 */
1181
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
1182
1182
 
1183
1183
  /*
1184
1184
  * Copyright (c) Microsoft Corporation. All rights reserved.
1185
1185
  * Licensed under the MIT License.
1186
1186
  */
1187
+ // Matches ASCII controls, space, DEL, backslash, or the userinfo separator (@).
1188
+ const UNSAFE_AUTHORITY = /[\x00-\x20\x7f\\@]/;
1189
+ const DEFAULT_PORTS = {
1190
+ "https:": ":443",
1191
+ "http:": ":80",
1192
+ };
1187
1193
  /**
1188
1194
  * Url object class which can perform various transformations on url strings.
1189
1195
  */
@@ -1299,6 +1305,29 @@ class UrlString {
1299
1305
  AbsolutePath: match[5],
1300
1306
  QueryString: match[7],
1301
1307
  };
1308
+ let parsedUrl;
1309
+ try {
1310
+ parsedUrl = new URL(this.urlString);
1311
+ }
1312
+ catch {
1313
+ throw createClientConfigurationError(urlParseError, this.correlationId);
1314
+ }
1315
+ const host = urlComponents.HostNameAndPort?.toLowerCase();
1316
+ const schemeAndAuthority = `${urlComponents.Protocol}//${host}`;
1317
+ const defaultPort = DEFAULT_PORTS[parsedUrl.protocol] ?? "";
1318
+ /*
1319
+ * Cross-check the original host; reparsing parsedUrl would hide parser differences.
1320
+ * URL has validated IPv6 syntax, so only bracketed hosts need a normalization comparison.
1321
+ */
1322
+ const hostMatches = host === parsedUrl.host ||
1323
+ host === `${parsedUrl.host}${defaultPort}` ||
1324
+ (host?.startsWith("[") &&
1325
+ new URL(`${urlComponents.Protocol}//${host}`).host ===
1326
+ parsedUrl.host);
1327
+ // Check authority ambiguity without restricting resource paths, queries, or fragments.
1328
+ if (UNSAFE_AUTHORITY.test(schemeAndAuthority) || !hostMatches) {
1329
+ throw createClientConfigurationError(urlParseError, this.correlationId);
1330
+ }
1302
1331
  let pathSegments = urlComponents.AbsolutePath.split("/");
1303
1332
  pathSegments = pathSegments.filter((val) => val && val.length > 0); // remove empty elements
1304
1333
  urlComponents.PathSegments = pathSegments;
@@ -1336,7 +1365,7 @@ class UrlString {
1336
1365
  }
1337
1366
  }
1338
1367
 
1339
- /*! @azure/msal-common v16.16.0 2026-11-05 */
1368
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
1340
1369
 
1341
1370
  /*
1342
1371
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1490,7 +1519,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
1490
1519
  return null;
1491
1520
  }
1492
1521
 
1493
- /*! @azure/msal-common v16.16.0 2026-11-05 */
1522
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
1494
1523
  /*
1495
1524
  * Copyright (c) Microsoft Corporation. All rights reserved.
1496
1525
  * Licensed under the MIT License.
@@ -1508,7 +1537,7 @@ const AzureCloudInstance = {
1508
1537
  AzureUsGovernment: "https://login.microsoftonline.us",
1509
1538
  };
1510
1539
 
1511
- /*! @azure/msal-common v16.16.0 2026-11-05 */
1540
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
1512
1541
  /*
1513
1542
  * Copyright (c) Microsoft Corporation. All rights reserved.
1514
1543
  * Licensed under the MIT License.
@@ -1518,7 +1547,7 @@ function isCloudInstanceDiscoveryResponse(response) {
1518
1547
  response.hasOwnProperty("metadata"));
1519
1548
  }
1520
1549
 
1521
- /*! @azure/msal-common v16.16.0 2026-11-05 */
1550
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
1522
1551
  /*
1523
1552
  * Copyright (c) Microsoft Corporation. All rights reserved.
1524
1553
  * Licensed under the MIT License.
@@ -1528,7 +1557,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
1528
1557
  response.hasOwnProperty("error_description"));
1529
1558
  }
1530
1559
 
1531
- /*! @azure/msal-common v16.16.0 2026-11-05 */
1560
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
1532
1561
  /*
1533
1562
  * Copyright (c) Microsoft Corporation. All rights reserved.
1534
1563
  * Licensed under the MIT License.
@@ -1599,7 +1628,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
1599
1628
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
1600
1629
  const SetUserData = "setUserData";
1601
1630
 
1602
- /*! @azure/msal-common v16.16.0 2026-11-05 */
1631
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
1603
1632
  /*
1604
1633
  * Copyright (c) Microsoft Corporation. All rights reserved.
1605
1634
  * Licensed under the MIT License.
@@ -1635,7 +1664,8 @@ const invoke = (callback, eventName, logger, telemetryClient, correlationId) =>
1635
1664
  catch (e) {
1636
1665
  logger.trace(`0cfd8i ${eventName}`, correlationId);
1637
1666
  try {
1638
- logger.trace(JSON.stringify(e), correlationId);
1667
+ // Prevent numeric error details from being treated as minified log hashes.
1668
+ logger.tracePii(`028ef8 ${JSON.stringify(e)}`, correlationId);
1639
1669
  }
1640
1670
  catch (e) {
1641
1671
  logger.trace("00dty7", correlationId);
@@ -1679,7 +1709,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
1679
1709
  .catch((e) => {
1680
1710
  logger.trace(`0cfd8i ${eventName}`, correlationId);
1681
1711
  try {
1682
- logger.trace(JSON.stringify(e), correlationId);
1712
+ logger.tracePii(`028ef8 ${JSON.stringify(e)}`, correlationId);
1683
1713
  }
1684
1714
  catch (e) {
1685
1715
  logger.trace("00dty7", correlationId);
@@ -1692,12 +1722,26 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
1692
1722
  };
1693
1723
  };
1694
1724
 
1695
- /*! @azure/msal-common v16.16.0 2026-11-05 */
1725
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
1696
1726
 
1697
1727
  /*
1698
1728
  * Copyright (c) Microsoft Corporation. All rights reserved.
1699
1729
  * Licensed under the MIT License.
1700
1730
  */
1731
+ // Starts with an ASCII letter; remaining characters are ASCII letters, digits, or hyphens.
1732
+ const REGION_NAME_PATTERN = /^[a-z][a-z0-9-]*$/i;
1733
+ // A region becomes a DNS label, limited to 63 octets by RFC 1035 section 2.3.4.
1734
+ const MAX_REGION_NAME_LENGTH = 63;
1735
+ /**
1736
+ * Whether a region can safely be used as a single DNS label.
1737
+ */
1738
+ function isValidRegion(region) {
1739
+ return (typeof region === "string" &&
1740
+ region.length <= MAX_REGION_NAME_LENGTH &&
1741
+ REGION_NAME_PATTERN.test(region) &&
1742
+ // Keep the trailing-hyphen rule explicit rather than complicating the pattern.
1743
+ !region.endsWith("-"));
1744
+ }
1701
1745
  class RegionDiscovery {
1702
1746
  constructor(networkInterface, logger, performanceClient, correlationId) {
1703
1747
  this.networkInterface = networkInterface;
@@ -1757,12 +1801,16 @@ class RegionDiscovery {
1757
1801
  regionDiscoveryMetadata.region_source =
1758
1802
  RegionDiscoverySources.ENVIRONMENT_VARIABLE;
1759
1803
  }
1760
- // If no region was auto detected from the environment or from the IMDS endpoint, mark the attempt as a FAILED_AUTO_DETECTION
1761
- if (!autodetectedRegionName) {
1804
+ // Untrusted discovery values must be a single DNS label before becoming a host prefix.
1805
+ if (!autodetectedRegionName || !isValidRegion(autodetectedRegionName)) {
1806
+ if (autodetectedRegionName) {
1807
+ this.logger.warning("0n83q0", this.correlationId);
1808
+ }
1762
1809
  regionDiscoveryMetadata.region_source =
1763
1810
  RegionDiscoverySources.FAILED_AUTO_DETECTION;
1811
+ return null;
1764
1812
  }
1765
- return autodetectedRegionName || null;
1813
+ return autodetectedRegionName;
1766
1814
  }
1767
1815
  /**
1768
1816
  * Make the call to the IMDS endpoint
@@ -1803,7 +1851,7 @@ RegionDiscovery.IMDS_OPTIONS = {
1803
1851
  },
1804
1852
  };
1805
1853
 
1806
- /*! @azure/msal-common v16.16.0 2026-11-05 */
1854
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
1807
1855
  /*
1808
1856
  * Copyright (c) Microsoft Corporation. All rights reserved.
1809
1857
  * Licensed under the MIT License.
@@ -1868,7 +1916,7 @@ function wasClockTurnedBack(cachedAt) {
1868
1916
  return cachedAtSec > nowSeconds();
1869
1917
  }
1870
1918
 
1871
- /*! @azure/msal-common v16.16.0 2026-11-05 */
1919
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
1872
1920
 
1873
1921
  /*
1874
1922
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2155,7 +2203,7 @@ function serializeAttributeTokens(attributeTokens) {
2155
2203
  return [...attributeTokens].sort().join(" ");
2156
2204
  }
2157
2205
 
2158
- /*! @azure/msal-common v16.16.0 2026-11-05 */
2206
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
2159
2207
 
2160
2208
  /*
2161
2209
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3008,6 +3056,9 @@ class Authority {
3008
3056
  * @param region string
3009
3057
  */
3010
3058
  static buildRegionalAuthorityString(host, region, correlationId, queryString) {
3059
+ if (!isValidRegion(region)) {
3060
+ throw createClientConfigurationError(urlParseError, correlationId);
3061
+ }
3011
3062
  // Create and validate a Url string object with the initial authority string
3012
3063
  const authorityUrlInstance = new UrlString(host, correlationId);
3013
3064
  authorityUrlInstance.validateAsUri();
@@ -3018,7 +3069,7 @@ class Authority {
3018
3069
  }
3019
3070
  // Include the query string portion of the url
3020
3071
  const url = UrlString.constructAuthorityUriFromObject({
3021
- ...authorityUrlInstance.getUrlComponents(),
3072
+ ...authorityUrlParts,
3022
3073
  HostNameAndPort: hostNameAndPort,
3023
3074
  }, correlationId).urlString;
3024
3075
  // Add the query string if a query string was provided
@@ -3123,7 +3174,7 @@ function buildStaticAuthorityOptions(authOptions) {
3123
3174
  };
3124
3175
  }
3125
3176
 
3126
- /*! @azure/msal-common v16.16.0 2026-11-05 */
3177
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
3127
3178
 
3128
3179
  /*
3129
3180
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3157,7 +3208,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
3157
3208
  }
3158
3209
  }
3159
3210
 
3160
- /*! @azure/msal-common v16.16.0 2026-11-05 */
3211
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
3161
3212
 
3162
3213
  /*
3163
3214
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3353,7 +3404,7 @@ class ScopeSet {
3353
3404
  }
3354
3405
  }
3355
3406
 
3356
- /*! @azure/msal-common v16.16.0 2026-11-05 */
3407
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
3357
3408
 
3358
3409
  /*
3359
3410
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3853,7 +3904,7 @@ function addAttributeTokens(parameters, attributeTokens) {
3853
3904
  }
3854
3905
  }
3855
3906
 
3856
- /*! @azure/msal-common v16.16.0 2026-11-05 */
3907
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
3857
3908
 
3858
3909
  /*
3859
3910
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3984,7 +4035,7 @@ function validateUrl(url, logger, correlationId) {
3984
4035
  }
3985
4036
  }
3986
4037
 
3987
- /*! @azure/msal-common v16.16.0 2026-11-05 */
4038
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
3988
4039
 
3989
4040
  /*
3990
4041
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4032,7 +4083,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
4032
4083
  },
4033
4084
  };
4034
4085
 
4035
- /*! @azure/msal-common v16.16.0 2026-11-05 */
4086
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
4036
4087
 
4037
4088
  /*
4038
4089
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4055,7 +4106,7 @@ const DEFAULT_TOKEN_BINDING_KEY_MANAGER = {
4055
4106
  },
4056
4107
  };
4057
4108
 
4058
- /*! @azure/msal-common v16.16.0 2026-11-05 */
4109
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
4059
4110
  /*
4060
4111
  * Copyright (c) Microsoft Corporation. All rights reserved.
4061
4112
  * Licensed under the MIT License.
@@ -4344,12 +4395,12 @@ class Logger {
4344
4395
  }
4345
4396
  }
4346
4397
 
4347
- /*! @azure/msal-common v16.16.0 2026-11-05 */
4398
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
4348
4399
  /* eslint-disable header/header */
4349
4400
  const name$1 = "@azure/msal-common";
4350
- const version$1 = "16.16.0";
4401
+ const version$1 = "16.16.2";
4351
4402
 
4352
- /*! @azure/msal-common v16.16.0 2026-11-05 */
4403
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
4353
4404
  /*
4354
4405
  * Copyright (c) Microsoft Corporation. All rights reserved.
4355
4406
  * Licensed under the MIT License.
@@ -4357,7 +4408,7 @@ const version$1 = "16.16.0";
4357
4408
  const cacheQuotaExceeded = "cache_quota_exceeded";
4358
4409
  const cacheErrorUnknown = "cache_error_unknown";
4359
4410
 
4360
- /*! @azure/msal-common v16.16.0 2026-11-05 */
4411
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
4361
4412
 
4362
4413
  /*
4363
4414
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4395,7 +4446,7 @@ function createCacheError(e) {
4395
4446
  }
4396
4447
  }
4397
4448
 
4398
- /*! @azure/msal-common v16.16.0 2026-11-05 */
4449
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
4399
4450
 
4400
4451
  /*
4401
4452
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4859,19 +4910,25 @@ class CacheManager {
4859
4910
  * @param account
4860
4911
  */
4861
4912
  removeAccount(account, correlationId) {
4862
- this.removeAccountContext(account, correlationId);
4863
4913
  const accountKeys = this.getAccountKeys();
4864
4914
  const keyFilter = (key) => {
4865
4915
  return (key.includes(account.homeAccountId) &&
4866
4916
  key.includes(account.environment));
4867
4917
  };
4918
+ this.getTokenKeys()
4919
+ .idToken.filter(keyFilter)
4920
+ .forEach((key) => {
4921
+ this.removeIdToken(key, correlationId);
4922
+ });
4923
+ this.removeAccountContext(account, correlationId);
4868
4924
  accountKeys.filter(keyFilter).forEach((key) => {
4869
4925
  this.removeItem(key, correlationId);
4870
4926
  this.performanceClient.incrementFields({ accountsRemoved: 1 }, correlationId);
4871
4927
  });
4872
4928
  }
4873
4929
  /**
4874
- * Removes credentials associated with the provided account
4930
+ * Removes access and refresh tokens associated with the provided account,
4931
+ * preserving the account and its ID tokens.
4875
4932
  * @param account
4876
4933
  */
4877
4934
  removeAccountContext(account, correlationId) {
@@ -4880,9 +4937,6 @@ class CacheManager {
4880
4937
  return (key.includes(account.homeAccountId) &&
4881
4938
  key.includes(account.environment));
4882
4939
  };
4883
- allTokenKeys.idToken.filter(keyFilter).forEach((key) => {
4884
- this.removeIdToken(key, correlationId);
4885
- });
4886
4940
  allTokenKeys.accessToken.filter(keyFilter).forEach((key) => {
4887
4941
  this.removeAccessToken(key, correlationId);
4888
4942
  });
@@ -5620,7 +5674,7 @@ class DefaultStorageClass extends CacheManager {
5620
5674
  }
5621
5675
  }
5622
5676
 
5623
- /*! @azure/msal-common v16.16.0 2026-11-05 */
5677
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
5624
5678
  /*
5625
5679
  * Copyright (c) Microsoft Corporation. All rights reserved.
5626
5680
  * Licensed under the MIT License.
@@ -5685,7 +5739,7 @@ const IntFields = new Set([
5685
5739
  "fetchRetryCount",
5686
5740
  ]);
5687
5741
 
5688
- /*! @azure/msal-common v16.16.0 2026-11-05 */
5742
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
5689
5743
 
5690
5744
  /*
5691
5745
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5743,7 +5797,7 @@ class StubPerformanceClient {
5743
5797
  }
5744
5798
  }
5745
5799
 
5746
- /*! @azure/msal-common v16.16.0 2026-11-05 */
5800
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
5747
5801
 
5748
5802
  /*
5749
5803
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5841,7 +5895,7 @@ function isOidcProtocolMode(config) {
5841
5895
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
5842
5896
  }
5843
5897
 
5844
- /*! @azure/msal-common v16.16.0 2026-11-05 */
5898
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
5845
5899
  /*
5846
5900
  * Copyright (c) Microsoft Corporation. All rights reserved.
5847
5901
  * Licensed under the MIT License.
@@ -5868,7 +5922,7 @@ function isOidcProtocolMode(config) {
5868
5922
  }
5869
5923
  }
5870
5924
 
5871
- /*! @azure/msal-common v16.16.0 2026-11-05 */
5925
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
5872
5926
 
5873
5927
  /*
5874
5928
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5889,7 +5943,7 @@ function createJoseHeaderError(code, correlationId) {
5889
5943
  return new JoseHeaderError(code, correlationId);
5890
5944
  }
5891
5945
 
5892
- /*! @azure/msal-common v16.16.0 2026-11-05 */
5946
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
5893
5947
  /*
5894
5948
  * Copyright (c) Microsoft Corporation. All rights reserved.
5895
5949
  * Licensed under the MIT License.
@@ -5914,7 +5968,7 @@ function isPlainObject(value) {
5914
5968
  return Object.getPrototypeOf(value) === proto;
5915
5969
  }
5916
5970
 
5917
- /*! @azure/msal-common v16.16.0 2026-11-05 */
5971
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
5918
5972
  /*
5919
5973
  * Copyright (c) Microsoft Corporation. All rights reserved.
5920
5974
  * Licensed under the MIT License.
@@ -5924,7 +5978,7 @@ const missingAlgError = "missing_alg_error";
5924
5978
  const missingJwkError = "missing_jwk_error";
5925
5979
  const invalidJwkError = "invalid_jwk_error";
5926
5980
 
5927
- /*! @azure/msal-common v16.16.0 2026-11-05 */
5981
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
5928
5982
 
5929
5983
  /*
5930
5984
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5990,7 +6044,7 @@ class JoseHeader {
5990
6044
  }
5991
6045
  }
5992
6046
 
5993
- /*! @azure/msal-common v16.16.0 2026-11-05 */
6047
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
5994
6048
 
5995
6049
  /*
5996
6050
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6091,7 +6145,7 @@ class PopTokenGenerator {
6091
6145
  }
6092
6146
  }
6093
6147
 
6094
- /*! @azure/msal-common v16.16.0 2026-11-05 */
6148
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
6095
6149
 
6096
6150
  /*
6097
6151
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6246,7 +6300,7 @@ class DpopProofGenerator {
6246
6300
  }
6247
6301
  }
6248
6302
 
6249
- /*! @azure/msal-common v16.16.0 2026-11-05 */
6303
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
6250
6304
  /*
6251
6305
  * Copyright (c) Microsoft Corporation. All rights reserved.
6252
6306
  * Licensed under the MIT License.
@@ -6310,7 +6364,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
6310
6364
  uiNotAllowed: uiNotAllowed
6311
6365
  });
6312
6366
 
6313
- /*! @azure/msal-common v16.16.0 2026-11-05 */
6367
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
6314
6368
 
6315
6369
  /*
6316
6370
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6377,7 +6431,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
6377
6431
  return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
6378
6432
  }
6379
6433
 
6380
- /*! @azure/msal-common v16.16.0 2026-11-05 */
6434
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
6381
6435
 
6382
6436
  /*
6383
6437
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6396,7 +6450,7 @@ class ServerError extends AuthError {
6396
6450
  }
6397
6451
  }
6398
6452
 
6399
- /*! @azure/msal-common v16.16.0 2026-11-05 */
6453
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
6400
6454
 
6401
6455
  /*
6402
6456
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6467,7 +6521,7 @@ function parseRequestState(base64Decode, state, correlationId) {
6467
6521
  }
6468
6522
  }
6469
6523
 
6470
- /*! @azure/msal-common v16.16.0 2026-11-05 */
6524
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
6471
6525
 
6472
6526
  /*
6473
6527
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6895,7 +6949,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
6895
6949
  return baseAccount;
6896
6950
  }
6897
6951
 
6898
- /*! @azure/msal-common v16.16.0 2026-11-05 */
6952
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
6899
6953
  /*
6900
6954
  * Copyright (c) Microsoft Corporation. All rights reserved.
6901
6955
  * Licensed under the MIT License.
@@ -6905,7 +6959,7 @@ const CcsCredentialType = {
6905
6959
  UPN: "UPN",
6906
6960
  };
6907
6961
 
6908
- /*! @azure/msal-common v16.16.0 2026-11-05 */
6962
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
6909
6963
  /*
6910
6964
  * Copyright (c) Microsoft Corporation. All rights reserved.
6911
6965
  * Licensed under the MIT License.
@@ -6924,7 +6978,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
6924
6978
  }
6925
6979
  }
6926
6980
 
6927
- /*! @azure/msal-common v16.16.0 2026-11-05 */
6981
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
6928
6982
 
6929
6983
  /*
6930
6984
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6948,7 +7002,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
6948
7002
  };
6949
7003
  }
6950
7004
 
6951
- /*! @azure/msal-common v16.16.0 2026-11-05 */
7005
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
6952
7006
 
6953
7007
  /*
6954
7008
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7038,7 +7092,7 @@ function getRetryAfterHeader(response) {
7038
7092
  return undefined;
7039
7093
  }
7040
7094
 
7041
- /*! @azure/msal-common v16.16.0 2026-11-05 */
7095
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
7042
7096
 
7043
7097
  /*
7044
7098
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7069,7 +7123,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
7069
7123
  return new NetworkError(error, httpStatus, responseHeaders);
7070
7124
  }
7071
7125
 
7072
- /*! @azure/msal-common v16.16.0 2026-11-05 */
7126
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
7073
7127
 
7074
7128
  /*
7075
7129
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7203,7 +7257,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
7203
7257
  return response;
7204
7258
  }
7205
7259
 
7206
- /*! @azure/msal-common v16.16.0 2026-11-05 */
7260
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
7207
7261
 
7208
7262
  /*
7209
7263
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7246,7 +7300,8 @@ class AuthorizationCodeClient {
7246
7300
  throw createClientAuthError(requestCannotBeMade, request.correlationId);
7247
7301
  }
7248
7302
  // Check for new cloud instance
7249
- if (authCodePayload && authCodePayload.cloud_instance_host_name) {
7303
+ if (this.config.authOptions.instanceAware === true &&
7304
+ authCodePayload?.cloud_instance_host_name) {
7250
7305
  await invokeAsync(this.updateTokenEndpointAuthority.bind(this), UpdateTokenEndpointAuthority, this.logger, this.performanceClient, request.correlationId)(authCodePayload.cloud_instance_host_name, request.correlationId);
7251
7306
  }
7252
7307
  const reqTimestamp = nowSeconds();
@@ -7470,7 +7525,7 @@ class AuthorizationCodeClient {
7470
7525
  }
7471
7526
  }
7472
7527
 
7473
- /*! @azure/msal-common v16.16.0 2026-11-05 */
7528
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
7474
7529
 
7475
7530
  /*
7476
7531
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7655,13 +7710,13 @@ function validateAuthorizationResponse(serverResponse, requestState, correlation
7655
7710
  decodedServerResponseState = decodeURIComponent(serverResponse.state);
7656
7711
  }
7657
7712
  catch (e) {
7658
- throw createClientAuthError(invalidState, correlationId, serverResponse.state);
7713
+ throw createClientAuthError(invalidState, correlationId);
7659
7714
  }
7660
7715
  try {
7661
7716
  decodedRequestState = decodeURIComponent(requestState);
7662
7717
  }
7663
7718
  catch (e) {
7664
- throw createClientAuthError(invalidState, correlationId, serverResponse.state);
7719
+ throw createClientAuthError(invalidState, correlationId);
7665
7720
  }
7666
7721
  if (decodedServerResponseState !== decodedRequestState) {
7667
7722
  throw createClientAuthError(stateMismatch, correlationId);
@@ -7700,7 +7755,7 @@ function extractLoginHint(account) {
7700
7755
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7701
7756
  }
7702
7757
 
7703
- /*! @azure/msal-common v16.16.0 2026-11-05 */
7758
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
7704
7759
 
7705
7760
  /*
7706
7761
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8249,7 +8304,7 @@ class PerformanceClient {
8249
8304
  }
8250
8305
  }
8251
8306
 
8252
- /*! @azure/msal-common v16.16.0 2026-11-05 */
8307
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
8253
8308
 
8254
8309
  /*
8255
8310
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8484,7 +8539,7 @@ class RefreshTokenClient {
8484
8539
  }
8485
8540
  }
8486
8541
 
8487
- /*! @azure/msal-common v16.16.0 2026-11-05 */
8542
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
8488
8543
 
8489
8544
  /*
8490
8545
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8777,7 +8832,7 @@ class StubServerTelemetryManager extends ServerTelemetryManager {
8777
8832
  clearNativeBrokerErrorCode() { }
8778
8833
  }
8779
8834
 
8780
- /*! @azure/msal-common v16.16.0 2026-11-05 */
8835
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
8781
8836
 
8782
8837
  /*
8783
8838
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8904,7 +8959,7 @@ class SilentFlowClient {
8904
8959
  }
8905
8960
  }
8906
8961
 
8907
- /*! @azure/msal-common v16.16.0 2026-11-05 */
8962
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
8908
8963
 
8909
8964
  /*
8910
8965
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8920,7 +8975,7 @@ const StubbedNetworkModule = {
8920
8975
  },
8921
8976
  };
8922
8977
 
8923
- /*! @azure/msal-common v16.16.0 2026-11-05 */
8978
+ /*! @azure/msal-common v16.16.2 2026-11-12 */
8924
8979
 
8925
8980
  /*
8926
8981
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11655,7 +11710,7 @@ const EventType = {
11655
11710
 
11656
11711
  /* eslint-disable header/header */
11657
11712
  const name = "@azure/msal-browser";
11658
- const version = "5.28.0";
11713
+ const version = "5.29.1";
11659
11714
 
11660
11715
  /*
11661
11716
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -13901,6 +13956,10 @@ class StandardInteractionClient extends BaseInteractionClient {
13901
13956
  clientId: this.config.auth.clientId,
13902
13957
  authority: discoveredAuthority,
13903
13958
  clientCapabilities: this.config.auth.clientCapabilities,
13959
+ instanceAware: requestExtraQueryParameters?.instance_aware
13960
+ ?.length
13961
+ ? requestExtraQueryParameters.instance_aware === "true"
13962
+ : this.config.auth.instanceAware,
13904
13963
  redirectUri: this.config.auth.redirectUri,
13905
13964
  isMcp: this.config.auth.isMcp,
13906
13965
  },
@@ -14548,37 +14607,38 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
14548
14607
  }, e);
14549
14608
  throw e;
14550
14609
  }
14551
- // check if the tokens can be retrieved from internal cache
14552
- let cachedResult;
14553
- try {
14554
- cachedResult = await this.acquireTokensFromCache(this.accountId, nativeRequest);
14555
- }
14556
- catch (e) {
14557
- if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
14558
- this.logger.info("0eitbc", this.correlationId);
14610
+ if (this.apiId === ApiId.acquireTokenSilent_silentFlow) {
14611
+ let cachedResult;
14612
+ try {
14613
+ cachedResult = await this.acquireTokensFromCache(this.accountId, nativeRequest, cacheLookupPolicy);
14614
+ }
14615
+ catch (e) {
14616
+ if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
14617
+ this.logger.info("0eitbc", this.correlationId);
14618
+ nativeATMeasurement.add({
14619
+ isNativeBroker: false,
14620
+ });
14621
+ nativeATMeasurement.end({
14622
+ success: false,
14623
+ });
14624
+ await this.resetGeneratedDpopRequestKeyBestEffort(nativeRequest);
14625
+ throw e;
14626
+ }
14627
+ // continue with a native call for any and all errors
14628
+ this.logger.info("0957j1", this.correlationId);
14629
+ }
14630
+ if (cachedResult) {
14631
+ // Served from the native internal cache; token did not come directly from the broker
14559
14632
  nativeATMeasurement.add({
14560
14633
  isNativeBroker: false,
14561
14634
  });
14562
14635
  nativeATMeasurement.end({
14563
- success: false,
14636
+ success: true,
14637
+ fromCache: true,
14564
14638
  });
14565
- await this.resetGeneratedDpopRequestKeyBestEffort(nativeRequest);
14566
- throw e;
14639
+ await this.resetGeneratedDpopRequestKey(nativeRequest);
14640
+ return cachedResult;
14567
14641
  }
14568
- // continue with a native call for any and all errors
14569
- this.logger.info("0957j1", this.correlationId);
14570
- }
14571
- if (cachedResult) {
14572
- // Served from the native internal cache; token did not come directly from the broker
14573
- nativeATMeasurement.add({
14574
- isNativeBroker: false,
14575
- });
14576
- nativeATMeasurement.end({
14577
- success: true,
14578
- fromCache: true,
14579
- });
14580
- await this.resetGeneratedDpopRequestKey(nativeRequest);
14581
- return cachedResult;
14582
14642
  }
14583
14643
  // dispatch the request to the broker
14584
14644
  try {
@@ -14669,12 +14729,18 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
14669
14729
  };
14670
14730
  }
14671
14731
  /**
14672
- * Fetches the tokens from the cache if un-expired
14732
+ * Fetches unexpired tokens when allowed by cache policy.
14673
14733
  * @param nativeAccountId
14674
14734
  * @param request
14675
- * @returns authenticationResult
14735
+ * @param cacheLookupPolicy
14736
+ * @returns Cached result, or undefined when cache policy bypasses lookup.
14676
14737
  */
14677
- async acquireTokensFromCache(nativeAccountId, request) {
14738
+ async acquireTokensFromCache(nativeAccountId, request, cacheLookupPolicy = CacheLookupPolicy.Default) {
14739
+ if (cacheLookupPolicy === CacheLookupPolicy.RefreshTokenAndNetwork ||
14740
+ cacheLookupPolicy === CacheLookupPolicy.Skip) {
14741
+ this.logger.verbose("03uwyk", this.correlationId);
14742
+ return undefined;
14743
+ }
14678
14744
  if (!nativeAccountId) {
14679
14745
  this.logger.warning("1ndf3e", this.correlationId);
14680
14746
  throw createClientAuthError(noAccountFound, this.correlationId);
@@ -15024,7 +15090,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
15024
15090
  async cacheAccount(accountEntity, kmsi, clearExistingTokens = true) {
15025
15091
  // Store the account info and hence `nativeAccountId` in browser cache
15026
15092
  await this.browserStorage.setAccount(accountEntity, this.correlationId, kmsi, this.apiId);
15027
- // Remove any existing cached tokens for this account in browser storage
15093
+ // Remove cached web access and refresh tokens, preserving ID tokens.
15028
15094
  if (clearExistingTokens) {
15029
15095
  this.browserStorage.removeAccountContext(getAccountInfo(accountEntity), this.correlationId);
15030
15096
  }
@@ -17972,7 +18038,11 @@ class RedirectClient extends StandardInteractionClient {
17972
18038
  const discoveredAuthority = await invokeAsync(getDiscoveredAuthority, StandardInteractionClientGetDiscoveredAuthority, this.logger, this.performanceClient, request.correlationId)(this.config, this.correlationId, this.performanceClient, this.browserStorage, this.logger, authority, azureCloudOptions, extraQueryParameters, account);
17973
18039
  return invokeAsync(handleResponseEAR, HandleResponseEar, this.logger, this.performanceClient, request.correlationId)(request, serverParams, ApiId.acquireTokenRedirect, this.config, discoveredAuthority, this.browserStorage, this.nativeStorage, this.eventHandler, this.logger, this.performanceClient, this.platformAuthProvider, this.tokenBindingKeyManager);
17974
18040
  }
17975
- const authClient = await invokeAsync(this.createAuthCodeClient.bind(this), StandardInteractionClientCreateAuthCodeClient, this.logger, this.performanceClient, this.correlationId)({ serverTelemetryManager, requestAuthority: request.authority });
18041
+ const authClient = await invokeAsync(this.createAuthCodeClient.bind(this), StandardInteractionClientCreateAuthCodeClient, this.logger, this.performanceClient, this.correlationId)({
18042
+ serverTelemetryManager,
18043
+ requestAuthority: request.authority,
18044
+ requestExtraQueryParameters: request.extraQueryParameters,
18045
+ });
17976
18046
  return invokeAsync(handleResponseCode, HandleResponseCode, this.logger, this.performanceClient, request.correlationId)(request, serverParams, codeVerifier, ApiId.acquireTokenRedirect, this.config, authClient, this.browserStorage, this.nativeStorage, this.eventHandler, this.logger, this.performanceClient, this.platformAuthProvider, this.tokenBindingKeyManager);
17977
18047
  }
17978
18048
  /**