I have trying to use acegi with my rich client project and wasn't able to get back my custom UserDetai back, I was constantly getting String back. I think I know why,
Following code always return username as principal, no matter if it was a UserDetails instance. public Authentication authenticate(Authentication authentication) throws AuthenticationException { String username = authentication.getPrincipal().toString(); String password = authentication.getCredentials().toString(); GrantedAuthority[] authorities = remoteAuthenticationManager .attemptAuthentication(username, password); return new UsernamePasswordAuthenticationToken(username, password, authorities); } Amad --- Ben Alex <[EMAIL PROTECTED]> wrote: > Ray Krueger wrote: > > >I don't see an upgrade file for 0.8 to whatever is > next though. Since > >I don't know what is going to be next, I left it > alone. > > > > > > > Thanks for making the improvement, Ray. > > I've added upgrade-080-100.html and a basic overview > of the change. > Please feel free to modify. > > Cheers > Ben > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT > Products from real users. > Discover which products truly live up to the hype. > Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Home: http://acegisecurity.sourceforge.net > Acegisecurity-developer mailing list > Acegisecurity-developer@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer > __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Home: http://acegisecurity.sourceforge.net Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer