- ru
- Language: en
- Documentation version: 0.1
Lyft¶
Lyft implements OAuth2 as its authorization service. To setup a Lyft backend:
Register a new application via the Lyft Developer Portal.
Add the Lyft OAuth2 backend as an option in your settings:
SOCIAL_AUTH_AUTHENTICATION_BACKENDS = ( ... 'social_core.backends.lyft.LyftOAuth2', ... )
Use the
Client Id
andClient Secret
from the Developer Portal into your settings:SOCIAL_AUTH_LYFT_KEY = '' SOCIAL_AUTH_LYFT_SECRET = ''
Specify the scope that your app should have access to:
SOCIAL_AUTH_LYFT_SCOPE = ['public', 'profile', 'rides.read', 'rides.request']
To learn more about the API and the calls that are available, read the Lyft API Documentation.