Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unsupported_grant_type when trying to refresh token #247

Open
samul-1 opened this issue Oct 7, 2021 · 1 comment
Open

unsupported_grant_type when trying to refresh token #247

samul-1 opened this issue Oct 7, 2021 · 1 comment

Comments

@samul-1
Copy link

samul-1 commented Oct 7, 2021

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants