@azure/msal-browser 5.1.0 → 5.3.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 (352) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  4. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  5. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  7. package/dist/cache/AccountManager.mjs +1 -1
  8. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  9. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  10. package/dist/cache/BrowserCacheManager.mjs +2 -2
  11. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  12. package/dist/cache/CacheHelpers.mjs +1 -1
  13. package/dist/cache/CacheKeys.mjs +1 -1
  14. package/dist/cache/CookieStorage.mjs +1 -1
  15. package/dist/cache/DatabaseStorage.mjs +1 -1
  16. package/dist/cache/EncryptedData.mjs +1 -1
  17. package/dist/cache/LocalStorage.mjs +1 -1
  18. package/dist/cache/MemoryStorage.mjs +1 -1
  19. package/dist/cache/SessionStorage.mjs +1 -1
  20. package/dist/cache/TokenCache.mjs +1 -1
  21. package/dist/config/Configuration.mjs +1 -1
  22. package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
  23. package/dist/controllers/NestedAppAuthController.mjs +10 -10
  24. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  25. package/dist/controllers/StandardController.d.ts.map +1 -1
  26. package/dist/controllers/StandardController.mjs +39 -35
  27. package/dist/controllers/StandardController.mjs.map +1 -1
  28. package/dist/crypto/BrowserCrypto.mjs +1 -1
  29. package/dist/crypto/CryptoOps.mjs +1 -1
  30. package/dist/crypto/PkceGenerator.mjs +1 -1
  31. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  32. package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
  33. package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  34. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  35. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  36. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  37. package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
  38. package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
  39. package/dist/custom-auth-path/cache/BrowserCacheManager.d.ts.map +1 -1
  40. package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +2 -2
  41. package/dist/custom-auth-path/cache/BrowserCacheManager.mjs.map +1 -1
  42. package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
  43. package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
  44. package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
  45. package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
  46. package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
  47. package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
  48. package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
  49. package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
  50. package/dist/custom-auth-path/config/Configuration.mjs +1 -1
  51. package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts.map +1 -1
  52. package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -1
  53. package/dist/custom-auth-path/controllers/StandardController.mjs +39 -35
  54. package/dist/custom-auth-path/controllers/StandardController.mjs.map +1 -1
  55. package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
  56. package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
  57. package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
  58. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +1 -1
  59. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +1 -1
  60. package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  61. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
  62. package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  63. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  64. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  65. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  66. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  67. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  68. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  69. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  70. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  71. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  72. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  73. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  74. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  75. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  76. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  77. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  78. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  79. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  80. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
  81. package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
  82. package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  83. package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  84. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  85. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  86. package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  87. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  88. package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  89. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  90. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  91. package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
  92. package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  93. package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  94. package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  95. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  96. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  97. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  98. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  99. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  100. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  101. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  102. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  103. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  104. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  105. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  106. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  107. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  108. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  109. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  110. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  111. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  112. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  113. package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  114. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
  115. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  116. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  117. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  118. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  119. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  120. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  121. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  122. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  123. package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  124. package/dist/custom-auth-path/custom_auth/index.mjs +1 -1
  125. package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  126. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  127. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  128. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  129. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  130. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  131. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  132. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  133. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  134. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  135. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  136. package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  137. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  138. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  139. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  140. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  141. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  142. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  143. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  144. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  145. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  146. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  147. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  148. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  149. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  150. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  151. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  152. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  153. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  154. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  155. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  156. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  157. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  158. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  159. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  160. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  161. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  162. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  163. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  164. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  165. package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
  166. package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
  167. package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
  168. package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
  169. package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
  170. package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  171. package/dist/custom-auth-path/error/NativeAuthError.mjs +1 -1
  172. package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
  173. package/dist/custom-auth-path/event/EventHandler.d.ts +1 -1
  174. package/dist/custom-auth-path/event/EventHandler.d.ts.map +1 -1
  175. package/dist/custom-auth-path/event/EventHandler.mjs +3 -2
  176. package/dist/custom-auth-path/event/EventHandler.mjs.map +1 -1
  177. package/dist/custom-auth-path/event/EventMessage.d.ts +1 -0
  178. package/dist/custom-auth-path/event/EventMessage.d.ts.map +1 -1
  179. package/dist/custom-auth-path/event/EventType.mjs +1 -1
  180. package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
  181. package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  182. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  183. package/dist/custom-auth-path/interaction_client/PopupClient.d.ts.map +1 -1
  184. package/dist/custom-auth-path/interaction_client/PopupClient.mjs +9 -9
  185. package/dist/custom-auth-path/interaction_client/PopupClient.mjs.map +1 -1
  186. package/dist/custom-auth-path/interaction_client/RedirectClient.d.ts.map +1 -1
  187. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +8 -8
  188. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs.map +1 -1
  189. package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
  190. package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
  191. package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
  192. package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
  193. package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
  194. package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
  195. package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
  196. package/dist/custom-auth-path/log-strings-mapping.json +2 -2
  197. package/dist/custom-auth-path/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
  198. package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
  199. package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
  200. package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
  201. package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
  202. package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
  203. package/dist/custom-auth-path/packageMetadata.mjs +2 -2
  204. package/dist/custom-auth-path/protocol/Authorize.d.ts.map +1 -1
  205. package/dist/custom-auth-path/protocol/Authorize.mjs +5 -1
  206. package/dist/custom-auth-path/protocol/Authorize.mjs.map +1 -1
  207. package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
  208. package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
  209. package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.mjs +1 -1
  210. package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  211. package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
  212. package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
  213. package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
  214. package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
  215. package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
  216. package/dist/custom_auth/CustomAuthConstants.d.ts +1 -1
  217. package/dist/encode/Base64Decode.mjs +1 -1
  218. package/dist/encode/Base64Encode.mjs +1 -1
  219. package/dist/error/BrowserAuthError.mjs +1 -1
  220. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  221. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  222. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  223. package/dist/error/NativeAuthError.mjs +1 -1
  224. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  225. package/dist/error/NestedAppAuthError.mjs +1 -1
  226. package/dist/event/EventHandler.d.ts +1 -1
  227. package/dist/event/EventHandler.d.ts.map +1 -1
  228. package/dist/event/EventHandler.mjs +3 -2
  229. package/dist/event/EventHandler.mjs.map +1 -1
  230. package/dist/event/EventMessage.d.ts +1 -0
  231. package/dist/event/EventMessage.d.ts.map +1 -1
  232. package/dist/event/EventMessage.mjs +1 -1
  233. package/dist/event/EventMessage.mjs.map +1 -1
  234. package/dist/event/EventType.mjs +1 -1
  235. package/dist/index.mjs +1 -1
  236. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  237. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  238. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  239. package/dist/interaction_client/PopupClient.d.ts.map +1 -1
  240. package/dist/interaction_client/PopupClient.mjs +9 -9
  241. package/dist/interaction_client/PopupClient.mjs.map +1 -1
  242. package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
  243. package/dist/interaction_client/RedirectClient.mjs +8 -8
  244. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  245. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  246. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  247. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  248. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  249. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  250. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  251. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  252. package/dist/log-strings-mapping.json +2 -2
  253. package/dist/naa/BridgeError.mjs +1 -1
  254. package/dist/naa/BridgeProxy.mjs +1 -1
  255. package/dist/naa/BridgeStatusCode.mjs +1 -1
  256. package/dist/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
  257. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +25 -8
  258. package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -1
  259. package/dist/navigation/NavigationClient.mjs +1 -1
  260. package/dist/network/FetchClient.mjs +1 -1
  261. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  262. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  263. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  264. package/dist/packageMetadata.d.ts +1 -1
  265. package/dist/packageMetadata.mjs +2 -2
  266. package/dist/protocol/Authorize.d.ts.map +1 -1
  267. package/dist/protocol/Authorize.mjs +5 -1
  268. package/dist/protocol/Authorize.mjs.map +1 -1
  269. package/dist/redirect-bridge/cache/BrowserCacheManager.d.ts.map +1 -1
  270. package/dist/redirect-bridge/cache/CacheKeys.mjs +1 -1
  271. package/dist/redirect-bridge/config/Configuration.mjs +1 -1
  272. package/dist/redirect-bridge/controllers/NestedAppAuthController.d.ts.map +1 -1
  273. package/dist/redirect-bridge/controllers/StandardController.d.ts.map +1 -1
  274. package/dist/redirect-bridge/custom_auth/CustomAuthConstants.d.ts +1 -1
  275. package/dist/redirect-bridge/encode/Base64Decode.mjs +1 -1
  276. package/dist/redirect-bridge/error/BrowserAuthError.mjs +1 -1
  277. package/dist/redirect-bridge/error/BrowserAuthErrorCodes.mjs +1 -1
  278. package/dist/redirect-bridge/event/EventHandler.d.ts +1 -1
  279. package/dist/redirect-bridge/event/EventHandler.d.ts.map +1 -1
  280. package/dist/redirect-bridge/event/EventMessage.d.ts +1 -0
  281. package/dist/redirect-bridge/event/EventMessage.d.ts.map +1 -1
  282. package/dist/redirect-bridge/interaction_client/PopupClient.d.ts.map +1 -1
  283. package/dist/redirect-bridge/interaction_client/RedirectClient.d.ts.map +1 -1
  284. package/dist/redirect-bridge/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
  285. package/dist/redirect-bridge/navigation/NavigationClient.mjs +1 -1
  286. package/dist/redirect-bridge/packageMetadata.d.ts +1 -1
  287. package/dist/redirect-bridge/protocol/Authorize.d.ts.map +1 -1
  288. package/dist/redirect-bridge/redirect_bridge/index.mjs +2 -2
  289. package/dist/redirect-bridge/redirect_bridge/index.mjs.map +1 -1
  290. package/dist/redirect-bridge/utils/BrowserConstants.mjs +1 -1
  291. package/dist/redirect-bridge/utils/BrowserUtils.mjs +1 -1
  292. package/dist/request/RequestHelpers.mjs +1 -1
  293. package/dist/response/ResponseHandler.mjs +1 -1
  294. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  295. package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
  296. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  297. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  298. package/dist/utils/BrowserConstants.mjs +1 -1
  299. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  300. package/dist/utils/BrowserUtils.mjs +1 -1
  301. package/dist/utils/Helpers.mjs +1 -1
  302. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  303. package/lib/custom-auth-path/log-strings-mapping.json +2 -2
  304. package/lib/custom-auth-path/msal-custom-auth.cjs +181 -137
  305. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  306. package/lib/custom-auth-path/types/cache/BrowserCacheManager.d.ts.map +1 -1
  307. package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  308. package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -1
  309. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  310. package/lib/custom-auth-path/types/event/EventHandler.d.ts +1 -1
  311. package/lib/custom-auth-path/types/event/EventHandler.d.ts.map +1 -1
  312. package/lib/custom-auth-path/types/event/EventMessage.d.ts +1 -0
  313. package/lib/custom-auth-path/types/event/EventMessage.d.ts.map +1 -1
  314. package/lib/custom-auth-path/types/interaction_client/PopupClient.d.ts.map +1 -1
  315. package/lib/custom-auth-path/types/interaction_client/RedirectClient.d.ts.map +1 -1
  316. package/lib/custom-auth-path/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
  317. package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
  318. package/lib/custom-auth-path/types/protocol/Authorize.d.ts.map +1 -1
  319. package/lib/log-strings-mapping.json +2 -2
  320. package/lib/msal-browser.cjs +216 -154
  321. package/lib/msal-browser.cjs.map +1 -1
  322. package/lib/msal-browser.js +216 -154
  323. package/lib/msal-browser.js.map +1 -1
  324. package/lib/msal-browser.min.js +2 -2
  325. package/lib/redirect-bridge/msal-redirect-bridge.js +11 -28
  326. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  327. package/lib/redirect-bridge/msal-redirect-bridge.min.js +2 -2
  328. package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -1
  329. package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  330. package/lib/types/controllers/StandardController.d.ts.map +1 -1
  331. package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  332. package/lib/types/event/EventHandler.d.ts +1 -1
  333. package/lib/types/event/EventHandler.d.ts.map +1 -1
  334. package/lib/types/event/EventMessage.d.ts +1 -0
  335. package/lib/types/event/EventMessage.d.ts.map +1 -1
  336. package/lib/types/interaction_client/PopupClient.d.ts.map +1 -1
  337. package/lib/types/interaction_client/RedirectClient.d.ts.map +1 -1
  338. package/lib/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
  339. package/lib/types/packageMetadata.d.ts +1 -1
  340. package/lib/types/protocol/Authorize.d.ts.map +1 -1
  341. package/package.json +2 -2
  342. package/src/cache/BrowserCacheManager.ts +4 -1
  343. package/src/controllers/NestedAppAuthController.ts +9 -0
  344. package/src/controllers/StandardController.ts +55 -17
  345. package/src/event/EventHandler.ts +2 -0
  346. package/src/event/EventMessage.ts +1 -0
  347. package/src/interaction_client/PopupClient.ts +8 -0
  348. package/src/interaction_client/RedirectClient.ts +7 -0
  349. package/src/naa/mapping/NestedAppAuthAdapter.ts +30 -6
  350. package/src/packageMetadata.ts +1 -1
  351. package/src/protocol/Authorize.ts +13 -0
  352. package/src/redirect_bridge/index.ts +1 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.1.0 2026-01-28 */
