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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to