> For the complete documentation index, see [llms.txt](https://lern.sunbird.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lern.sunbird.org/use/developer-guide/user-and-org-service/configuration/otp-based-sms-configuration.md).

# 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

<figure><img src="/files/OA6s7deSJLMTLMhk0b6W" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/8ZkK74brptkOaRL8Ne78" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/D8tIf79FjViG56DRPEcT" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/7flMQIWo71ZG5AOMd1Qi" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/3LPkgcmhX6OhvwON4FeF" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="/files/qqvsE3w19TswT17G8iho" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://lern.sunbird.org/use/developer-guide/user-and-org-service/configuration/otp-based-sms-configuration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
