django-rest-framework-social-oauth2 icon indicating copy to clipboard operation
django-rest-framework-social-oauth2 copied to clipboard

unsupported_grant_type when trying to refresh token

Open samul-1 opened this issue 3 years ago • 1 comments

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?

samul-1 avatar Oct 07 '21 22:10 samul-1

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.

wagnerdelima avatar Dec 27 '21 09:12 wagnerdelima