A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/digitaloceancloud/omniauth-digitalocean below:

digitalocean/omniauth-digitalocean: DigitalOcean OAuth2 Strategy for OmniAuth

DigitalOcean's Omniauth strategy

This is the official Ruby OmniAuth strategy for authenticating to DigitalOcean.

Before you can start developing your API client for DigitalOcean, you need to create an application on your account and copy the application id and secret.

Add the strategy to your Gemfile:

gem 'omniauth-digitalocean'

And bundle.

You can integrate the strategy into your middleware in a config.ru:

use OmniAuth::Builder do
  provider :digitalocean, SETTINGS['CLIENT_ID'], SETTINGS['CLIENT_SECRET'], scope: "read write"
end

If you're using Rails, you'll want to add to the middleware stack:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :digitalocean, SETTINGS['CLIENT_ID'], SETTINGS['CLIENT_SECRET'], scope: "read write"
end

For additional information, refer to the OmniAuth wiki.

See the example Sinatra app for full examples

The following information is provided in the auth hash accessible to the callback at request.env["omniauth.auth"]:

omniauth-digitalocean is released under the MIT License.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4