users@glassfish.java.net

Events when logging in/out - JAAS / j_security_check

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Sat, 17 Apr 2010 21:07:21 +0200

Hi,

I wanted to create a small framework with CDI that generates Events
when a user logs in/out through the JAAS urls j_security_check and
j_security_logout
basically by providing a filter for these urls and a
HttpServletRequestWrapper which
authenticate(), login() and logout(), however, they never seem to get used by
the servlet/filter processing.

I also tried to find the original servlet responsible for
j_security_check and j_security_logout
but have failed to find the right one (looked into default-web.xml).

Is there any trick I should know for this to work? Or does JAAS
already have a Event-Framework
and I'm reinventing the wheel here?


Thanks,
Dominik



-- 
Dominik Dorn
http://dominikdorn.com
Tausche Deine Lernunterlagen auf http://www.studyguru.eu !