| 1 |
DigitalOcean |
| 2 |
------------ |
| 3 |
|
| 4 |
App registration (get your key and secret here) |
| 5 |
https://cloud.digitalocean.com/settings/applications |
| 6 |
|
| 7 |
Development callback URL |
| 8 |
http://127.0.0.1:8000/accounts/digitalocean/login/callback/ |
| 9 |
|
| 10 |
With the acquired access token you will have read permissions on the API by |
| 11 |
default. If you also need write access specify the scope as follows. See |
| 12 |
https://developers.digitalocean.com/documentation/oauth/#scopes for details. |
| 13 |
|
| 14 |
.. code-block:: python |
| 15 |
|
| 16 |
SOCIALACCOUNT_PROVIDERS = { |
| 17 |
'digitalocean': { |
| 18 |
'SCOPE': [ |
| 19 |
'read write', |
| 20 |
], |
| 21 |
} |
| 22 |
} |