Amad Fida wrote:
I have trying to use acegi with my rich client projectThe RemoteAuthenticationManager interface, which is what actually handles the client-server remoting call, defines this single interface:
and wasn't able to get back my custom UserDetai back,
I was constantly getting String back. I think I know
why,
public GrantedAuthority[] attemptAuthentication(String username, String password) throws RemoteAuthenticationException;
This method signature was deliberately limited to returning GrantedAuthority[]s because we needed to maximise remoting system compatibility. IIRC I did try returning a UserDetails (or was it Authentication?) but the serialization issues were quite problematic with Hessian and Burlap. Instead I went for the lower possible amount of information needed by a remote client for security purposes.
If you need a UserDetails, you'll need to authenticate using a different type of approach. The net.sf.acegisecurity.providers.rcp probably provides a good foundation, though, to base your own design on. Alternatively, you could just retrieve the UserDetails from a services layer method subsequent to authentication.
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