File: dropbox.rst

package info (click to toggle)
python-social-auth 0.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,828 kB
  • ctags: 3,245
  • sloc: python: 12,867; makefile: 119; sh: 3
file content (42 lines) | stat: -rw-r--r-- 950 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Dropbox
=======

Dropbox supports both OAuth 1 and 2.

- Register a new application at `Dropbox Developers`_, and follow the
  instructions below for the version of OAuth for which you are adding
  support.

OAuth1
------

Add the Dropbox OAuth backend to your settings page::

    SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
        ...
        'social.backends.dropbox.DropboxOAuth',
        ...
    )

- Fill ``App Key`` and ``App Secret`` values in the settings::

      SOCIAL_AUTH_DROPBOX_KEY = ''
      SOCIAL_AUTH_DROPBOX_SECRET = ''

OAuth2
------

Add the Dropbox OAuth2 backend to your settings page::

    SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
        ...
        'social.backends.dropbox.DropboxOAuth2',
        ...
    )

- Fill ``App Key`` and ``App Secret`` values in the settings::

      SOCIAL_AUTH_DROPBOX_OAUTH2_KEY = ''
      SOCIAL_AUTH_DROPBOX_OAUTH2_SECRET = ''

.. _Dropbox Developers: https://www.dropbox.com/developers/apps