@azure/msal-browser 4.22.0 → 4.23.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 (670) 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/CacheKeys.mjs +1 -1
  13. package/dist/cache/CookieStorage.mjs +1 -1
  14. package/dist/cache/DatabaseStorage.mjs +1 -1
  15. package/dist/cache/EncryptedData.mjs +1 -1
  16. package/dist/cache/LocalStorage.mjs +1 -1
  17. package/dist/cache/MemoryStorage.mjs +1 -1
  18. package/dist/cache/SessionStorage.mjs +1 -1
  19. package/dist/cache/TokenCache.mjs +1 -1
  20. package/dist/config/Configuration.mjs +1 -1
  21. package/dist/controllers/ControllerFactory.mjs +1 -1
  22. package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
  23. package/dist/controllers/NestedAppAuthController.mjs +2 -1
  24. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  25. package/dist/controllers/StandardController.mjs +1 -1
  26. package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
  27. package/dist/crypto/BrowserCrypto.mjs +1 -1
  28. package/dist/crypto/CryptoOps.mjs +1 -1
  29. package/dist/crypto/PkceGenerator.mjs +1 -1
  30. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  31. package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
  32. package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  33. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  34. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  35. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  36. package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
  37. package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
  38. package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +1 -1
  39. package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
  40. package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
  41. package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
  42. package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
  43. package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
  44. package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
  45. package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
  46. package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
  47. package/dist/custom-auth-path/cache/TokenCache.mjs +1 -1
  48. package/dist/custom-auth-path/config/Configuration.mjs +1 -1
  49. package/dist/custom-auth-path/controllers/ControllerFactory.mjs +1 -1
  50. package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts.map +1 -1
  51. package/dist/custom-auth-path/controllers/StandardController.mjs +1 -1
  52. package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
  53. package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
  54. package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
  55. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +2 -1
  56. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  57. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +3 -1
  58. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs.map +1 -1
  59. package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  60. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  61. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  62. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +38 -5
  63. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  64. package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  65. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -0
  66. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  67. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +6 -1
  68. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs.map +1 -1
  69. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  70. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +14 -2
  71. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs.map +1 -1
  72. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  73. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  74. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  75. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs.map +1 -1
  76. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  77. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  78. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +22 -0
  79. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  80. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +35 -0
  81. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs.map +1 -0
  82. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  83. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  84. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +55 -0
  85. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs.map +1 -0
  86. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  87. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  88. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +45 -0
  89. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs.map +1 -0
  90. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  91. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  92. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +13 -0
  93. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs.map +1 -0
  94. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  95. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  96. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +13 -0
  97. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs.map +1 -0
  98. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  99. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  100. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +166 -0
  101. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +1 -0
  102. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  103. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  104. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  105. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
  106. package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
  107. package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  108. package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  109. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  110. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  111. package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  112. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  113. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  114. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +3 -4
  115. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs.map +1 -1
  116. package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  117. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  118. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  119. package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
  120. package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  121. package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  122. package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  123. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  124. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  125. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +21 -2
  126. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map +1 -1
  127. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  128. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.d.ts +27 -0
  129. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  130. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +127 -0
  131. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs.map +1 -0
  132. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +21 -0
  133. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  134. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +31 -0
  135. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  136. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +31 -0
  137. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs.map +1 -0
  138. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  139. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  140. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  141. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +3 -1
  142. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs.map +1 -1
  143. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +3 -0
  144. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  145. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +6 -3
  146. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +1 -1
  147. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  148. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  149. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  150. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  151. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +51 -0
  152. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs.map +1 -0
  153. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  154. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  155. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +3 -2
  156. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map +1 -1
  157. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  158. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  159. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -1
  160. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  161. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +22 -0
  162. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  163. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
  164. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  165. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +4 -3
  166. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs.map +1 -1
  167. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  168. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  169. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.d.ts +3 -0
  170. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  171. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +7 -3
  172. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
  173. package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  174. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
  175. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  176. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  177. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  178. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  179. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  180. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  181. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  182. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  183. package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  184. package/dist/custom-auth-path/custom_auth/index.d.ts +11 -3
  185. package/dist/custom-auth-path/custom_auth/index.d.ts.map +1 -1
  186. package/dist/custom-auth-path/custom_auth/index.mjs +7 -1
  187. package/dist/custom-auth-path/custom_auth/index.mjs.map +1 -1
  188. package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  189. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  190. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  191. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  192. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  193. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  194. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  195. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +3 -1
  196. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs.map +1 -1
  197. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  198. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  199. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  200. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +2 -1
  201. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs.map +1 -1
  202. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  203. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  204. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  205. package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  206. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  207. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  208. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  209. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  210. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  211. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +9 -1
  212. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
  213. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  214. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  215. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +3 -3
  216. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
  217. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  218. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  219. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +11 -3
  220. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +1 -1
  221. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  222. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +2 -1
  223. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs.map +1 -1
  224. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  225. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  226. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +33 -4
  227. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs.map +1 -1
  228. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  229. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  230. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +30 -4
  231. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs.map +1 -1
  232. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  233. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  234. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  235. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts +11 -12
  236. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  237. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +50 -30
  238. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs.map +1 -1
  239. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +7 -0
  240. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  241. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +9 -2
  242. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs.map +1 -1
  243. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  244. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  245. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  246. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  247. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  248. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  249. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  250. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +2 -1
  251. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs.map +1 -1
  252. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  253. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +5 -1
  254. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs.map +1 -1
  255. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  256. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  257. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  258. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +3 -1
  259. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs.map +1 -1
  260. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  261. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  262. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  263. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  264. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  265. package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
  266. package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
  267. package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
  268. package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
  269. package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
  270. package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  271. package/dist/custom-auth-path/error/NativeAuthError.mjs +1 -1
  272. package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
  273. package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
  274. package/dist/custom-auth-path/event/EventType.mjs +1 -1
  275. package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
  276. package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  277. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  278. package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
  279. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +1 -1
  280. package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
  281. package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
  282. package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
  283. package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
  284. package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
  285. package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
  286. package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
  287. package/dist/custom-auth-path/naa/TokenRequest.d.ts +1 -0
  288. package/dist/custom-auth-path/naa/TokenRequest.d.ts.map +1 -1
  289. package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
  290. package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
  291. package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
  292. package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
  293. package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
  294. package/dist/custom-auth-path/packageMetadata.mjs +2 -2
  295. package/dist/custom-auth-path/protocol/Authorize.mjs +1 -1
  296. package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
  297. package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
  298. package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
  299. package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
  300. package/dist/custom-auth-path/utils/BrowserUtils.d.ts +2 -1
  301. package/dist/custom-auth-path/utils/BrowserUtils.d.ts.map +1 -1
  302. package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
  303. package/dist/custom-auth-path/utils/BrowserUtils.mjs.map +1 -1
  304. package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
  305. package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
  306. package/dist/custom_auth/CustomAuthConstants.d.ts +2 -1
  307. package/dist/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  308. package/dist/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  309. package/dist/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  310. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -0
  311. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  312. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  313. package/dist/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  314. package/dist/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  315. package/dist/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  316. package/dist/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  317. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +22 -0
  318. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  319. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  320. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  321. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  322. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  323. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  324. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  325. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  326. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  327. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  328. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  329. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  330. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  331. package/dist/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  332. package/dist/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  333. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  334. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  335. package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts +27 -0
  336. package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  337. package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +21 -0
  338. package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  339. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +31 -0
  340. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  341. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  342. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  343. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +3 -0
  344. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  345. package/dist/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  346. package/dist/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  347. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  348. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  349. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  350. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -1
  351. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  352. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +22 -0
  353. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  354. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
  355. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  356. package/dist/custom_auth/core/telemetry/PublicApiId.d.ts +3 -0
  357. package/dist/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  358. package/dist/custom_auth/index.d.ts +11 -3
  359. package/dist/custom_auth/index.d.ts.map +1 -1
  360. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  361. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  362. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  363. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  364. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  365. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  366. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  367. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  368. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  369. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  370. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  371. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  372. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  373. package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  374. package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  375. package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts +11 -12
  376. package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  377. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +7 -0
  378. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  379. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  380. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  381. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  382. package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  383. package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  384. package/dist/encode/Base64Decode.mjs +1 -1
  385. package/dist/encode/Base64Encode.mjs +1 -1
  386. package/dist/error/BrowserAuthError.mjs +1 -1
  387. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  388. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  389. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  390. package/dist/error/NativeAuthError.mjs +1 -1
  391. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  392. package/dist/error/NestedAppAuthError.mjs +1 -1
  393. package/dist/event/EventHandler.mjs +1 -1
  394. package/dist/event/EventMessage.mjs +1 -1
  395. package/dist/event/EventType.mjs +1 -1
  396. package/dist/index.mjs +1 -1
  397. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  398. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  399. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  400. package/dist/interaction_client/PopupClient.mjs +1 -1
  401. package/dist/interaction_client/RedirectClient.mjs +1 -1
  402. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  403. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  404. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  405. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  406. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  407. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  408. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  409. package/dist/naa/BridgeError.mjs +1 -1
  410. package/dist/naa/BridgeProxy.mjs +1 -1
  411. package/dist/naa/BridgeStatusCode.mjs +1 -1
  412. package/dist/naa/TokenRequest.d.ts +1 -0
  413. package/dist/naa/TokenRequest.d.ts.map +1 -1
  414. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  415. package/dist/navigation/NavigationClient.mjs +1 -1
  416. package/dist/network/FetchClient.mjs +1 -1
  417. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  418. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  419. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  420. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  421. package/dist/packageMetadata.d.ts +1 -1
  422. package/dist/packageMetadata.mjs +2 -2
  423. package/dist/protocol/Authorize.mjs +1 -1
  424. package/dist/request/RequestHelpers.mjs +1 -1
  425. package/dist/response/ResponseHandler.mjs +1 -1
  426. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  427. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  428. package/dist/utils/BrowserConstants.mjs +1 -1
  429. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  430. package/dist/utils/BrowserUtils.d.ts +2 -1
  431. package/dist/utils/BrowserUtils.d.ts.map +1 -1
  432. package/dist/utils/BrowserUtils.mjs +5 -4
  433. package/dist/utils/BrowserUtils.mjs.map +1 -1
  434. package/dist/utils/Helpers.mjs +1 -1
  435. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  436. package/lib/custom-auth-path/msal-custom-auth.cjs +794 -154
  437. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  438. package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  439. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +2 -1
  440. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  441. package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  442. package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  443. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -0
  444. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  445. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  446. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  447. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  448. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  449. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  450. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +22 -0
  451. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  452. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  453. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  454. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  455. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  456. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  457. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  458. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  459. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  460. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  461. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  462. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  463. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  464. package/lib/custom-auth-path/types/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  465. package/lib/custom-auth-path/types/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  466. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  467. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  468. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts +27 -0
  469. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  470. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +21 -0
  471. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  472. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +31 -0
  473. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  474. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  475. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  476. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +3 -0
  477. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  478. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  479. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  480. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  481. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  482. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  483. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -1
  484. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  485. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +22 -0
  486. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  487. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
  488. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  489. package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.d.ts +3 -0
  490. package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  491. package/lib/custom-auth-path/types/custom_auth/index.d.ts +11 -3
  492. package/lib/custom-auth-path/types/custom_auth/index.d.ts.map +1 -1
  493. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  494. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  495. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  496. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  497. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  498. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  499. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  500. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  501. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  502. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  503. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  504. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  505. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  506. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  507. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  508. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +11 -12
  509. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  510. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +7 -0
  511. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  512. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  513. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  514. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  515. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  516. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  517. package/lib/custom-auth-path/types/naa/TokenRequest.d.ts +1 -0
  518. package/lib/custom-auth-path/types/naa/TokenRequest.d.ts.map +1 -1
  519. package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
  520. package/lib/custom-auth-path/types/utils/BrowserUtils.d.ts +2 -1
  521. package/lib/custom-auth-path/types/utils/BrowserUtils.d.ts.map +1 -1
  522. package/lib/msal-browser.cjs +73 -70
  523. package/lib/msal-browser.cjs.map +1 -1
  524. package/lib/msal-browser.js +73 -70
  525. package/lib/msal-browser.js.map +1 -1
  526. package/lib/msal-browser.min.js +60 -60
  527. package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  528. package/lib/types/custom_auth/CustomAuthConstants.d.ts +2 -1
  529. package/lib/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  530. package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  531. package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  532. package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -0
  533. package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  534. package/lib/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  535. package/lib/types/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  536. package/lib/types/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  537. package/lib/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  538. package/lib/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  539. package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +22 -0
  540. package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  541. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  542. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  543. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  544. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  545. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  546. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  547. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  548. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  549. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  550. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  551. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  552. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  553. package/lib/types/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  554. package/lib/types/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  555. package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  556. package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  557. package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts +27 -0
  558. package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  559. package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +21 -0
  560. package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  561. package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +31 -0
  562. package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  563. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  564. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  565. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +3 -0
  566. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  567. package/lib/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  568. package/lib/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  569. package/lib/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  570. package/lib/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  571. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  572. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -1
  573. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  574. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +22 -0
  575. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  576. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
  577. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  578. package/lib/types/custom_auth/core/telemetry/PublicApiId.d.ts +3 -0
  579. package/lib/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  580. package/lib/types/custom_auth/index.d.ts +11 -3
  581. package/lib/types/custom_auth/index.d.ts.map +1 -1
  582. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  583. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  584. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  585. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  586. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  587. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  588. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  589. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  590. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  591. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  592. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  593. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  594. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  595. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  596. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  597. package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +11 -12
  598. package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  599. package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +7 -0
  600. package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  601. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  602. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  603. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  604. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  605. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  606. package/lib/types/naa/TokenRequest.d.ts +1 -0
  607. package/lib/types/naa/TokenRequest.d.ts.map +1 -1
  608. package/lib/types/packageMetadata.d.ts +1 -1
  609. package/lib/types/utils/BrowserUtils.d.ts +2 -1
  610. package/lib/types/utils/BrowserUtils.d.ts.map +1 -1
  611. package/package.json +2 -2
  612. package/src/controllers/NestedAppAuthController.ts +1 -0
  613. package/src/custom_auth/CustomAuthConstants.ts +1 -0
  614. package/src/custom_auth/controller/CustomAuthStandardController.ts +62 -14
  615. package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +8 -0
  616. package/src/custom_auth/core/auth_flow/AuthFlowResultBase.ts +14 -0
  617. package/src/custom_auth/core/auth_flow/AuthFlowState.ts +1 -1
  618. package/src/custom_auth/core/auth_flow/jit/AuthMethodDetails.ts +21 -0
  619. package/src/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.ts +32 -0
  620. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts +79 -0
  621. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts +64 -0
  622. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.ts +8 -0
  623. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.ts +8 -0
  624. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts +260 -0
  625. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.ts +30 -0
  626. package/src/custom_auth/core/error/MsalCustomAuthError.ts +2 -5
  627. package/src/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.ts +46 -0
  628. package/src/custom_auth/core/interaction_client/jit/JitClient.ts +206 -0
  629. package/src/custom_auth/core/interaction_client/jit/parameter/JitParams.ts +29 -0
  630. package/src/custom_auth/core/interaction_client/jit/result/JitActionResult.ts +67 -0
  631. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts +7 -0
  632. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +4 -0
  633. package/src/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.ts +2 -0
  634. package/src/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.ts +95 -0
  635. package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +2 -1
  636. package/src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts +20 -1
  637. package/src/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.ts +27 -0
  638. package/src/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.ts +1 -0
  639. package/src/custom_auth/core/telemetry/PublicApiId.ts +5 -0
  640. package/src/custom_auth/index.ts +35 -4
  641. package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.ts +2 -0
  642. package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.ts +1 -0
  643. package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.ts +2 -0
  644. package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +14 -1
  645. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +17 -2
  646. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +30 -2
  647. package/src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts +1 -0
  648. package/src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts +50 -9
  649. package/src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts +50 -12
  650. package/src/custom_auth/sign_in/auth_flow/state/SignInStateParameters.ts +2 -0
  651. package/src/custom_auth/sign_in/interaction_client/SignInClient.ts +85 -83
  652. package/src/custom_auth/sign_in/interaction_client/result/SignInActionResult.ts +16 -0
  653. package/src/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.ts +1 -0
  654. package/src/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.ts +4 -0
  655. package/src/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.ts +2 -0
  656. package/src/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.ts +2 -0
  657. package/src/naa/TokenRequest.ts +1 -0
  658. package/src/packageMetadata.ts +1 -1
  659. package/src/utils/BrowserUtils.ts +8 -1
  660. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  661. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  662. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs +0 -24
  663. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs.map +0 -1
  664. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  665. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  666. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  667. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  668. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  669. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  670. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.ts +0 -43
