Mixcloud OAuth2¶
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 |
|---|---|
|
|
The Mixcloud API offers support for authorization. To this backend support:
Register a new application at Mixcloud Developers
Add Mixcloud backend to
AUTHENTICATION_BACKENDSin settings:SOCIAL_AUTH_AUTHENTICATION_BACKENDS = ( ... 'social_core.backends.mixcloud.MixcloudOAuth2', )
Fill
Client IdandClient Secretvalues in the settings:SOCIAL_AUTH_MIXCLOUD_KEY = '' SOCIAL_AUTH_MIXCLOUD_SECRET = ''
Similar to the other OAuth backends you can define:
SOCIAL_AUTH_MIXCLOUD_EXTRA_DATA = [('username', 'username'), ('name', 'name'), ('pictures', 'pictures'), ('url', 'url')]
as a list of tuples
(response name, alias)to store user profile data on theUserSocialAuth.extra_data.