Anyone having issues using python-social-auth?

76 views
Skip to first unread message

Pengcheng Chen

unread,
Sep 7, 2017, 4:05:08 PM9/7/17
to django...@googlegroups.com
Hey there!

Glad to join the community! Hope all is well!

I am having issues with the python-social-auth package in Django 1.11.5 and 1.8.

I copied the example on http://python-social-auth-docs.readthedocs.io and got the error below:

HTTPError at /oauth/login/twitter/
401 Client Error: Authorization Required for url: https://api.twitter.com/oauth/request_token
Request Method: GET
Django Version: 1.11.5
Exception Type: HTTPError
Exception Value:
401 Client Error: Authorization Required for url: https://api.twitter.com/oauth/request_token

I also tried requests oauthlib with same parameters and it worked just fine. I traced the methods/parameters in both case and they were the same, but I am getting 401 using python-socal-auth and 200 using requests oauthlib.

The social-auth packages seem to be depreciated and the new packatges on Github don't look popular, so I just wanted to check with you guys if you still use python-social-auth package or do you implement Twitter/Facebook oauth now in a different way?

Thanks!
Ryan

Pengcheng Chen

unread,
Sep 8, 2017, 3:02:18 PM9/8/17
to django...@googlegroups.com
Never mind. Changed to django-allauth. Got it working.

Cheers!
Ryan
Reply all
Reply to author
Forward
0 new messages