@azure/msal-browser 4.16.0 → 4.18.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 (340) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/app/PublicClientNext.mjs +1 -1
  4. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  5. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  7. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  8. package/dist/cache/AccountManager.mjs +1 -1
  9. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  10. package/dist/cache/BrowserCacheManager.mjs +1 -1
  11. package/dist/cache/CacheHelpers.mjs +1 -1
  12. package/dist/cache/CookieStorage.mjs +1 -1
  13. package/dist/cache/DatabaseStorage.mjs +1 -1
  14. package/dist/cache/LocalStorage.mjs +1 -1
  15. package/dist/cache/MemoryStorage.mjs +1 -1
  16. package/dist/cache/SessionStorage.mjs +1 -1
  17. package/dist/cache/TokenCache.mjs +1 -1
  18. package/dist/config/Configuration.mjs +1 -1
  19. package/dist/controllers/ControllerFactory.mjs +1 -1
  20. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  21. package/dist/controllers/StandardController.mjs +1 -1
  22. package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
  23. package/dist/crypto/BrowserCrypto.mjs +1 -1
  24. package/dist/crypto/CryptoOps.mjs +1 -1
  25. package/dist/crypto/PkceGenerator.mjs +1 -1
  26. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  27. package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
  28. package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  29. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  30. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  31. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  32. package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
  33. package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
  34. package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +1 -1
  35. package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
  36. package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
  37. package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
  38. package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
  39. package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
  40. package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
  41. package/dist/custom-auth-path/cache/TokenCache.mjs +1 -1
  42. package/dist/custom-auth-path/config/Configuration.mjs +1 -1
  43. package/dist/custom-auth-path/controllers/ControllerFactory.mjs +1 -1
  44. package/dist/custom-auth-path/controllers/StandardController.mjs +1 -1
  45. package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
  46. package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
  47. package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
  48. package/dist/custom-auth-path/custom_auth/CustomAuthActionInputs.d.ts +3 -0
  49. package/dist/custom-auth-path/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  50. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +1 -1
  51. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +1 -1
  52. package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  53. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  54. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +8 -2
  55. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  56. package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  57. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +5 -0
  58. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  59. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +10 -1
  60. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs.map +1 -1
  61. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  62. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  63. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  64. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
  65. package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
  66. package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  67. package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  68. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  69. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  70. package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  71. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  72. package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  73. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  74. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  75. package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
  76. package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  77. package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  78. package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  79. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  80. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  81. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  82. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  83. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  84. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  85. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  86. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +4 -1
  87. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map +1 -1
  88. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  89. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  90. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +1 -0
  91. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +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.d.ts +1 -0
  97. package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
  98. package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +18 -2
  99. package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs.map +1 -1
  100. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
  101. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts.map +1 -1
  102. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +8 -4
  103. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs.map +1 -1
  104. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  105. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  106. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  107. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  108. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  109. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  110. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  111. package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  112. package/dist/custom-auth-path/custom_auth/index.mjs +1 -1
  113. package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  114. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  115. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  116. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  117. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  118. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  119. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  120. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  121. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  122. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  123. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  124. package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  125. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  126. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +5 -0
  127. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
  128. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +8 -1
  129. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs.map +1 -1
  130. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  131. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  132. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  133. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs +1 -1
  134. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  135. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  136. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +2 -1
  137. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs.map +1 -1
  138. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  139. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  140. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +6 -1
  141. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs.map +1 -1
  142. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  143. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  144. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +2 -1
  145. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs.map +1 -1
  146. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  147. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +1 -0
  148. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  149. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  150. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +10 -1
  151. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs.map +1 -1
  152. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts +3 -0
  153. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts.map +1 -1
  154. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  155. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  156. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  157. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  158. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  159. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  160. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  161. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  162. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  163. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  164. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  165. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  166. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  167. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  168. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  169. package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
  170. package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
  171. package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
  172. package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
  173. package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
  174. package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  175. package/dist/custom-auth-path/error/NativeAuthError.mjs +1 -1
  176. package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
  177. package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
  178. package/dist/custom-auth-path/event/EventType.mjs +1 -1
  179. package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
  180. package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  181. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  182. package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
  183. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +1 -1
  184. package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
  185. package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
  186. package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
  187. package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
  188. package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
  189. package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
  190. package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
  191. package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
  192. package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
  193. package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
  194. package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
  195. package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
  196. package/dist/custom-auth-path/packageMetadata.mjs +2 -2
  197. package/dist/custom-auth-path/protocol/Authorize.mjs +1 -1
  198. package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
  199. package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
  200. package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
  201. package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
  202. package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
  203. package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
  204. package/dist/custom_auth/CustomAuthActionInputs.d.ts +3 -0
  205. package/dist/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  206. package/dist/custom_auth/CustomAuthConstants.d.ts +1 -1
  207. package/dist/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  208. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +5 -0
  209. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  210. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  211. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +1 -0
  212. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  213. package/dist/custom_auth/core/utils/ArgumentValidator.d.ts +1 -0
  214. package/dist/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
  215. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts.map +1 -1
  216. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +5 -0
  217. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
  218. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  219. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  220. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  221. package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +1 -0
  222. package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  223. package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  224. package/dist/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts +3 -0
  225. package/dist/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts.map +1 -1
  226. package/dist/encode/Base64Decode.mjs +1 -1
  227. package/dist/encode/Base64Encode.mjs +1 -1
  228. package/dist/error/BrowserAuthError.mjs +1 -1
  229. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  230. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  231. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  232. package/dist/error/NativeAuthError.mjs +1 -1
  233. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  234. package/dist/error/NestedAppAuthError.mjs +1 -1
  235. package/dist/event/EventHandler.mjs +1 -1
  236. package/dist/event/EventMessage.mjs +1 -1
  237. package/dist/event/EventType.mjs +1 -1
  238. package/dist/index.mjs +1 -1
  239. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  240. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  241. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  242. package/dist/interaction_client/PopupClient.mjs +1 -1
  243. package/dist/interaction_client/RedirectClient.mjs +1 -1
  244. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  245. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  246. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  247. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  248. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  249. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  250. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  251. package/dist/naa/BridgeError.mjs +1 -1
  252. package/dist/naa/BridgeProxy.mjs +1 -1
  253. package/dist/naa/BridgeStatusCode.mjs +1 -1
  254. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  255. package/dist/navigation/NavigationClient.mjs +1 -1
  256. package/dist/network/FetchClient.mjs +1 -1
  257. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  258. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  259. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  260. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  261. package/dist/packageMetadata.d.ts +1 -1
  262. package/dist/packageMetadata.mjs +2 -2
  263. package/dist/protocol/Authorize.mjs +1 -1
  264. package/dist/request/RequestHelpers.mjs +1 -1
  265. package/dist/response/ResponseHandler.mjs +1 -1
  266. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  267. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  268. package/dist/utils/BrowserConstants.mjs +1 -1
  269. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  270. package/dist/utils/BrowserUtils.mjs +1 -1
  271. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  272. package/lib/custom-auth-path/msal-custom-auth.cjs +126 -66
  273. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  274. package/lib/custom-auth-path/types/custom_auth/CustomAuthActionInputs.d.ts +3 -0
  275. package/lib/custom-auth-path/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  276. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  277. package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  278. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +5 -0
  279. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  280. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  281. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +1 -0
  282. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  283. package/lib/custom-auth-path/types/custom_auth/core/utils/ArgumentValidator.d.ts +1 -0
  284. package/lib/custom-auth-path/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
  285. package/lib/custom-auth-path/types/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts.map +1 -1
  286. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +5 -0
  287. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
  288. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  289. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  290. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  291. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +1 -0
  292. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  293. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  294. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts +3 -0
  295. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts.map +1 -1
  296. package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
  297. package/lib/msal-browser.cjs +66 -66
  298. package/lib/msal-browser.cjs.map +1 -1
  299. package/lib/msal-browser.js +66 -66
  300. package/lib/msal-browser.js.map +1 -1
  301. package/lib/msal-browser.min.js +61 -61
  302. package/lib/types/custom_auth/CustomAuthActionInputs.d.ts +3 -0
  303. package/lib/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  304. package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  305. package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  306. package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +5 -0
  307. package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  308. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  309. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +1 -0
  310. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  311. package/lib/types/custom_auth/core/utils/ArgumentValidator.d.ts +1 -0
  312. package/lib/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
  313. package/lib/types/custom_auth/get_account/auth_flow/CustomAuthAccountData.d.ts.map +1 -1
  314. package/lib/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts +5 -0
  315. package/lib/types/custom_auth/sign_in/auth_flow/error_type/SignInError.d.ts.map +1 -1
  316. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  317. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  318. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  319. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +1 -0
  320. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  321. package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  322. package/lib/types/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts +3 -0
  323. package/lib/types/custom_auth/sign_in/interaction_client/parameter/SignInParams.d.ts.map +1 -1
  324. package/lib/types/packageMetadata.d.ts +1 -1
  325. package/package.json +1 -1
  326. package/src/custom_auth/CustomAuthActionInputs.ts +3 -0
  327. package/src/custom_auth/controller/CustomAuthStandardController.ts +18 -10
  328. package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +12 -0
  329. package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +3 -0
  330. package/src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts +1 -0
  331. package/src/custom_auth/core/utils/ArgumentValidator.ts +22 -0
  332. package/src/custom_auth/get_account/auth_flow/CustomAuthAccountData.ts +24 -9
  333. package/src/custom_auth/sign_in/auth_flow/error_type/SignInError.ts +8 -0
  334. package/src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts +1 -0
  335. package/src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts +10 -0
  336. package/src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts +1 -0
  337. package/src/custom_auth/sign_in/auth_flow/state/SignInStateParameters.ts +1 -0
  338. package/src/custom_auth/sign_in/interaction_client/SignInClient.ts +9 -0
  339. package/src/custom_auth/sign_in/interaction_client/parameter/SignInParams.ts +3 -0
  340. package/src/packageMetadata.ts +1 -1
