oauth2-bundle icon indicating copy to clipboard operation
oauth2-bundle copied to clipboard

The authorization grant type is not supported by the authorization server

Open lebadapetru opened this issue 5 years ago • 4 comments
trafficstars

Hey everyone,

Just installed this lib on a symfony 5 project and i got the following error when i'm trying to reach either of /token or /authorize endpoints

{
   "error":"unsupported_grant_type",
   "error_description":"The authorization grant type is not supported by the authorization server.",
   "hint":"Check that all required parameters have been provided",
   "message":"The authorization grant type is not supported by the authorization server."
}

lebadapetru avatar Sep 29 '20 13:09 lebadapetru

@lebadapetru Please give us an example of the requests (a curl request would be great).

X-Coder264 avatar Oct 05 '20 10:10 X-Coder264

got the same error when try to send request in "application/json" format, when change to "form-data" everything works fine. It looks like some dependencies issue, cause in other project JSON requests fork fine (in both cases i use 3.1.1 version of this bundle)

tkuska avatar Oct 10 '20 19:10 tkuska

@tkuska It's probably the same case as https://github.com/trikoder/oauth2-bundle/pull/219.

X-Coder264 avatar Oct 10 '20 19:10 X-Coder264

@X-Coder264 yeah in my case it was an issue. Thanks :)

tkuska avatar Oct 10 '20 20:10 tkuska