@azure/msal-browser 4.20.0 → 4.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (383) 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/configuration/CustomAuthConfiguration.d.ts +1 -0
  63. package/dist/custom-auth-path/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -1
  64. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  65. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +2 -2
  66. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  67. package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  68. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +5 -0
  69. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  70. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +8 -1
  71. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs.map +1 -1
  72. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  73. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  74. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.d.ts +2 -1
  75. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
  76. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +5 -3
  77. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -1
  78. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
  79. package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
  80. package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  81. package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  82. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  83. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  84. package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  85. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  86. package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  87. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  88. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  89. package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
  90. package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  91. package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  92. package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  93. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  94. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  95. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -1
  96. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +2 -2
  97. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs.map +1 -1
  98. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +1 -1
  99. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  100. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +5 -5
  101. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs.map +1 -1
  102. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  103. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +3 -0
  104. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -1
  105. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +8 -1
  106. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs.map +1 -1
  107. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +3 -0
  108. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  109. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +8 -1
  110. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map +1 -1
  111. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +3 -0
  112. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -1
  113. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +8 -1
  114. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs.map +1 -1
  115. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  116. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  117. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  118. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  119. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  120. package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  121. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
  122. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  123. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  124. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  125. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  126. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  127. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  128. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  129. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  130. package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  131. package/dist/custom-auth-path/custom_auth/index.mjs +1 -1
  132. package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  133. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts +0 -15
  134. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map +1 -1
  135. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -22
  136. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs.map +1 -1
  137. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  138. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  139. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  140. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  141. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  142. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  143. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  144. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  145. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  146. package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  147. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  148. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +0 -10
  149. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
  150. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -15
  151. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs.map +1 -1
  152. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  153. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  154. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  155. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs +1 -1
  156. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  157. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  158. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  159. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  160. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  161. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  162. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  163. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  164. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  165. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts +0 -25
  166. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts.map +1 -1
  167. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -36
  168. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs.map +1 -1
  169. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  170. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  171. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  172. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  173. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  174. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  175. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  176. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  177. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  178. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  179. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  180. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  181. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  182. package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
  183. package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
  184. package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
  185. package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
  186. package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
  187. package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  188. package/dist/custom-auth-path/error/NativeAuthError.d.ts.map +1 -1
  189. package/dist/custom-auth-path/error/NativeAuthError.mjs +3 -4
  190. package/dist/custom-auth-path/error/NativeAuthError.mjs.map +1 -1
  191. package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
  192. package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
  193. package/dist/custom-auth-path/event/EventType.mjs +1 -1
  194. package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
  195. package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  196. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  197. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +15 -6
  198. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  199. package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
  200. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +4 -4
  201. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs.map +1 -1
  202. package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
  203. package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
  204. package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
  205. package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
  206. package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
  207. package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
  208. package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
  209. package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
  210. package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
  211. package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
  212. package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
  213. package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
  214. package/dist/custom-auth-path/packageMetadata.mjs +2 -2
  215. package/dist/custom-auth-path/protocol/Authorize.d.ts.map +1 -1
  216. package/dist/custom-auth-path/protocol/Authorize.mjs +5 -1
  217. package/dist/custom-auth-path/protocol/Authorize.mjs.map +1 -1
  218. package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
  219. package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
  220. package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
  221. package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
  222. package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
  223. package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
  224. package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
  225. package/dist/custom_auth/CustomAuthConstants.d.ts +1 -1
  226. package/dist/custom_auth/configuration/CustomAuthConfiguration.d.ts +1 -0
  227. package/dist/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -1
  228. package/dist/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  229. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +5 -0
  230. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  231. package/dist/custom_auth/core/error/CustomAuthApiError.d.ts +2 -1
  232. package/dist/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
  233. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -1
  234. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +1 -1
  235. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  236. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +3 -0
  237. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -1
  238. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +3 -0
  239. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  240. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +3 -0
  241. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -1
  242. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts +0 -15
  243. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map +1 -1
  244. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +0 -10
  245. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
  246. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts +0 -25
  247. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts.map +1 -1
  248. package/dist/encode/Base64Decode.mjs +1 -1
  249. package/dist/encode/Base64Encode.mjs +1 -1
  250. package/dist/error/BrowserAuthError.mjs +1 -1
  251. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  252. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  253. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  254. package/dist/error/NativeAuthError.d.ts.map +1 -1
  255. package/dist/error/NativeAuthError.mjs +3 -4
  256. package/dist/error/NativeAuthError.mjs.map +1 -1
  257. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  258. package/dist/error/NestedAppAuthError.mjs +1 -1
  259. package/dist/event/EventHandler.mjs +1 -1
  260. package/dist/event/EventMessage.mjs +1 -1
  261. package/dist/event/EventType.mjs +1 -1
  262. package/dist/index.mjs +1 -1
  263. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  264. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  265. package/dist/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  266. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +15 -6
  267. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  268. package/dist/interaction_client/PopupClient.mjs +1 -1
  269. package/dist/interaction_client/RedirectClient.mjs +4 -4
  270. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  271. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  272. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  273. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  274. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  275. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  276. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  277. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  278. package/dist/naa/BridgeError.mjs +1 -1
  279. package/dist/naa/BridgeProxy.mjs +1 -1
  280. package/dist/naa/BridgeStatusCode.mjs +1 -1
  281. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  282. package/dist/navigation/NavigationClient.mjs +1 -1
  283. package/dist/network/FetchClient.mjs +1 -1
  284. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  285. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  286. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  287. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  288. package/dist/packageMetadata.d.ts +1 -1
  289. package/dist/packageMetadata.mjs +2 -2
  290. package/dist/protocol/Authorize.d.ts.map +1 -1
  291. package/dist/protocol/Authorize.mjs +5 -1
  292. package/dist/protocol/Authorize.mjs.map +1 -1
  293. package/dist/request/RequestHelpers.mjs +1 -1
  294. package/dist/response/ResponseHandler.mjs +1 -1
  295. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  296. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  297. package/dist/utils/BrowserConstants.mjs +1 -1
  298. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  299. package/dist/utils/BrowserUtils.mjs +1 -1
  300. package/dist/utils/Helpers.mjs +1 -1
  301. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  302. package/lib/custom-auth-path/msal-custom-auth.cjs +215 -162
  303. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  304. package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -1
  305. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  306. package/lib/custom-auth-path/types/custom_auth/configuration/CustomAuthConfiguration.d.ts +1 -0
  307. package/lib/custom-auth-path/types/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -1
  308. package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  309. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +5 -0
  310. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  311. package/lib/custom-auth-path/types/custom_auth/core/error/CustomAuthApiError.d.ts +2 -1
  312. package/lib/custom-auth-path/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
  313. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -1
  314. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +1 -1
  315. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  316. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +3 -0
  317. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -1
  318. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +3 -0
  319. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  320. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +3 -0
  321. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -1
  322. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts +0 -15
  323. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map +1 -1
  324. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +0 -10
  325. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
  326. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts +0 -25
  327. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts.map +1 -1
  328. package/lib/custom-auth-path/types/error/NativeAuthError.d.ts.map +1 -1
  329. package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  330. package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
  331. package/lib/custom-auth-path/types/protocol/Authorize.d.ts.map +1 -1
  332. package/lib/msal-browser.cjs +179 -86
  333. package/lib/msal-browser.cjs.map +1 -1
  334. package/lib/msal-browser.js +179 -86
  335. package/lib/msal-browser.js.map +1 -1
  336. package/lib/msal-browser.min.js +66 -66
  337. package/lib/types/controllers/StandardController.d.ts.map +1 -1
  338. package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  339. package/lib/types/custom_auth/configuration/CustomAuthConfiguration.d.ts +1 -0
  340. package/lib/types/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -1
  341. package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  342. package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +5 -0
  343. package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  344. package/lib/types/custom_auth/core/error/CustomAuthApiError.d.ts +2 -1
  345. package/lib/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
  346. package/lib/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -1
  347. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +1 -1
  348. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  349. package/lib/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +3 -0
  350. package/lib/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -1
  351. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +3 -0
  352. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  353. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +3 -0
  354. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -1
  355. package/lib/types/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts +0 -15
  356. package/lib/types/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.d.ts.map +1 -1
  357. package/lib/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +0 -10
  358. package/lib/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
  359. package/lib/types/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts +0 -25
  360. package/lib/types/custom_auth/sign_up/auth_flow/error_type/SignUpError.d.ts.map +1 -1
  361. package/lib/types/error/NativeAuthError.d.ts.map +1 -1
  362. package/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  363. package/lib/types/packageMetadata.d.ts +1 -1
  364. package/lib/types/protocol/Authorize.d.ts.map +1 -1
  365. package/package.json +2 -2
  366. package/src/controllers/StandardController.ts +42 -9
  367. package/src/custom_auth/configuration/CustomAuthConfiguration.ts +1 -0
  368. package/src/custom_auth/controller/CustomAuthStandardController.ts +2 -1
  369. package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +8 -0
  370. package/src/custom_auth/core/error/CustomAuthApiError.ts +3 -2
  371. package/src/custom_auth/core/network_client/custom_auth_api/BaseApiClient.ts +4 -1
  372. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts +8 -4
  373. package/src/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.ts +16 -0
  374. package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +16 -0
  375. package/src/custom_auth/core/network_client/custom_auth_api/SignupApiClient.ts +16 -0
  376. package/src/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.ts +1 -25
  377. package/src/custom_auth/sign_in/auth_flow/error_type/SignInError.ts +1 -17
  378. package/src/custom_auth/sign_up/auth_flow/error_type/SignUpError.ts +1 -41
  379. package/src/error/NativeAuthError.ts +1 -2
  380. package/src/interaction_client/PlatformAuthInteractionClient.ts +17 -5
  381. package/src/interaction_client/RedirectClient.ts +2 -2
  382. package/src/packageMetadata.ts +1 -1
  383. package/src/protocol/Authorize.ts +8 -0