1
+ /*! @azure/msal-browser v5.3.0 2026-02-24 */
2
2
  'use strict';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -6,7 +6,7 @@
6
6
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
7
7
  })(this, (function (exports) { 'use strict';
8
8
 
9
- /*! @azure/msal-common v16.0.3 2026-01-28 */
9
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
12
12
  * Licensed under the MIT License.
@@ -238,7 +238,7 @@
238
238
  // Token renewal offset default in seconds
239
239
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
240
240
 
241
- /*! @azure/msal-common v16.0.3 2026-01-28 */
241
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
242
242
  /*
243
243
  * Copyright (c) Microsoft Corporation. All rights reserved.
244
244
  * Licensed under the MIT License.
@@ -288,7 +288,7 @@
288
288
  const EAR_JWK = "ear_jwk";
289
289
  const EAR_JWE_CRYPTO = "ear_jwe_crypto";
290
290
 
291
- /*! @azure/msal-common v16.0.3 2026-01-28 */
291
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
292
292
  /*
293
293
  * Copyright (c) Microsoft Corporation. All rights reserved.
294
294
  * Licensed under the MIT License.
@@ -319,7 +319,7 @@
319
319
  return new AuthError(code, additionalMessage || getDefaultErrorMessage$1(code));
320
320
  }
321
321
 
322
- /*! @azure/msal-common v16.0.3 2026-01-28 */
322
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
323
323
 
324
324
  /*
325
325
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -339,7 +339,7 @@
339
339
  return new ClientConfigurationError(errorCode);
340
340
  }
341
341
 
342
- /*! @azure/msal-common v16.0.3 2026-01-28 */
342
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
343
343
  /*
344
344
  * Copyright (c) Microsoft Corporation. All rights reserved.
345
345
  * Licensed under the MIT License.
@@ -417,26 +417,9 @@
417
417
  return null;
418
418
  }
419
419
  }
420
- /**
421
- * Tests if a given string matches a given pattern, with support for wildcards and queries.
422
- * @param pattern Wildcard pattern to string match. Supports "*" for wildcards and "?" for queries
423
- * @param input String to match against
424
- */
425
- static matchPattern(pattern, input) {
426
- /**
427
- * Wildcard support: https://stackoverflow.com/a/3117248/4888559
428
- * Queries: replaces "?" in string with escaped "\?" for regex test
429
- */
430
- // eslint-disable-next-line security/detect-non-literal-regexp
431
- const regex = new RegExp(pattern
432
- .replace(/\\/g, "\\\\")
433
- .replace(/\*/g, "[^ ]*")
434
- .replace(/\?/g, "\\?"));
435
- return regex.test(input);
436
- }
437
420
  }
438
421
 
439
- /*! @azure/msal-common v16.0.3 2026-01-28 */
422
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
440
423
 
441
424
  /*
442
425
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -459,7 +442,7 @@
459
442
  return new ClientAuthError(errorCode, additionalMessage);
460
443
  }
461
444
 
462
- /*! @azure/msal-common v16.0.3 2026-01-28 */
445
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
463
446
  /*
464
447
  * Copyright (c) Microsoft Corporation. All rights reserved.
465
448
  * Licensed under the MIT License.
@@ -513,7 +496,7 @@
513
496
  urlParseError: urlParseError
514
497
  });
515
498
 
516
- /*! @azure/msal-common v16.0.3 2026-01-28 */
499
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
517
500
  /*
518
501
  * Copyright (c) Microsoft Corporation. All rights reserved.
519
502
  * Licensed under the MIT License.
@@ -597,7 +580,7 @@
597
580
  userCanceled: userCanceled
598
581
  });
599
582
 
600
- /*! @azure/msal-common v16.0.3 2026-01-28 */
583
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
601
584
 
602
585
  /*
603
586
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -792,7 +775,7 @@
792
775
  }
793
776
  }
794
777
 
795
- /*! @azure/msal-common v16.0.3 2026-01-28 */
778
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
796
779
 
797
780
  /*
798
781
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1159,7 +1142,7 @@
1159
1142
  parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
1160
1143
  }
1161
1144
 
1162
- /*! @azure/msal-common v16.0.3 2026-01-28 */
1145
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
1163
1146
 
1164
1147
  /*
1165
1148
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1268,7 +1251,7 @@
1268
1251
  }
1269
1252
  }
1270
1253
 
1271
- /*! @azure/msal-common v16.0.3 2026-01-28 */
1254
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
1272
1255
 
1273
1256
  /*
1274
1257
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1307,7 +1290,7 @@
1307
1290
  },
1308
1291
  };
1309
1292
 
1310
- /*! @azure/msal-common v16.0.3 2026-01-28 */
1293
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
1311
1294
  /*
1312
1295
  * Copyright (c) Microsoft Corporation. All rights reserved.
1313
1296
  * Licensed under the MIT License.
@@ -1582,12 +1565,12 @@
1582
1565
  }
1583
1566
  }
1584
1567
 
1585
- /*! @azure/msal-common v16.0.3 2026-01-28 */
1568
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
1586
1569
  /* eslint-disable header/header */
1587
1570
  const name$1 = "@azure/msal-common";
1588
- const version$1 = "16.0.3";
1571
+ const version$1 = "16.1.0";
1589
1572
 
1590
- /*! @azure/msal-common v16.0.3 2026-01-28 */
1573
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
1591
1574
  /*
1592
1575
  * Copyright (c) Microsoft Corporation. All rights reserved.
1593
1576
  * Licensed under the MIT License.
@@ -1607,7 +1590,7 @@
1607
1590
  AzureUsGovernment: "https://login.microsoftonline.us",
1608
1591
  };
1609
1592
 
1610
- /*! @azure/msal-common v16.0.3 2026-01-28 */
1593
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
1611
1594
  /*
1612
1595
  * Copyright (c) Microsoft Corporation. All rights reserved.
1613
1596
  * Licensed under the MIT License.
@@ -1689,7 +1672,7 @@
1689
1672
  return updatedAccountInfo;
1690
1673
  }
1691
1674
 
1692
- /*! @azure/msal-common v16.0.3 2026-01-28 */
1675
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
1693
1676
 
1694
1677
  /*
1695
1678
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1769,7 +1752,7 @@
1769
1752
  }
1770
1753
  }
1771
1754
 
1772
- /*! @azure/msal-common v16.0.3 2026-01-28 */
1755
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
1773
1756
 
1774
1757
  /*
1775
1758
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1926,7 +1909,7 @@
1926
1909
  }
1927
1910
  }
1928
1911
 
1929
- /*! @azure/msal-common v16.0.3 2026-01-28 */
1912
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
1930
1913
 
1931
1914
  /*
1932
1915
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1997,6 +1980,21 @@
1997
1980
  preferred_cache: "login-us.microsoftonline.com",
1998
1981
  aliases: ["login-us.microsoftonline.com"],
1999
1982
  },
1983
+ {
1984
+ preferred_network: "login.sovcloud-identity.fr",
1985
+ preferred_cache: "login.sovcloud-identity.fr",
1986
+ aliases: ["login.sovcloud-identity.fr"],
1987
+ },
1988
+ {
1989
+ preferred_network: "login.sovcloud-identity.de",
1990
+ preferred_cache: "login.sovcloud-identity.de",
1991
+ aliases: ["login.sovcloud-identity.de"],
1992
+ },
1993
+ {
1994
+ preferred_network: "login.sovcloud-identity.sg",
1995
+ preferred_cache: "login.sovcloud-identity.sg",
1996
+ aliases: ["login.sovcloud-identity.sg"],
1997
+ },
2000
1998
  ],
2001
1999
  },
2002
2000
  };
@@ -2068,7 +2066,7 @@
2068
2066
  return null;
2069
2067
  }
2070
2068
 
2071
- /*! @azure/msal-common v16.0.3 2026-01-28 */
2069
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
2072
2070
  /*
2073
2071
  * Copyright (c) Microsoft Corporation. All rights reserved.
2074
2072
  * Licensed under the MIT License.
@@ -2076,7 +2074,7 @@
2076
2074
  const cacheQuotaExceeded = "cache_quota_exceeded";
2077
2075
  const cacheErrorUnknown = "cache_error_unknown";
2078
2076
 
2079
- /*! @azure/msal-common v16.0.3 2026-01-28 */
2077
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
2080
2078
 
2081
2079
  /*
2082
2080
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2114,7 +2112,7 @@
2114
2112
  }
2115
2113
  }
2116
2114
 
2117
- /*! @azure/msal-common v16.0.3 2026-01-28 */
2115
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
2118
2116
 
2119
2117
  /*
2120
2118
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2152,7 +2150,7 @@
2152
2150
  };
2153
2151
  }
2154
2152
 
2155
- /*! @azure/msal-common v16.0.3 2026-01-28 */
2153
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
2156
2154
  /*
2157
2155
  * Copyright (c) Microsoft Corporation. All rights reserved.
2158
2156
  * Licensed under the MIT License.
@@ -2167,7 +2165,7 @@
2167
2165
  Ciam: 3,
2168
2166
  };
2169
2167
 
2170
- /*! @azure/msal-common v16.0.3 2026-01-28 */
2168
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
2171
2169
  /*
2172
2170
  * Copyright (c) Microsoft Corporation. All rights reserved.
2173
2171
  * Licensed under the MIT License.
@@ -2189,7 +2187,7 @@
2189
2187
  return null;
2190
2188
  }
2191
2189
 
2192
- /*! @azure/msal-common v16.0.3 2026-01-28 */
2190
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
2193
2191
  /*
2194
2192
  * Copyright (c) Microsoft Corporation. All rights reserved.
2195
2193
  * Licensed under the MIT License.
@@ -2213,7 +2211,7 @@
2213
2211
  EAR: "EAR",
2214
2212
  };
2215
2213
 
2216
- /*! @azure/msal-common v16.0.3 2026-01-28 */
2214
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
2217
2215
  /**
2218
2216
  * Returns the AccountInfo interface for this account.
2219
2217
  */
@@ -2388,7 +2386,7 @@
2388
2386
  entity.hasOwnProperty("authorityType"));
2389
2387
  }
