Why Spring does not have a class like RequestContextHolder for HttpServletResponse
? There are some cases I need to access response object. For example spring se
If you do not find a better solution, then you can extend the UsernameAndPasswordAuthenticationFiter http://docs.spring.io/autorepo/docs/spring-security/3.0.x/apidocs/org/springframework/security/web/authentication/UsernamePasswordAuthenticationFilter.html (or the AuthenticationFilter you use instead) there you have Access to the Request and Response.