@@ -128,7 +128,10 @@ export abstract class BaseApiClient {
128
128
  typeof responseData === "object" &&
129
129
  responseData.challenge_type === ChallengeType.REDIRECT
130
130
  ) {
131
- throw new RedirectError(correlationId);
131
+ throw new RedirectError(
132
+ correlationId,
133
+ responseData.redirect_reason
134
+ );
132
135
  }
133
136
 
134
137
  return {
@@ -17,22 +17,26 @@ export class CustomAuthApiClient implements ICustomAuthApiClient {
17
17
  constructor(
18
18
  customAuthApiBaseUrl: string,
19
19
  clientId: string,
20
- httpClient: IHttpClient
20
+ httpClient: IHttpClient,
21
+ capabilities?: string
21
22
  ) {
22
23
  this.signInApi = new SignInApiClient(
23
24
  customAuthApiBaseUrl,
24
25
  clientId,
25
- httpClient
26
+ httpClient,
27
+ capabilities
26
28
  );
27
29
  this.signUpApi = new SignupApiClient(
28
30
  customAuthApiBaseUrl,
29
31
  clientId,
30
- httpClient
32
+ httpClient,
33
+ capabilities
31
34
  );
32
35
  this.resetPasswordApi = new ResetPasswordApiClient(
33
36
  customAuthApiBaseUrl,
34
37
  clientId,
35
- httpClient
38
+ httpClient,
39
+ capabilities
36
40
  );
37
41
  }
38
42
  }
@@ -9,6 +9,7 @@ import {
9
9
  } from "../../../CustomAuthConstants.js";
10
10
  import { CustomAuthApiError } from "../../error/CustomAuthApiError.js";
11
11
  import { BaseApiClient } from "./BaseApiClient.js";
12
+ import { IHttpClient } from "../http_client/IHttpClient.js";
12
13
  import * as CustomAuthApiEndpoint from "./CustomAuthApiEndpoint.js";
13
14
  import * as CustomAuthApiErrorCode from "./types/ApiErrorCodes.js";
14
15
  import {
@@ -27,6 +28,18 @@ import {
27
28
  } from "./types/ApiResponseTypes.js";
28
29
 
29
30
  export class ResetPasswordApiClient extends BaseApiClient {
31
+ private readonly capabilities?: string;
32
+
33
+ constructor(
34
+ customAuthApiBaseUrl: string,
35
+ clientId: string,
36
+ httpClient: IHttpClient,
37
+ capabilities?: string
38
+ ) {
39
+ super(customAuthApiBaseUrl, clientId, httpClient);
40
+ this.capabilities = capabilities;
41
+ }
42
+
30
43
  /**
31
44
  * Start the password reset flow
32
45
  */
@@ -38,6 +51,9 @@ export class ResetPasswordApiClient extends BaseApiClient {
38
51
  {
39
52
  challenge_type: params.challenge_type,
40
53
  username: params.username,
54
+ ...(this.capabilities && {
55
+ capabilities: this.capabilities,
56
+ }),
41
57
  },
42
58
  params.telemetryManager,
43
59
  params.correlationId
@@ -7,6 +7,7 @@ import { ServerTelemetryManager } from "@azure/msal-common/browser";
7
7
  import { GrantType } from "../../../CustomAuthConstants.js";
8
8
  import { CustomAuthApiError } from "../../error/CustomAuthApiError.js";
9
9
  import { BaseApiClient } from "./BaseApiClient.js";
10
+ import { IHttpClient } from "../http_client/IHttpClient.js";
10
11
  import * as CustomAuthApiEndpoint from "./CustomAuthApiEndpoint.js";
11
12
  import * as CustomAuthApiErrorCode from "./types/ApiErrorCodes.js";
12
13
  import {
@@ -23,6 +24,18 @@ import {
23
24
  } from "./types/ApiResponseTypes.js";
24
25
 
25
26
  export class SignInApiClient extends BaseApiClient {
27
+ private readonly capabilities?: string;
28
+
29
+ constructor(
30
+ customAuthApiBaseUrl: string,
31
+ clientId: string,
32
+ httpClient: IHttpClient,
33
+ capabilities?: string
34
+ ) {
35
+ super(customAuthApiBaseUrl, clientId, httpClient);
36
+ this.capabilities = capabilities;
37
+ }
38
+
26
39
  /**
27
40
  * Initiates the sign-in flow
28
41
  * @param username User's email
@@ -36,6 +49,9 @@ export class SignInApiClient extends BaseApiClient {
36
49
  {
37
50
  username: params.username,
38
51
  challenge_type: params.challenge_type,
52
+ ...(this.capabilities && {
53
+ capabilities: this.capabilities,
54
+ }),
39
55
  },
40
56
  params.telemetryManager,
41
57
  params.correlationId
@@ -5,6 +5,7 @@
5
5
 
6
6
  import { GrantType } from "../../../CustomAuthConstants.js";
7
7
  import { BaseApiClient } from "./BaseApiClient.js";
8
+ import { IHttpClient } from "../http_client/IHttpClient.js";
8
9
  import * as CustomAuthApiEndpoint from "./CustomAuthApiEndpoint.js";
9
10
  import {
10
11
  SignUpChallengeRequest,
@@ -20,6 +21,18 @@ import {
20
21
  } from "./types/ApiResponseTypes.js";
21
22
 
22
23
  export class SignupApiClient extends BaseApiClient {
24
+ private readonly capabilities?: string;
25
+
26
+ constructor(
27
+ customAuthApiBaseUrl: string,
28
+ clientId: string,
29
+ httpClient: IHttpClient,
30
+ capabilities?: string
31
+ ) {
32
+ super(customAuthApiBaseUrl, clientId, httpClient);
33
+ this.capabilities = capabilities;
34
+ }
35
+
23
36
  /**
24
37
  * Start the sign-up flow
25
38
  */
@@ -33,6 +46,9 @@ export class SignupApiClient extends BaseApiClient {
33
46
  attributes: JSON.stringify(params.attributes),
34
47
  }),
35
48
  challenge_type: params.challenge_type,
49
+ ...(this.capabilities && {
50
+ capabilities: this.capabilities,
51
+ }),
36
52
  },
37
53
  params.telemetryManager,
38
54
  params.correlationId
@@ -31,14 +31,6 @@ export class ResetPasswordError extends AuthActionErrorBase {
31
31
  isUnsupportedChallengeType(): boolean {
32
32
  return this.isUnsupportedChallengeTypeError();
33
33
  }
34
-
35
- /**
36
- * Check if client app supports the challenge type configured in Entra.
37
- * @returns {boolean} True if client app doesn't support the challenge type configured in Entra, "loginPopup" function is required to continue the operation.
38
- */
39
- isRedirectRequired(): boolean {
40
- return this.isRedirectError();
41
- }
42
34
  }
43
35
 
44
36
  export class ResetPasswordSubmitPasswordError extends AuthActionErrorBase {
@@ -75,22 +67,6 @@ export class ResetPasswordSubmitCodeError extends AuthActionErrorBase {
75
67
  isInvalidCode(): boolean {
76
68
  return this.isInvalidCodeError();
77
69
  }
78
-
79
- /**
80
- * Check if client app supports the challenge type configured in Entra.
81
- * @returns {boolean} True if client app doesn't support the challenge type configured in Entra, "loginPopup" function is required to continue the operation.
82
- */
83
- isRedirectRequired(): boolean {
84
- return this.isRedirectError();
85
- }
86
70
  }
87
71
 
88
- export class ResetPasswordResendCodeError extends AuthActionErrorBase {
89
- /**
90
- * Check if client app supports the challenge type configured in Entra.
91
- * @returns {boolean} True if client app doesn't support the challenge type configured in Entra, "loginPopup" function is required to continue the operation.
92
- */
93
- isRedirectRequired(): boolean {
94
- return this.isRedirectError();
95
- }
96
- }
72
+ export class ResetPasswordResendCodeError extends AuthActionErrorBase {}
@@ -46,14 +46,6 @@ export class SignInError extends AuthActionErrorBase {
46
46
  isUnsupportedChallengeType(): boolean {
47
47
  return this.isUnsupportedChallengeTypeError();
48
48
  }
49
-
50
- /**
51
- * Check if client app supports the challenge type configured in Entra.
52
- * @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
53
- */
54
- isRedirectRequired(): boolean {
55
- return this.isRedirectError();
56
- }
57
49
  }
58
50
 
59
51
  export class SignInSubmitPasswordError extends AuthActionErrorBase {
@@ -76,12 +68,4 @@ export class SignInSubmitCodeError extends AuthActionErrorBase {
76
68
  }
77
69
  }
78
70
 
79
- export class SignInResendCodeError extends AuthActionErrorBase {
80
- /**
81
- * Check if client app supports the challenge type configured in Entra.
82
- * @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
83
- */
84
- isRedirectRequired(): boolean {
85
- return this.isRedirectError();
86
- }
87
- }
71
+ export class SignInResendCodeError extends AuthActionErrorBase {}
@@ -53,14 +53,6 @@ export class SignUpError extends AuthActionErrorBase {
53
53
  isUnsupportedChallengeType(): boolean {
54
54
  return this.isUnsupportedChallengeTypeError();
55
55
  }
56
-
57
- /**
58
- * Check if client app supports the challenge type configured in Entra.
59
- * @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
60
- */
61
- isRedirectRequired(): boolean {
62
- return this.isRedirectError();
63
- }
64
56
  }
65
57
 
66
58
  export class SignUpSubmitPasswordError extends AuthActionErrorBase {
@@ -73,14 +65,6 @@ export class SignUpSubmitPasswordError extends AuthActionErrorBase {
73
65
  this.isPasswordIncorrectError() || this.isInvalidNewPasswordError()
74
66
  );
75
67
  }
76
-
77
- /**
78
- * Check if client app supports the challenge type configured in Entra.
79
- * @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
80
- */
81
- isRedirectRequired(): boolean {
82
- return this.isRedirectError();
83
- }
84
68
  }
85
69
 
86
70
  export class SignUpSubmitCodeError extends AuthActionErrorBase {
@@ -91,14 +75,6 @@ export class SignUpSubmitCodeError extends AuthActionErrorBase {
91
75
  isInvalidCode(): boolean {
92
76
  return this.isInvalidCodeError();
93
77
  }
94
-
95
- /**
96
- * Check if client app supports the challenge type configured in Entra.
97
- * @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
98
- */
99
- isRedirectRequired(): boolean {
100
- return this.isRedirectError();
101
- }
102
78
  }
103
79
 
104
80
  export class SignUpSubmitAttributesError extends AuthActionErrorBase {
@@ -117,22 +93,6 @@ export class SignUpSubmitAttributesError extends AuthActionErrorBase {
117
93
  isAttributesValidationFailed(): boolean {
118
94
  return this.isAttributeValidationFailedError();
119
95
  }
120
-
121
- /**
122
- * Check if client app supports the challenge type configured in Entra.
123
- * @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
124
- */
125
- isRedirectRequired(): boolean {
126
- return this.isRedirectError();
127
- }
128
96
  }
129
97
 
130
- export class SignUpResendCodeError extends AuthActionErrorBase {
131
- /**
132
- * Check if client app supports the challenge type configured in Entra.
133
- * @returns {boolean} True if "loginPopup" function is required to continue sthe operation.
134
- */
135
- isRedirectRequired(): boolean {
136
- return this.isRedirectError();
137
- }
138
- }
98
+ export class SignUpResendCodeError extends AuthActionErrorBase {}
@@ -52,8 +52,7 @@ export function isFatalNativeAuthError(error: NativeAuthError): boolean {
52
52
  if (
53
53
  error.ext &&
54
54
  error.ext.status &&
55
- (error.ext.status === NativeStatusCodes.PERSISTENT_ERROR ||
56
- error.ext.status === NativeStatusCodes.DISABLED)
55
+ error.ext.status === NativeStatusCodes.DISABLED
57
56
  ) {
58
57
  return true;
59
58
  }
@@ -155,14 +155,14 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
155
155
  ): Promise<AuthenticationResult> {
156
156
  this.performanceClient.addQueueMeasurement(
157
157
  PerformanceEvents.NativeInteractionClientAcquireToken,
158
- request.correlationId
158
+ this.correlationId
159
159
  );
160
160
  this.logger.trace("NativeInteractionClient - acquireToken called.");
161
161
 
162
162
  // start the perf measurement
163
163
  const nativeATMeasurement = this.performanceClient.startMeasurement(
164
164
  PerformanceEvents.NativeInteractionClientAcquireToken,
165
- request.correlationId
165
+ this.correlationId
166
166
  );
167
167
  const reqTimestamp = TimeUtils.nowSeconds();
168
168
 
@@ -191,6 +191,10 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
191
191
  this.logger.info(
192
192
  "MSAL internal Cache does not contain tokens, return error as per cache policy"
193
193
  );
194
+ nativeATMeasurement.end({
195
+ success: false,
196
+ brokerErrorCode: "cache_request_failed",
197
+ });
194
198
  throw e;
195
199
  }
196
200
  // continue with a native call for any and all errors
@@ -221,7 +225,6 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
221
225
  success: false,
222
226
  errorCode: error.errorCode,
223
227
  subErrorCode: error.subError,
224
- isNativeBroker: true,
225
228
  });
226
229
  throw error;
227
230
  });
@@ -229,6 +232,9 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
229
232
  if (e instanceof NativeAuthError) {
230
233
  serverTelemetryManager.setNativeBrokerErrorCode(e.errorCode);
231
234
  }
235
+ nativeATMeasurement.end({
236
+ success: false,
237
+ });
232
238
  throw e;
233
239
  }
234
240
  }
