- ru
 - Language: en
 
- Documentation version: 0.1
 
DigitalOcean¶
DigitalOcean uses OAuth2 for its auth process. See the full DigitalOcean developer’s documentation for more information.
Register a new application in the Apps & API page in the DigitalOcean control panel, setting the callback URL to
http://example.com/complete/digitalocean/replacingexample.comwith your domain.Fill the
Client IDandClient Secretvalues from GitHub in the settings:SOCIAL_AUTH_DIGITALOCEAN_KEY = '' SOCIAL_AUTH_DIGITALOCEAN_SECRET = ''
By default, only
readpermissions are granted. In order to create, destroy, and take other actions on the user’s resources, you must requestread writepermissions like so:SOCIAL_AUTH_DIGITALOCEAN_AUTH_EXTRA_ARGUMENTS = {'scope': 'read write'}