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

Refresh Token Error #246

Closed konsalex closed 2 years ago

konsalex commented 2 years ago

Hey there, I have an issue when I try create a new access token.

In the browser I get an error: {"detail":"Invalid token header. No credentials provided."}

While with curl I get the following:

{"error":"invalid_grant"}

curl -X POST -d "grant_type=refresh_token&client_id=LVsasqYdCufTgrvdIKkDJ9VisYzp5Zq8vXnTZtTO&client_secret=p3o3FHrflqIXsFt2l8XzzCJSuZMVNT5u5kkfjNI9S3P8tkFbB0sfOc2oJ5h0qO5Ri63c9urxtaoLHP84qVv6FYUVzxzmGxdpOam5hvEOcwjQK5mvE3VIAPKEEgdCyzPZ&refresh_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbiI6Ik1PcHZYeXNuNVVjMldpRlk3cnRvWExBOEIxQkE5cCJ9.RWsgpAXacTJsfYRyhzUG5fTTwEVvdQLGcp66lJF9I8k" http://localhost:8000/auth/token

Any clue how to solve this?

konsalex commented 2 years ago

Found: https://github.com/jazzband/django-oauth-toolkit/issues/432