# Is it possible to setup SMS based OTP's in Keycloak

**URL:** <https://forum.keycloak.org/t/is-it-possible-to-setup-sms-based-otps-in-keycloak/121>\
**Category:** Getting advice\
**Created:** [October 14, 2019, 12:34pm UTC](https://forum.keycloak.org/t/is-it-possible-to-setup-sms-based-otps-in-keycloak/121 "2019-10-14T12:34:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnukprakash](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/vishnukprakash/32/137_2.png) [@vishnukprakash](https://forum.keycloak.org/u/vishnukprakash)\
**Post date:** [October 14, 2019, 12:34pm UTC](https://forum.keycloak.org/t/is-it-possible-to-setup-sms-based-otps-in-keycloak/121/1 "2019-10-14T12:34:58Z")

</div>

I need to implement MFA in my application using username/password and OTP through SMS.  
Is it possible to achieve this in keycloak.

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [October 14, 2019, 1:58pm UTC](https://forum.keycloak.org/t/is-it-possible-to-setup-sms-based-otps-in-keycloak/121/2 "2019-10-14T13:58:05Z")

</div>

Yes, it’s possible, but not ootb. You have to implement it in your own authenticator using the authenticator spi.  
Have a look here in this example (not from me): [https://github.com/gwallet/keycloak-sms-authenticator](https://github.com/gwallet/keycloak-sms-authenticator)

---

<div class="post-metadata">

**Author:** ![vishnukprakash](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/vishnukprakash/32/137_2.png) [@vishnukprakash](https://forum.keycloak.org/u/vishnukprakash)\
**Post date:** [October 17, 2019, 6:52am UTC](https://forum.keycloak.org/t/is-it-possible-to-setup-sms-based-otps-in-keycloak/121/3 "2019-10-17T06:52:28Z")

</div>

Thank you for your response.

---

<div class="post-metadata">

**Author:** ![Gomathivignesh](https://avatars.discourse-cdn.com/v4/letter/g/f1d935/32.png) [@Gomathivignesh](https://forum.keycloak.org/u/Gomathivignesh)\
**Post date:** [August 23, 2020, 5:50pm UTC](https://forum.keycloak.org/t/is-it-possible-to-setup-sms-based-otps-in-keycloak/121/4 "2020-08-23T17:50:51Z")

</div>

Hi dasniko  
I have seen this link, but as per this the link i cannot able to see the ‘SMS Authentication’ option in Add execution in flows, can you please help me on this