2390
2388
 
2391
- /*! @azure/msal-common v16.0.3 2026-01-28 */
2389
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
2392
2390
 
2393
2391
  /*
2394
2392
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3485,7 +3483,7 @@
3485
3483
  }
3486
3484
  }
3487
3485
 
3488
- /*! @azure/msal-common v16.0.3 2026-01-28 */
3486
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
3489
3487
  /*
3490
3488
  * Copyright (c) Microsoft Corporation. All rights reserved.
3491
3489
  * Licensed under the MIT License.
@@ -3526,7 +3524,7 @@
3526
3524
  "upgradedCacheCount",
3527
3525
  ]);
3528
3526
 
3529
- /*! @azure/msal-common v16.0.3 2026-01-28 */
3527
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
3530
3528
 
3531
3529
  /*
3532
3530
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3581,7 +3579,7 @@
3581
3579
  }
3582
3580
  }
3583
3581
 
3584
- /*! @azure/msal-common v16.0.3 2026-01-28 */
3582
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
3585
3583
 
3586
3584
  /*
3587
3585
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3675,7 +3673,7 @@
3675
3673
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3676
3674
  }
3677
3675
 
3678
- /*! @azure/msal-common v16.0.3 2026-01-28 */
3676
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
3679
3677
 
3680
3678
  /*
3681
3679
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3694,27 +3692,63 @@
3694
3692
  }
3695
3693
  }
3696
3694
 
3697
- /*! @azure/msal-common v16.0.3 2026-01-28 */
3695
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
3698
3696
  /*
3699
3697
  * Copyright (c) Microsoft Corporation. All rights reserved.
3700
3698
  * Licensed under the MIT License.
3701
3699
  */
