File: pixelpin.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 (34 lines) | stat: -rw-r--r-- 1,181 bytes parent folder | download
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
PixelPin
========

PixelPin itself supports OAuth 1 and 2 but this provider only supports OAuth2.

PixelPin OAuth2
---------------

Developer documentation for PixelPin can be found at
https://login.pixelpin.co.uk/Developer/Index.aspx To setup OAuth2 do the
following:

- Register a new developer account at `PixelPin Developers`_.

  You require a PixelPin account to create developer accounts. Sign up at
  `PixelPin Account Page`_ For the value of redirect uri, use whatever path you
  need to return to on your web application. The example code provided with the
  plugin uses ``http://<yoursite>/complete/pixelpin-oauth2/``.

  Once verified by email, record the values of client id and secret for the
  next step.

- Fill **Consumer Key** and **Consumer Secret** values in your settings.py
  file::

      SOCIAL_AUTH_PIXELPIN_OAUTH2_KEY = ''
      SOCIAL_AUTH_PIXELPIN_OAUTH2_SECRET = ''

- Add ``'social.backends.pixelpin.PixelPinOAuth2'`` into your
  ``SOCIAL_AUTH_AUTHENTICATION_BACKENDS``.

.. _PixelPin homepage: http://pixelpin.co.uk/
.. _PixelPin Account Page: https://login.pixelpin.co.uk/
.. _PixelPin Developers: https://login.pixelpin.co.uk/Developers/Index.aspx