<a id="taobao-oauth"></a>

# Taobao OAuth

<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                               |
|----------------|------------------------------------------|
| `taobao`       | `social_core.backends.taobao.TAOBAOAuth` |

Taobao OAuth 2.0 workflow.

- Register a new application at Open [Open Taobao](http://open.taobao.com).
- Fill `Consumer Key` and `Consumer Secret` values in the settings:
  ```default
  SOCIAL_AUTH_TAOBAO_KEY = ''
  SOCIAL_AUTH_TAOBAO_SECRET = ''
  ```

By default `token` is stored in `extra_data` field.
