Yandex signs users in with their Yandex account, widely used across Russian-speaking markets for mail, maps, and cloud services.

## Copy the redirect URI

In the [Authdog console](https://console.authdog.com), select the project and environment, open **Authentication > Providers**, find **Yandex**, and click **Enable**. Copy the redirect URI shown in the form:

```url
https://identity.authdog.com/api/v1/callback/<connectionId>
```

## Create the application

1. Open the [Yandex OAuth application page](https://oauth.yandex.com/client/new) and create an application.
2. Choose **Web services** as the platform.
3. Set the **Redirect URI** to the redirect URI from Authdog.
4. Grant the `login:info` and `login:email` permissions.
5. Copy the **ClientID** and **Client secret**.

## Configure Authdog

| Field | Value |
| --- | --- |
| **Client ID** | The client identifier from the provider |
| **Client Secret** | The client secret from the provider |

Save, then toggle the connection **active**.

## What Yandex returns

Authdog requests the `login:info login:email` scopes and reads the profile from `https://login.yandex.ru/info`.

The info endpoint returns the Yandex id, login, display name, real name, and default email.

Yandex ids are numeric and stable; logins can change.

## Test it

1. Open your environment's hosted sign-in page, or link to `https://identity.authdog.com/api/v1/signin/<connectionId>`.
2. Select the Yandex button and complete the flow.
3. Confirm the user appears under **Users** in the console with a Yandex identity linked.

## Troubleshooting

| Symptom | Cause |
| --- | --- |
| `invalid_scope` | The permissions were not granted on the application |
| Redirect or callback URL error | The URI registered with the provider does not match Authdog's exactly |
| Works in one environment only | Each environment has its own `connectionId`, and so its own redirect URI to register |

## Related

| Read | To learn how to |
| --- | --- |
| [Connectors](/docs/connectors) | Set up any other social provider |
