add python-social-auth for amazon, bitbucket, dropbox, reddit, soundcloud, stackoverflow
This commit is contained in:
parent
49a466ef1e
commit
972146ec87
@ -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>
|
||||||
|
@ -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',
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user