Re: user in the session
Torgeir Veimo <[email protected]> Sat, 23 Jul 2005 16:16:28 +0100
| Newsgroups | gmane.comp.java.securityfilter.user |
|---|---|
| Message-ID | <1122131788.23779.1.camel@localhost> |
On Fri, 2005-07-22 at 11:42 -0400, Jesse Vitrone wrote: > I have security filter set up and working nicely, but I'd like to have > control over where in the session the user gets put. I'd like to have > my user just under "user" in the session, but I don't see a way to have > securityfilter put it there, nor for me to put it there when I > authenticate them. Am I missing something? Does everyone else just > leave the user in the pricipal in > "org.securityfilter.filter.SecurityRequestWrapper.PRINCIPAL" in the session? The nice feature of the securityfilter is that you can retrieve the user principal with the standard request.getUserPrincipal() method. You can then cast this principal impl to whatever implementation class you know you're using. -- Torgeir Veimo <[email protected]> ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click