Keycloak Admin Client : Generate OTP

I’m relatively new to the Keycloak admin client and I’m aiming to set up authentication using OTP without relying on Google Authenticator. My goal is to generate the OTP code and have it sent to users via email. Could someone guide me on how to achieve this using the Keycloak admin client?

There is not a native Keycloak feature that does that. However, I have written an email OTP extension here:

1 Like

As a sidenote. Google Authenticator is just one implementation of the TOTP standard. There are countless alternatives you could use. To name a few

  • FreeOTP
  • Authy
  • Yubico Authenticator
  • 1Password

Even the configuration page in the account console lists Google Authenticator and FreeOTP as options.