- if (SecurityContextHolder.getContext().getAuthentication() == null) {
- HttpSession httpSession = RWT.getRequest().getSession();
- // log.debug("Session: " + httpSession.getId());
- SecurityContext contextFromSessionObject = (SecurityContext) httpSession
- .getAttribute(SPRING_SECURITY_CONTEXT_KEY);
- if (contextFromSessionObject != null)
- SecurityContextHolder.setContext(contextFromSessionObject);
- else
- logAsAnonymous();
- }
+ // if (SecurityContextHolder.getContext().getAuthentication() == null) {
+ // HttpSession httpSession = RWT.getRequest().getSession();
+ // // log.debug("Session: " + httpSession.getId());
+ // SecurityContext contextFromSessionObject = (SecurityContext)
+ // httpSession
+ // .getAttribute(SPRING_SECURITY_CONTEXT_KEY);
+ // if (contextFromSessionObject != null)
+ // SecurityContextHolder.setContext(contextFromSessionObject);
+ // else
+ // logAsAnonymous();
+ // }