oauth2-bundle
oauth2-bundle copied to clipboard
The authorization grant type is not supported by the authorization server
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 Please give us an example of the requests (a curl request would be great).
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 It's probably the same case as https://github.com/trikoder/oauth2-bundle/pull/219.
@X-Coder264 yeah in my case it was an issue. Thanks :)