Enabling the Yandex ID API

To use the Yandex ID API in a web application, you need to:

  • Register your application on Yandex.OAuth.
  • Implement receiving and processing OAuth tokens in the application.
  • Provide an interface for users to log in via Yandex.
  1. Registering an application on Yandex.OAuth
  2. Obtaining OAuth tokens
  3. Overview of the OAuth protocol

Registering an application on Yandex.OAuth

Login via Yandex requires that you obtain an OAuth access token for each new user. To get OAuth tokens, websites and applications must be registered on Yandex.OAuth in the Create new client section.

To learn more about this process, go to Registering an application in the documentation for Yandex.OAuth.

Obtaining OAuth tokens

To get an OAuth token, follow the instructions for web applications.

The token that is obtained must be specified in every call to the Yandex ID API, either in the Authorization header, or in the value of the oauth_token HTTP parameter.

You should request an OAuth token for every new user of your website or application who logs in via Yandex.

Overview of the OAuth protocol

The Yandex implementation of the OAuth protocol is described in the API documentation.

To work with the protocol, you can use any of the available libraries for various programming languages.