Debugging token
You can use debugging tokens to test applications that use OAuth. Debugging tokens are obtained by opening oauth.yandex.com in a browser with the necessary parameters. Debugging tokens, like any other tokens, can always be revoked.
To get a token manually:
The OAuth server will redirect you to the address from the Callback URL field, appending the token data after the # symbol:
http://www.example.com/token#
access_token=<
new OAuth token>
& expires_in=<
token lifespan in seconds>
Parameter | Description |
---|---|
access_token | The OAuth token with the requested permissions, or with the permissions specified when registering the application. |
expires_in | The token lifespan in seconds. |
Parameter | Description |
---|---|
access_token | The OAuth token with the requested permissions, or with the permissions specified when registering the application. |
expires_in | The token lifespan in seconds. |
If the token could not be issued, the OAuth server appends an error code to the address:
http://www.example.com/token#
error=<
error code>
Possible error codes:
access_denied
— The user denied the application access.unauthorized_client
— The application was rejected during moderation, or moderation is pending. This code is also returned if the application is blocked.