OTP based SMS Configuration

An OTP sent via SMS to the user’s registered mobile number is one of the most secure and efficient ways to authenticate users for specific transactions. For example, if a user wants to reset the password, configure the text message to be sent via SMS along with the generated OTP in Keycloak. To configure the text messages, complete the following steps:

  1. Enter your Username or email and Password

  2. Click Log in to log into the Keycloak admin console

3. Click the Realm Selector dropdown from the navigation pane and select an appropriate realm Note: The Master realm is selected by default.

4. Go to the Configure section and select the Authentication tab.

5. Go to the Flows tab, select Reset Credentials With SMS OTP option from the drop-down list.

6. Select Actions as Config for SMS Authentication (Reset credentials with SMS OTP).

7. Change the text for Template of text to send to the user with the actual text of the message to be sent to users while sending the OTP SMS.

Last updated