Twitter Login implementation, in request i am getting "django.contrib.auth.models.AnonymousUser".

22 views
Skip to first unread message

farhat jahan

unread,
Oct 18, 2017, 3:07:52 AM10/18/17
to Django Social Auth
Hi,

I am trying to do login with Twitter using social_django.
Steps:
Entry in INSTALLED_APPS.
Entry in AUTHENTICATION_BACKENDS.
SOCIAL_AUTH_TWITTER_KEY and SOCIAL_AUTH_TWITTER_SECRET creation and entry in my setting file.
Entry for LOGIN_REDIRECT_URL.

Query:
In my view i am getting request.user is AnonymousUser.Why the request.user is AnonymousUser?

Kindly correct, am i missing something?

https://simpleisbetterthancomplex.com/tutorial/2016/10/24/how-to-add-social-login-to-django.html





Regards,
Farhat.
Reply all
Reply to author
Forward
0 new messages