@@ -0,0 +1,260 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import {
7
+ AuthMethodRegistrationStateParameters,
8
+ AuthMethodRegistrationRequiredStateParameters,
9
+ AuthMethodVerificationRequiredStateParameters,
10
+ } from "./AuthMethodRegistrationStateParameters.js";
11
+ import { AuthMethodDetails } from "../AuthMethodDetails.js";
12
+ import {
13
+ JitChallengeAuthMethodParams,
14
+ JitSubmitChallengeParams,
15
+ } from "../../../interaction_client/jit/parameter/JitParams.js";
16
+ import { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
17
+ import {
18
+ JIT_VERIFICATION_REQUIRED_RESULT_TYPE,
19
+ JIT_COMPLETED_RESULT_TYPE,
20
+ } from "../../../interaction_client/jit/result/JitActionResult.js";
21
+ import { UnexpectedError } from "../../../error/UnexpectedError.js";
22
+ import { AuthenticationMethod } from "../../../network_client/custom_auth_api/types/ApiResponseTypes.js";
23
+ import { AuthFlowActionRequiredStateBase } from "../../AuthFlowState.js";
24
+ import { GrantType } from "../../../../CustomAuthConstants.js";
25
+ import { AuthMethodRegistrationChallengeMethodResult } from "../result/AuthMethodRegistrationChallengeMethodResult.js";
26
+ import { AuthMethodRegistrationSubmitChallengeResult } from "../result/AuthMethodRegistrationSubmitChallengeResult.js";
27
+ import { AuthMethodRegistrationCompletedState } from "./AuthMethodRegistrationCompletedState.js";
28
+
29
+ /**
30
+ * Abstract base class for authentication method registration states.
31
+ */
32
+ abstract class AuthMethodRegistrationState<
33
+ TParameters extends AuthMethodRegistrationStateParameters
34
+ > extends AuthFlowActionRequiredStateBase<TParameters> {
35
+ /**
36
+ * Internal method to challenge an authentication method.
37
+ * @param authMethodDetails The authentication method details to challenge.
38
+ * @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
39
+ */
40
+ protected async challengeAuthMethodInternal(
41
+ authMethodDetails: AuthMethodDetails
42
+ ): Promise<AuthMethodRegistrationChallengeMethodResult> {
43
+ try {
44
+ this.stateParameters.logger.verbose(
45
+ `Challenging authentication method - '${authMethodDetails.authMethodType.id}' for auth method registration.`,
46
+ this.stateParameters.correlationId
47
+ );
48
+
49
+ const challengeParams: JitChallengeAuthMethodParams = {
50
+ correlationId: this.stateParameters.correlationId,
51
+ continuationToken: this.stateParameters.continuationToken ?? "",
52
+ authMethod: authMethodDetails.authMethodType,
53
+ verificationContact: authMethodDetails.verificationContact,
54
+ scopes: this.stateParameters.scopes ?? [],
55
+ username: this.stateParameters.username,
56
+ claims: this.stateParameters.claims,
57
+ };
58
+
59
+ const result =
60
+ await this.stateParameters.jitClient.challengeAuthMethod(
61
+ challengeParams
62
+ );
63
+
64
+ this.stateParameters.logger.verbose(
65
+ "Authentication method challenged successfully for auth method registration.",
66
+ this.stateParameters.correlationId
67
+ );
68
+
69
+ if (result.type === JIT_VERIFICATION_REQUIRED_RESULT_TYPE) {
70
+ // Verification required
71
+ this.stateParameters.logger.verbose(
72
+ "Auth method verification required.",
73
+ this.stateParameters.correlationId
74
+ );
75
+
76
+ return new AuthMethodRegistrationChallengeMethodResult(
77
+ new AuthMethodVerificationRequiredState({
78
+ correlationId: result.correlationId,
79
+ continuationToken: result.continuationToken,
80
+ config: this.stateParameters.config,
81
+ logger: this.stateParameters.logger,
82
+ jitClient: this.stateParameters.jitClient,
83
+ cacheClient: this.stateParameters.cacheClient,
84
+ challengeChannel: result.challengeChannel,
85
+ challengeTargetLabel: result.challengeTargetLabel,
86
+ codeLength: result.codeLength,
87
+ scopes: this.stateParameters.scopes ?? [],
88
+ username: this.stateParameters.username,
89
+ claims: this.stateParameters.claims,
90
+ })
91
+ );
92
+ } else if (result.type === JIT_COMPLETED_RESULT_TYPE) {
93
+ // Registration completed (fast-pass scenario)
94
+ this.stateParameters.logger.verbose(
95
+ "Auth method registration completed via fast-pass.",
96
+ this.stateParameters.correlationId
97
+ );
98
+
99
+ const accountInfo = new CustomAuthAccountData(
100
+ result.authenticationResult.account,
101
+ this.stateParameters.config,
102
+ this.stateParameters.cacheClient,
103
+ this.stateParameters.logger,
104
+ this.stateParameters.correlationId
105
+ );
106
+
107
+ return new AuthMethodRegistrationChallengeMethodResult(
108
+ new AuthMethodRegistrationCompletedState(),
109
+ accountInfo
110
+ );
111
+ } else {
112
+ // Handle unexpected result type with proper typing
113
+ this.stateParameters.logger.error(
114
+ "Unexpected result type from auth challenge method",
115
+ this.stateParameters.correlationId
116
+ );
117
+ throw new UnexpectedError(
118
+ "Unexpected result type from auth challenge method"
119
+ );
120
+ }
121
+ } catch (error) {
122
+ this.stateParameters.logger.error(
123
+ "Failed to challenge authentication method for auth method registration.",
124
+ this.stateParameters.correlationId
125
+ );
126
+ return AuthMethodRegistrationChallengeMethodResult.createWithError(
127
+ error
128
+ );
129
+ }
130
+ }
131
+ }
132
+
133
+ /**
134
+ * State indicating that authentication method registration is required.
135
+ */
136
+ export class AuthMethodRegistrationRequiredState extends AuthMethodRegistrationState<AuthMethodRegistrationRequiredStateParameters> {
137
+ /**
138
+ * Gets the available authentication methods for registration.
139
+ * @returns Array of available authentication methods.
140
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
141
+ */
142
+ getAuthMethods(): AuthenticationMethod[] {
143
+ return this.stateParameters.authMethods;
144
+ }
145
+
146
+ /**
147
+ * Challenges an authentication method for registration.
148
+ * @param authMethodDetails The authentication method details to challenge.
149
+ * @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
150
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
151
+ */
152
+ async challengeAuthMethod(
153
+ authMethodDetails: AuthMethodDetails
154
+ ): Promise<AuthMethodRegistrationChallengeMethodResult> {
155
+ return this.challengeAuthMethodInternal(authMethodDetails);
156
+ }
157
+ }
158
+
159
+ /**
160
+ * State indicating that verification is required for the challenged authentication method.
161
+ */
162
+ export class AuthMethodVerificationRequiredState extends AuthMethodRegistrationState<AuthMethodVerificationRequiredStateParameters> {
163
+ /**
164
+ * Gets the length of the expected verification code.
165
+ * @returns The code length.
166
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
167
+ */
168
+ getCodeLength(): number {
169
+ return this.stateParameters.codeLength;
170
+ }
171
+
172
+ /**
173
+ * Gets the channel through which the challenge was sent.
174
+ * @returns The challenge channel (e.g., "email").
175
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
176
+ */
177
+ getChannel(): string {
178
+ return this.stateParameters.challengeChannel;
179
+ }
180
+
181
+ /**
182
+ * Gets the target label indicating where the challenge was sent.
183
+ * @returns The challenge target label (e.g., masked email address).
184
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
185
+ */
186
+ getSentTo(): string {
187
+ return this.stateParameters.challengeTargetLabel;
188
+ }
189
+
190
+ /**
191
+ * Submits the verification challenge to complete the authentication method registration.
192
+ * @param code The verification code entered by the user.
193
+ * @returns Promise that resolves to AuthMethodRegistrationSubmitChallengeResult.
194
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
195
+ */
196
+ async submitChallenge(
197
+ code: string
198
+ ): Promise<AuthMethodRegistrationSubmitChallengeResult> {
199
+ try {
200
+ this.ensureCodeIsValid(code, this.getCodeLength());
201
+
202
+ this.stateParameters.logger.verbose(
203
+ "Submitting auth method challenge.",
204
+ this.stateParameters.correlationId
205
+ );
206
+
207
+ const submitParams: JitSubmitChallengeParams = {
208
+ correlationId: this.stateParameters.correlationId,
209
+ continuationToken: this.stateParameters.continuationToken ?? "",
210
+ scopes: this.stateParameters.scopes ?? [],
211
+ grantType: GrantType.OOB,
212
+ challenge: code,
213
+ username: this.stateParameters.username,
214
+ claims: this.stateParameters.claims,
215
+ };
216
+
217
+ const result = await this.stateParameters.jitClient.submitChallenge(
218
+ submitParams
219
+ );
220
+
221
+ this.stateParameters.logger.verbose(
222
+ "Auth method challenge submitted successfully.",
223
+ this.stateParameters.correlationId
224
+ );
225
+
226
+ const accountInfo = new CustomAuthAccountData(
227
+ result.authenticationResult.account,
228
+ this.stateParameters.config,
229
+ this.stateParameters.cacheClient,
230
+ this.stateParameters.logger,
231
+ this.stateParameters.correlationId
232
+ );
233
+
234
+ return new AuthMethodRegistrationSubmitChallengeResult(
235
+ new AuthMethodRegistrationCompletedState(),
236
+ accountInfo
237
+ );
238
+ } catch (error) {
239
+ this.stateParameters.logger.error(
240
+ "Failed to submit auth method challenge.",
241
+ this.stateParameters.correlationId
242
+ );
243
+ return AuthMethodRegistrationSubmitChallengeResult.createWithError(
244
+ error
245
+ );
246
+ }
247
+ }
248
+
249
+ /**
250
+ * Challenges a different authentication method for registration.
251
+ * @param authMethodDetails The authentication method details to challenge.
252
+ * @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
253
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
254
+ */
255
+ async challengeAuthMethod(
256
+ authMethodDetails: AuthMethodDetails
257
+ ): Promise<AuthMethodRegistrationChallengeMethodResult> {
258
+ return this.challengeAuthMethodInternal(authMethodDetails);
259
+ }
260
+ }
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowActionRequiredStateParameters } from "../../AuthFlowState.js";
7
+ import { JitClient } from "../../../interaction_client/jit/JitClient.js";
8
+ import { AuthenticationMethod } from "../../../network_client/custom_auth_api/types/ApiResponseTypes.js";
9
+ import { CustomAuthSilentCacheClient } from "../../../../get_account/interaction_client/CustomAuthSilentCacheClient.js";
10
+
11
+ export interface AuthMethodRegistrationStateParameters
12
+ extends AuthFlowActionRequiredStateParameters {
13
+ jitClient: JitClient;
14
+ cacheClient: CustomAuthSilentCacheClient;
15
+ scopes?: string[];
16
+ username?: string;
17
+ claims?: string;
18
+ }
19
+
20
+ export interface AuthMethodRegistrationRequiredStateParameters
21
+ extends AuthMethodRegistrationStateParameters {
22
+ authMethods: AuthenticationMethod[];
23
+ }
24
+
25
+ export interface AuthMethodVerificationRequiredStateParameters
26
+ extends AuthMethodRegistrationStateParameters {
27
+ challengeChannel: string;
28
+ challengeTargetLabel: string;
29
+ codeLength: number;
30
+ }
@@ -6,17 +6,14 @@
6
6
  import { CustomAuthError } from "./CustomAuthError.js";
