I'm working on client-server app with swing ui, and use Spring Remoting and Acegi. On the client side I do the following to authenticate user:
When I useCode:UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(userName, password); Authentication populatedAuthentication = authManager.authenticate(authentication); SecurityContextHolder.getContext().setAuthentication(populatedAuthentication);
I receive String with user's name instead of my implementation of UserDetails. But when I start my app locally (without Spring remoting, RemoteAuthenticationManagerImpl, etc) it works fine, i.e. returns UserDetails implementation.Code:UserVo principal = (UserVo) securityContext.getAuthentication().getPrincipal();
Is this is limitation of HttpSessionContextIntegrationFilter, or I'm doing something wrong?


