File: rdio.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 (46 lines) | stat: -rw-r--r-- 919 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
43
44
45
46
Rdio
====

Rdio provides OAuth 1 and 2 support for their authentication process.

OAuth 1.0a
----------

To setup Rdio OAuth 1.0a, add the following to your settings page::

    SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
        ...
        'social.backends.rdio.RdioOAuth1',
        ...
    )

    SOCIAL_AUTH_RDIO_OAUTH1_KEY = ''
    SOCIAL_AUTH_RDIO_OAUTH1_SECRET = ''


OAuth 2.0
---------

To setup Rdio OAuth 2.0, add the following to your settings page::

    SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
        ...
        'social.backends.rdio.RdioOAuth2',
        ...
    )

    SOCIAL_AUTH_RDIO_OAUTH2_KEY = os.environ['RDIO_OAUTH2_KEY']
    SOCIAL_AUTH_RDIO_OAUTH2_SECRET = os.environ['RDIO_OAUTH2_SECRET']
    SOCIAL_AUTH_RDIO_OAUTH2_SCOPE = []


Extra Fields
------------

The following extra fields are automatically requested:

- rdio_id
- rdio_icon_url
- rdio_profile_url
- rdio_username
- rdio_stream_region