Vultr acts as an OAuth 2.0 identity provider, letting a customer register a third-party application that other Vultr customers can authorize. Once a customer authorizes an application, it receives a signed JSON Web Token (JWT) that it presents to the Vultr API as a Bearer token, scoped to the permissions the customer consented to and never beyond that customer's own access.
This overview describes the actors, resources, and lifecycle of the Vultr OAuth Identity Provider. Use it to understand how the individual guides in this section fit together.
The OAuth flow involves three actors, and the guides are organized around them.
The OAuth system is built on a small set of resources.
An OAuth application moves through a defined set of states.
Draft.After an end user authorizes an application, the application exchanges a one-time authorization code for an access token at the provider's token endpoint. The authorization code expires in 10 minutes and is single-use, while the access token is a one-hour RS256 JWT. The application renews the token with a rotating refresh token rather than sending the user through consent again. Revoking an authorization tears down the grant and invalidates every token the application holds.