geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sumedha rubasinghe <sume...@wso2.com>
Subject Re: Can we create a filter for j_security_check service in Geronimo Tomcat?
Date Tue, 06 Feb 2007 05:45:20 GMT
Hi Phani,
Onces the login completes successfully (i.e. after going through 
j_security_check) , you can get the user name by calling 
httpRequest.getUserPrinciple().
If I understand your requirement correctly... you can use this username 
to for logging..etc..
/sumedha



Phani Madgula wrote:
> Paul,
>  
> To put the issue correctly, I need to access user credentials in my 
> servlet while using Container managed authentication say FORM login. 
> This is required because, I need them for some loging/establishing DB 
> connections etc. Ofcourse, If we use programatic authentication, it 
> can't be done easily.
>  
> In my first mail, I was trying to use a filter for j_security_check so 
> that, I can hook some code there to perform the tasks. However, I was 
> not able to do so.
>  
> I will try your option.
>
> Thx
> Phani
>  
> On 2/2/07, *Vamsavardhana Reddy* <c1vamsi1c@gmail.com 
> <mailto:c1vamsi1c@gmail.com>> wrote:
>
>     Phani,
>
>     What kind of logging are you looking at?
>
>     Vamsi
>
>     On 1/31/07, *Phani Madgula* < phanibalaji.madgula@gmail.com
>     <mailto:phanibalaji.madgula@gmail.com>> wrote:
>
>         Hi
>         I have a web application that uses FORM login. I would like to
>         have a filter to be declared for j_security_check service so
>         that I can perform some loging tasks. Is it allowed in
>         Geronimo/Tomcat?
>          
>         I tried with the below tags but filter will not be called..!
>         Any help on this?
>          
>         <filter>
>         <filter-name >Page Request Timer</filter-name>
>         <filter-class>TimeTrackFilter</ filter-class>
>         </filter>
>         < filter-mapping>
>         <filter-name>Page Request Timer </filter-name>
>         <url-pattern >j_security_check</url-pattern>
>         </ filter-mapping>
>
>         Regards
>         Phani
>
>
>


Mime
View raw message