- ru
- Language: en
- Documentation version: 0.1
Pinterest¶
Pinterest implemented OAuth2 protocol for their authentication mechanism.
To enable python-social-auth
support follow this steps:
Go to Pinterest developers zone and create an application.
Fill App Id and Secret in your project settings:
SOCIAL_AUTH_PINTEREST_KEY = '...' SOCIAL_AUTH_PINTEREST_SECRET = '...' SOCIAL_AUTH_PINTEREST_SCOPE = [ 'read_public', 'write_public', 'read_relationships', 'write_relationships' ]
Enable the backend:
SOCIAL_AUTH_AUTHENTICATION_BACKENDS = ( ... 'social_core.backends.pinterest.PinterestOAuth2', ... )