<a id="dailymotion"></a>

# DailyMotion

<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                                           |
|----------------|------------------------------------------------------|
| `dailymotion`  | `social_core.backends.dailymotion.DailymotionOAuth2` |

DailyMotion uses OAuth2. In order to enable the backend follow:

Accounts are associated by the stable provider `id`. Associations created by
older social-core releases used the renameable screen name and migrate on the
next successful authentication.

- Register an application at [DailyMotion Developer Portal](http://www.dailymotion.com/profile/developer/new)
- Fill in the **Client Id** and **Client Secret** values in your settings:
  ```default
  SOCIAL_AUTH_DAILYMOTION_KEY = ''
  SOCIAL_AUTH_DAILYMOTION_SECRET = ''
  ```
- Set the `Callback URL` to `http://<your hostname>/complete/dailymotion/`
- Specify scopes with:
  ```default
  SOCIAL_AUTH_DAILYMOTION_SCOPE = [...]
  ```

  Available scopes are listed in the [Requesting Extended Permissions](http://www.dailymotion.com/doc/api/authentication.html#requesting-extended-permissions)
  section.