@@ -423,6 +429,12 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
423
429
  const serverTelemetryManager =
424
430
  this.initializeServerTelemetryManager(this.apiId);
425
431
  serverTelemetryManager.clearNativeBrokerErrorCode();
432
+ if (performanceClient && this.correlationId) {
433
+ this.performanceClient.addFields(
434
+ { isNativeBroker: true },
435
+ this.correlationId
436
+ );
437
+ }
426
438
  return authResult;
427
439
  } catch (e) {
428
440
  throw e;
@@ -948,7 +960,7 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
948
960
  PerformanceEvents.PopTokenGenerateCnf,
949
961
  this.logger,
950
962
  this.performanceClient,
951
- request.correlationId
963
+ this.correlationId
952
964
  )(shrParameters, this.logger);
953
965
  reqCnfData = generatedReqCnfData.reqCnfString;
954
966
  validatedRequest.keyId = generatedReqCnfData.kid;
@@ -1073,7 +1085,7 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
1073
1085
  embeddedClientId: child_client_id,
1074
1086
  embeddedRedirectUri: child_redirect_uri,
1075
1087
  },
1076
- request.correlationId
1088
+ this.correlationId
1077
1089
  );
1078
1090
  }
1079
1091
  }
@@ -391,8 +391,8 @@ export class RedirectClient extends StandardInteractionClient {
391
391
  true
392
392
  ) || Constants.EMPTY_STRING;
393
393
  const loginRequestUrlNormalized =
394
- UrlString.removeHashFromUrl(loginRequestUrl);
395
- const currentUrlNormalized = UrlString.removeHashFromUrl(
394
+ UrlUtils.normalizeUrlForComparison(loginRequestUrl);
395
+ const currentUrlNormalized = UrlUtils.normalizeUrlForComparison(
396
396
  window.location.href
397
397
  );
398
398
 
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable header/header */
2
2
  export const name = "@azure/msal-browser";
3
- export const version = "4.20.0";
3
+ export const version = "4.21.1";
@@ -84,6 +84,14 @@ async function getStandardParameters(
84
84
  // signal ests that this is a WAM call
85
85
  RequestParameterBuilder.addNativeBroker(parameters);
86
86
 
87
+ // instrument JS-platform bridge specific fields
88
+ performanceClient.addFields(
89
+ {
90
+ isPlatformAuthorizeRequest: true,
91
+ },
92
+ request.correlationId
93
+ );
94
+
87
95
  // pass the req_cnf for POP
88
96
  if (request.authenticationScheme === AuthenticationScheme.POP) {
89
97
  const cryptoOps = new CryptoOps(logger, performanceClient);