<a id="coursera"></a>

# Coursera

<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                                     |
|----------------|------------------------------------------------|
| `coursera`     | `social_core.backends.coursera.CourseraOAuth2` |

Coursera uses a variant of OAuth2 authentication. The details of the API
can be found at [OAuth2-based APIs - Coursera Technology](https://tech.coursera.org/app-platform/oauth2/).

Take the following steps in order to use the backend:

1. Create an account at [Coursera](https://accounts.coursera.org/console).
2. Open [Developer Console](https://accounts.coursera.org/console), create an organisation and application.

3. Set **Client ID** as a `SOCIAL_AUTH_COURSERA_KEY` and
**Secret Key** as a `SOCIAL_AUTH_COURSERA_SECRET` in your local settings.

1. Add the backend to `AUTHENTICATION_BACKENDS` setting:
   ```default
   AUTHENTICATION_BACKENDS = (
       ...
       'social_core.backends.coursera.CourseraOAuth2',
       ...
   )
   ```
