Results 1 to 2 of 2

Thread: Programatically login PasswordAuthenticationDao, non-http

  1. #1
    Join Date
    May 2005
    Location
    Fortaleza, brazil
    Posts
    67

    Default Programatically login PasswordAuthenticationDao, non-http

    Hi all,

    I've searched though the list for a Programatic login, like so:

    http://forum.springframework.org/sho...rogramatically

    Our app uses PasswordAuthenticationDao and a custom AuthenticatedUser. We want to use our same Struts-based PasswordAuthenticationDao, but with web services.

    My problems are:

    1) We do not wish to involve http session via the web services login. This login returns a string generated by java.util.UUID and is passed in on subsequent requests. We control the timeout.
    2) We want to somehow programatically invoke our existing PasswordAuthenticationDao, get AuthenticatedUser user in SecurityContext somehow, and along the way use our existing Granted Authorities and MethodSecurityInterceptor .
    3) Somehow keep acegi stateful with our UUID.

    Any hints on where I would start?
    iksrazal

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Assuming your UUID will be presented each request, adopt the approach used by BasicProcessingFilter. This will be your new authentication mechanism. Set HttpSessionContextIntegrationFilter.allowSessionCr eation = false. That should get you started.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •