Skip to content
Last updated

DigitalOcean integration

DigitalOcean is a cloud infrastructure platform for deploying and scaling applications using virtual machines, managed databases, Kubernetes clusters, and object storage. Integrating DigitalOcean with Frontegg allows your application to manage droplets, volumes, databases, domains, and other cloud resources on behalf of your users through OAuth 2.0 authentication.


Prerequisites

Connect DigitalOcean

Step 1: Open the OAuth applications page

Sign in to DigitalOcean and navigate to API in the left sidebar. On the Applications & API page, select the OAuth Applications tab.

DigitalOcean Applications & API page

Step 2: Register a new application

Click Register OAuth Application in the top-right corner.

Register OAuth Application button

Step 3: Fill in the application details

In the Register a new OAuth application dialog, fill in the following fields:

FieldValue
NameA descriptive name, e.g., Frontegg Integration
Homepage URLThe URL of your application homepage
DescriptionA brief description of your application
Callback URLThe Frontegg callback URI (see below)

In the Callback URL field, enter:

https://YOUR_MCP_GATEWAY_URL/integration-callback

Register OAuth application form

OAuth application form filled in

Click Register OAuth Application to save.

Step 4: Copy your credentials

After the application is created, click the ··· menu next to your application and select View.

Application dropdown menu

The OAuth Application Details dialog shows your Client ID and Client Secret. Copy both values and store them securely.

Keep your credentials secure

The Client Secret is accessible from the application details at any time, but treat it as a password — never share or commit it to version control. If the secret is compromised, click Reset client secret to generate a new one.

OAuth application credentials

Configure the Frontegg portal

Once you have the Client ID and Client Secret from the steps above, enter them in the integration configuration page of the Frontegg portal:

  1. Open the Frontegg portal and navigate to [ENVIRONMENT] → Integrations → DigitalOcean.
  2. Enter the Client ID and Client Secret in the corresponding fields.
  3. Select the required scopes:
ScopeDescription
account:readRead access to account information
droplet:readRead access to droplets
droplet:createCreate new droplets
droplet:updateUpdate existing droplets
droplet:deleteDelete droplets
droplet:adminAdmin access to droplets
block_storage:readRead access to block storage volumes
block_storage:createCreate block storage volumes
block_storage:deleteDelete block storage volumes
snapshot:readRead access to snapshots
snapshot:deleteDelete snapshots
database:readRead access to managed databases
database:createCreate managed databases
database:updateUpdate managed databases
database:deleteDelete managed databases
domain:readRead access to domains and DNS records
domain:createCreate domains and DNS records
domain:updateUpdate domains and DNS records
domain:deleteDelete domains and DNS records
load_balancer:readRead access to load balancers
load_balancer:createCreate load balancers
load_balancer:updateUpdate load balancers
load_balancer:deleteDelete load balancers
firewall:readRead access to firewalls
firewall:createCreate firewalls
firewall:updateUpdate firewalls
firewall:deleteDelete firewalls
kubernetes:readRead access to Kubernetes clusters
kubernetes:createCreate Kubernetes clusters
kubernetes:updateUpdate Kubernetes clusters
kubernetes:deleteDelete Kubernetes clusters
spaces:readRead access to Spaces object storage
spaces:updateUpdate Spaces object storage
ssh_key:readRead access to SSH keys
ssh_key:createCreate SSH keys
ssh_key:updateUpdate SSH keys
ssh_key:deleteDelete SSH keys
  1. Click Save.

Keep your credentials secure

Never share or commit your Client Secret to version control.

Additional resources