File: appsfuel.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-- 1,182 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
Appsfuel
========

Appsfuel uses OAuth v2 for Authentication check the `official docs`_ too.

- Sign up at the `Appsfuel Developer Program`_

- Create and verify a new app

- On the dashboard click on **Show API keys**

- Fill ``Client Id`` and ``Client Secret`` values in the settings::

      SOCIAL_AUTH_APPSFUEL_KEY = '<App UID>'
      SOCIAL_AUTH_APPSFUEL_SECRET = '<App secret>'

Appsfuel gives you the chance to integrate with **Live** or **Sandbox** env.


Appsfuel Live
-------------

- Add 'social.backends.contrib.appsfuel.AppsfuelBackend' into your
  ``AUTHENTICATION_BACKENDS``.

- Then you can start using ``{% url social:begin 'appsfuel' %}`` in your
  templates


Appsfuel Sandbox
----------------

- Add ``'social.backends.appsfuel.AppsfuelOAuth2Sandbox'`` into your
  ``AUTHENTICATION_BACKENDS``.

- Then you can start using ``{% url social:begin 'appsfuel-sandbox' %}`` in
  your templates

- Define the settings::

    SOCIAL_AUTH_APPSFUEL_SANDBOX_KEY = '<App UID>'
    SOCIAL_AUTH_APPSFUEL_SANDBOX_SECRET = '<App secret>'


.. _official docs: http://docs.appsfuel.com/api_reference#api_integration
.. _Appsfuel Developer Program: https://developer.appsfuel.com