Announcement Announcement Module
Collapse
No announcement yet.
which one to extend if want extra Role info in session ? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • which one to extend if want extra Role info in session ?

    Hi,
    I need to store custom Role information into Session scope, which class should I extend ?

    many thanks !
    li xin

  • #2
    I suspect you'll want to develop an AuthenticationDao which generated the GrantedAuthority[] array to include your customised GrantedAuthority. You could probably simply extend GrantedAuthorityImpl, but it's easy enough to start from GrantedAuthority.

    If you do the above, the HttpSessionContextIntegrationFilter will provide all HttpSession integration automatically, as the GRantedAuthority[]s are stored inside the Authentication, which is in turn stored inside the SecureContext that is stored in a HttpSession.

    Comment

    Working...
    X