Aug 13th, 2010, 10:46 AM
UserDetails data stored in ContextHolder
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?
Aug 13th, 2010, 04:24 PM
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.
Tags for this Thread