@@ -7,6 +7,7 @@ export type SignInInputs = CustomAuthActionInputs & {
7
7
  username: string;
8
8
  password?: string;
9
9
  scopes?: Array<string>;
10
+ claims?: string;
10
11
  };
11
12
  export type SignUpInputs = CustomAuthActionInputs & {
12
13
  username: string;
@@ -19,8 +20,10 @@ export type ResetPasswordInputs = CustomAuthActionInputs & {
19
20
  export type AccessTokenRetrievalInputs = {
20
21
  forceRefresh: boolean;
21
22
  scopes?: Array<string>;
23
+ claims?: string;
22
24
  };
23
25
  export type SignInWithContinuationTokenInputs = {
24
26
  scopes?: Array<string>;
27
+ claims?: string;
25
28
  };
26
29
  //# sourceMappingURL=CustomAuthActionInputs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthActionInputs.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/CustomAuthActionInputs.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,GAAG;IACvD,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC5C,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"CustomAuthActionInputs.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/CustomAuthActionInputs.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,GAAG;IACvD,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC5C,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -17,7 +17,7 @@ export declare const HttpHeaderKeys: {
17
17
  };
18
18
  export declare const DefaultPackageInfo: {
19
19
  readonly SKU: "msal.browser";
20
- readonly VERSION: "4.16.0";
20
+ readonly VERSION: "4.18.0";
21
21
  readonly OS: "";
22
22
  readonly CPU: "";
23
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAM3E,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEtB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAa1G,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AAkBtG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAK7E,qBAAa,4BACT,SAAQ,kBACR,YAAW,6BAA6B;IAExC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAC1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAClE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;gBAQ5C,gBAAgB,EAAE,0BAA0B,EAC5C,mBAAmB,CAAC,EAAE,oBAAoB;IAyD9C,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAqCb,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAsJzD,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IA8GzD,aAAa,CACf,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAoDpC,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,qBAAqB;CAWhC"}
1
+ {"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAM3E,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEtB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAa1G,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AAetG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAK7E,qBAAa,4BACT,SAAQ,kBACR,YAAW,6BAA6B;IAExC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAC1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAClE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;gBAQ5C,gBAAgB,EAAE,0BAA0B,EAC5C,mBAAmB,CAAC,EAAE,oBAAoB;IAyD9C,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAqCb,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAiKzD,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IA8GzD,aAAa,CACf,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAoDpC,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,qBAAqB;CAWhC"}
@@ -17,6 +17,11 @@ export declare abstract class AuthFlowErrorBase {
17
17
  protected isAttributeValidationFailedError(): boolean;
18
18
  protected isNoCachedAccountFoundError(): boolean;
19
19
  protected isTokenExpiredError(): boolean;
20
+ /**
21
+ * @todo verify the password change required error can be detected once the MFA is in place.
22
+ * This error will be raised during signin and refresh tokens when calling /token endpoint.
23
+ */
24
+ protected isPasswordResetRequiredError(): boolean;
20
25
  }
21
26
  export declare abstract class AuthActionErrorBase extends AuthFlowErrorBase {
22
27
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"AuthFlowErrorBase.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAK9D;;GAEG;AACH,8BAAsB,iBAAiB;IAChB,SAAS,EAAE,eAAe;gBAA1B,SAAS,EAAE,eAAe;IAE7C,SAAS,CAAC,mBAAmB,IAAI,OAAO;IAIxC,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAYvC,SAAS,CAAC,+BAA+B,IAAI,OAAO;IAYpD,SAAS,CAAC,wBAAwB,IAAI,OAAO;IAa7C,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAWvC,SAAS,CAAC,eAAe,IAAI,OAAO;IAIpC,SAAS,CAAC,yBAAyB,IAAI,OAAO;IAiB9C,SAAS,CAAC,wBAAwB,IAAI,OAAO;IAO7C,SAAS,CAAC,wBAAwB,IAAI,OAAO;IAO7C,SAAS,CAAC,gCAAgC,IAAI,OAAO;IAYrD,SAAS,CAAC,2BAA2B,IAAI,OAAO;IAIhD,SAAS,CAAC,mBAAmB,IAAI,OAAO;CAM3C;AAED,8BAAsB,mBAAoB,SAAQ,iBAAiB;IAC/D;;;OAGG;IACH,cAAc,IAAI,OAAO;CAG5B"}
1
+ {"version":3,"file":"AuthFlowErrorBase.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAK9D;;GAEG;AACH,8BAAsB,iBAAiB;IAChB,SAAS,EAAE,eAAe;gBAA1B,SAAS,EAAE,eAAe;IAE7C,SAAS,CAAC,mBAAmB,IAAI,OAAO;IAIxC,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAYvC,SAAS,CAAC,+BAA+B,IAAI,OAAO;IAYpD,SAAS,CAAC,wBAAwB,IAAI,OAAO;IAa7C,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAWvC,SAAS,CAAC,eAAe,IAAI,OAAO;IAIpC,SAAS,CAAC,yBAAyB,IAAI,OAAO;IAiB9C,SAAS,CAAC,wBAAwB,IAAI,OAAO;IAO7C,SAAS,CAAC,wBAAwB,IAAI,OAAO;IAO7C,SAAS,CAAC,gCAAgC,IAAI,OAAO;IAYrD,SAAS,CAAC,2BAA2B,IAAI,OAAO;IAIhD,SAAS,CAAC,mBAAmB,IAAI,OAAO;IAOxC;;;OAGG;IACH,SAAS,CAAC,4BAA4B,IAAI,OAAO;CAOpD;AAED,8BAAsB,mBAAoB,SAAQ,iBAAiB;IAC/D;;;OAGG;IACH,cAAc,IAAI,OAAO;CAG5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"SignInApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EACH,sBAAsB,EACtB,8BAA8B,EAC9B,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACtB,MAAM,6BAA6B,CAAC;AAErC,qBAAa,eAAgB,SAAQ,aAAa;IAC9C;;;;OAIG;IACG,QAAQ,CACV,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,sBAAsB,CAAC;IAmBlC;;;;OAIG;IACG,gBAAgB,CAClB,MAAM,EAAE,sBAAsB,GAC/B,OAAO,CAAC,uBAAuB,CAAC;IAmBnC;;;;;OAKG;IACG,yBAAyB,CAC3B,MAAM,EAAE,0BAA0B,GACnC,OAAO,CAAC,mBAAmB,CAAC;IAazB,oBAAoB,CACtB,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,mBAAmB,CAAC;IAazB,iCAAiC,CACnC,MAAM,EAAE,8BAA8B,GACvC,OAAO,CAAC,mBAAmB,CAAC;YAcjB,aAAa;IAoB3B,OAAO,CAAC,MAAM,CAAC,0BAA0B;CAoC5C"}
1
+ {"version":3,"file":"SignInApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EACH,sBAAsB,EACtB,8BAA8B,EAC9B,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACtB,MAAM,6BAA6B,CAAC;AAErC,qBAAa,eAAgB,SAAQ,aAAa;IAC9C;;;;OAIG;IACG,QAAQ,CACV,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,sBAAsB,CAAC;IAmBlC;;;;OAIG;IACG,gBAAgB,CAClB,MAAM,EAAE,sBAAsB,GAC/B,OAAO,CAAC,uBAAuB,CAAC;IAmBnC;;;;;OAKG;IACG,yBAAyB,CAC3B,MAAM,EAAE,0BAA0B,GACnC,OAAO,CAAC,mBAAmB,CAAC;IAczB,oBAAoB,CACtB,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,mBAAmB,CAAC;IAczB,iCAAiC,CACnC,MAAM,EAAE,8BAA8B,GACvC,OAAO,CAAC,mBAAmB,CAAC;YAejB,aAAa;IAoB3B,OAAO,CAAC,MAAM,CAAC,0BAA0B;CAoC5C"}
@@ -10,6 +10,7 @@ export interface SignInChallengeRequest extends ApiRequestBase {
10
10
  interface SignInTokenRequestBase extends ApiRequestBase {
11
11
  continuation_token: string;
12
12
  scope: string;
13
+ claims?: string;
13
14
  }
14
15
  export interface SignInPasswordTokenRequest extends SignInTokenRequestBase {
15
16
  password: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiRequestTypes.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IACzD,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC1D,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,UAAU,sBAAuB,SAAQ,cAAc;IACnD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACtE,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACjE,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,8BAA+B,SAAQ,sBAAsB;IAC1E,QAAQ,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC1D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,UAAU,yBAA0B,SAAQ,cAAc;IACtD,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,4BACb,SAAQ,yBAAyB;IACjC,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iCACb,SAAQ,yBAAyB;IACjC,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mCACb,SAAQ,yBAAyB;IACjC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAGD,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC7D,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,6BAA8B,SAAQ,cAAc;IACjE,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,4BAA6B,SAAQ,cAAc;IAChE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,0BAA2B,SAAQ,cAAc;IAC9D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kCAAmC,SAAQ,cAAc;IACtE,kBAAkB,EAAE,MAAM,CAAC;CAC9B"}
1
+ {"version":3,"file":"ApiRequestTypes.d.ts","sourceRoot":"","sources":["../../../../../../../src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IACzD,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC1D,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,UAAU,sBAAuB,SAAQ,cAAc;IACnD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACtE,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACjE,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,8BAA+B,SAAQ,sBAAsB;IAC1E,QAAQ,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC1D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,UAAU,yBAA0B,SAAQ,cAAc;IACtD,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,4BACb,SAAQ,yBAAyB;IACjC,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iCACb,SAAQ,yBAAyB;IACjC,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mCACb,SAAQ,yBAAyB;IACjC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAGD,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC7D,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,6BAA8B,SAAQ,cAAc;IACjE,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,4BAA6B,SAAQ,cAAc;IAChE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,0BAA2B,SAAQ,cAAc;IAC9D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kCAAmC,SAAQ,cAAc;IACtE,kBAAkB,EAAE,MAAM,CAAC;CAC9B"}
@@ -1,3 +1,4 @@
1
1
  export declare function ensureArgumentIsNotNullOrUndefined<T>(argName: string, argValue: T | undefined | null, correlationId?: string): asserts argValue is T;
2
2
  export declare function ensureArgumentIsNotEmptyString(argName: string, argValue: string | undefined, correlationId?: string): void;
3
+ export declare function ensureArgumentIsJSONString(argName: string, argValue: string, correlationId?: string): void;
3
4
  //# sourceMappingURL=ArgumentValidator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ArgumentValidator.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/utils/ArgumentValidator.ts"],"names":[],"mappings":"AAOA,wBAAgB,kCAAkC,CAAC,CAAC,EAChD,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,EAC9B,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,QAAQ,IAAI,CAAC,CAIvB;AAED,wBAAgB,8BAA8B,CAC1C,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,aAAa,CAAC,EAAE,MAAM,GACvB,IAAI,CAIN"}
1
+ {"version":3,"file":"ArgumentValidator.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/utils/ArgumentValidator.ts"],"names":[],"mappings":"AAOA,wBAAgB,kCAAkC,CAAC,CAAC,EAChD,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,EAC9B,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,QAAQ,IAAI,CAAC,CAIvB;AAED,wBAAgB,8BAA8B,CAC1C,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,aAAa,CAAC,EAAE,MAAM,GACvB,IAAI,CAIN;AAED,wBAAgB,0BAA0B,CACtC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,GACvB,IAAI,CAgBN"}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthAccountData.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/get_account/auth_flow/CustomAuthAccountData.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAGnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EACH,WAAW,EAGX,MAAM,EACN,WAAW,EACd,MAAM,4BAA4B,CAAC;AAUpC,qBAAa,qBAAqB;IAE1B,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAJb,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,8BAA8B,EACtC,WAAW,EAAE,2BAA2B,EACxC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM;IAM1C;;;;;OAKG;IACG,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC;IA8BvC,UAAU,IAAI,WAAW;IAIzB;;;;;OAKG;IACH,UAAU,IAAI,MAAM,GAAG,SAAS;IAIhC;;;OAGG;IACH,SAAS,IAAI,eAAe,GAAG,SAAS;IAIxC;;;;;;OAMG;IACG,cAAc,CAChB,0BAA0B,EAAE,0BAA0B,GACvD,OAAO,CAAC,oBAAoB,CAAC;IAkDhC,OAAO,CAAC,6BAA6B;CAuBxC;AAED,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IACxC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;CAC5E,CAAC"}
1
+ {"version":3,"file":"CustomAuthAccountData.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/get_account/auth_flow/CustomAuthAccountData.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAGnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EACH,WAAW,EAGX,MAAM,EACN,WAAW,EACd,MAAM,4BAA4B,CAAC;AAOpC,qBAAa,qBAAqB;IAE1B,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAJb,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,8BAA8B,EACtC,WAAW,EAAE,2BAA2B,EACxC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM;IAa1C;;;;;OAKG;IACG,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC;IA8BvC,UAAU,IAAI,WAAW;IAIzB;;;;;OAKG;IACH,UAAU,IAAI,MAAM,GAAG,SAAS;IAIhC;;;OAGG;IACH,SAAS,IAAI,eAAe,GAAG,SAAS;IAIxC;;;;;;OAMG;IACG,cAAc,CAChB,0BAA0B,EAAE,0BAA0B,GACvD,OAAO,CAAC,oBAAoB,CAAC;IA2DhC,OAAO,CAAC,6BAA6B;CAyBxC;AAED,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IACxC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;CAC5E,CAAC"}
@@ -15,6 +15,11 @@ export declare class SignInError extends AuthActionErrorBase {
15
15
  * @returns true if the error is due to the provided password being incorrect, false otherwise.
16
16
  */
17
17
  isPasswordIncorrect(): boolean;
18
+ /**
19
+ * Checks if the error is due to password reset being required.
20
+ * @returns true if the error is due to password reset being required, false otherwise.
21
+ */
22
+ isPasswordResetRequired(): boolean;
18
23
  /**
19
24
  * Checks if the error is due to the provided challenge type is not supported.
20
25
  * @returns {boolean} True if the error is due to the provided challenge type is not supported, false otherwise.
@@ -1 +1 @@
1
- {"version":3,"file":"SignInError.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/error_type/SignInError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAGnF,qBAAa,WAAY,SAAQ,mBAAmB;IAChD;;;OAGG;IACH,cAAc,IAAI,OAAO;IAIzB;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAI5B;;;OAGG;IACH,mBAAmB,IAAI,OAAO;IAI9B;;;OAGG;IACH,0BAA0B,IAAI,OAAO;IAIrC;;;OAGG;IACH,kBAAkB,IAAI,OAAO;CAGhC;AAED,qBAAa,yBAA0B,SAAQ,mBAAmB;IAC9D;;;OAGG;IACH,iBAAiB,IAAI,OAAO;CAG/B;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC1D;;;OAGG;IACH,aAAa,IAAI,OAAO;CAG3B;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC1D;;;OAGG;IACH,kBAAkB,IAAI,OAAO;CAGhC"}
1
+ {"version":3,"file":"SignInError.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/error_type/SignInError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAGnF,qBAAa,WAAY,SAAQ,mBAAmB;IAChD;;;OAGG;IACH,cAAc,IAAI,OAAO;IAIzB;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAI5B;;;OAGG;IACH,mBAAmB,IAAI,OAAO;IAI9B;;;OAGG;IACH,uBAAuB,IAAI,OAAO;IAIlC;;;OAGG;IACH,0BAA0B,IAAI,OAAO;IAIrC;;;OAGG;IACH,kBAAkB,IAAI,OAAO;CAGhC;AAED,qBAAa,yBAA0B,SAAQ,mBAAmB;IAC9D;;;OAGG;IACH,iBAAiB,IAAI,OAAO;CAG/B;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC1D;;;OAGG;IACH,aAAa,IAAI,OAAO;CAG3B;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC1D;;;OAGG;IACH,kBAAkB,IAAI,OAAO;CAGhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SignInCodeRequiredState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C,qBAAa,uBAAwB,SAAQ,WAAW,CAAC,iCAAiC,CAAC;IACvF;;;;;OAKG;IACG,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAoD/D;;;OAGG;IACG,UAAU,IAAI,OAAO,CAAC,sBAAsB,CAAC;IA2CnD;;;OAGG;IACH,aAAa,IAAI,MAAM;IAIvB;;;OAGG;IACH,SAAS,IAAI,MAAM,EAAE,GAAG,SAAS;CAGpC"}
1
+ {"version":3,"file":"SignInCodeRequiredState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C,qBAAa,uBAAwB,SAAQ,WAAW,CAAC,iCAAiC,CAAC;IACvF;;;;;OAKG;IACG,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAqD/D;;;OAGG;IACG,UAAU,IAAI,OAAO,CAAC,sBAAsB,CAAC;IA2CnD;;;OAGG;IACH,aAAa,IAAI,MAAM;IAIvB;;;OAGG;IACH,SAAS,IAAI,MAAM,EAAE,GAAG,SAAS;CAGpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SignInContinuationState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C,qBAAa,uBAAwB,SAAQ,WAAW,CAAC,iCAAiC,CAAC;IACvF;;;;OAIG;IACG,MAAM,CACR,iCAAiC,CAAC,EAAE,iCAAiC,GACtE,OAAO,CAAC,YAAY,CAAC;CA8C3B"}
1
+ {"version":3,"file":"SignInContinuationState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAO/C,qBAAa,uBAAwB,SAAQ,WAAW,CAAC,iCAAiC,CAAC;IACvF;;;;OAIG;IACG,MAAM,CACR,iCAAiC,CAAC,EAAE,iCAAiC,GACtE,OAAO,CAAC,YAAY,CAAC;CAuD3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"SignInPasswordRequiredState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAErF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,qCAAqC,EAAE,MAAM,4BAA4B,CAAC;AAKnF,qBAAa,2BAA4B,SAAQ,WAAW,CAAC,qCAAqC,CAAC;IAC/F;;;;OAIG;IACG,cAAc,CAChB,QAAQ,EAAE,MAAM,GACjB,OAAO,CAAC,0BAA0B,CAAC;IAoDtC;;;OAGG;IACH,SAAS,IAAI,MAAM,EAAE,GAAG,SAAS;CAGpC"}
1
+ {"version":3,"file":"SignInPasswordRequiredState.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAErF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,qCAAqC,EAAE,MAAM,4BAA4B,CAAC;AAKnF,qBAAa,2BAA4B,SAAQ,WAAW,CAAC,qCAAqC,CAAC;IAC/F;;;;OAIG;IACG,cAAc,CAChB,QAAQ,EAAE,MAAM,GACjB,OAAO,CAAC,0BAA0B,CAAC;IAqDtC;;;OAGG;IACH,SAAS,IAAI,MAAM,EAAE,GAAG,SAAS;CAGpC"}
@@ -6,6 +6,7 @@ export interface SignInStateParameters extends AuthFlowActionRequiredStateParame
6
6
  username: string;
7
7
  signInClient: SignInClient;
8
8
  cacheClient: CustomAuthSilentCacheClient;
9
+ claims?: string;
9
10
  }
10
11
  export interface SignInPasswordRequiredStateParameters extends SignInStateParameters {
11
12
  scopes?: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"SignInStateParameters.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInStateParameters.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,2BAA2B,EAAE,MAAM,wEAAwE,CAAC;AACrH,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,qBACb,SAAQ,qCAAqC;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,EAAE,2BAA2B,CAAC;CAC5C;AAED,MAAM,WAAW,qCACb,SAAQ,qBAAqB;IAC7B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,iCACb,SAAQ,qBAAqB;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,iCACb,SAAQ,qBAAqB;IAC7B,cAAc,EAAE,kBAAkB,CAAC;CACtC"}
1
+ {"version":3,"file":"SignInStateParameters.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/auth_flow/state/SignInStateParameters.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,2BAA2B,EAAE,MAAM,wEAAwE,CAAC;AACrH,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,qBACb,SAAQ,qCAAqC;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,EAAE,2BAA2B,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,qCACb,SAAQ,qBAAqB;IAC7B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,iCACb,SAAQ,qBAAqB;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,iCACb,SAAQ,qBAAqB;IAC7B,cAAc,EAAE,kBAAkB,CAAC;CACtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SignInClient.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/sign_in/interaction_client/SignInClient.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,+BAA+B,EAAE,MAAM,kEAAkE,CAAC;AACnH,OAAO,EACH,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAKH,oBAAoB,EACpB,qBAAqB,EACrB,4BAA4B,EAC/B,MAAM,gCAAgC,CAAC;AAexC,OAAO,EAAE,oBAAoB,EAAE,MAAM,mEAAmE,CAAC;AACzG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EACH,OAAO,EACP,kBAAkB,EAClB,MAAM,EAET,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAI7E,qBAAa,YAAa,SAAQ,+BAA+B;IAC7D,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAkB;gBAGnD,MAAM,EAAE,oBAAoB,EAC5B,WAAW,EAAE,mBAAmB,EAChC,aAAa,EAAE,OAAO,EACtB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,iBAAiB,EACnC,iBAAiB,EAAE,kBAAkB,EACrC,mBAAmB,EAAE,oBAAoB,EACzC,mBAAmB,EAAE,mBAAmB;IAwB5C;;;;OAIG;IACG,KAAK,CACP,UAAU,EAAE,iBAAiB,GAC9B,OAAO,CAAC,4BAA4B,GAAG,oBAAoB,CAAC;IAoC/D;;;;OAIG;IACG,UAAU,CACZ,UAAU,EAAE,sBAAsB,GACnC,OAAO,CAAC,oBAAoB,CAAC;IA6BhC;;;;OAIG;IACG,UAAU,CACZ,UAAU,EAAE,sBAAsB,GACnC,OAAO,CAAC,qBAAqB,CAAC;IA4BjC;;;;OAIG;IACG,cAAc,CAChB,UAAU,EAAE,0BAA0B,GACvC,OAAO,CAAC,qBAAqB,CAAC;IA4BjC;;;;OAIG;IACG,2BAA2B,CAC7B,UAAU,EAAE,6BAA6B,GAC1C,OAAO,CAAC,qBAAqB,CAAC;YA2BnB,mBAAmB;YAyCnB,uBAAuB;IA6DrC,OAAO,CAAC,8BAA8B;CAgBzC"}
1
+ {"version":3,"file":"SignInClient.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/sign_in/interaction_client/SignInClient.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,+BAA+B,EAAE,MAAM,kEAAkE,CAAC;AACnH,OAAO,EACH,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAKH,oBAAoB,EACpB,qBAAqB,EACrB,4BAA4B,EAC/B,MAAM,gCAAgC,CAAC;AAexC,OAAO,EAAE,oBAAoB,EAAE,MAAM,mEAAmE,CAAC;AACzG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EACH,OAAO,EACP,kBAAkB,EAClB,MAAM,EAET,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAI7E,qBAAa,YAAa,SAAQ,+BAA+B;IAC7D,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAkB;gBAGnD,MAAM,EAAE,oBAAoB,EAC5B,WAAW,EAAE,mBAAmB,EAChC,aAAa,EAAE,OAAO,EACtB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,iBAAiB,EACnC,iBAAiB,EAAE,kBAAkB,EACrC,mBAAmB,EAAE,oBAAoB,EACzC,mBAAmB,EAAE,mBAAmB;IAwB5C;;;;OAIG;IACG,KAAK,CACP,UAAU,EAAE,iBAAiB,GAC9B,OAAO,CAAC,4BAA4B,GAAG,oBAAoB,CAAC;IAoC/D;;;;OAIG;IACG,UAAU,CACZ,UAAU,EAAE,sBAAsB,GACnC,OAAO,CAAC,oBAAoB,CAAC;IA6BhC;;;;OAIG;IACG,UAAU,CACZ,UAAU,EAAE,sBAAsB,GACnC,OAAO,CAAC,qBAAqB,CAAC;IA+BjC;;;;OAIG;IACG,cAAc,CAChB,UAAU,EAAE,0BAA0B,GACvC,OAAO,CAAC,qBAAqB,CAAC;IA+BjC;;;;OAIG;IACG,2BAA2B,CAC7B,UAAU,EAAE,6BAA6B,GAC1C,OAAO,CAAC,qBAAqB,CAAC;YA8BnB,mBAAmB;YAyCnB,uBAAuB;IA6DrC,OAAO,CAAC,8BAA8B;CAgBzC"}
@@ -15,15 +15,18 @@ export interface SignInSubmitCodeParams extends SignInParamsBase {
15
15
  continuationToken: string;
16
16
  code: string;
17
17
  scopes: Array<string>;
18
+ claims?: string;
18
19
  }
19
20
  export interface SignInSubmitPasswordParams extends SignInParamsBase {
20
21
  continuationToken: string;
21
22
  password: string;
22
23
  scopes: Array<string>;
24
+ claims?: string;
23
25
  }
24
26
  export interface SignInContinuationTokenParams extends SignInParamsBase {
25
27
  continuationToken: string;
26
28
  signInScenario: SignInScenarioType;
27
29
  scopes: Array<string>;
30
+ claims?: string;
28
31
  }
29
32
  //# sourceMappingURL=SignInParams.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignInParams.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/interaction_client/parameter/SignInParams.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC5D,iBAAiB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC5D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;IAChE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACnE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,kBAAkB,CAAC;IACnC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB"}
1
+ {"version":3,"file":"SignInParams.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/sign_in/interaction_client/parameter/SignInParams.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC5D,iBAAiB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC5D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;IAChE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACnE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,kBAAkB,CAAC;IACnC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@azure/msal-browser";
2
- export declare const version = "4.16.0";
2
+ export declare const version = "4.18.0";
3
3
  //# sourceMappingURL=packageMetadata.d.ts.map
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
12
12
  },
13
- "version": "4.16.0",
13
+ "version": "4.18.0",
14
14
  "description": "Microsoft Authentication Library for js",
15
15
  "keywords": [
16
16
  "implicit",
@@ -15,6 +15,7 @@ export type SignInInputs = CustomAuthActionInputs & {
15
15
  username: string;
16
16
  password?: string;
17
17
  scopes?: Array<string>;
18
+ claims?: string;
18
19
  };
19
20
 
20
21
  export type SignUpInputs = CustomAuthActionInputs & {
@@ -30,8 +31,10 @@ export type ResetPasswordInputs = CustomAuthActionInputs & {
30
31
  export type AccessTokenRetrievalInputs = {
31
32
  forceRefresh: boolean;
32
33
  scopes?: Array<string>;
34
+ claims?: string;
33
35
  };
34
36
 
35
37
  export type SignInWithContinuationTokenInputs = {
36
38
  scopes?: Array<string>;
39
+ claims?: string;
37
40
  };
@@ -41,10 +41,7 @@ import { CustomAuthApiClient } from "../core/network_client/custom_auth_api/Cust
41
41
  import { FetchHttpClient } from "../core/network_client/http_client/FetchHttpClient.js";
42
42
  import { ResetPasswordClient } from "../reset_password/interaction_client/ResetPasswordClient.js";
43
43
  import { NoCachedAccountFoundError } from "../core/error/NoCachedAccountFoundError.js";
44
- import {
45
- ensureArgumentIsNotEmptyString,
46
- ensureArgumentIsNotNullOrUndefined,
47
- } from "../core/utils/ArgumentValidator.js";
44
+ import * as ArgumentValidator from "../core/utils/ArgumentValidator.js";
48
45
  import { UserAlreadySignedInError } from "../core/error/UserAlreadySignedInError.js";
49
46
  import { CustomAuthSilentCacheClient } from "../get_account/interaction_client/CustomAuthSilentCacheClient.js";
50
47
  import { UnsupportedEnvironmentError } from "../core/error/UnsupportedEnvironmentError.js";
@@ -177,19 +174,27 @@ export class CustomAuthStandardController
177
174
  const correlationId = this.getCorrelationId(signInInputs);
178
175
 
179
176
  try {
180
- ensureArgumentIsNotNullOrUndefined(
177
+ ArgumentValidator.ensureArgumentIsNotNullOrUndefined(
181
178
  "signInInputs",
182
179
  signInInputs,
183
180
  correlationId
184
181
  );
185
182
 
186
- ensureArgumentIsNotEmptyString(
183
+ ArgumentValidator.ensureArgumentIsNotEmptyString(
187
184
  "signInInputs.username",
188
185
  signInInputs.username,
189
186
  correlationId
190
187
  );
191
188
  this.ensureUserNotSignedIn(correlationId);
192
189
 
190
+ if (signInInputs.claims) {
191
+ ArgumentValidator.ensureArgumentIsJSONString(
192
+ "signInInputs.claims",
193
+ signInInputs.claims,
194
+ correlationId
195
+ );
196
+ }
197
+
193
198
  // start the signin flow
194
199
  const signInStartParams: SignInStartParams = {
195
200
  clientId: this.customAuthConfig.auth.clientId,
@@ -231,6 +236,7 @@ export class CustomAuthStandardController
231
236
  username: signInInputs.username,
232
237
  codeLength: startResult.codeLength,
233
238
  scopes: signInInputs.scopes ?? [],
239
+ claims: signInInputs.claims,
234
240
  })
235
241
  );
236
242
  } else if (
@@ -258,6 +264,7 @@ export class CustomAuthStandardController
258
264
  cacheClient: this.cacheClient,
259
265
  username: signInInputs.username,
260
266
  scopes: signInInputs.scopes ?? [],
267
+ claims: signInInputs.claims,
261
268
  })
262
269
  );
263
270
  }
@@ -277,6 +284,7 @@ export class CustomAuthStandardController
277
284
  continuationToken: startResult.continuationToken,
278
285
  password: signInInputs.password,
279
286
  username: signInInputs.username,
287
+ claims: signInInputs.claims,
280
288
  };
281
289
 
282
290
  const completedResult = await this.signInClient.submitPassword(
@@ -327,13 +335,13 @@ export class CustomAuthStandardController
327
335
  const correlationId = this.getCorrelationId(signUpInputs);
328
336
 
329
337
  try {
330
- ensureArgumentIsNotNullOrUndefined(
338
+ ArgumentValidator.ensureArgumentIsNotNullOrUndefined(
331
339
  "signUpInputs",
332
340
  signUpInputs,
333
341
  correlationId
334
342
  );
335
343
 
336
- ensureArgumentIsNotEmptyString(
344
+ ArgumentValidator.ensureArgumentIsNotEmptyString(
337
345
  "signUpInputs.username",
338
346
  signUpInputs.username,
339
347
  correlationId
@@ -439,13 +447,13 @@ export class CustomAuthStandardController
439
447
  const correlationId = this.getCorrelationId(resetPasswordInputs);
440
448
 
441
449
  try {
442
- ensureArgumentIsNotNullOrUndefined(
450
+ ArgumentValidator.ensureArgumentIsNotNullOrUndefined(
443
451
  "resetPasswordInputs",
444
452
  resetPasswordInputs,
445
453
  correlationId
446
454
  );
447
455
 
448
- ensureArgumentIsNotEmptyString(
456
+ ArgumentValidator.ensureArgumentIsNotEmptyString(
449
457
  "resetPasswordInputs.username",
450
458
  resetPasswordInputs.username,
451
459
  correlationId
@@ -127,6 +127,18 @@ export abstract class AuthFlowErrorBase {
127
127
  this.errorData.error === CustomAuthApiErrorCode.EXPIRED_TOKEN
128
128
  );
129
129
  }
130
+
131
+ /**
132
+ * @todo verify the password change required error can be detected once the MFA is in place.
133
+ * This error will be raised during signin and refresh tokens when calling /token endpoint.
134
+ */
135
+ protected isPasswordResetRequiredError(): boolean {
136
+ return (
137
+ this.errorData instanceof CustomAuthApiError &&
138
+ this.errorData.error === CustomAuthApiErrorCode.INVALID_REQUEST &&
139
+ this.errorData.errorCodes?.includes(50142) === true
140
+ );
141
+ }
130
142
  }
131
143
 
132
144
  export abstract class AuthActionErrorBase extends AuthFlowErrorBase {
@@ -90,6 +90,7 @@ export class SignInApiClient extends BaseApiClient {
90
90
  grant_type: GrantType.PASSWORD,
91
91
  scope: params.scope,
92
92
  password: params.password,
93
+ ...(params.claims && { claims: params.claims }),
93
94
  },
94
95
  params.telemetryManager,
95
96
  params.correlationId
@@ -105,6 +106,7 @@ export class SignInApiClient extends BaseApiClient {
105
106
  scope: params.scope,
106
107
  oob: params.oob,
107
108
  grant_type: GrantType.OOB,
109
+ ...(params.claims && { claims: params.claims }),
108
110
  },
109
111
  params.telemetryManager,
110
112
  params.correlationId
@@ -121,6 +123,7 @@ export class SignInApiClient extends BaseApiClient {
121
123
  scope: params.scope,
122
124
  grant_type: GrantType.CONTINUATION_TOKEN,
123
125
  client_info: true,
126
+ ...(params.claims && { claims: params.claims }),
124
127
  },
125
128
  params.telemetryManager,
126
129
  params.correlationId
@@ -19,6 +19,7 @@ export interface SignInChallengeRequest extends ApiRequestBase {
19
19
  interface SignInTokenRequestBase extends ApiRequestBase {
20
20
  continuation_token: string;
21
21
  scope: string;
22
+ claims?: string;
22
23
  }
23
24
 
24
25
  export interface SignInPasswordTokenRequest extends SignInTokenRequestBase {
@@ -24,3 +24,25 @@ export function ensureArgumentIsNotEmptyString(
24
24
  throw new InvalidArgumentError(argName, correlationId);
25
25
  }
26
26
  }
27
+
28
+ export function ensureArgumentIsJSONString(
29
+ argName: string,
30
+ argValue: string,
31
+ correlationId?: string
32
+ ): void {
33
+ try {
34
+ const parsed = JSON.parse(argValue);
35
+ if (
36
+ typeof parsed !== "object" ||
37
+ parsed === null ||
38
+ Array.isArray(parsed)
39
+ ) {
40
+ throw new InvalidArgumentError(argName, correlationId);
41
+ }
42
+ } catch (e) {
43
+ if (e instanceof SyntaxError) {
44
+ throw new InvalidArgumentError(argName, correlationId);
45
+ }
46
+ throw e; // Rethrow unexpected errors
47
+ }
48
+ }
@@ -18,10 +18,7 @@ import {
18
18
  TokenClaims,
19
19
  } from "@azure/msal-common/browser";
20
20
  import { SilentRequest } from "../../../request/SilentRequest.js";
21
- import {
22
- ensureArgumentIsNotEmptyString,
23
- ensureArgumentIsNotNullOrUndefined,
24
- } from "../../core/utils/ArgumentValidator.js";
21
+ import * as ArgumentValidator from "../../core/utils/ArgumentValidator.js";
25
22
 
26
23
  /*
27
24
  * Account information.
@@ -34,8 +31,15 @@ export class CustomAuthAccountData {
34
31
  private readonly logger: Logger,
35
32
  private readonly correlationId: string
36
33
  ) {
37
- ensureArgumentIsNotEmptyString("correlationId", correlationId);
38
- ensureArgumentIsNotNullOrUndefined("account", account, correlationId);
34
+ ArgumentValidator.ensureArgumentIsNotEmptyString(
35
+ "correlationId",
36
+ correlationId
37
+ );
38
+ ArgumentValidator.ensureArgumentIsNotNullOrUndefined(
39
+ "account",
40
+ account,
41
+ correlationId
42
+ );
39
43
  }
40
44
 
41
45
  /**
@@ -107,12 +111,20 @@ export class CustomAuthAccountData {
107
111
  accessTokenRetrievalInputs: AccessTokenRetrievalInputs
108
112
  ): Promise<GetAccessTokenResult> {
109
113
  try {
110
- ensureArgumentIsNotNullOrUndefined(
114
+ ArgumentValidator.ensureArgumentIsNotNullOrUndefined(
111
115
  "accessTokenRetrievalInputs",
112
116
  accessTokenRetrievalInputs,
113
117
  this.correlationId
114
118
  );
115
119
 
120
+ if (accessTokenRetrievalInputs.claims) {
121
+ ArgumentValidator.ensureArgumentIsJSONString(
122
+ "accessTokenRetrievalInputs.claims",
123
+ accessTokenRetrievalInputs.claims,
124
+ this.correlationId
125
+ );
126
+ }
127
+
116
128
  this.logger.verbose("Getting current account.", this.correlationId);
117
129
 
118
130
  const currentAccount = this.cacheClient.getCurrentAccount(
@@ -133,7 +145,8 @@ export class CustomAuthAccountData {
133
145
  const commonSilentFlowRequest = this.createCommonSilentFlowRequest(
134
146
  currentAccount,
135
147
  accessTokenRetrievalInputs.forceRefresh,
136
- newScopes
148
+ newScopes,
149
+ accessTokenRetrievalInputs.claims
137
150
  );
138
151
  const result = await this.cacheClient.acquireToken(
139
152
  commonSilentFlowRequest
@@ -158,7 +171,8 @@ export class CustomAuthAccountData {
158
171
  private createCommonSilentFlowRequest(
159
172
  accountInfo: AccountInfo,
160
173
  forceRefresh: boolean = false,
161
- requestScopes: Array<string>
174
+ requestScopes: Array<string>,
175
+ claims?: string
162
176
  ): CommonSilentFlowRequest {
163
177
  const silentRequest: SilentRequest = {
164
178
  authority: this.config.auth.authority,
@@ -171,6 +185,7 @@ export class CustomAuthAccountData {
171
185
  accessToken: true,
172
186
  refreshToken: true,
173
187
  },
188
+ ...(claims && { claims: claims }),
174
189
  };
175
190
 
176
191
  return {
@@ -31,6 +31,14 @@ export class SignInError extends AuthActionErrorBase {
31
31
  return this.isPasswordIncorrectError();
32
32
  }
33
33
 
34
+ /**
35
+ * Checks if the error is due to password reset being required.
36
+ * @returns true if the error is due to password reset being required, false otherwise.
37
+ */
38
+ isPasswordResetRequired(): boolean {
39
+ return this.isPasswordResetRequiredError();
40
+ }
41
+
34
42
  /**
35
43
  * Checks if the error is due to the provided challenge type is not supported.
36
44
  * @returns {boolean} True if the error is due to the provided challenge type is not supported, false otherwise.
@@ -37,6 +37,7 @@ export class SignInCodeRequiredState extends SignInState<SignInCodeRequiredState
37
37
  continuationToken: this.stateParameters.continuationToken ?? "",
38
38
  code: code,
39
39
  username: this.stateParameters.username,
40
+ claims: this.stateParameters.claims,
40
41
  };
41
42
 
42
43
  this.stateParameters.logger.verbose(
@@ -10,6 +10,7 @@ import { SignInWithContinuationTokenInputs } from "../../../CustomAuthActionInpu
10
10
  import { SignInContinuationStateParameters } from "./SignInStateParameters.js";
11
11
  import { SignInState } from "./SignInState.js";
12
12
  import { SignInCompletedState } from "./SignInCompletedState.js";
13
+ import * as ArgumentValidator from "../../../core/utils/ArgumentValidator.js";
13
14
 
14
15
  /*
15
16
  * Sign-in continuation state.
@@ -24,6 +25,14 @@ export class SignInContinuationState extends SignInState<SignInContinuationState
24
25
  signInWithContinuationTokenInputs?: SignInWithContinuationTokenInputs
25
26
  ): Promise<SignInResult> {
26
27
  try {
28
+ if (signInWithContinuationTokenInputs?.claims) {
29
+ ArgumentValidator.ensureArgumentIsJSONString(
30
+ "signInWithContinuationTokenInputs.claims",
31
+ signInWithContinuationTokenInputs.claims,
32
+ this.stateParameters.correlationId
33
+ );
34
+ }
35
+
27
36
  const continuationTokenParams: SignInContinuationTokenParams = {
28
37
  clientId: this.stateParameters.config.auth.clientId,
29
38
  correlationId: this.stateParameters.correlationId,
@@ -33,6 +42,7 @@ export class SignInContinuationState extends SignInState<SignInContinuationState
33
42
  continuationToken: this.stateParameters.continuationToken ?? "",
34
43
  username: this.stateParameters.username,
35
44
  signInScenario: this.stateParameters.signInScenario,
45
+ claims: signInWithContinuationTokenInputs?.claims,
36
46
  };
37
47
 
38
48
  this.stateParameters.logger.verbose(
@@ -34,6 +34,7 @@ export class SignInPasswordRequiredState extends SignInState<SignInPasswordRequi
34
34
  continuationToken: this.stateParameters.continuationToken ?? "",
35
35
  password: password,
36
36
  username: this.stateParameters.username,
37
+ claims: this.stateParameters.claims,
37
38
  };
38
39
 
39
40
  this.stateParameters.logger.verbose(
@@ -13,6 +13,7 @@ export interface SignInStateParameters
13
13
  username: string;
14
14
  signInClient: SignInClient;
15
15
  cacheClient: CustomAuthSilentCacheClient;
16
+ claims?: string;
16
17
  }
17
18
 
18
19
  export interface SignInPasswordRequiredStateParameters
@@ -195,6 +195,9 @@ export class SignInClient extends CustomAuthInteractionClientBase {
195
195
  scope: scopes.join(" "),
196
196
  correlationId: parameters.correlationId,
197
197
  telemetryManager: telemetryManager,
198
+ ...(parameters.claims && {
199
+ claims: parameters.claims,
200
+ }),
198
201
  };
199
202
 
200
203
  return this.performTokenRequest(
@@ -230,6 +233,9 @@ export class SignInClient extends CustomAuthInteractionClientBase {
230
233
  scope: scopes.join(" "),
231
234
  correlationId: parameters.correlationId,
232
235
  telemetryManager: telemetryManager,
236
+ ...(parameters.claims && {
237
+ claims: parameters.claims,
238
+ }),
233
239
  };
234
240
 
235
241
  return this.performTokenRequest(
@@ -263,6 +269,9 @@ export class SignInClient extends CustomAuthInteractionClientBase {
263
269
  correlationId: parameters.correlationId,
264
270
  telemetryManager: telemetryManager,
265
271
  scope: scopes.join(" "),
272
+ ...(parameters.claims && {
273
+ claims: parameters.claims,
274
+ }),
266
275
  };
267
276
 
268
277
  // Call token endpoint.
@@ -24,16 +24,19 @@ export interface SignInSubmitCodeParams extends SignInParamsBase {
24
24
  continuationToken: string;
25
25
  code: string;
26
26
  scopes: Array<string>;
27
+ claims?: string;
27
28
  }
28
29
 
29
30
  export interface SignInSubmitPasswordParams extends SignInParamsBase {
30
31
  continuationToken: string;
31
32
  password: string;
32
33
  scopes: Array<string>;
34
+ claims?: string;
33
35
  }
34
36
 
35
37
  export interface SignInContinuationTokenParams extends SignInParamsBase {
36
38
  continuationToken: string;
37
39
  signInScenario: SignInScenarioType;
38
40
  scopes: Array<string>;
41
+ claims?: string;
39
42
  }