Register a new OAuth application on Vultr, link it to an OIDC provider, set callback URLs, and receive the client id and secret through the Vultr API.
An OAuth application lets you authenticate other Vultr customers and call the Vultr API on their behalf, scoped to the permissions they consent to. Registering the application links it to an OIDC provider, defines the callback URLs that receive authorization codes, and returns a client secret used to exchange those codes for access tokens.
Follow this guide to register an OAuth application using the Vultr Console and the Vultr API. The application starts in Draft status and becomes usable by any Vultr customer only after you attach a scope, submit it, and an administrator approves it.
Registering and managing an OAuth application requires the organization's root user. A request from a non-root user returns an HTTP 403 Forbidden response. When using the API, create the OIDC provider first by following How to Create an OIDC Provider, then pass its id as oidc_provider_id. In the Vultr Console, the provider is created automatically as part of the application form.
Log in to the Vultr Console.
Click the organization name in the top navigation bar.
Click Manage Organization.
Click OAuth Applications.
Click Create OAuth App.
Enter a name in the Name field. The name is shown to users during authorization and cannot be changed after the application leaves Draft status.
Enter a callback URL in the Callback URLs field and click the + button to add it.
Under Permission Policy, select the policy that defines the application's scope.
Click Create OAuth App.
Click the Copy button next to the Client ID and the Client Secret, then select I have copied these codes in a safe place. The secret is shown only once.
Click Save as Draft to keep the application editable, or Send for Review to submit it for approval.
The application appears in the OAuth Applications list. Saving as a draft keeps it in Draft status, while sending it for review moves it to Pending Review.
0 Comments
Be the first to comment and share your perspective with the community.