OAuth 2 Grant Type Authorization Code Link

Example

This is how a authorization code link look like:

https://cloud.digitalocean.com/v1/oauth/authorize?response_type=code&client_id=CLIENT_ID&redirect_uri=CALLBACK_URL&scope=read
API authorization endpoint
https://cloud.digitalocean.com/v1/oauth/authorize
Response type

This specifies that your application is requesting an authorization code grant

response_type=code
Client ID

This is the application’s client ID (how the API identifies the application)

client_id=client_id
Redirect URL

This specifies where the service redirects the user-agent after an authorization code is granted

redirect_uri=CALLBACK_URL
Scope

This specifies the level of access that the application is requesting

scope=read

Reference