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 use
UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(userName, password);
Authentication populatedAuthentication = authManager.authenticate(authentication);
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.
UserVo principal = (UserVo) securityContext.getAuthentication().getPrincipal();
Is this is limitation of HttpSessionContextIntegrationFilter, or I'm doing something wrong?