Results 1 to 2 of 2

Thread: Determining User ID

  1. #1
    Join Date
    Feb 2008
    Posts
    16

    Default Determining User ID

    I have a Dao class that needs to store the user ID as audit information when processing a request. It is not clear to me how I would be able to retrieve the user ID that was passed into web service call (usually stored on the security header) inside my Dao. Any ideas?

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    If you use Acegi, it's as simple as obtaining the Authentication from the SecurityContextHolder.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

Posting Permissions

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