Results 1 to 3 of 3

Thread: Access Authentication from CallbackHandler

  1. #1
    Join Date
    May 2007
    Posts
    157

    Default Access Authentication from CallbackHandler

    Is it possible, and if yes, how, to access Authentication object, that was passed to authentication manager, from a callback handler, before successful authentication, so before it gets stored in SecurityContextHolder's context? I'd like to use it to fill in Username token. For more details on the context for the question see another thread I've created on Spring RCP forum http://forum.springframework.org/showthread.php?t=52976

    Thanks in advance for you time and effort taken to answer my question!

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

    Default

    I think the easiest solution would be to create your own callback handler, and put your own logic therein.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3
    Join Date
    May 2007
    Posts
    157

    Default

    Well, I have. Problem is that a callback handler can not access Authentication that is passed to doLogin of authentication manager, and getAuthentication only returns Authentication after sucessful authentication. I intend to use AOP, before doLogin method, to store Authentication in security context, so it gets available to a callback handler.

Posting Permissions

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