fix some social-auth urls, remove twitter auth

twitter does not support ipv6 and our production server VM
has only v6. :-(
This commit is contained in:
Thomas Waldmann 2013-11-02 06:14:12 +01:00
parent f357997f07
commit 49a466ef1e
2 changed files with 9 additions and 9 deletions

View File

@ -22,7 +22,7 @@
<ul> <ul>
<li><a href="{% url 'social:begin' 'github' %}">GitHub</a></li> <li><a href="{% url 'social:begin' 'github' %}">GitHub</a></li>
<li><a href="{% url 'social:begin' 'google-oauth2' %}">Google</a></li> <li><a href="{% url 'social:begin' 'google-oauth2' %}">Google</a></li>
<li><a href="{% url 'social:begin' 'twitter' %}">Twitter</a></li> {# no ipv6 support :-| <li><a href="{% url 'social:begin' 'twitter' %}">Twitter</a></li> #}
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -243,27 +243,27 @@ AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend', 'django.contrib.auth.backends.ModelBackend',
) )
SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/logged-in/' SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/'
# Used to redirect the user once the auth process ended successfully. # Used to redirect the user once the auth process ended successfully.
# The value of ?next=/foo is used if it was present # The value of ?next=/foo is used if it was present
SOCIAL_AUTH_LOGIN_ERROR_URL = '/login-error/' #SOCIAL_AUTH_LOGIN_ERROR_URL = '/login-error/'
# URL where the user will be redirected in case of an error # URL where the user will be redirected in case of an error
SOCIAL_AUTH_LOGIN_URL = '/login-url/' SOCIAL_AUTH_LOGIN_URL = '/accounts/login/'
# Is used as a fallback for LOGIN_ERROR_URL # Is used as a fallback for LOGIN_ERROR_URL (if it is not defined).
SOCIAL_AUTH_NEW_USER_REDIRECT_URL = '/new-users-redirect-url/' #SOCIAL_AUTH_NEW_USER_REDIRECT_URL = '/new-users-redirect-url/'
# Used to redirect new registered users, will be used in place of SOCIAL_AUTH_LOGIN_REDIRECT_URL if defined. # Used to redirect new registered users, will be used in place of SOCIAL_AUTH_LOGIN_REDIRECT_URL if defined.
SOCIAL_AUTH_NEW_ASSOCIATION_REDIRECT_URL = '/new-association-redirect-url/' #SOCIAL_AUTH_NEW_ASSOCIATION_REDIRECT_URL = '/new-association-redirect-url/'
# Like SOCIAL_AUTH_NEW_USER_REDIRECT_URL but for new associated accounts (user is already logged in). Used in place of # Like SOCIAL_AUTH_NEW_USER_REDIRECT_URL but for new associated accounts (user is already logged in). Used in place of
# SOCIAL_AUTH_LOGIN_REDIRECT_URL # SOCIAL_AUTH_LOGIN_REDIRECT_URL
SOCIAL_AUTH_DISCONNECT_REDIRECT_URL = '/account-disconnected-redirect-url/' SOCIAL_AUTH_DISCONNECT_REDIRECT_URL = '/'
# The user will be redirected to this URL when a social account is disconnected # The user will be redirected to this URL when a social account is disconnected
SOCIAL_AUTH_INACTIVE_USER_URL = '/inactive-user/' SOCIAL_AUTH_INACTIVE_USER_URL = '/'
# Inactive users can be redirected to this URL when trying to authenticate. # Inactive users can be redirected to this URL when trying to authenticate.
#SOCIAL_AUTH_USER_MODEL = 'foo.bar.User' #SOCIAL_AUTH_USER_MODEL = 'foo.bar.User'