<a id="stackoverflow"></a>

# Stackoverflow

<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                                               |
|-----------------|----------------------------------------------------------|
| `stackoverflow` | `social_core.backends.stackoverflow.StackoverflowOAuth2` |

Stackoverflow uses OAuth 2.0

- “Register For An App Key” at the [Stack Exchange API](https://api.stackexchange.com/) site. Set your OAuth
  domain and application website settings.
- Add the `Client Id`, `Client Secret` and `API Key` values in settings:
  ```default
  SOCIAL_AUTH_STACKOVERFLOW_KEY = ''
  SOCIAL_AUTH_STACKOVERFLOW_SECRET = ''
  SOCIAL_AUTH_STACKOVERFLOW_API_KEY = ''
  ```
- You can ask for extra permissions with:
  ```default
  SOCIAL_AUTH_STACKOVERFLOW_SCOPE = [...]
  ```
