add python-social-auth for amazon, bitbucket, dropbox, reddit, soundcloud, stackoverflow

This commit is contained in:
Thomas Waldmann 2013-11-02 07:20:20 +01:00
parent 49a466ef1e
commit 972146ec87
2 changed files with 9 additions and 3 deletions

View File

@ -20,9 +20,9 @@
<div> <div>
Login with: Login with:
<ul> <ul>
<li><a href="{% url 'social:begin' 'github' %}">GitHub</a></li> {% for backend in backends.backends %}
<li><a href="{% url 'social:begin' 'google-oauth2' %}">Google</a></li> <li><a href="{% url 'social:begin' backend %}">{{ backend }}</a></li>
{# no ipv6 support :-| <li><a href="{% url 'social:begin' 'twitter' %}">Twitter</a></li> #} {% endfor %}
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -237,8 +237,14 @@ SESSION_EXPIRE_AT_BROWSER_CLOSE = False
# python-social-auth settings # python-social-auth settings
AUTHENTICATION_BACKENDS = ( AUTHENTICATION_BACKENDS = (
'social.backends.amazon.AmazonOAuth2',
'social.backends.bitbucket.BitbucketOAuth',
'social.backends.dropbox.DropboxOAuth',
'social.backends.github.GithubOAuth2', 'social.backends.github.GithubOAuth2',
'social.backends.google.GoogleOAuth2', 'social.backends.google.GoogleOAuth2',
'social.backends.reddit.RedditOAuth2',
'social.backends.soundcloud.SoundcloudOAuth2',
'social.backends.stackoverflow.StackoverflowOAuth2',
'social.backends.twitter.TwitterOAuth', 'social.backends.twitter.TwitterOAuth',
'django.contrib.auth.backends.ModelBackend', 'django.contrib.auth.backends.ModelBackend',
) )