Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using JAAS with different WebApp

 
Felix Ng
Greenhorn
Posts: 9
Eclipse IDE Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
Eclipse IDE Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, this is very helpful :>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic