Douban¶
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 |
|---|---|
|
|
Douban supports OAuth2.
Recently Douban launched their OAuth2 support and the new developer site, you can find documentation at Douban Developers. To setup OAuth2 follow:
Register a new application at Create A Douban App, make sure to mark the web application checkbox.
Fill Consumer Key and Consumer Secret values in settings:
SOCIAL_AUTH_DOUBAN_OAUTH2_KEY = '' SOCIAL_AUTH_DOUBAN_OAUTH2_SECRET = ''
Add
'social_core.backends.douban.DoubanOAuth2'into yourSOCIAL_AUTH_AUTHENTICATION_BACKENDS.