Announcement Announcement Module
Collapse
No announcement yet.
how business objects get user information stored by Acegi? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how business objects get user information stored by Acegi?

    i have a few business service objects which have no dependency on
    web objects. i dont want to pass user info as arguments to business
    methods. i want to access user info stored by Acegi from within business
    objects. how ? what way is clean? i use Acegi as my web security mechanism.

    thanks a lot!

    pete

  • #2
    ((SecureContext)ContextHolder.getContext()).getAut hentication() should do it for you.

    Comment

    Working...
    X