3702
- // Codes defined by MSAL
3700
+ /**
3701
+ * MSAL-defined interaction required error code indicating no tokens are found in cache.
3702
+ * @public
3703
+ */
3703
3704
  const noTokensFound = "no_tokens_found";
3705
+ /**
3706
+ * MSAL-defined error code indicating a native account is unavailable on the platform.
3707
+ * @public
3708
+ */
3704
3709
  const nativeAccountUnavailable = "native_account_unavailable";
3710
+ /**
3711
+ * MSAL-defined error code indicating the refresh token has expired and user interaction is needed.
3712
+ * @public
3713
+ */
3705
3714
  const refreshTokenExpired = "refresh_token_expired";
3715
+ /**
3716
+ * MSAL-defined error code indicating UI/UX is not allowed (e.g., blocked by policy), requiring alternate interaction.
3717
+ * @public
3718
+ */
3706
3719
  const uxNotAllowed = "ux_not_allowed";
3707
- // Codes potentially returned by server
3720
+ /**
3721
+ * Server-originated error code indicating interaction is required to complete the request.
3722
+ * @public
3723
+ */
3708
3724
  const interactionRequired = "interaction_required";
3725
+ /**
3726
+ * Server-originated error code indicating user consent is required.
3727
+ * @public
3728
+ */
3709
3729
  const consentRequired = "consent_required";
3730
+ /**
3731
+ * Server-originated error code indicating user login is required.
3732
+ * @public
3733
+ */
3710
3734
  const loginRequired = "login_required";
3711
- const badToken = "bad_token";
3735
+ /**
3736
+ * Server-originated error code indicating the token is invalid or corrupted.
3737
+ * @public
3738
+ */
3739
+ const badToken = "bad_token";
3740
+ /**
3741
+ * Server-originated error code indicating the user is in an interrupted state and interaction is required.
3742
+ * @public
3743
+ */
3744
+ const interruptedUser = "interrupted_user";
3712
3745
 
3713
3746
  var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
3714
3747
  __proto__: null,
3715
3748
  badToken: badToken,
3716
3749
  consentRequired: consentRequired,
3717
3750
  interactionRequired: interactionRequired,
3751
+ interruptedUser: interruptedUser,
3718
3752
  loginRequired: loginRequired,
3719
3753
  nativeAccountUnavailable: nativeAccountUnavailable,
3720
3754
  noTokensFound: noTokensFound,
@@ -3722,7 +3756,7 @@
3722
3756
  uxNotAllowed: uxNotAllowed
3723
3757
  });
3724
3758
 
3725
- /*! @azure/msal-common v16.0.3 2026-01-28 */
3759
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
3726
3760
 
3727
3761
  /*
3728
3762
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3737,6 +3771,7 @@
3737
3771
  loginRequired,
3738
3772
  badToken,
3739
3773
  uxNotAllowed,
3774
+ interruptedUser,
3740
3775
  ];
3741
3776
  const InteractionRequiredAuthSubErrorMessage = [
3742
3777
  "message_only",
@@ -3746,6 +3781,7 @@
3746
3781
  "consent_required",
3747
3782
  "bad_token",
3748
3783
  "ux_not_allowed",
3784
+ "interrupted_user",
3749
3785
  ];
3750
3786
  /**
3751
3787
  * Error thrown when user interaction is required.
@@ -3788,7 +3824,7 @@
3788
3824
  return new InteractionRequiredAuthError(errorCode, errorMessage);
3789
3825
  }
3790
3826
 
3791
- /*! @azure/msal-common v16.0.3 2026-01-28 */
3827
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
3792
3828
 
3793
3829
  /*
3794
3830
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3856,7 +3892,7 @@
3856
3892
  }
3857
3893
  }
3858
3894
 
3859
- /*! @azure/msal-common v16.0.3 2026-01-28 */
3895
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
3860
3896
  /*
3861
3897
  * Copyright (c) Microsoft Corporation. All rights reserved.
3862
3898
  * Licensed under the MIT License.
@@ -3921,7 +3957,7 @@
3921
3957
  return cachedAtSec > nowSeconds();
3922
3958
  }
3923
3959
 
3924
- /*! @azure/msal-common v16.0.3 2026-01-28 */
3960
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
3925
3961
  /*
3926
3962
  * Copyright (c) Microsoft Corporation. All rights reserved.
3927
3963
  * Licensed under the MIT License.
@@ -3992,7 +4028,7 @@
3992
4028
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
3993
4029
  const SetUserData = "setUserData";
3994
4030
 
3995
- /*! @azure/msal-common v16.0.3 2026-01-28 */
4031
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
3996
4032
  /*
3997
4033
  * Copyright (c) Microsoft Corporation. All rights reserved.
3998
4034
  * Licensed under the MIT License.
@@ -4087,7 +4123,7 @@
4087
4123
  };
4088
4124
  };
4089
4125
 
4090
- /*! @azure/msal-common v16.0.3 2026-01-28 */
4126
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
4091
4127
 
4092
4128
  /*
4093
4129
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4167,7 +4203,7 @@
4167
4203
  }
4168
4204
  }
4169
4205
 
4170
- /*! @azure/msal-common v16.0.3 2026-01-28 */
4206
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
4171
4207
  /*
4172
4208
  * Copyright (c) Microsoft Corporation. All rights reserved.
4173
4209
  * Licensed under the MIT License.
@@ -4194,7 +4230,7 @@
4194
4230
  }
4195
4231
  }
4196
4232
 
4197
- /*! @azure/msal-common v16.0.3 2026-01-28 */
4233
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
4198
4234
 
4199
4235
  /*
4200
4236
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4453,7 +4489,7 @@
4453
4489
  return metadata.expiresAt <= nowSeconds();
4454
4490
  }
4455
4491
 
4456
- /*! @azure/msal-common v16.0.3 2026-01-28 */
4492
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
4457
4493
 
4458
4494
  /*
4459
4495
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4789,7 +4825,7 @@
4789
4825
  return baseAccount;
4790
4826
  }
4791
4827
 
4792
- /*! @azure/msal-common v16.0.3 2026-01-28 */
4828
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
4793
4829
  /*
4794
4830
  * Copyright (c) Microsoft Corporation. All rights reserved.
4795
4831
  * Licensed under the MIT License.
@@ -4799,7 +4835,7 @@
4799
4835
  UPN: "UPN",
4800
4836
  };
4801
4837
 
4802
- /*! @azure/msal-common v16.0.3 2026-01-28 */
4838
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
4803
4839
  /*
4804
4840
  * Copyright (c) Microsoft Corporation. All rights reserved.
4805
4841
  * Licensed under the MIT License.
@@ -4817,7 +4853,7 @@
4817
4853
  }
4818
4854
  }
4819
4855
 
4820
- /*! @azure/msal-common v16.0.3 2026-01-28 */
4856
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
4821
4857
  /*
4822
4858
  * Copyright (c) Microsoft Corporation. All rights reserved.
4823
4859
  * Licensed under the MIT License.
@@ -4838,7 +4874,7 @@
4838
4874
  };
4839
4875
  }
4840
4876
 
4841
- /*! @azure/msal-common v16.0.3 2026-01-28 */
4877
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
4842
4878
 
4843
4879
  /*
4844
4880
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4924,7 +4960,7 @@
4924
4960
  }
4925
4961
  }
4926
4962
 
4927
- /*! @azure/msal-common v16.0.3 2026-01-28 */
4963
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
4928
4964
 
4929
4965
  /*
4930
4966
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4955,7 +4991,7 @@
4955
4991
  return new NetworkError(error, httpStatus, responseHeaders);
4956
4992
  }
4957
4993
 
4958
- /*! @azure/msal-common v16.0.3 2026-01-28 */
4994
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
4959
4995
 
