Announcement Announcement Module
Collapse
No announcement yet.
What is the relationship of UserDetail and Authentication Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is the relationship of UserDetail and Authentication

    According to the java doc, the UserDetail holds information and later on to be stored inside the Authentication.
    I am using my own AuthenticationDao impl, and it has a method loadxxx to return a Usertail object. If I have another object I need to use, how would I attack to the UserDetail so later I can get it from Authentication?

  • #2
    UserDetails is an interface.

    Your AuthenticationDao can return any concrete implementation of UserDetails that you like. We suggest returning the included User, or a subclass, but there is nothing wrong with returning your own implementation instead.

    Comment

    Working...
    X