Skip to content

unsupported_grant_type when trying to refresh token #247

Open
@samul-1

Description

@samul-1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions