Results 1 to 3 of 3

Thread: A riddle: Where can I put my code?

  1. #1
    Join Date
    Feb 2008
    Posts
    5

    Question A riddle: Where can I put my code?

    I want to insert some code into the Acegi login process.

    My code needs to run AFTER the user has successfully logged in.
    My code needs to have access to the logged in User (i.e. Authenication or UserDetails).
    My code needs to have access to the HttpServletRequest so it can set a cookie.

    Where is the best place to do put my code?

  2. #2
    Join Date
    Dec 2007
    Posts
    27

    Default

    AuthenticationProcessingFilter.onSuccessfulAuthent ication()

  3. #3
    Join Date
    Feb 2008
    Posts
    5

    Default

    Awesome. I think I'm finally getting a handle on this.

    It wasn't working at first, but it turned out to be that my code needed to do its thing BEFORE calling super.successfulAuthentication(req, res, auth). Now it's working great.

    Thanks for your help.

Posting Permissions

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