Personal account Yandex OAuth
After registration, the app will appear in your Yandex OAuth personal account.
To open the app page, follow the https://oauth.yandex.com/ link and choose an app from the list. You can edit or delete the chosen app as well as create a new one.
Learn more about creating an app in Registering an app.
App parameters
The page app features its main parameters:
-
Client ID: The app's unique ID. The ID can't be changed.
-
Client secret: The app's secret key used to sign a jwt token with information about the user.
To get a new value for the secret key, click Renew Client secret. You can use the key renewal function if you need to limit access to the app in Yandex OAuth. After the renewal, the previous key stops working.
-
Redirect URI: URL of the page the user will be redirected to after authorization. This page will also be receiving an OAuth token.
The app may have multiple Redirect URI addresses. Different addresses can be used if the website allows authorization using different scenarios. For example, if you need to set up multiple environment types.
You'll need these parameters to authorize the app when getting an OAuth token and executing the user data request.
Load ready requests
To download the file with requests for API Yandex IDconnection prepared for your app, click Load ready requests.
Alert
The file contains your app's Client ID and Client secret parameters value. Pass the file only over secure channels.
The file is generated in TXT
format and contains a list of required requests and their descriptions:
-
OAuth code request: Getting a confirmation code from a URL.
-
Token request: Getting an OAuth token in exchange for a confirmation code.
-
Refresh token: Getting a Refresh token to exchange for a new OAuth token.
-
User data request: Exchanging the token for information about the user.