Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Security and the fly likes filter for j_security_check Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Reply locked New topic
Author

filter for j_security_check

Angel J Gama
Ranch Hand

Joined: Jun 28, 2007
Posts: 36
Hi!
Is there any way to set a filter for j_security_check? I'm using tomcat 6.x

An snippet of what I got so far is:


The thing is, I have a user's table where I store his id, password and an activatedAccount flag. So what I want is that the user can access to his account page only when he has already activated his account (this activation is through an email link).
I though the solution would be using a filter when requesting j_security_check, so I can check if the account beign authenthicated has been already activated by the user, but for some unknown reason to me this filter is never been called.
Any ideas or suggestions?

Btw My realm def is ok, authentication works ok... it's the jsecurity's filter the one that is not being called =(
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41604
    
  55
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.


Ping & DNS - my free Android networking tools app
 
 
subject: filter for j_security_check