Repository navigation
OTP based Login #11762
Replies: 2 comments 3 replies
|
@safvankothawala the scenario you described should be possible, by writing your own authentication provider. You can find an example here: https://github.com/dasniko/keycloak-2fa-sms-authenticator I have one additional comment. The OTP was supposed to be an extra layer of security, not a replacement for passwords. Plus, it is strongly recommended to avoid sending OTPs via e-mail, or SMS. SMS is vulnerable to SIM Swaps, and should not be trusted at all. |
|
Can you please close this issue/discussion [1][2]? This question has been asked several times before. You can find previous discussions by searching for “sms” or “email” in the GitHub search bar of the Keycloak repository [3][4]. Currently, there is no official support for using email or phone numbers for authentication in Keycloak. Therefore, any issues you encounter with third-party solutions should be reported in their respective repositories, not here. If you're interested in this feature, feel free to share your use case here [5], and upvote it by adding a ⬆️ to the discussion’s description after reading this answer carefully [6]. [1] https://docs.github.com/en/issues/tracking-your-work-with-issues/administering-issues/closing-an-issue |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I want to enable login in my application using following call flow:
Step 1: User visits the Application website and enters the Mobile Number or Username.
Step 2: Application requests Keycloak to generate the OTP for the user associated with the username. The OTP returned by Keycloak is sent to User via Email or SMS.
Step 3: User enters the OTP and the application sends the OTP to Keycloak to validate against that user.
Step 4: Keycloak validates the OTP and responds back with Access Token.
In the above call flow, I need 2 APIs from Keycloak.
Please let me know if this login call flow is possible or not using the latest Keycloak version.
All reactions