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

filter for j_security_check

Angel J Gama
Ranch Hand

Joined: Jun 28, 2007
Posts: 36
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

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

Let's continue the discussion in this duplicate thread.
I agree. Here's the link:
subject: filter for j_security_check
jQuery in Action, 3rd edition