# OTP Based login through mobile

**URL:** <https://forum.keycloak.org/t/otp-based-login-through-mobile/22653>\
**Category:** Securing applications\
**Created:** [June 14, 2023, 7:55am UTC](https://forum.keycloak.org/t/otp-based-login-through-mobile/22653 "2023-06-14T07:55:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanjeev](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Sanjeev](https://forum.keycloak.org/u/Sanjeev)\
**Post date:** [June 14, 2023, 7:55am UTC](https://forum.keycloak.org/t/otp-based-login-through-mobile/22653/1 "2023-06-14T07:55:32Z")

</div>

HI,

I want to login/registration of a user in keycloak through Mobile OTP, what’s the procedure?

---

<div class="post-metadata">

**Author:** ![edewit](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/edewit/32/287_2.png) [@edewit](https://forum.keycloak.org/u/edewit)\
**Post date:** [June 15, 2023, 6:29am UTC](https://forum.keycloak.org/t/otp-based-login-through-mobile/22653/2 "2023-06-15T06:29:30Z")

</div>

You can just enable otp and scan the code, there is nothing to it

---

<div class="post-metadata">

**Author:** ![Sanjeev](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Sanjeev](https://forum.keycloak.org/u/Sanjeev)\
**Post date:** [June 15, 2023, 10:19am UTC](https://forum.keycloak.org/t/otp-based-login-through-mobile/22653/3 "2023-06-15T10:19:56Z")

</div>

Hi,

This functionality is applicable, if user already exist in keycloak. I want to login fresh user directly through mobile OTP. If user exist it will login and if not exist it will directly login or redirect to keycloak registration page. Can i enable or add this feature in keycloak?

---

<div class="post-metadata">

**Author:** ![edewit](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/edewit/32/287_2.png) [@edewit](https://forum.keycloak.org/u/edewit)\
**Post date:** [October 23, 2024, 2:02pm UTC](https://forum.keycloak.org/t/otp-based-login-through-mobile/22653/4 "2024-10-23T14:02:38Z")

</div>

You need to first setup OTP, a code will be stored on the otp app that belongs to a user, so what you want is not possible.

---

<div class="post-metadata">

**Author:** ![Sasanka](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@Sasanka](https://forum.keycloak.org/u/Sasanka)\
**Post date:** [November 5, 2024, 11:01am UTC](https://forum.keycloak.org/t/otp-based-login-through-mobile/22653/5 "2024-11-05T11:01:53Z")

</div>

Hello Sanjeev,

could you share the problem briefly?  
Do you have used any 3rd party application for sending OTP?
