DefaultOAuth2AuthorizationRequestResolver erroneously consumes POST request body #8650
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: bug
A general bug
Milestone
Describe the bug
DefaultOAuth2AuthorizationRequestResolver consumes the request body, by calling
getParameter
on the request, even if the request doesn't match the authorization request base uri.The bug is in
resolve(HttpServletRequest request)
method, which callsgetAction
, even if the registrationId is null.To Reproduce
Create a filterchain with DefaultOAuth2AuthorizationRequestResolver in it. Send a POST request with a body. Observe that in the servlet, the request body appears to be empty.
Expected behavior
I expect that the body doesn't appear to be empty.
Sample
No sample, but I'm adding a PR with a test.
The text was updated successfully, but these errors were encountered: