Never mind. Changed to django-allauth. Got it working.

Cheers!
Ryan

On Thu, Sep 7, 2017 at 12:40 PM, Pengcheng Chen <pengcheng.c...@gmail.com>
wrote:

> 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
> Request URL:    http://localhost:8000/oauth/login/twitter/
> 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
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABWsVmeWNqesJ_2VjPwjanzX%2BLwqrSzGtX-6Ym6GaeyWfdkfBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to