4960
4996
  /*
4961
4997
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5069,7 +5105,7 @@
5069
5105
  return response;
5070
5106
  }
5071
5107
 
5072
- /*! @azure/msal-common v16.0.3 2026-01-28 */
5108
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
5073
5109
  /*
5074
5110
  * Copyright (c) Microsoft Corporation. All rights reserved.
5075
5111
  * Licensed under the MIT License.
@@ -5081,7 +5117,7 @@
5081
5117
  response.hasOwnProperty("jwks_uri"));
5082
5118
  }
5083
5119
 
5084
- /*! @azure/msal-common v16.0.3 2026-01-28 */
5120
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
5085
5121
  /*
5086
5122
  * Copyright (c) Microsoft Corporation. All rights reserved.
5087
5123
  * Licensed under the MIT License.
@@ -5091,7 +5127,7 @@
5091
5127
  response.hasOwnProperty("metadata"));
5092
5128
  }
5093
5129
 
5094
- /*! @azure/msal-common v16.0.3 2026-01-28 */
5130
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
5095
5131
  /*
5096
5132
  * Copyright (c) Microsoft Corporation. All rights reserved.
5097
5133
  * Licensed under the MIT License.
@@ -5101,7 +5137,7 @@
5101
5137
  response.hasOwnProperty("error_description"));
5102
5138
  }
5103
5139
 
5104
- /*! @azure/msal-common v16.0.3 2026-01-28 */
5140
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
5105
5141
 
5106
5142
  /*
5107
5143
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5206,7 +5242,7 @@
5206
5242
  },
5207
5243
  };
5208
5244
 
5209
- /*! @azure/msal-common v16.0.3 2026-01-28 */
5245
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
5210
5246
 
5211
5247
  /*
5212
5248
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6026,7 +6062,7 @@
6026
6062
  };
6027
6063
  }
6028
6064
 
6029
- /*! @azure/msal-common v16.0.3 2026-01-28 */
6065
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
6030
6066
 
6031
6067
  /*
6032
6068
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6060,7 +6096,7 @@
6060
6096
  }
6061
6097
  }
6062
6098
 
6063
- /*! @azure/msal-common v16.0.3 2026-01-28 */
6099
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
6064
6100
 
6065
6101
  /*
6066
6102
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6320,7 +6356,7 @@
6320
6356
  }
6321
6357
  }
6322
6358
 
6323
- /*! @azure/msal-common v16.0.3 2026-01-28 */
6359
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
6324
6360
 
6325
6361
  /*
6326
6362
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6545,7 +6581,7 @@
6545
6581
  }
6546
6582
  }
6547
6583
 
6548
- /*! @azure/msal-common v16.0.3 2026-01-28 */
6584
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
6549
6585
 
6550
6586
  /*
6551
6587
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6654,7 +6690,7 @@
6654
6690
  }
6655
6691
  }
6656
6692
 
6657
- /*! @azure/msal-common v16.0.3 2026-01-28 */
6693
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
6658
6694
 
6659
6695
  /*
6660
6696
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6669,7 +6705,7 @@
6669
6705
  },
6670
6706
  };
6671
6707
 
6672
- /*! @azure/msal-common v16.0.3 2026-01-28 */
6708
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
6673
6709
 
6674
6710
  /*
6675
6711
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6893,7 +6929,7 @@
6893
6929
  return account.loginHint || account.idTokenClaims?.login_hint || null;
6894
6930
  }
6895
6931
 
6896
- /*! @azure/msal-common v16.0.3 2026-01-28 */
6932
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
6897
6933
 
6898
6934
  /*
6899
6935
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6951,7 +6987,7 @@
6951
6987
  }
6952
6988
  }
6953
6989
 
6954
- /*! @azure/msal-common v16.0.3 2026-01-28 */
6990
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
6955
6991
  /*
6956
6992
  * Copyright (c) Microsoft Corporation. All rights reserved.
6957
6993
  * Licensed under the MIT License.
@@ -6968,7 +7004,7 @@
6968
7004
  unexpectedError: unexpectedError
6969
7005
  });
6970
7006
 
6971
- /*! @azure/msal-common v16.0.3 2026-01-28 */
7007
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
6972
7008
 
6973
7009
  /*
6974
7010
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7229,7 +7265,7 @@
7229
7265
  }
7230
7266
  }
7231
7267
 
7232
- /*! @azure/msal-common v16.0.3 2026-01-28 */
7268
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
7233
7269
 
7234
7270
  /*
7235
7271
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7250,7 +7286,7 @@
7250
7286
  return new JoseHeaderError(code);
7251
7287
  }
7252
7288
 
7253
- /*! @azure/msal-common v16.0.3 2026-01-28 */
7289
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
7254
7290
  /*
7255
7291
  * Copyright (c) Microsoft Corporation. All rights reserved.
7256
7292
  * Licensed under the MIT License.
@@ -7258,7 +7294,7 @@
7258
7294
  const missingKidError = "missing_kid_error";
7259
7295
  const missingAlgError = "missing_alg_error";
7260
7296
 
7261
- /*! @azure/msal-common v16.0.3 2026-01-28 */
7297
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
7262
7298
 
7263
7299
  /*
7264
7300
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7298,7 +7334,7 @@
7298
7334
  }
7299
7335
  }
7300
7336
 
7301
- /*! @azure/msal-common v16.0.3 2026-01-28 */
7337
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
7302
7338
 
7303
7339
  /*
7304
7340
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10124,7 +10160,7 @@
10124
10160
 
10125
10161
  /* eslint-disable header/header */
10126
10162
  const name = "@azure/msal-browser";
10127
- const version = "5.1.0";
10163
+ const version = "5.3.0";
10128
10164
 
10129
10165
  /*
10130
10166
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11137,7 +11173,7 @@
11137
11173
  this.logger.verbose("1bp5z5", correlationId);
11138
11174
  this.browserStorage.removeItem(activeAccountKey);
11139
11175
  }
11140
- this.eventHandler.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED);
11176
+ this.eventHandler.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED, correlationId);
11141
11177
  }
11142
11178
  /**
11143
11179
  * fetch throttling entity from the platform cache
@@ -11600,12 +11636,13 @@
11600
11636
  * @param payload
11601
11637
  * @param error
11602
11638
  */
11603
- emitEvent(eventType, interactionType, payload, error) {
11639
+ emitEvent(eventType, correlationId, interactionType, payload, error) {
11604
11640
  const message = {
11605
11641
  eventType: eventType,
11606
11642
  interactionType: interactionType || null,
11607
11643
  payload: payload || null,
11608
11644
  error: error || null,
11645
+ correlationId: correlationId,
11609
11646
  timestamp: Date.now(),
11610
11647
  };
11611
11648
  switch (eventType) {
@@ -13030,6 +13067,8 @@
13030
13067
  });
13031
13068
  const queryParams = new Map();
13032
13069
  addExtraParameters(queryParams, request.extraQueryParameters || {});
13070
+ // Add correlationId to query params so gateway can propagate it to IDPs
13071
+ addCorrelationId(queryParams, request.correlationId);
13033
13072
  const url = getAuthorizeUrl(authority, queryParams);
13034
13073
  return createForm(frame, url, parameters);
13035
13074
  }
@@ -13047,6 +13086,8 @@
13047
13086
  // Add extraQueryParameters to be appended to request URL
13048
13087
  const queryParams = new Map();
13049
13088
  addExtraParameters(queryParams, request.extraQueryParameters || {});
13089
+ // Add correlationId to query params so gateway can propagate it to IDPs
13090
+ addCorrelationId(queryParams, request.correlationId);
13050
13091
  const url = getAuthorizeUrl(authority, queryParams);
13051
13092
  return createForm(frame, url, parameters);
13052
13093
  }
@@ -14134,7 +14175,7 @@
14134
14175
  const navigateUrl = await invokeAsync(getAuthCodeRequestUrl, GetAuthCodeUrl, this.logger, this.performanceClient, correlationId)(this.config, authClient.authority, popupRequest, this.logger, this.performanceClient);
14135
14176
  // Show the UI once the url has been created. Get the window handle for the popup.
14136
14177
  const popupWindow = this.initiateAuthRequest(navigateUrl, popupParams);
14137
- this.eventHandler.emitEvent(EventType.POPUP_OPENED, exports.InteractionType.Popup, { popupWindow }, null);
14178
+ this.eventHandler.emitEvent(EventType.POPUP_OPENED, correlationId, exports.InteractionType.Popup, { popupWindow }, null);
14138
14179
  // Wait for the redirect bridge response
14139
14180
  const responseString = await waitForBridgeResponse(this.config.system.popupBridgeTimeout, this.logger, this.browserCrypto, request);
