This week's book giveaway is in the Flex forum. We're giving away four copies of Flex 4 in Action and have Tariq Ahmed, Dan Orlando, John C. Bland II & Joel Hooks on-line! See this thread for details.
Hello Everybody,
I would like to create a JAAS Subject through my java web application. Can some one please provide a sample code or a link where I could read more regd the steps required for the creation of a JAAS Subject in a Web Application . I will be deploying the application in a Webshere App Server. Any help would be greatly appreciated.
Normally you'd get the Subject from the LoginContext after a successful authentication; see http://java.sun.com/developer/JDCTechTips/2001/tt0727.html for an example. You'll need to configure WebSphere accordingly (meaning, it needs to be told where JAAS can find user information, whether in a DB, or LDAP, or elsewhere).
Hi Ulf,
I appreciate the response provided and also for the link. You are right, we need to go against the DB or LDAP. Basically I have created a custom Login Module and inside the login() method I was going against a DB to get the user Authenticated and finallay I was able to get a JAAS Subject created. But now I need to pass this JAAS Subject from one application to another application residing on a different App Server ? How can this be done. Any ideas ?