This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Security and the fly likes Using JAAS with different WebApp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Using JAAS with different WebApp" Watch "Using JAAS with different WebApp" New topic
Author

Using JAAS with different WebApp

Felix Ng
Greenhorn

Joined: Jan 04, 2006
Posts: 9
My app already support JAAS

Now, I want to have my app sitting with another application (Liferay Portal). I know they are using JAAS too, and from now on, people with Auth. against their database.

My question is: How can my application detect which user had logged in? Is there anything to do with JAAS actually...
Jason Moors
Ranch Hand

Joined: Dec 04, 2001
Posts: 188
What do you mean by 'My App' do you mean a Web Application i.e. an application with a web.xml? As Liferay is a Portal application which implements the JSR-168 Portlet specification so to put your application within Liferay your would need to convert your application to run as a Portlet.

The Portlet spec defined a PortletRequest object which has getUserPrincipal() method which can used to retrieve the JAAS Princple.

regards

Jason.
Felix Ng
Greenhorn

Joined: Jan 04, 2006
Posts: 9
Thanks, this is very helpful :>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using JAAS with different WebApp
 
Similar Threads
JAAS - JSF 1.1 to JSF 1.2
JAAS JDBCRealm on WAS 7
J2EE and JAAS
Accessing windows 2000 active directory with Java
problem in login-config..