This content has been marked as final.
Show 4 replies
-
1. Re: access httpsession from jaas loginmodule ?
mholzner Apr 5, 2006 2:46 PM (in response to cpage)and what's wrong with using the Subject ?
Why do it any other way then the default login modules handle this case?
they create Groups and Principals and populate the Subject with them. -
2. Re: access httpsession from jaas loginmodule ?
cpage Apr 5, 2006 6:14 PM (in response to cpage)ok, i'll take a look on what informations i can add to the subject.
and after, how can i get these informations in the portal ?
how can i retrieve the subject ? -
3. Re: access httpsession from jaas loginmodule ?
mholzner Apr 5, 2006 6:36 PM (in response to cpage)Subject currentSubject = (Subject)PolicyContext.getContext("javax.security.auth.Subject.container");
but note that this call is subject to security manager access checks.
Not sure if there is any better way .... -
4. Re: access httpsession from jaas loginmodule ?
cpage Apr 6, 2006 12:49 PM (in response to cpage)it works fine ;)
i can retrieve the jaas subject and my specific object too.
thank you