14140
14181
  const serverParams = invoke(deserializeResponse, DeserializeResponse, this.logger, this.performanceClient, this.correlationId)(responseString, this.config.auth.OIDCOptions.responseMode, this.logger, this.correlationId);
@@ -14211,7 +14252,7 @@
14211
14252
  */
14212
14253
  async logoutPopupAsync(validRequest, popupParams, requestAuthority, mainWindowRedirectUri) {
14213
14254
  this.logger.verbose("0b7yrk", this.correlationId);
14214
- this.eventHandler.emitEvent(EventType.LOGOUT_START, exports.InteractionType.Popup, validRequest);
14255
+ this.eventHandler.emitEvent(EventType.LOGOUT_START, this.correlationId, exports.InteractionType.Popup, validRequest);
14215
14256
  const serverTelemetryManager = initializeServerTelemetryManager(ApiId.logoutPopup, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger);
14216
14257
  try {
14217
14258
  // Clear cache on logout
@@ -14229,7 +14270,7 @@
14229
14270
  if (validRequest.account?.homeAccountId &&
14230
14271
  validRequest.postLogoutRedirectUri &&
14231
14272
  authClient.authority.protocolMode === ProtocolMode.OIDC) {
14232
- this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Popup, validRequest);
14273
+ this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, validRequest.correlationId, exports.InteractionType.Popup, validRequest);
14233
14274
  if (mainWindowRedirectUri) {
14234
14275
  const navigationOptions = {
14235
14276
  apiId: ApiId.logoutPopup,
@@ -14245,10 +14286,10 @@
14245
14286
  }
14246
14287
  // Create logout string and navigate user window to logout.
14247
14288
  const logoutUri = authClient.getLogoutUri(validRequest);
14248
- this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Popup, validRequest);
14289
+ this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, validRequest.correlationId, exports.InteractionType.Popup, validRequest);
14249
14290
  // Open the popup window to requestUrl.
14250
14291
  const popupWindow = this.openPopup(logoutUri, popupParams);
14251
- this.eventHandler.emitEvent(EventType.POPUP_OPENED, exports.InteractionType.Popup, { popupWindow }, null);
14292
+ this.eventHandler.emitEvent(EventType.POPUP_OPENED, validRequest.correlationId, exports.InteractionType.Popup, { popupWindow }, null);
14252
14293
  await waitForBridgeResponse(this.config.system.popupBridgeTimeout, this.logger, this.browserCrypto, validRequest).catch(() => {
14253
14294
  // Swallow any errors related to monitoring the window. Server logout is best effort
14254
14295
  });
@@ -14274,11 +14315,11 @@
14274
14315
  e.setCorrelationId(this.correlationId);
14275
14316
  serverTelemetryManager.cacheFailedRequest(e);
14276
14317
  }
14277
- this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, exports.InteractionType.Popup, null, e);
14278
- this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Popup);
14318
+ this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, this.correlationId, exports.InteractionType.Popup, null, e);
14319
+ this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Popup);
14279
14320
  throw e;
14280
14321
  }
14281
- this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Popup);
14322
+ this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Popup);
14282
14323
  }
14283
14324
  /**
14284
14325
  * Opens a popup window with given request Url.
@@ -14441,7 +14482,7 @@
14441
14482
  if (event.persisted) {
14442
14483
  this.logger.verbose("0udvtt", this.correlationId);
14443
14484
  this.browserStorage.resetRequestCache(this.correlationId);
14444
- this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, exports.InteractionType.Redirect);
14485
+ this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, this.correlationId, exports.InteractionType.Redirect);
14445
14486
  }
14446
14487
  };
14447
14488
  const redirectStartPage = this.getRedirectStartPage(request.redirectStartPage);
@@ -14758,7 +14799,7 @@
14758
14799
  const validLogoutRequest = this.initializeLogoutRequest(logoutRequest);
14759
14800
  const serverTelemetryManager = initializeServerTelemetryManager(ApiId.logout, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger);
14760
14801
  try {
14761
- this.eventHandler.emitEvent(EventType.LOGOUT_START, exports.InteractionType.Redirect, logoutRequest);
14802
+ this.eventHandler.emitEvent(EventType.LOGOUT_START, this.correlationId, exports.InteractionType.Redirect, logoutRequest);
14762
14803
  // Clear cache on logout
14763
14804
  await clearCacheOnLogout(this.browserStorage, this.browserCrypto, this.logger, this.correlationId, validLogoutRequest.account);
14764
14805
  const navigationOptions = {
@@ -14778,7 +14819,7 @@
14778
14819
  }
14779
14820
  catch {
14780
14821
  if (validLogoutRequest.account?.homeAccountId) {
14781
- this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Redirect, validLogoutRequest);
14822
+ this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, this.correlationId, exports.InteractionType.Redirect, validLogoutRequest);
14782
14823
  return;
14783
14824
  }
14784
14825
  }
@@ -14786,7 +14827,7 @@
14786
14827
  // Create logout string and navigate user window to logout.
14787
14828
  const logoutUri = authClient.getLogoutUri(validLogoutRequest);
14788
14829
  if (validLogoutRequest.account?.homeAccountId) {
14789
- this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, exports.InteractionType.Redirect, validLogoutRequest);
14830
+ this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, this.correlationId, exports.InteractionType.Redirect, validLogoutRequest);
14790
14831
  }
14791
14832
  // Check if onRedirectNavigate is implemented, and invoke it if so
14792
14833
  const onRedirectNavigate = this.config.auth.onRedirectNavigate;
@@ -14821,11 +14862,11 @@
14821
14862
  e.setCorrelationId(this.correlationId);
14822
14863
  serverTelemetryManager.cacheFailedRequest(e);
14823
14864
  }
14824
- this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, exports.InteractionType.Redirect, null, e);
14825
- this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Redirect);
14865
+ this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, this.correlationId, exports.InteractionType.Redirect, null, e);
14866
+ this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Redirect);
14826
14867
  throw e;
14827
14868
  }
14828
- this.eventHandler.emitEvent(EventType.LOGOUT_END, exports.InteractionType.Redirect);
14869
+ this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, exports.InteractionType.Redirect);
14829
14870
  }
14830
14871
  /**
14831
14872
  * Use to get the redirectStartPage either from request or use current window
@@ -15316,23 +15357,22 @@
15316
15357
  if (!this.isBrowserEnvironment) {
15317
15358
  this.logger.info("19fvpi", correlationId);
15318
15359
  this.initialized = true;
15319
- this.eventHandler.emitEvent(EventType.INITIALIZE_END);
15360
+ this.eventHandler.emitEvent(EventType.INITIALIZE_END, correlationId);
15320
15361
  return;
15321
15362
  }
15322
- const initCorrelationId = request?.correlationId || this.getRequestCorrelationId();
15323
15363
  const allowPlatformBroker = this.config.system.allowPlatformBroker;
15324
- const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication, initCorrelationId);
15325
- this.eventHandler.emitEvent(EventType.INITIALIZE_START);
15364
+ const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication, correlationId);
15365
+ this.eventHandler.emitEvent(EventType.INITIALIZE_START, correlationId);
15326
15366
  // Broker applications are initialized twice, so we avoid double-counting it
15327
- this.logMultipleInstances(initMeasurement, initCorrelationId);
15328
- await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient, initCorrelationId)(initCorrelationId);
15367
+ this.logMultipleInstances(initMeasurement, correlationId);
15368
+ await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient, correlationId)(correlationId);
15329
15369
  if (allowPlatformBroker) {
15330
15370
  try {
15331
15371
  // check if platform authentication is available via DOM or browser extension and create relevant handlers
15332
- this.platformAuthProvider = await getPlatformAuthProvider(this.logger, this.performanceClient, initCorrelationId, this.config.system.nativeBrokerHandshakeTimeout);
15372
+ this.platformAuthProvider = await getPlatformAuthProvider(this.logger, this.performanceClient, correlationId, this.config.system.nativeBrokerHandshakeTimeout);
15333
15373
  }
15334
15374
  catch (e) {
15335
- this.logger.verbose(e, initCorrelationId);
15375
+ this.logger.verbose(e, correlationId);
15336
15376
  }
15337
15377
  }
15338
15378
  if (this.config.cache.cacheLocation ===
@@ -15340,9 +15380,9 @@
15340
15380
  this.eventHandler.subscribeCrossTab();
15341
15381
  }
15342
15382
  !this.config.system.navigatePopups &&
15343
- (await this.preGeneratePkceCodes(initCorrelationId));
15383
+ (await this.preGeneratePkceCodes(correlationId));
15344
15384
  this.initialized = true;
15345
- this.eventHandler.emitEvent(EventType.INITIALIZE_END);
15385
+ this.eventHandler.emitEvent(EventType.INITIALIZE_END, correlationId);
15346
15386
  initMeasurement.end({
15347
15387
  allowPlatformBroker: allowPlatformBroker,
15348
15388
  success: true,
@@ -15404,11 +15444,11 @@
15404
15444
  this.platformAuthProvider &&
15405
15445
  !options?.hash;
15406
15446
  let rootMeasurement;
15407
- this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, exports.InteractionType.Redirect);
15408
15447
  let redirectResponse;
15409
15448
  try {
15410
15449
  if (useNative && this.platformAuthProvider) {
15411
15450
  const correlationId = platformBrokerRequest?.correlationId || "";
15451
+ this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, exports.InteractionType.Redirect);
15412
15452
  rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
15413
15453
  this.logger.trace("12v7is", correlationId);
15414
15454
  const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.handleRedirectPromise, this.performanceClient, this.platformAuthProvider, platformBrokerRequest.accountId, this.nativeInternalStorage, platformBrokerRequest.correlationId);
@@ -15417,6 +15457,7 @@
15417
15457
  else {
15418
15458
  const [standardRequest, codeVerifier] = this.browserStorage.getCachedRequest("");
15419
15459
  const correlationId = standardRequest.correlationId;
15460
+ this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, exports.InteractionType.Redirect);
15420
15461
  // Reset rootMeasurement now that we have correlationId
15421
15462
  rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
15422
15463
  this.logger.trace("0znzs5", correlationId);
@@ -15432,12 +15473,12 @@
15432
15473
  .then((result) => {
15433
15474
  if (result) {
15434
15475
  this.browserStorage.resetRequestCache(result.correlationId);
15435
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Redirect, result);
15476
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, result.correlationId, exports.InteractionType.Redirect, result);
15436
15477
  this.logger.verbose("0ui8f5", result.correlationId);
15437
15478
  // Emit login event if number of accounts change
15438
15479
  const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
15439
15480
  if (isLoggingIn) {
15440
- this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, exports.InteractionType.Redirect, result.account);
15481
+ this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, result.correlationId, exports.InteractionType.Redirect, result.account);
15441
15482
  this.logger.verbose("16im3l", result.correlationId);
15442
15483
  }
15443
15484
  rootMeasurement.end({
@@ -15456,14 +15497,14 @@
15456
15497
  rootMeasurement.discard();
15457
15498
  }
15458
15499
  }
15459
- this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, exports.InteractionType.Redirect);
15500
+ this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, rootMeasurement.event.correlationId, exports.InteractionType.Redirect);
15460
15501
  return result;
15461
15502
  })
15462
15503
  .catch((e) => {
15463
15504
  this.browserStorage.resetRequestCache(rootMeasurement.event.correlationId);
15464
15505
  const eventError = e;
15465
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Redirect, null, eventError);
15466
- this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, exports.InteractionType.Redirect);
15506
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, rootMeasurement.event.correlationId, exports.InteractionType.Redirect, null, eventError);
15507
+ this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, rootMeasurement.event.correlationId, exports.InteractionType.Redirect);
15467
15508
  rootMeasurement.end({
15468
15509
  success: false,
15469
15510
  }, eventError);
@@ -15502,7 +15543,7 @@
15502
15543
  try {
15503
15544
  redirectPreflightCheck(this.initialized, this.config);
15504
15545
  this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
15505
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Redirect, request);
15546
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Redirect, request);
15506
15547
  let result;
15507
15548
  if (this.platformAuthProvider &&
15508
15549
  this.canUsePlatformBroker(request)) {
@@ -15544,7 +15585,7 @@
15544
15585
  else {
15545
15586
  atrMeasurement.end({ success: false }, e, request.account);
15546
15587
  }
15547
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Redirect, null, e);
15588
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Redirect, null, e);
15548
15589
  throw e;
15549
15590
  }
15550
15591
  }
@@ -15574,7 +15615,7 @@
15574
15615
  }
15575
15616
  // If logged in, emit acquire token events
15576
15617
  const loggedInAccounts = this.getAllAccounts();
15577
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Popup, request);
15618
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Popup, request);
15578
15619
  let result;
15579
15620
  const pkce = this.getPreGeneratedPkceCodes(correlationId);
15580
15621
  if (this.canUsePlatformBroker(request)) {
@@ -15614,9 +15655,9 @@
15614
15655
  * If logged in, emit acquire token events
15615
15656
  */
