Announcement Announcement Module
Collapse
No announcement yet.
Spring + EJB + JAAS: how to get an Authentication inside EJB? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring + EJB + JAAS: how to get an Authentication inside EJB?

    Hi,
    I've setup a swing client + some SLSBs (using spring 2.5.6 + security 2.0.4) including JAAS authentication (client: ClientLoginModule, server: JBoss 5 LdapLoginModule) with authentication working based on EJB config and JAAS.
    Inside the EJB I'm able to get the principle by calling SessionContext.getCallerPrincipal() (even if Subject.getSubject( AccessController.getContext() ) is returning null) but I want to propagate these information to spring's SecurityContext to be able to use it in beans called by the EJB.

    - how (if possible) can I pass these information to spring's SecurityContext?
    - should I do it the other way round and not using LdapLoginModule but e.g. SecurityContextLoginModule and configure the authentication strategy inside of spring?

    Thx,
    Sammy
Working...
X