Results 1 to 2 of 2

Thread: UserDetails data stored in ContextHolder

  1. #1
    Join Date
    Aug 2010
    Posts
    4

    Default UserDetails data stored in ContextHolder

    Hi,


    I created my own implementation of UserDetails and UserDetailsService. But I don't know how this will work.
    I want to store with username and credentials additional data like email and phone number. So I declare this fields in UserDetailsImpl. But where is it will call?

    Do I have to return in AuthenticationProvider a UserDetails?
    Where will my custon UserDetails be stored?

    PS: I want to create a custom authentication and it is difficult to see the dataflow. Is there some flow chart web authentication?


    Regards

  2. #2
    Join Date
    Jan 2008
    Posts
    1,834

    Default

    If you are writing your own UserDetailsService you are in charge of determining where to store the UserDetails (you might extends one of the existing UserDetailsService implementations).

    Try reading the technical overview to get an understanding of the flow.
    Rob Winch
    Twitter @rob_winch
    Spring Security Lead
    Spring by Pivotal

Tags for this Thread

Posting Permissions

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