<a id="trello"></a>

# Trello

<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                                |
|----------------|-------------------------------------------|
| `trello`       | `social_core.backends.trello.TrelloOAuth` |

Trello provides OAuth1 support for their authentication process.

Accounts are associated by Trello’s stable member `id`. Associations created
by older social-core releases used `username` and migrate on the next
successful authentication.

In order to enable it, follow:

- Generate an Application Key pair at [Trello Developers API Keys](https://trello.com/1/appKey/generate)
- Fill **Consumer Key** and **Consumer Secret** settings:
  ```default
  SOCIAL_AUTH_TRELLO_KEY = '...'
  SOCIAL_AUTH_TRELLO_SECRET = '...'
  ```

There are also two optional settings:

- your app name, otherwise the authorization page will say “Let An unknown application use your account?”:
  ```default
  SOCIAL_AUTH_TRELLO_APP_NAME = 'My App'
  ```
- the expiration period, social auth defaults to ‘never’, but you can change it:
  ```default
  SOCIAL_AUTH_TRELLO_EXPIRATION = '30days'
  ```
