Lyft¶
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 |
|---|---|
|
|
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 IdandClient Secretfrom 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.