Hello,
I've just written a small implementation of AuthenticationSuccessHandler to interrogate the principal of the Authentication object and put something in the session:
Now after logging in, I don't get redirected/forwarded anywhere. I'm left at http://localhost:8080/myapp/j_spring_security_check. How can I include my logic without disrupting what normally happens?Code:public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException { String timeZoneId = null; UserDetailsAgent uda = (UserDetailsAgent) authentication.getPrincipal(); timeZoneId = uda.getAgent().getTimezoneId(); // Store the time zone id in the session request.getSession().setAttribute(SESSION_ATTR_NAME_TIME_ZONE_ID, timeZoneId != null ? timeZoneId : defaultTimeZoneId); }
Thanks,
PUK


