<a id="just-giving"></a>

# Just Giving

<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                                         |
|----------------|----------------------------------------------------|
| `justgiving`   | `social_core.backends.justgiving.JustGivingOAuth2` |

<a id="oauth2"></a>

## OAuth2

Follow the steps at [Just Giving API Docs](https://api.justgiving.com/docs) to register your
application and get the needed keys.

- Add the Just Giving OAuth2 backend to your settings page:
  ```default
  SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
      ...
      'social_core.backends.justgiving.JustGivingOAuth2',
      ...
  )
  ```
- Fill `App Key` and `App Secret` values in the settings:
  ```default
  SOCIAL_AUTH_JUSTGIVING_KEY = ''
  SOCIAL_AUTH_JUSTGIVING_SECRET = ''
  ```
