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?
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?
Try to set up AuthenticationSuccessHandler
instead. You will recieve HttpServletResponse as a parameter, so it will be no problem to work with coockies.