@azure/msal-browser 4.20.0 → 4.21.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 (272) hide show
  1. package/README.md +30 -0
  2. package/dist/app/IPublicClientApplication.mjs +1 -1
  3. package/dist/app/PublicClientApplication.mjs +1 -1
  4. package/dist/app/PublicClientNext.mjs +1 -1
  5. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +2 -3
  6. package/dist/broker/nativeBroker/NativeStatusCodes.mjs.map +1 -1
  7. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  8. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  9. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  10. package/dist/cache/AccountManager.mjs +1 -1
  11. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  12. package/dist/cache/BrowserCacheManager.mjs +1 -1
  13. package/dist/cache/CacheHelpers.mjs +1 -1
  14. package/dist/cache/CacheKeys.mjs +1 -1
  15. package/dist/cache/CookieStorage.mjs +1 -1
  16. package/dist/cache/DatabaseStorage.mjs +1 -1
  17. package/dist/cache/EncryptedData.mjs +1 -1
  18. package/dist/cache/LocalStorage.mjs +1 -1
  19. package/dist/cache/MemoryStorage.mjs +1 -1
  20. package/dist/cache/SessionStorage.mjs +1 -1
  21. package/dist/cache/TokenCache.mjs +1 -1
  22. package/dist/config/Configuration.mjs +1 -1
  23. package/dist/controllers/ControllerFactory.mjs +1 -1
  24. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  25. package/dist/controllers/StandardController.d.ts.map +1 -1
  26. package/dist/controllers/StandardController.mjs +36 -9
  27. package/dist/controllers/StandardController.mjs.map +1 -1
  28. package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
  29. package/dist/crypto/BrowserCrypto.mjs +1 -1
  30. package/dist/crypto/CryptoOps.mjs +1 -1
  31. package/dist/crypto/PkceGenerator.mjs +1 -1
  32. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  33. package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
  34. package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +2 -3
  35. package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs.map +1 -1
  36. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  37. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  38. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  39. package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
  40. package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
  41. package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +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/cache/TokenCache.mjs +1 -1
  51. package/dist/custom-auth-path/config/Configuration.mjs +1 -1
  52. package/dist/custom-auth-path/controllers/ControllerFactory.mjs +1 -1
  53. package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -1
  54. package/dist/custom-auth-path/controllers/StandardController.mjs +36 -9
  55. package/dist/custom-auth-path/controllers/StandardController.mjs.map +1 -1
  56. package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
  57. package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
  58. package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
  59. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +1 -1
  60. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +1 -1
  61. package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  62. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
  63. package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  64. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  65. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  66. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  67. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  68. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
  69. package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
  70. package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  71. package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  72. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  73. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  74. package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  75. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  76. package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  77. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  78. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  79. package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
  80. package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  81. package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  82. package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  83. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  84. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  85. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  86. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  87. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  88. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  89. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  90. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  91. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  92. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  93. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  94. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  95. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  96. package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  97. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
  98. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  99. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  100. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  101. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  102. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  103. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  104. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  105. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  106. package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  107. package/dist/custom-auth-path/custom_auth/index.mjs +1 -1
  108. package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  109. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  110. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  111. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  112. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  113. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  114. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  115. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  116. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  117. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  118. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  119. package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  120. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  121. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  122. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  123. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  124. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  125. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs +1 -1
  126. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  127. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  128. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  129. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  130. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  131. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  132. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  133. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  134. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  135. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  136. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  137. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  138. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  139. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  140. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  141. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  142. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  143. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  144. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  145. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  146. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  147. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  148. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  149. package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
  150. package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
  151. package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
  152. package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
  153. package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
  154. package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  155. package/dist/custom-auth-path/error/NativeAuthError.d.ts.map +1 -1
  156. package/dist/custom-auth-path/error/NativeAuthError.mjs +3 -4
  157. package/dist/custom-auth-path/error/NativeAuthError.mjs.map +1 -1
  158. package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
  159. package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
  160. package/dist/custom-auth-path/event/EventType.mjs +1 -1
  161. package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
  162. package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  163. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  164. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +15 -6
  165. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  166. package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
  167. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +4 -4
  168. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs.map +1 -1
  169. package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
  170. package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
  171. package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
  172. package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
  173. package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
  174. package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
  175. package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
  176. package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
  177. package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
  178. package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
  179. package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
  180. package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
  181. package/dist/custom-auth-path/packageMetadata.mjs +2 -2
  182. package/dist/custom-auth-path/protocol/Authorize.d.ts.map +1 -1
  183. package/dist/custom-auth-path/protocol/Authorize.mjs +5 -1
  184. package/dist/custom-auth-path/protocol/Authorize.mjs.map +1 -1
  185. package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
  186. package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
  187. package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
  188. package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
  189. package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
  190. package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
  191. package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
  192. package/dist/custom_auth/CustomAuthConstants.d.ts +1 -1
  193. package/dist/encode/Base64Decode.mjs +1 -1
  194. package/dist/encode/Base64Encode.mjs +1 -1
  195. package/dist/error/BrowserAuthError.mjs +1 -1
  196. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  197. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  198. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  199. package/dist/error/NativeAuthError.d.ts.map +1 -1
  200. package/dist/error/NativeAuthError.mjs +3 -4
  201. package/dist/error/NativeAuthError.mjs.map +1 -1
  202. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  203. package/dist/error/NestedAppAuthError.mjs +1 -1
  204. package/dist/event/EventHandler.mjs +1 -1
  205. package/dist/event/EventMessage.mjs +1 -1
  206. package/dist/event/EventType.mjs +1 -1
  207. package/dist/index.mjs +1 -1
  208. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  209. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  210. package/dist/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  211. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +15 -6
  212. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  213. package/dist/interaction_client/PopupClient.mjs +1 -1
  214. package/dist/interaction_client/RedirectClient.mjs +4 -4
  215. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  216. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  217. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  218. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  219. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  220. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  221. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  222. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  223. package/dist/naa/BridgeError.mjs +1 -1
  224. package/dist/naa/BridgeProxy.mjs +1 -1
  225. package/dist/naa/BridgeStatusCode.mjs +1 -1
  226. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  227. package/dist/navigation/NavigationClient.mjs +1 -1
  228. package/dist/network/FetchClient.mjs +1 -1
  229. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  230. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  231. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  232. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  233. package/dist/packageMetadata.d.ts +1 -1
  234. package/dist/packageMetadata.mjs +2 -2
  235. package/dist/protocol/Authorize.d.ts.map +1 -1
  236. package/dist/protocol/Authorize.mjs +5 -1
  237. package/dist/protocol/Authorize.mjs.map +1 -1
  238. package/dist/request/RequestHelpers.mjs +1 -1
  239. package/dist/response/ResponseHandler.mjs +1 -1
  240. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  241. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  242. package/dist/utils/BrowserConstants.mjs +1 -1
  243. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  244. package/dist/utils/BrowserUtils.mjs +1 -1
  245. package/dist/utils/Helpers.mjs +1 -1
  246. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  247. package/lib/custom-auth-path/msal-custom-auth.cjs +177 -84
  248. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  249. package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -1
  250. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  251. package/lib/custom-auth-path/types/error/NativeAuthError.d.ts.map +1 -1
  252. package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  253. package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
  254. package/lib/custom-auth-path/types/protocol/Authorize.d.ts.map +1 -1
  255. package/lib/msal-browser.cjs +179 -86
  256. package/lib/msal-browser.cjs.map +1 -1
  257. package/lib/msal-browser.js +179 -86
  258. package/lib/msal-browser.js.map +1 -1
  259. package/lib/msal-browser.min.js +66 -66
  260. package/lib/types/controllers/StandardController.d.ts.map +1 -1
  261. package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  262. package/lib/types/error/NativeAuthError.d.ts.map +1 -1
  263. package/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  264. package/lib/types/packageMetadata.d.ts +1 -1
  265. package/lib/types/protocol/Authorize.d.ts.map +1 -1
  266. package/package.json +2 -2
  267. package/src/controllers/StandardController.ts +42 -9
  268. package/src/error/NativeAuthError.ts +1 -2
  269. package/src/interaction_client/PlatformAuthInteractionClient.ts +17 -5
  270. package/src/interaction_client/RedirectClient.ts +2 -2
  271. package/src/packageMetadata.ts +1 -1
  272. package/src/protocol/Authorize.ts +8 -0