7
7
 
8
8
  export class MsalCustomAuthError extends CustomAuthError {
9
- subError: string | undefined;
10
-
11
9
  constructor(
12
10
  error: string,
13
11
  errorDescription?: string,
14
12
  subError?: string,
13
+ errorCodes?: Array<number>,
15
14
  correlationId?: string
16
15
  ) {
17
- super(error, errorDescription, correlationId);
16
+ super(error, errorDescription, correlationId, errorCodes, subError);
18
17
  Object.setPrototypeOf(this, MsalCustomAuthError.prototype);
19
-
20
- this.subError = subError || "";
21
18
  }
22
19
  }
@@ -15,6 +15,7 @@ import {
15
15
  ICrypto,
16
16
  IPerformanceClient,
17
17
  Logger,
18
+ ResponseHandler,
18
19
  } from "@azure/msal-common/browser";
19
20
  import { EventHandler } from "../../../event/EventHandler.js";
20
21
  import { INavigationClient } from "../../../navigation/INavigationClient.js";
@@ -24,8 +25,11 @@ import { SsoSilentRequest } from "../../../request/SsoSilentRequest.js";
24
25
  import { EndSessionRequest } from "../../../request/EndSessionRequest.js";
25
26
  import { ClearCacheRequest } from "../../../request/ClearCacheRequest.js";
