In order to get the username password from the body, I have to customize a filter, but all the logic is the same as it. I wonder if obtainusername can support the body, so I don't need to write another filter

Comment From: jzheaux

@ChenZheOnePiece thanks for the question. Could you elaborate more on what you are trying to do?

What I'm not understanding is this:

In order to get the username password from the body, I have to customize a filter

UsernamePasswordAuthenticationFilter reads the body by default, so what is it that you are customizing?

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.