Steps for logging in via Yandex
General steps for using Yandex to authenticate a user on your website:
- The user grants access to personal data.
The website gets an OAuth access token that grants permission to request this user's email addresses.
- The website sends a request to the Yandex ID API specifying the obtained token.
The website receives the user's unique ID and the list of email addresses. The response format is described in Response format and content.Note. To send a request to the Yandex ID API, you may use an OAuth token with permissions to access any of the Yandex services (Yandex.Fotki, Yandex.Disk, and so on). However, only tokens with extended permissions from the Yandex ID API section provide access to user data.
- The site authenticates the user, using the content and settings that are assigned to this ID.
This enables a Yandex user to obtain an account on a website and get authenticated on the site, without having to create a new account.