<a id="uber"></a>

# Uber

<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                             |
|----------------|----------------------------------------|
| `uber`         | `social_core.backends.uber.UberOAuth2` |

Uber uses OAuth v2 for Authentication.

- Register a new application at the [Uber API](https://developer.uber.com/dashboard), and follow the instructions below

<a id="oauth2"></a>

## OAuth2

1. Add the Uber OAuth2 backend to your settings page:
   ```default
   SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
       ...
       'social_core.backends.uber.UberOAuth2',
       ...
   )
   ```
2. Fill `Client Id` and `Client Secret` values in the settings:
   ```default
   SOCIAL_AUTH_UBER_KEY = ''
   SOCIAL_AUTH_UBER_SECRET = ''
   ```
3. Scope should be defined by using:
   ```default
   SOCIAL_AUTH_UBER_SCOPE = ['profile', 'request']
   ```
