<a id="discogs"></a>

# Discogs

<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                                   |
|----------------|----------------------------------------------|
| `discogs`      | `social_core.backends.discogs.DiscogsOAuth1` |

Discogs uses OAuth v1 for Authentication.

- Register a new application int the [Discogs API settings](_discogs_settings), and
- Add the Discogs backend to your settings page:
  ```default
  SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
      ...
      "social_core.backends.discogs.DiscogsOAuth1",
      ...
  )
  ```
- Add the `Client Id` and `Client Secret` values in the settings:
  ```default
  SOCIAL_AUTH_DISCOGS_KEY = ''
  SOCIAL_AUTH_DISCOGS_SECRET = ''
  ```

  Check [Discogs API documentation](_discogs_docs) for details.
