omab/django-social-auth — Issue #234: redirect loop
Author: kalamhavij
Created: 2012-01-22 23:32:20+00:00
State: open

Well, It is more a request for help than an issue, I've got it working and it is a really nice app.

I was thinking to get the #profile picture from facebook# and I tried this gist

https://gist.github.com/1248728

it is a very simple pre_update signal. My problem is that when it completes the process, it is again redirected to login! and it falls into a __redirect loop__ till it crashes.

Anybody might have a clue which setting parameters might be wrong? Once again, it works very well without the signal (written in the gist). well, here are my settings

LOGIN_REDIRECT_URL = '/walls/wall'
LOGOUT_URL= '/accounts/logout/'

SOCIAL_AUTH_COMPLETE_URL_NAME = 'socialauth_complete'
SOCIAL_AUTH_ASSOCIATE_URL_NAME = 'socialauth_associate_complete'

SOCIAL_AUTH_DISCONNECT_REDIRECT_URL = '/walls/wall'
SOCIAL_AUTH_LOGIN_REDIRECT_URL="/walls/wall"
AUTH_PROFILE_MODULE= 'profiles.UserProfile'
FACEBOOK_EXTENDED_PERMISSIONS = ['email']
LOGIN_URL= '/login/facebook'

Another thing, what does __disconnect__ do? because it is only with django.contrib.auth.logout that actually logging out happens.

thanks