<a id="mineid"></a>

# MineID

<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                                 |
|----------------|--------------------------------------------|
| `mineid`       | `social_core.backends.mineid.MineIDOAuth2` |

MineID works similar to Facebook (OAuth).

- Register a new application at [MineID.org](https://www.mineid.org/), set the callback URL to
  `http://example.com/complete/mineid/` replacing `example.com` with your
  domain.
- Fill `Client ID` and `Client Secret` values in the settings:
  ```default
  SOCIAL_AUTH_MINEID_KEY = ''
  SOCIAL_AUTH_MINEID_SECRET = ''
  ```

<a id="self-hosted-mineid"></a>

## Self-hosted MineID

Since MineID is an Open Source software and can be self-hosted, you can
change settings to point to your instance:

```default
SOCIAL_AUTH_MINEID_HOST = 'www.your-mineid-instance.com'
SOCIAL_AUTH_MINEID_SCHEME = 'https'  # or 'http'
```
