Announcement Announcement Module
Collapse
No announcement yet.
Authentication Service using AuthenticationManager Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Authentication Service using AuthenticationManager

    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:
    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);
     }
    
    }
    Or i just simply export AuthenticationManager or ProviderManager with DWR?

    thanks!!

  • #2
    This thread is being discussed here: http://forum.springsource.org/showthread.php?t=72916

    Comment

    Working...
    X