Hi!
I have been reading a lot of code just to understand the inner workings of acegi and use it in the best way possible.
I'm using Services exported through DWR, and wanted to authenticate the user from my Javascript UI (not from a plain HTML page or via BASIC HTTP Authentication).
I have seen other implementations that extend AuthenticationProcessingFilter, but it seems to be tied to a Web Context.
Also i haven't seen any implementation using AuthenticationManager conected via Spring, which it seems a more general aproach.
I was thinking in something like:
Or i just simply export AuthenticationManager or ProviderManager with DWR?Code:import org.acegisecurity.AuthenticationManager; public class AuthenticationService { AuthenticationManager am; // am setter and getter public org.acegi.Authentication authenticate(Authentication authenticate) { return am.authenticate(authenticate); } }
thanks!!


