I have used django package social_auth to implement facebook login on my website. I am able to log in correctly and get all the data. But I am not able to logout.
I am not using django.user.login and logout. I am using socialauth_begin and socialauth_disconnect
I am able to login, go in the social auth pipeline, get the necessary information, but I am not able to logout. What is the fix to this problem?
When I click on "Logout" in Logout I get the following error
No exception supplied
| Request Method: | GET |
|---|---|
| Request URL: | http://localhost:8000/tomonotomo/auth/disconnect/facebook/ |
| Django Version: | 1.5.1 |
| Exception Type: | NotAllowedToDisconnect |
| Exception Location: | /tmp/guest-onyOH9/pratik/virtualenv-1.10/tomonotomo/local/lib/python2.7/site-packages/social_auth/backends/__init__.py in disconnect, line 435 |
| Python Executable: | /tmp/guest-onyOH9/pratik/virtualenv-1.10/tomonotomo/bin/python2.7 |
| Python Version: | 2.7.3 |
| Python Path: | ['/tmp/guest-onyOH9/pratik/tomonotomo_project', '/tmp/guest-onyOH9/Desktop/pycharm-2.7.3/helpers/pydev', '/tmp/guest-onyOH9/pratik/tomonotomo_project', '/tmp/guest-onyOH9/pratik/virtualenv-1.10/tomonotomo/lib/python2.7', '/tmp/guest-onyOH9/pratik/virtualenv-1.10/tomonotomo/lib/python2.7/plat-linux2', '/tmp/guest-onyOH9/pratik/virtualenv-1.10/tomonotomo/lib/python2.7/lib-tk', '/tmp/guest-onyOH9/pratik/virtualenv-1.10/tomonotomo/lib/python2.7/lib-old', '/tmp/guest-onyOH9/pratik/virtualenv-1.10/tomonotomo/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/tmp/guest-onyOH9/pratik/virtualenv-1.10/tomonotomo/local/lib/python2.7/site-packages', '/tmp/guest-onyOH9/pratik/virtualenv-1.10/tomonotomo/lib/python2.7/site-packages'] |
| Server time: | Sat, 10 Aug 2013 22:27:42 -0500 |
<a href="{% url "socialauth_begin" "facebook" %}" class="btn"><h3 style="color:white">Connect via Facebook</h3></a>
--
You received this message because you are subscribed to the Google Groups "Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
For more options, visit https://groups.google.com/groups/opt_out.