You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rob Tomlin <ro...@mekon.com> on 2003/05/13 16:01:25 UTC
Obtaining authenticate principal from HttpSession...
Hi,
Is it possible, given a HttpSession object, to determine the
corresponding Principal ?
This follows on from my other post about getting a HttpSession
based on the Id.
What I want to achieve is, based on a session Id, I wish to foward
a request using RequestDispatcher.forward(...), but as a different
user.
I have subclassed HttpServletRequestWrapper so I can override getSession()
and getUserPrincipal(...), but current I am not sure how to implement
getUserPrincipal to return the Principal that corresponds to the session
I have obtained based on an Id.
Cheers
Rob Tomlin
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org