package/README.md CHANGED
@@ -132,6 +132,36 @@ npm test
132
132
  npm run test:coverage
133
133
  ```
134
134
 
135
+ ## Implicit Flow vs Authorization Code Flow with PKCE
136
+
137
+ `@azure/msal-browser` implements the [OAuth 2.0 Authorization Code Flow with PKCE](https://tools.ietf.org/html/rfc7636) for browser-based applications. This is a significant improvement over the Implicit Flow that was used in `@azure/msal`, `msal` or `adal-angular`.
138
+
139
+ ### Authorization Code Flow with PKCE
140
+
141
+ The Authorization Code Flow with Proof Key for Code Exchange (PKCE) is the current industry standard for securing OAuth 2.0 authorization in public clients, including single-page applications (SPAs). Key benefits include:
142
+
143
+ - **Enhanced Security**: PKCE provides protection against authorization code interception attacks
144
+ - **No Tokens in URLs**: Tokens are never exposed in the browser's URL or history
145
+ - **Refresh Token Support**: Enables long-lived sessions through refresh tokens
146
+ - **OIDC Compliance**: Fully compliant with OpenID Connect standards
147
+
148
+ ### Implicit Flow (Deprecated)
149
+
150
+ The Implicit Flow was the previous standard for SPAs but has been deprecated due to security concerns:
151
+
152
+ - **Tokens in URLs**: Access tokens are returned in URL fragments, making them visible in browser history and server logs
153
+ - **No Refresh Tokens**: Implicit flow cannot securely deliver refresh tokens to public clients
154
+ - **Increased Attack Surface**: Tokens are more susceptible to token leakage attacks
155
+
156
+ ### Migration Considerations
157
+
158
+ - **`@azure/msal-browser` only supports Authorization Code Flow with PKCE** - Implicit Flow is not supported
159
+ - If you're migrating from `@azure/msal`, `msal` or `adal-angular`, see our [migration guide](./docs/v1-migration.md)
160
+ - Your Azure AD app registration needs to be configured for the Authorization Code Flow
161
+ - Existing applications using Implicit Flow should migrate to Authorization Code Flow for improved security
162
+
163
+ For more technical details about these flows, refer to the [Microsoft identity platform documentation](https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-auth-code-flow).
164
+
135
165
  ## Framework Wrappers
136
166
 
137
167
  If you are using a framework such as Angular or React you may be interested in using one of our wrapper libraries:
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { createBrowserConfigurationAuthError } from '../error/BrowserConfigurationAuthError.mjs';
4
4
  import { stubbedPublicClientApplicationCalled } from '../error/BrowserConfigurationAuthErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { createV3Controller } from '../controllers/ControllerFactory.mjs';
4
4
  import { StandardController } from '../controllers/StandardController.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { createController } from '../controllers/ControllerFactory.mjs';
4
4
  import { UnknownOperatingContextController } from '../controllers/UnknownOperatingContextController.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,10 +8,9 @@
8
8
  const USER_INTERACTION_REQUIRED = "USER_INTERACTION_REQUIRED";
9
9
  const USER_CANCEL = "USER_CANCEL";
10
10
  const NO_NETWORK = "NO_NETWORK";
11
- const PERSISTENT_ERROR = "PERSISTENT_ERROR";
12
11
  const DISABLED = "DISABLED";
13
12
  const ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
14
13
  const UX_NOT_ALLOWED = "UX_NOT_ALLOWED";
15
14
 
16
- export { ACCOUNT_UNAVAILABLE, DISABLED, NO_NETWORK, PERSISTENT_ERROR, USER_CANCEL, USER_INTERACTION_REQUIRED, UX_NOT_ALLOWED };
15
+ export { ACCOUNT_UNAVAILABLE, DISABLED, NO_NETWORK, USER_CANCEL, USER_INTERACTION_REQUIRED, UX_NOT_ALLOWED };
17
16
  //# sourceMappingURL=NativeStatusCodes.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeStatusCodes.mjs","sources":["../../../src/broker/nativeBroker/NativeStatusCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;AACO,MAAM,yBAAyB,GAAG,4BAA4B;AAC9D,MAAM,WAAW,GAAG,cAAc;AAClC,MAAM,UAAU,GAAG,aAAa;AAEhC,MAAM,gBAAgB,GAAG,mBAAmB;AAC5C,MAAM,QAAQ,GAAG,WAAW;AAC5B,MAAM,mBAAmB,GAAG,sBAAsB;AAClD,MAAM,cAAc,GAAG;;;;"}
1
+ {"version":3,"file":"NativeStatusCodes.mjs","sources":["../../../src/broker/nativeBroker/NativeStatusCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;AACO,MAAM,yBAAyB,GAAG,4BAA4B;AAC9D,MAAM,WAAW,GAAG,cAAc;AAClC,MAAM,UAAU,GAAG,aAAa;AAGhC,MAAM,QAAQ,GAAG,WAAW;AAC5B,MAAM,mBAAmB,GAAG,sBAAsB;AAClD,MAAM,cAAc,GAAG;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { createAuthError, AuthErrorCodes } from '@azure/msal-common/browser';
4
4
  import { PlatformAuthConstants } from '../../utils/BrowserConstants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { PlatformAuthConstants, NativeExtensionMethod } from '../../utils/BrowserConstants.mjs';
4
4
  import { PerformanceEvents, createAuthError, AuthErrorCodes } from '@azure/msal-common/browser';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { Logger, StubPerformanceClient, AuthenticationScheme } from '@azure/msal-common/browser';
4
4
  import { name, version } from '../../packageMetadata.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { BrowserAuthError } from '../error/BrowserAuthError.mjs';
4
4
  import { DatabaseStorage } from './DatabaseStorage.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { CacheManager, CacheHelpers, TimeUtils, DEFAULT_TOKEN_RENEWAL_OFFSET_SEC, createCacheError, CacheErrorCodes, invokeAsync, PerformanceEvents, AccountEntity, Constants, PersistentCacheKeys, StringUtils, AuthenticationScheme, CacheError, DEFAULT_CRYPTO_IMPLEMENTATION, CredentialType } from '@azure/msal-common/browser';
4
4
  import { createBrowserAuthError } from '../error/BrowserAuthError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { getAccountKeysCacheKey, getTokenKeysCacheKey } from './CacheKeys.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { createClientAuthError, ClientAuthErrorCodes } from '@azure/msal-common/browser';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { createBrowserAuthError } from '../error/BrowserAuthError.mjs';
4
4
  import { DB_NAME, DB_VERSION, DB_TABLE_NAME } from '../utils/BrowserConstants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { invoke, PerformanceEvents, invokeAsync } from '@azure/msal-common/browser';
4
4
  import { generateHKDF, createNewGuid, generateBaseKey, decrypt, encrypt } from '../crypto/BrowserCrypto.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { createBrowserConfigurationAuthError } from '../error/BrowserConfigurationAuthError.mjs';
4
4
  import { storageNotSupported } from '../error/BrowserConfigurationAuthErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { AuthToken, Authority, AccountEntity, buildAccountToCache, CacheHelpers, ScopeSet, TimeUtils } from '@azure/msal-common/browser';
4
4
  import { createBrowserAuthError } from '../error/BrowserAuthError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { StubPerformanceClient, ProtocolMode, Logger, LogLevel, createClientConfigurationError, ClientConfigurationErrorCodes, StubbedNetworkModule, DEFAULT_SYSTEM_OPTIONS, Constants, ServerResponseType, AzureCloudInstance } from '@azure/msal-common/browser';
4
4
  import { BrowserConstants, BrowserCacheLocation } from '../utils/BrowserConstants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { NestedAppOperatingContext } from '../operatingcontext/NestedAppOperatingContext.mjs';
4
4
  import { StandardOperatingContext } from '../operatingcontext/StandardOperatingContext.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { DEFAULT_CRYPTO_IMPLEMENTATION, buildStaticAuthorityOptions, PerformanceEvents, TimeUtils, AuthError, OIDC_DEFAULT_SCOPES, AccountEntity } from '@azure/msal-common/browser';
4
4
  import { InteractionType, CacheLookupPolicy, DEFAULT_REQUEST } from '../utils/BrowserConstants.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"StandardController.d.ts","sourceRoot":"","sources":["../../src/controllers/StandardController.ts"],"names":[],"mappings":"AAMA,OAAO,EAEH,WAAW,EAEX,cAAc,EACd,MAAM,EACN,uBAAuB,EACvB,OAAO,EAIP,2BAA2B,EAC3B,kBAAkB,EAClB,eAAe,EASf,aAAa,EAIhB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,mBAAmB,EAEtB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,oBAAoB,EAAgB,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAEH,KAAK,EAEL,UAAU,EACV,iBAAiB,EAKpB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAc,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,0B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AS7D;;;;;;OAMG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC;IASjE;;;;;OAKG;IACG,kBAAkB,CACpB,OAAO,EAAE,aAAa,GACvB,OAAO,CAAC,oBAAoB,CAAC;IAmDhC;;;;;;OAMG;YACW,yBAAyB;IAsDvC;;;;;OAKG;cACa,uBAAuB,CACnC,OAAO,EAAE,aAAa,GAAG;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,EAClD,OAAO,EAAE,WAAW,GACrB,OAAO,CAAC,oBAAoB,CAAC;IAwKhC;;;;;OAKG;YACW,0BAA0B;IA4ExC;;;OAGG;YACW,oBAAoB;IAYlC;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAgBhC,OAAO,CAAC,oBAAoB;CAuB/B"}
1
+ {"version":3,"file":"StandardController.d.ts","sourceRoot":"","sources":["../../src/controllers/StandardController.ts"],"names":[],"mappings":"AAMA,OAAO,EAEH,WAAW,EAEX,cAAc,EACd,MAAM,EACN,uBAAuB,EACvB,OAAO,EAIP,2BAA2B,EAC3B,kBAAkB,EAClB,eAAe,EASf,aAAa,EAIhB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,mBAAmB,EAEtB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,oBAAoB,EAAgB,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAEH,KAAK,EAEL,UAAU,EACV,iBAAiB,EAKpB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAc,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAi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AC7B,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GACnC,MAAM;IAkBT;;;;;;;;OAQG;IACG,aAAa,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAS7D;;;;;;OAMG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC;IASjE;;;;;OAKG;IACG,kBAAkB,CACpB,OAAO,EAAE,aAAa,GACvB,OAAO,CAAC,oBAAoB,CAAC;IAkDhC;;;;;;OAMG;YACW,yBAAyB;IAsDvC;;;;;OAKG;cACa,uBAAuB,CACnC,OAAO,EAAE,aAAa,GAAG;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,EAClD,OAAO,EAAE,WAAW,GACrB,OAAO,CAAC,oBAAoB,CAAC;IAuKhC;;;;;OAKG;YACW,0BAA0B;IAuFxC;;;OAGG;YACW,oBAAoB;IAYlC;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAgBhC,OAAO,CAAC,oBAAoB;CAuB/B"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.20.0 2025-08-12 */
1
+ /*! @azure/msal-browser v4.21.0 2025-08-19 */
2
2
  'use strict';
3
3
  import { CryptoOps } from '../crypto/CryptoOps.mjs';
4
4
  import { DEFAULT_CRYPTO_IMPLEMENTATION, buildStaticAuthorityOptions, PerformanceEvents, invokeAsync, invoke, InteractionRequiredAuthError, createClientAuthError, ClientAuthErrorCodes, AccountEntity, PromptValue, Constants, AuthError, getRequestThumbprint, InteractionRequiredAuthErrorCodes } from '@azure/msal-common/browser';
@@ -242,6 +242,9 @@ class StandardController {
242
242
  if (useNative && this.platformAuthProvider) {
243
243
  rootMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenRedirect, platformBrokerRequest?.correlationId || "");
244
244
  this.logger.trace("handleRedirectPromise - acquiring token from native platform");
245
+ rootMeasurement.add({
246
+ isPlatformBrokerRequest: true,
247
+ });
245
248
  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);
246
249
  redirectResponse = invokeAsync(nativeClient.handleRedirectPromise.bind(nativeClient), PerformanceEvents.HandleNativeRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(this.performanceClient, rootMeasurement.event.correlationId);
247
250
  }
@@ -377,9 +380,13 @@ class StandardController {
377
380
  result = nativeClient
378
381
  .acquireTokenRedirect(request, atrMeasurement)
379
382
  .catch((e) => {
383
+ atrMeasurement.add({
384
+ brokerErrorName: e.name,
385
+ brokerErrorCode: e.errorCode,
386
+ });
380
387
  if (e instanceof NativeAuthError &&
381
388
  isFatalNativeAuthError(e)) {
382
- this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
389
+ this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt platform broker calls
383
390
  const redirectClient = this.createRedirectClient(correlationId);
384
391
  return redirectClient.acquireToken(request);
385
392
  }
@@ -456,6 +463,9 @@ class StandardController {
456
463
  let result;
457
464
  const pkce = this.getPreGeneratedPkceCodes(correlationId);
458
465
  if (this.canUsePlatformBroker(request)) {
466
+ atPopupMeasurement.add({
467
+ isPlatformBrokerRequest: true,
468
+ });
459
469
  result = this.acquireTokenNative({
460
470
  ...request,
461
471
  correlationId,
@@ -463,15 +473,18 @@ class StandardController {
463
473
  .then((response) => {
464
474
  atPopupMeasurement.end({
465
475
  success: true,
466
- isNativeBroker: true,
467
476
  accountType: getAccountType(response.account),
468
477
  });
469
478
  return response;
470
479
  })
471
480
  .catch((e) => {
481
+ atPopupMeasurement.add({
482
+ brokerErrorName: e.name,
483
+ brokerErrorCode: e.errorCode,
484
+ });
472
485
  if (e instanceof NativeAuthError &&
473
486
  isFatalNativeAuthError(e)) {
474
- this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
487
+ this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to continuing to attempt platform broker calls
475
488
  const popupClient = this.createPopupClient(correlationId);
476
489
  return popupClient.acquireToken(request, pkce);
477
490
  }
@@ -577,7 +590,14 @@ class StandardController {
577
590
  this.eventHandler.emitEvent(EventType.SSO_SILENT_START, InteractionType.Silent, validRequest);
578
591
  let result;
579
592
  if (this.canUsePlatformBroker(validRequest)) {
593
+ this.ssoSilentMeasurement?.add({
594
+ isPlatformBrokerRequest: true,
595
+ });
580
596
  result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch((e) => {
597
+ this.ssoSilentMeasurement?.add({
598
+ brokerErrorName: e.name,
599
+ brokerErrorCode: e.errorCode,
600
+ });
581
601
  // If native token acquisition fails for availability reasons fallback to standard flow
582
602
  if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
583
603
  this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
@@ -596,7 +616,6 @@ class StandardController {
596
616
  this.eventHandler.emitEvent(EventType.SSO_SILENT_SUCCESS, InteractionType.Silent, response);
597
617
  this.ssoSilentMeasurement?.end({
598
618
  success: true,
599
- isNativeBroker: response.fromNativeBroker,
600
619
  accessTokenSize: response.accessToken.length,
601
620
  idTokenSize: response.idToken.length,
602
621
  accountType: getAccountType(response.account),
@@ -650,7 +669,6 @@ class StandardController {
650
669
  this.hybridAuthCodeResponses.delete(hybridAuthCode);
651
670
  atbcMeasurement.end({
652
671
  success: true,
653
- isNativeBroker: result.fromNativeBroker,
654
672
  accessTokenSize: result.accessToken.length,
655
673
  idTokenSize: result.idToken.length,
656
674
  accountType: getAccountType(result.account),
@@ -675,6 +693,9 @@ class StandardController {
675
693
  }
676
694
  else if (request.nativeAccountId) {
677
695
  if (this.canUsePlatformBroker(request, request.nativeAccountId)) {
696
+ atbcMeasurement.add({
697
+ isPlatformBrokerRequest: true,
698
+ });
678
699
  const result = await this.acquireTokenNative({
679
700
  ...request,
680
701
  correlationId,
@@ -684,6 +705,10 @@ class StandardController {
684
705
  isFatalNativeAuthError(e)) {
685
706
  this.platformAuthProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
686
707
  }
708
+ atbcMeasurement.add({
709
+ brokerErrorName: e.name,
710
+ brokerErrorCode: e.errorCode,
711
+ });
687
712
  throw e;
688
713
  });
689
714
  atbcMeasurement.end({
@@ -728,7 +753,6 @@ class StandardController {
728
753
  this.acquireTokenByCodeAsyncMeasurement?.end({
729
754
  success: true,
730
755
  fromCache: response.fromCache,
731
- isNativeBroker: response.fromNativeBroker,
732
756
  });
733
757
  return response;
734
758
  })
@@ -1226,7 +1250,6 @@ class StandardController {
1226
1250
  atsMeasurement.end({
1227
1251
  success: true,
1228
1252
  fromCache: result.fromCache,
1229
- isNativeBroker: result.fromNativeBroker,
1230
1253
  accessTokenSize: result.accessToken.length,
1231
1254
  idTokenSize: result.idToken.length,
1232
1255
  });
@@ -1361,7 +1384,6 @@ class StandardController {
1361
1384
  if (request.correlationId) {
1362
1385
  this.performanceClient.addFields({
1363
1386
  fromCache: response.fromCache,
1364
- isNativeBroker: response.fromNativeBroker,
1365
1387
  }, request.correlationId);
1366
1388
  }
1367
1389
  return response;
@@ -1385,7 +1407,12 @@ class StandardController {
1385
1407
  if (isPlatformAuthAllowed(this.config, this.logger, this.platformAuthProvider, silentRequest.authenticationScheme) &&
1386
1408
  silentRequest.account.nativeAccountId) {
1387
1409
  this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform");
1410
+ this.performanceClient.addFields({ isPlatformBrokerRequest: true }, silentRequest.correlationId);
1388
1411
  return this.acquireTokenNative(silentRequest, ApiId.acquireTokenSilent_silentFlow, silentRequest.account.nativeAccountId, cacheLookupPolicy).catch(async (e) => {
1412
+ this.performanceClient.addFields({
1413
+ brokerErrorName: e.name,
1414
+ brokerErrorCode: e.errorCode,
1415
+ }, silentRequest.correlationId);
1389
1416
  // If native token acquisition fails for availability reasons fallback to web flow
1390
1417
  if (e instanceof NativeAuthError && isFatalNativeAuthError(e)) {
1391
1418
  this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow");