-
Notifications
You must be signed in to change notification settings - Fork 114
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
Update README.md #219
Update README.md #219
Conversation
Add symfony-bundles/json-request-bundle package to parse json content on oauth request. By default json content is handle as string and did not work with oauth2 request json content
Sorry, but that package is not required in order to use this bundle. We could maybe evaluate if it'd be helpful to mention it in the composer.json |
@X-Coder264 I agree that is not required to use this bundle but if you do an oauth request as json this bundle is not working properly so I think it can be useful to mention that somewhere. |
What does "not working properly" mean exactly? Please give an example. |
With the bundle {
"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."
} With the bundle enabled I get this one : {
"token_type": "Bearer",
"expires_in": 2678400,
"access_token": "an-access-token",
"refresh_token": "a-refresh-token"
} It's work only with form url encoded request that's why I'm saying it's not working properly 😉 |
That is the expected behavior as per the OAuth 2.0 RFC -> https://tools.ietf.org/html/rfc6749#section-4.1.3
I wouldn't document anything that deviates from the RFC. |
base on
trikoder_oauth2.yaml
stil got error
|
@vatoer you are using query params not post params that you have to put in the body’s request |
Add symfony-bundles/json-request-bundle package to parse json content on oauth request. By default json content is handle as string and did not work with oauth2 request json content