tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shahab <smah...@pershing.com>
Subject how to set JAAS Subject in HTTPSession
Date Wed, 25 Apr 2007 04:05:34 GMT

Hi:

I would need help with the following -
I am trying to implement JAAS authentication using struts2. I have
implemented the following flow -
user request -> struts action -> login() -> loginModule (implements
LoginModule)

this login module validates userid, password and  in the commit(), it
creates a Principal and adds the principal in the Subject.

My qn is how do I set this Subject in the HttpSession so that I can retrieve
it later, like below -
HttpServletRequest request = ServletActionContext.getRequest();
Principal principal = request.getUserPrincipal();


Please help.
thanx
Shahahb
-- 
View this message in context: http://www.nabble.com/how-to-set-JAAS-Subject-in-HTTPSession-tf3642977.html#a10173947
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message