Debug token
Applications that use OAuth can be tested using debug tokens. To get them, open Yandex.OAuth in the browser with the required parameters. Debug tokens, like all others, can always be revoked.
To get a token manually:
Yandex.OAuth redirects you to the token page, adding the token data after the # character:
https://oauth.yandex.ru/verification_code#
access_token=<
new OAuth token>
& expires_in=<
token lifetime in seconds>
Parameter | Description |
---|---|
access_token | An OAuth token with the requested rights or with the rights specified when registering the app. |
expires_in | Token lifetime in seconds. |
Parameter | Description |
---|---|
access_token | An OAuth token with the requested rights or with the rights specified when registering the app. |
expires_in | Token lifetime in seconds. |
If the token couldn't be issued, the OAuth server adds an error code to the URL:
https://oauth.yandex.ru/verification_code#
error=<
error code>
Error codes:
access_denied
: The user denied access to the app.unauthorized_client
: The app was rejected during moderation or is awaiting moderation. Also returned if the app is blocked.