OAuth token
In Yandex Cloud, an OAuth token is used to authenticate users with a Yandex account: the user exchanges an OAuth token for an Identity and Access Management token.
You can get an OAuth token to work with Yandex Cloud by sending a request
OAuth tokens are not available for federated users and service accounts.
OAuth token format
The token always starts with the letter y
, a random digit in the 0-3
range, and the _
symbol. Other characters may include:
- Latin letters
- Numbers
- Underscores
_
and hyphens-
Sample OAuth token: y3_Vdheub7w9bIut67GHeL345gfb5GAnd3dZnf08FRbvjeUFvetYiohGvc
.
Lifetime
The validity period of an OAuth token is one year. Then you must get new OAuth token
Alert
If someone could have learned your OAuth token, revoke it and get a new one by following the instructions.
Services and utilities that support OAuth token authentication
These services and utilities can request an IAM token automatically, so you can only specify an OAuth token for authentication: