Want to enable Login via OTP (no password)
-
Basically I want the functionality of using MFA with SMS, but not actually have them enter a password. Steps would look like:
- User enters Username
- They are texted a code
- They enter code on new page
- Get a JWT and enter the application.
We would build the UI for this but trying to figure out which APIs would be involved.
This exists, but it requires a password on the request. I think I need to make a call that generates achangePasswordId
request, is that the Start Reset Flow and then I pass that to the above generation?As mentioned, we can handle:
- Capture the username
- Do things to generate a code
- Send code via SMS on our end
- Capture the code (as entered by the user)
- Make a Login call back to FA for token
- Use app
I'm just not 100% which to use on step 2.
-
Think I may have gotten this sorted out (closed the other post I found on this)
- use
/api/passwordless/start
to get a code
-- Send Code externally -- - call
/api/passwordless/login
after user enters code to get JWT
-- Do stuff in app --
seems like it should work
- use
-
Found it for reference https://github.com/FusionAuth/fusionauth-issues/issues/615
-
@mark-shapiro Thanks for sharing with the community.
-