RealmTeam / django-rest-framework-social-oauth2

python-social-auth and oauth2 support for django-rest-framework
MIT License
1.06k stars 191 forks source link

unsupported_grant_type when trying to refresh token #247

Open samul-1 opened 3 years ago

samul-1 commented 3 years ago

I'm using django rest fw social oauth2 after following the installation guide to a t.

The grant_type conver_token works fine, but if I try to POST a request where the grant type is refresh_token, I get a 400 response with the following body:

{"error":"unsupported_grant_type"}

This happens both with the browsable API, with axios, and with curl.

This is what a request looks like with curl:

curl -X POST -d "grant_type=refresh_token&refresh_token=...&client_id=...&client_secret=..." http://127.0.0.1:8000/auth/convert-token/

This is my settings file: https://github.com/samul-1/sai_training/blob/master/core/settings/base.py

What could be causing this?

wagnerdelima commented 2 years ago

Hi all.

My team and I are constantly using this framework and it seems it has died out there. I contacted the owner by email asking if he would add some of us as maintainers so we could continue to improve it. However we didn't get a response.

I am publishing the project under my profile and we are going to continue to invest time in it.

So I would like to gently ask you to contribute to this project on: https://github.com/wagnerdelima/drf-social-oauth2

Thank you for understanding.