26
27
  import { AuthenticationResult } from "../../../response/AuthenticationResult.js";
28
+ import { SignInTokenResponse } from "../network_client/custom_auth_api/types/ApiResponseTypes.js";
27
29
 
28
30
  export abstract class CustomAuthInteractionClientBase extends StandardInteractionClient {
31
+ private readonly tokenResponseHandler: ResponseHandler;
32
+
29
33
  constructor(
30
34
  config: BrowserConfiguration,
31
35
  storageImpl: BrowserCacheManager,
@@ -46,6 +50,15 @@ export abstract class CustomAuthInteractionClientBase extends StandardInteractio
46
50
  navigationClient,
47
51
  performanceClient
48
52
  );
53
+
54
+ this.tokenResponseHandler = new ResponseHandler(
55
+ this.config.auth.clientId,
56
+ this.browserStorage,
57
+ this.browserCrypto,
58
+ this.logger,
59
+ null,
60
+ null
61
+ );
49
62
  }
50
63
 
51
64
  protected getChallengeTypes(
@@ -74,6 +87,39 @@ export abstract class CustomAuthInteractionClientBase extends StandardInteractio
74
87
  ];
75
88
  }
76
89
 
90
+ /**
91
+ * Common method to handle token response processing.
92
+ * @param tokenResponse The token response from the API
93
+ * @param requestScopes Scopes for the token request
94
+ * @param correlationId Correlation ID for logging
95
+ * @returns Authentication result from the token response
96
+ */
97
+ protected async handleTokenResponse(
98
+ tokenResponse: SignInTokenResponse,
99
+ requestScopes: string[],
100
+ correlationId: string
101
+ ): Promise<AuthenticationResult> {
102
+ this.logger.verbose("Processing token response.", correlationId);
103
+
104
+ const requestTimestamp = Math.round(new Date().getTime() / 1000.0);
105
+
106
+ // Save tokens and create authentication result 44s
107
+ const result =
108
+ await this.tokenResponseHandler.handleServerTokenResponse(
109
+ tokenResponse,
110
+ this.customAuthAuthority,
111
+ requestTimestamp,
112
+ {
113
+ authority: this.customAuthAuthority.canonicalAuthority,
114
+ correlationId:
115
+ tokenResponse.correlation_id ?? correlationId,
116
+ scopes: requestScopes,
117
+ }
118
+ );
119
+
120
+ return result as AuthenticationResult;
121
+ }
122
+
77
123
  // It is not necessary to implement this method from base class.
