SMS based OTP in keycloak is possible?

Rahul picture Rahul · Aug 27, 2019 · Viewed 7.1k times · Source

I am exploring keycloak and I want to build an application that was based on user mobile number, SMS OTP should go to the user for authentication. I am not finding any where.

Answer

Vadim Ashikhman picture Vadim Ashikhman · Aug 27, 2019

It is possible through extending Authentication mechanism, check Authentication SPI documentation

Take a look at existing solution: https://github.com/nickpack/keycloak-sms-authenticator-sns Even if it doesn't suite your needs you can take the source code as a reference point.