wave
rectangle square backgroundrectangle square backgroundrectangle square backgroundrectangle square backgroundrectangle square backgroundrectangle square backgroundEngineering

Integrate Your Apps With Our API Using OAuth

Posted: July 23, 20142 min read

OAuth 2 is now available for applications harnessing the DigitalOcean API, giving developers an easy way to integrate their applications with user accounts. Users can quickly authorize third-party applications with read or read & write access to their DigitalOcean account without exposing personal credentials.

Prior to OAuth support, applications that used the API required users to supply their personal access token, a manual and inconvenient process. The new OAuth flow, available in APIv2, is much better suited for web applications, as users can safely and easily provide access to their accounts through a DigitalOcean authorization request page.

Authorize Application page

Additionally, users can view and revoke account access to authorized applications within the DigitalOcean control panel.

Getting Started

Since we use Ruby internally, we are providing our open source OAuth strategy for the community to use. The omniauth-digitalocean gem is on Github and published to RubyGems. Based on OmniAuth, the widely used Rack-based library for multi-provider authentication, the gem is an easy way to integrate “sign in with DigitalOcean” into Rails and Rack frameworks. We are excited to join the growing list of providers with OmniAuth strategies.

We’ve also developed some community resources to help you get started with OAuth, including a general intro to OAuth 2 and a tutorial on how to use OAuth with DigitalOcean both as a user and as a developer.

As we continue to refine our new API, we always appreciate any feedback on our API v2 Github page. And if you want to let people know about what you’ve built, submit your applications to the DigitalOcean projects page. We’re excited to highlight the great work of the DO community.

Share

You've got unique business needs. We've got powerful solutions to meet them. Chat with us to get started.Contact sales

Related Articles

Introducing DigitalOcean Managed Kafka
product-updates

Introducing DigitalOcean Managed Kafka

September 26, 20233 min read

What's new and what's next at DigitalOcean: Managed Kafka, more Droplet choices, GPUs for AI/ML apps, and more
product-updates

What's new and what's next at DigitalOcean: Managed Kafka, more Droplet choices, GPUs for AI/ML apps, and more

September 26, 20233 min read

Announcing new Basic Premium Droplet plans
product-updates

Announcing new Basic Premium Droplet plans

August 3, 20233 min read

Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.