I'm searching for a way to make a two-way-login. I've an Apache in front of my Tomcat. It's providing a remote user for one virtual folder (eg. /auth/*). Now with seam I want to try to authenticate with this remote user: when not logged in, redirect to the apache secured folder if I get in, identity shall be marked as logged in (username is the remote user) if apache login fails, the apache sends a redirect to the login form wich shall be used.
How can I do the seam part (apache is clear to me)?