15616
15657
  const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
15617
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Popup, result);
15658
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Popup, result);
15618
15659
  if (isLoggingIn) {
15619
- this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, exports.InteractionType.Popup, result.account);
15660
+ this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, correlationId, exports.InteractionType.Popup, result.account);
15620
15661
  }
15621
15662
  atPopupMeasurement.end({
15622
15663
  success: true,
@@ -15626,7 +15667,7 @@
15626
15667
  return result;
15627
15668
  })
15628
15669
  .catch((e) => {
15629
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Popup, null, e);
15670
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Popup, null, e);
15630
15671
  atPopupMeasurement.end({
15631
15672
  success: false,
15632
15673
  }, e, request.account);
@@ -15686,7 +15727,7 @@
15686
15727
  document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement);
15687
15728
  const loggedInAccounts = this.getAllAccounts();
15688
15729
  this.logger.verbose("0w1b45", correlationId);
15689
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, validRequest);
15730
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, validRequest);
15690
15731
  let result;
15691
15732
  if (this.canUsePlatformBroker(validRequest)) {
15692
15733
  result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch((e) => {
@@ -15706,9 +15747,9 @@
15706
15747
  return result
15707
15748
  .then((response) => {
15708
15749
  const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
15709
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, response);
15750
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, response);
15710
15751
  if (isLoggingIn) {
15711
- this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, exports.InteractionType.Silent, response.account);
15752
+ this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, correlationId, exports.InteractionType.Silent, response.account);
15712
15753
  }
15713
15754
  this.ssoSilentMeasurement?.end({
15714
15755
  success: true,
@@ -15719,7 +15760,7 @@
15719
15760
  return response;
15720
15761
  })
15721
15762
  .catch((e) => {
15722
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, e);
15763
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, e);
15723
15764
  this.ssoSilentMeasurement?.end({
15724
15765
  success: false,
15725
15766
  }, e, request.account);
@@ -15744,7 +15785,7 @@
15744
15785
  this.logger.trace("0ch6ga", correlationId);
15745
15786
  const atbcMeasurement = this.performanceClient.startMeasurement(AcquireTokenByCode, correlationId);
15746
15787
  preflightCheck(this.initialized, atbcMeasurement);
15747
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, request);
15788
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, request);
15748
15789
  atbcMeasurement.add({ scenarioId: request.scenarioId });
15749
15790
  try {
15750
15791
  if (request.code && request.nativeAccountId) {
@@ -15761,7 +15802,7 @@
15761
15802
  correlationId,
15762
15803
  })
15763
15804
  .then((result) => {
15764
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
15805
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
15765
15806
  this.hybridAuthCodeResponses.delete(hybridAuthCode);
15766
15807
  atbcMeasurement.end({
15767
15808
  success: true,
@@ -15773,7 +15814,7 @@
15773
15814
  })
15774
15815
  .catch((error) => {
15775
15816
  this.hybridAuthCodeResponses.delete(hybridAuthCode);
15776
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, error);
15817
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, error);
15777
15818
  atbcMeasurement.end({
15778
15819
  success: false,
15779
15820
  }, error);
@@ -15814,7 +15855,7 @@
15814
15855
  }
15815
15856
  }
15816
15857
  catch (e) {
15817
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, e);
15858
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, e);
15818
15859
  atbcMeasurement.end({
15819
15860
  success: false,
15820
15861
  }, e);
@@ -16316,7 +16357,7 @@
16316
16357
  */
16317
16358
  async acquireTokenSilentAsync(request, account) {
16318
16359
  const trackPageVisibility = () => this.trackPageVisibility(request.correlationId);
16319
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, request);
16360
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, request.correlationId, exports.InteractionType.Silent, request);
16320
16361
  if (request.correlationId) {
16321
16362
  this.performanceClient.incrementFields({ visibilityChangeCount: 0 }, request.correlationId);
16322
16363
  }
