--- On Tue, 3/1/11, anyz <[email protected]> wrote:

> From: anyz <[email protected]>
> Subject: Storing Custom Object in Session on User Login
> To: "Jetspeed Users List" <[email protected]>
> Date: Tuesday, March 1, 2011, 6:49 AM
> I need to set a custom class object
> into session once user logged into
> Jetspeed. This object will be accessed and used later by
> portlets. After
> searching into email list and forum i found two ways of
> intercepting J2
> login process:
> 
> 1- Custom Login Module
> 2- Custom Security Valve and possibly Filter (not sure if
> Filter works in
> Jetspeed 2.2.1 or its for old version)
> 
> I manged to plug my custom login module however i could not
> find a way to
> get session in login() method and set my custom class
> object into session.
> Is it possible to get HttpSession in custom login module?

It is not possible to access HttpSession in a JAAS LoginModule.

> 
> If i have write security valve, do i also need some sort of
> Serverlt filter
> where i can set custom object into session.

You don't need a servlet filter if you use a custom security valve.
Servlet filter such as PoralLoginFilter is enabled/used only for some 
environment like WAS instead of Jetspeed JAAS LoginModule.


Woonsan

> 
> 
> Thanks
> 


      

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to