<a id="pixelpin"></a>

# PixelPin

<a id="backend-class"></a>

## Backend class

For Django, add this class path to `AUTHENTICATION_BACKENDS`. For other
integrations, use the same class path in the framework-specific backend
setting.

| Backend name             | Class path                                            |
|--------------------------|-------------------------------------------------------|
| `pixelpin-openidconnect` | `social_core.backends.pixelpin.PixelPinOpenIDConnect` |

PixelPin supports OpenID Connect.

<a id="pixelpin-openid-connect"></a>

## PixelPin OpenID Connect

Developer documentation for PixelPin can be found at
[http://developer.pixelpin.co.uk/](http://developer.pixelpin.co.uk/). To setup OpenID Connect do the following:

- Register a new developer account at [PixelPin Developers](http://developer.pixelpin.co.uk/).

  You require a PixelPin account to create developer accounts. Sign up at
  [PixelPin Account Page](https://login.pixelpin.co.uk/) 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:
  ```default
  SOCIAL_AUTH_PIXELPIN_OAUTH2_KEY = ''
  SOCIAL_AUTH_PIXELPIN_OAUTH2_SECRET = ''
  ```
- Add `'social_core.backends.pixelpin.PixelPinOpenIDConnect'` into your
  `SOCIAL_AUTH_AUTHENTICATION_BACKENDS`.