@@ -16326,6 +16367,10 @@
16326
16367
  const result = this.acquireTokenSilentNoIframe(silentRequest, cacheLookupPolicy).catch(async (refreshTokenError) => {
16327
16368
  const shouldTryToResolveSilently = checkIfRefreshTokenErrorCanBeResolvedSilently(refreshTokenError, cacheLookupPolicy);
16328
16369
  if (shouldTryToResolveSilently) {
16370
+ const silentRefreshReason = `${refreshTokenError.errorCode}${refreshTokenError.subError
16371
+ ? `|${refreshTokenError.subError}`
16372
+ : ""}`;
16373
+ this.performanceClient.addFields({ silentRefreshReason }, request.correlationId);
16329
16374
  if (!this.activeIframeRequest) {
16330
16375
  let _resolve;
16331
16376
  // Always set the active request tracker immediately after checking it to prevent races
@@ -16384,7 +16429,7 @@
16384
16429
  });
16385
16430
  return result
16386
16431
  .then((response) => {
16387
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, response);
16432
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, request.correlationId, exports.InteractionType.Silent, response);
16388
16433
  if (request.correlationId) {
16389
16434
  this.performanceClient.addFields({
16390
16435
  fromCache: response.fromCache,
@@ -16394,7 +16439,7 @@
16394
16439
  return response;
16395
16440
  })
16396
16441
  .catch((tokenRenewalError) => {
16397
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, tokenRenewalError);
16442
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, request.correlationId, exports.InteractionType.Silent, null, tokenRenewalError);
16398
16443
  throw tokenRenewalError;
16399
16444
  })
16400
16445
  .finally(() => {
@@ -16433,7 +16478,7 @@
16433
16478
  if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
16434
16479
  throw cacheError;
16435
16480
  }
16436
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, exports.InteractionType.Silent, silentRequest);
16481
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, silentRequest.correlationId, exports.InteractionType.Silent, silentRequest);
16437
16482
  return invokeAsync(this.acquireTokenByRefreshToken.bind(this), AcquireTokenByRefreshToken, this.logger, this.performanceClient, silentRequest.correlationId)(silentRequest, cacheLookupPolicy);
16438
16483
  });
16439
16484
  }
@@ -16763,19 +16808,36 @@
16763
16808
  effectiveIdTokenClaims?.oid ||
16764
16809
  effectiveIdTokenClaims?.sub ||
16765
16810
  "";
16766
- const tenantId = fromAccount.tenantId || effectiveIdTokenClaims?.tid || "";
16767
- const homeAccountId = fromAccount.homeAccountId || `${localAccountId}.${tenantId}`;
16768
- const username = fromAccount.username ||
16769
- effectiveIdTokenClaims?.preferred_username ||
16811
+ /*
16812
+ * In B2C scenarios tid may not be present, use getTenantIdFromIdTokenClaims
16813
+ * which handles tid, tfp (modern B2C), and acr (legacy B2C) claims
16814
+ */
16815
+ const tenantId = fromAccount.tenantId ||
16816
+ getTenantIdFromIdTokenClaims(effectiveIdTokenClaims) ||
16770
16817
  "";
16771
- const name = fromAccount.name || effectiveIdTokenClaims?.name;
16818
+ const homeAccountId = fromAccount.homeAccountId || `${localAccountId}.${tenantId}`;
16819
+ // Validate environment - required field
16820
+ const environment = fromAccount.environment;
16821
+ if (!environment) {
16822
+ throw createClientAuthError(invalidCacheEnvironment);
16823
+ }
16824
+ /*
16825
+ * In B2C scenarios the emails claim is used instead of preferred_username and it is an array.
16826
+ * In most cases it will contain a single email. This field should not be relied upon if a custom
16827
+ * policy is configured to return more than 1 email.
16828
+ */
16829
+ const preferredUsername = effectiveIdTokenClaims?.preferred_username ||
16830
+ effectiveIdTokenClaims?.upn;
16831
+ const email = effectiveIdTokenClaims?.emails?.[0] || null;
16832
+ const username = fromAccount.username || preferredUsername || email || "";
16833
+ const name = fromAccount.name || effectiveIdTokenClaims?.name || "";
16772
16834
  const loginHint = fromAccount.loginHint || effectiveIdTokenClaims?.login_hint;
16773
16835
  const tenantProfiles = new Map();
16774
16836
  const tenantProfile = buildTenantProfile(homeAccountId, localAccountId, tenantId, effectiveIdTokenClaims);
16775
16837
  tenantProfiles.set(tenantId, tenantProfile);
16776
16838
  const account = {
16777
16839
  homeAccountId,
16778
- environment: fromAccount.environment,
16840
+ environment,
16779
16841
  tenantId,
16780
16842
  username,
16781
16843
  localAccountId,
@@ -16946,7 +17008,7 @@
16946
17008
  async acquireTokenInteractive(request) {
16947
17009
  const validRequest = this.ensureValidRequest(request);
16948
17010
  const correlationId = validRequest.correlationId || createNewGuid();
16949
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Popup, validRequest);
17011
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Popup, validRequest);
16950
17012
  const atPopupMeasurement = this.performanceClient.startMeasurement(AcquireTokenPopup, correlationId);
16951
17013
  atPopupMeasurement.add({ nestedAppAuthRequest: true });
16952
17014
  try {
@@ -16970,7 +17032,7 @@
16970
17032
  environment: result.account.environment,
16971
17033
  tenantId: result.account.tenantId,
16972
17034
  };
16973
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Popup, result);
17035
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Popup, result);
16974
17036
  atPopupMeasurement.add({
16975
17037
  accessTokenSize: result.accessToken.length,
16976
17038
  idTokenSize: result.idToken.length,
@@ -16985,7 +17047,7 @@
16985
17047
  const error = e instanceof AuthError
16986
17048
  ? e
16987
17049
  : this.nestedAppAuthAdapter.fromBridgeError(e);
16988
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Popup, null, e);
17050
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Popup, null, e);
16989
17051
  atPopupMeasurement.end({
16990
17052
  success: false,
16991
17053
  }, e, request.account);
@@ -17000,11 +17062,11 @@
17000
17062
  async acquireTokenSilentInternal(request) {
17001
17063
  const validRequest = this.ensureValidRequest(request);
17002
17064
  const correlationId = validRequest.correlationId || createNewGuid();
17003
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Silent, validRequest);
17065
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, exports.InteractionType.Silent, validRequest);
17004
17066
  // Look for tokens in the cache first
17005
17067
  const result = await this.acquireTokenFromCache(validRequest);
17006
17068
  if (result) {
17007
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
17069
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
17008
17070
  return result;
17009
17071
  }
17010
17072
  // proceed with acquiring tokens via the host
@@ -17035,7 +17097,7 @@
17035
17097
  environment: result.account.environment,
17036
17098
  tenantId: result.account.tenantId,
17037
17099
  };
17038
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
17100
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
17039
17101
  ssoSilentMeasurement?.add({
17040
17102
  accessTokenSize: result.accessToken.length,
17041
17103
  idTokenSize: result.idToken.length,
@@ -17050,7 +17112,7 @@
17050
17112
  const error = e instanceof AuthError
17051
17113
  ? e
17052
17114
  : this.nestedAppAuthAdapter.fromBridgeError(e);
17053
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null, e);
17115
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null, e);
17054
17116
  ssoSilentMeasurement?.end({
17055
17117
  success: false,
17056
17118
  }, e, request.account);
@@ -17093,7 +17155,7 @@
17093
17155
  return null;
17094
17156
  }
17095
17157
  if (result) {
17096
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Silent, result);
17158
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, exports.InteractionType.Silent, result);
17097
17159
  atsMeasurement.add({
17098
17160
  accessTokenSize: result.accessToken.length,
17099
17161
  idTokenSize: result.idToken.length,
@@ -17104,7 +17166,7 @@
17104
17166
  return result;
17105
17167
  }
17106
17168
  this.logger.warning("1yb4fi", correlationId);
17107
- this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null);
17169
+ this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, exports.InteractionType.Silent, null);
17108
17170
  atsMeasurement.end({
17109
17171
  success: false,
17110
17172
  }, undefined, request.account);