-
Can you log the user in without any action on their part by using the passwordless API?
-
Yes, if you have API access. Please find the documentation here: Passwordless APIs
The process would go like this:
- Call Start /api/passwordless/start, capture the code code.
- Call Login /api/passwordless/login with code
- Get a JWT and do with it what you normally would
For a Two Factor setup you would:
- Call Start /api/two-factor/start consume code
- Call Login /api/two-factor/login with code
- Get a JWT
If the end user never needs to log themselves in, you may also consider:
- Assign a random application password to a user.
- Use that known password to call the Login API
- Get a JWT!
- Optionally remove the application password if you want it to be a one time use password.
This does have the issue of not creating an SSO session for the user, but that may not be a problem. (If someone logs in this way, and then goes to another application which has a login page managed by the 'hosted login pages' of FusionAuth, they won't be automatically logged in.)
-
M mark.robustelli has marked this topic as solved on
-
D dan moved this topic from Q&A on
-
D dan moved this topic from Frequently Asked Questions (FAQ) on
-
D dan referenced this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login