78
124
  acquireToken(
79
125
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -0,0 +1,206 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { CustomAuthInteractionClientBase } from "../CustomAuthInteractionClientBase.js";
7
+ import {
8
+ JitGetAuthMethodsParams,
9
+ JitChallengeAuthMethodParams,
10
+ JitSubmitChallengeParams,
11
+ } from "./parameter/JitParams.js";
12
+ import {
13
+ JitGetAuthMethodsResult,
14
+ JitVerificationRequiredResult,
15
+ JitCompletedResult,
16
+ createJitGetAuthMethodsResult,
17
+ createJitVerificationRequiredResult,
18
+ createJitCompletedResult,
19
+ } from "./result/JitActionResult.js";
20
+ import {
21
+ DefaultCustomAuthApiCodeLength,
22
+ ChallengeType,
23
+ GrantType,
24
+ } from "../../../CustomAuthConstants.js";
25
+ import * as PublicApiId from "../../telemetry/PublicApiId.js";
26
+ import {
27
+ RegisterIntrospectRequest,
28
+ RegisterChallengeRequest,
29
+ RegisterContinueRequest,
30
+ SignInContinuationTokenRequest,
31
+ } from "../../network_client/custom_auth_api/types/ApiRequestTypes.js";
32
+
33
+ /**
34
+ * JIT client for handling just-in-time authentication method registration flows.
35
+ */
36
+ export class JitClient extends CustomAuthInteractionClientBase {
37
+ /**
38
+ * Gets available authentication methods for JIT registration.
39
+ * @param parameters The parameters for getting auth methods.
40
+ * @returns Promise that resolves to JitGetAuthMethodsResult.
41
+ */
42
+ async getAuthMethods(
43
+ parameters: JitGetAuthMethodsParams
44
+ ): Promise<JitGetAuthMethodsResult> {
45
+ const apiId = PublicApiId.JIT_GET_AUTH_METHODS;
46
+ const telemetryManager = this.initializeServerTelemetryManager(apiId);
47
+
48
+ this.logger.verbose(
49
+ "Calling introspect endpoint for getting auth methods.",
50
+ parameters.correlationId
51
+ );
52
+
53
+ const request: RegisterIntrospectRequest = {
54
+ continuation_token: parameters.continuationToken,
55
+ correlationId: parameters.correlationId,
56
+ telemetryManager: telemetryManager,
57
+ };
58
+
59
+ const introspectResponse =
60
+ await this.customAuthApiClient.registerApi.introspect(request);
61
+
62
+ this.logger.verbose(
63
+ "Introspect endpoint called for getting auth methods.",
64
+ parameters.correlationId
65
+ );
66
+
67
+ return createJitGetAuthMethodsResult({
68
+ correlationId: introspectResponse.correlation_id,
69
+ continuationToken: introspectResponse.continuation_token,
70
+ authMethods: introspectResponse.methods,
71
+ });
72
+ }
73
+
74
+ /**
75
+ * Challenges an authentication method for JIT registration.
76
+ * @param parameters The parameters for challenging the auth method.
77
+ * @returns Promise that resolves to either JitVerificationRequiredResult or JitCompletedResult.
78
+ */
79
+ async challengeAuthMethod(
80
+ parameters: JitChallengeAuthMethodParams
81
+ ): Promise<JitVerificationRequiredResult | JitCompletedResult> {
82
+ const apiId = PublicApiId.JIT_CHALLENGE_AUTH_METHOD;
83
+ const telemetryManager = this.initializeServerTelemetryManager(apiId);
84
+
85
+ this.logger.verbose(
86
+ "Calling challenge endpoint for getting auth method.",
87
+ parameters.correlationId
88
+ );
89
+
90
+ const challengeReq: RegisterChallengeRequest = {
91
+ continuation_token: parameters.continuationToken,
92
+ challenge_type: parameters.authMethod.challenge_type,
93
+ challenge_target: parameters.verificationContact,
94
+ challenge_channel: parameters.authMethod.challenge_channel,
95
+ correlationId: parameters.correlationId,
96
+ telemetryManager: telemetryManager,
97
+ };
98
+
99
+ const challengeResponse =
100
+ await this.customAuthApiClient.registerApi.challenge(challengeReq);
101
+
102
+ this.logger.verbose(
103
+ "Challenge endpoint called for auth method registration.",
104
+ parameters.correlationId
105
+ );
106
+
107
+ /*
108
+ * Handle fast-pass scenario (preverified)
109
+ * This occurs when the user selects the same email used during sign-up
110
+ * Since the email was already verified during sign-up, no additional verification is needed
111
+ */
112
+ if (challengeResponse.challenge_type === ChallengeType.PREVERIFIED) {
113
+ this.logger.verbose(
114
+ "Fast-pass scenario detected - completing registration without additional verification.",
115
+ challengeResponse.correlation_id
116
+ );
117
+
118
+ // Use submitChallenge for fast-pass scenario with continuation_token grant type
119
+ const fastPassParams: JitSubmitChallengeParams = {
120
+ correlationId: challengeResponse.correlation_id,
121
+ continuationToken: challengeResponse.continuation_token,
122
+ grantType: GrantType.CONTINUATION_TOKEN,
123
+ scopes: parameters.scopes,
124
+ username: parameters.username,
125
+ claims: parameters.claims,
126
+ };
127
+
128
+ const completedResult = await this.submitChallenge(fastPassParams);
129
+ return completedResult;
130
+ }
131
+
132
+ // Verification required
133
+ return createJitVerificationRequiredResult({
134
+ correlationId: challengeResponse.correlation_id,
135
+ continuationToken: challengeResponse.continuation_token,
136
+ challengeChannel: challengeResponse.challenge_channel,
137
+ challengeTargetLabel: challengeResponse.challenge_target,
138
+ codeLength:
139
+ challengeResponse.code_length || DefaultCustomAuthApiCodeLength,
140
+ });
141
+ }
142
+
143
+ /**
144
+ * Submits challenge response and completes JIT registration.
145
+ * @param parameters The parameters for submitting the challenge.
146
+ * @returns Promise that resolves to JitCompletedResult.
147
+ */
148
+ async submitChallenge(
149
+ parameters: JitSubmitChallengeParams
150
+ ): Promise<JitCompletedResult> {
151
+ const apiId = PublicApiId.JIT_SUBMIT_CHALLENGE;
152
+ const telemetryManager = this.initializeServerTelemetryManager(apiId);
153
+
154
+ this.logger.verbose(
155
+ "Calling continue endpoint for auth method challenge submission.",
156
+ parameters.correlationId
157
+ );
158
+
159
+ // Submit challenge to complete registration
160
+ const continueReq: RegisterContinueRequest = {
161
+ continuation_token: parameters.continuationToken,
162
+ grant_type: parameters.grantType,
163
+ ...(parameters.challenge && {
164
+ oob: parameters.challenge,
165
+ }),
166
+ correlationId: parameters.correlationId,
167
+ telemetryManager: telemetryManager,
168
+ };
169
+
170
+ const continueResponse =
171
+ await this.customAuthApiClient.registerApi.continue(continueReq);
172
+
173
+ this.logger.verbose(
174
+ "Continue endpoint called for auth method challenge submission.",
175
+ parameters.correlationId
176
+ );
177
+
178
+ // Use continuation token to get authentication tokens
179
+ const scopes = this.getScopes(parameters.scopes);
180
+ const tokenRequest: SignInContinuationTokenRequest = {
181
+ continuation_token: continueResponse.continuation_token,
182
+ scope: scopes.join(" "),
183
+ correlationId: continueResponse.correlation_id,
184
+ telemetryManager: telemetryManager,
185
+ ...(parameters.claims && {
186
+ claims: parameters.claims,
187
+ }),
188
+ };
189
+
190
+ const tokenResponse =
191
+ await this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(
192
+ tokenRequest
193
+ );
194
+
195
+ const authResult = await this.handleTokenResponse(
196
+ tokenResponse,
197
+ scopes,
198
+ continueResponse.correlation_id
199
+ );
200
+
201
+ return createJitCompletedResult({
202
+ correlationId: continueResponse.correlation_id,
203
+ authenticationResult: authResult,
204
+ });
205
+ }
206
+ }
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthenticationMethod } from "../../../network_client/custom_auth_api/types/ApiResponseTypes.js";
7
+
8
+ export interface JitClientParametersBase {
9
+ correlationId: string;
10
+ continuationToken: string;
11
+ }
12
+
13
+ export type JitGetAuthMethodsParams = JitClientParametersBase;
14
+
15
+ export interface JitChallengeAuthMethodParams extends JitClientParametersBase {
16
+ authMethod: AuthenticationMethod;
17
+ verificationContact: string;
18
+ scopes: string[];
19
+ username?: string;
20
+ claims?: string;
21
+ }
22
+
23
+ export interface JitSubmitChallengeParams extends JitClientParametersBase {
24
+ grantType: string;
25
+ challenge?: string;
26
+ scopes: string[];
27
+ username?: string;
28
+ claims?: string;
29
+ }
@@ -0,0 +1,67 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthenticationResult } from "../../../../../response/AuthenticationResult.js";
7
+ import { AuthenticationMethod } from "../../../network_client/custom_auth_api/types/ApiResponseTypes.js";
8
+
9
+ interface JitActionResult {
10
+ type: string;
11
+ correlationId: string;
12
+ }
13
+
14
+ interface JitContinuationTokenResult extends JitActionResult {
15
+ continuationToken: string;
16
+ }
17
+
18
+ export interface JitGetAuthMethodsResult extends JitContinuationTokenResult {
19
+ type: typeof JIT_GET_AUTH_METHODS_RESULT_TYPE;
20
+ authMethods: AuthenticationMethod[];
21
+ }
22
+
23
+ export interface JitVerificationRequiredResult
24
+ extends JitContinuationTokenResult {
25
+ type: typeof JIT_VERIFICATION_REQUIRED_RESULT_TYPE;
26
+ challengeChannel: string;
27
+ challengeTargetLabel: string;
28
+ codeLength: number;
29
+ }
30
+
31
+ export interface JitCompletedResult extends JitActionResult {
32
+ type: typeof JIT_COMPLETED_RESULT_TYPE;
33
+ authenticationResult: AuthenticationResult;
34
+ }
35
+
36
+ // Result type constants
37
+ export const JIT_GET_AUTH_METHODS_RESULT_TYPE = "JitGetAuthMethodsResult";
38
+ export const JIT_VERIFICATION_REQUIRED_RESULT_TYPE =
39
+ "JitVerificationRequiredResult";
40
+ export const JIT_COMPLETED_RESULT_TYPE = "JitCompletedResult";
41
+
42
+ export function createJitGetAuthMethodsResult(
43
+ input: Omit<JitGetAuthMethodsResult, "type">
44
+ ): JitGetAuthMethodsResult {
45
+ return {
46
+ type: JIT_GET_AUTH_METHODS_RESULT_TYPE,
47
+ ...input,
48
+ };
49
+ }
50
+
51
+ export function createJitVerificationRequiredResult(
52
+ input: Omit<JitVerificationRequiredResult, "type">
53
+ ): JitVerificationRequiredResult {
54
+ return {
55
+ type: JIT_VERIFICATION_REQUIRED_RESULT_TYPE,
56
+ ...input,
57
+ };
58
+ }
59
+
60
+ export function createJitCompletedResult(
61
+ input: Omit<JitCompletedResult, "type">
62
+ ): JitCompletedResult {
63
+ return {
64
+ type: JIT_COMPLETED_RESULT_TYPE,
65
+ ...input,
66
+ };
67
+ }