aspose file tools*
The moose likes Security and the fly likes login context propogation from WEB to EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "login context propogation from WEB to EJB" Watch "login context propogation from WEB to EJB" New topic
Author

login context propogation from WEB to EJB

Ryan Fernandes
Ranch Hand

Joined: Dec 11, 2003
Posts: 86
Hi,

I'm using my custom login module for authentication (in the web tier).
[ LoginContext lc = new LoginContext("myCustomDomain"); ...]

I have no security settings in my descriptors. The above is purely for authentication.

Now, when I lookup an EJB; and call EJBContext.getCallerPrincipal() I would like the Principal that is in the Subject of my Login Context lc above.

This this possible?

Thanks in advance for any insight.
-Ryan
I


Unthinking respect for authority is the greatest enemy of truth. -Albert Einstein, physicist, Nobel laureate (1879-1955)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: login context propogation from WEB to EJB
 
Similar Threads
JAAS and Tomcat
JAAS- "No LoginModule found for ur jaas_configinfo!"
More than one authentication per thread
Call secured EJB from "unsecured" web with custom credentials instead of "BASIC AUTH"ed credentials
JAAS login servlet