httpSession.setAttribute( PentahoSystem.PENTAHO_SESSION_KEY, PentahoSessionHolder.getSession() );
/**
* definition of anonymous inner class
*/
SecurityContext authWrapper = new SecurityContext() {
/**
*
*/
private static final long serialVersionUID = 1L;
private Authentication authentication;
public Authentication getAuthentication() {
return authentication;
};
public void setAuthentication( Authentication authentication ) {
this.authentication = authentication;
};
}; // end anonymous inner class
authWrapper.setAuthentication( SecurityContextHolder.getContext().getAuthentication() );
httpSession.setAttribute( HttpSessionContextIntegrationFilter.SPRING_SECURITY_CONTEXT_KEY,
authWrapper );
return null;
}