-1

hi i've implemented an

ApplicationListener<AuthenticationSuccessEvent>

when this event occurs, i want to set a cookie to the ServletResponse.

How can i access it?

Should i use a Filter? But how can a filter react to this event?

wutzebaer
  • 14,365
  • 19
  • 99
  • 170

1 Answers1

0

Try to set up AuthenticationSuccessHandler instead. You will recieve HttpServletResponse as a parameter, so it will be no problem to work with coockies.

Maksym Demidas
  • 7,707
  • 1
  • 29
  • 36
  • tried this here: http://stackoverflow.com/questions/16734537/spring-security-3-http-basic-authentication-success-handler it is not invoked with basic authentication – wutzebaer May 24 '13 at 13:59