st4lk / django-rest-social-auth

OAuth signin with django rest framework
MIT License
522 stars 122 forks source link

How to include OAuth1 urls? #65

Closed ankursharma319 closed 6 years ago

ankursharma319 commented 6 years ago

When I try to do a POST request to https://localhost:8000/api/login/social/ with form-data provider=twitter, I get the 404 error Not Found: /api/login/social/.

I suspect the problem is because I have not included the correct url for oauth1 (i.e. twitter).

For facebook (which is oauth2), I did this: path('api/login/', include('rest_social_auth.urls_token')), and that is working fine. So can someone tell me what I should include in urls for oauth1?

Thanks

st4lk commented 6 years ago

@ankursharma319 Try to run example project. And access it by http://127.0.0.1:8000/ It is working for me.

st4lk commented 6 years ago

Fill free to re-open if example project doesn't work for you.