I have a project using seam 3 and cdi. I was able to setup the security using a simple autheticator. Now, I need to prevent user access to pages if they are not logged in, even if they type the url by hand. If they try that, they have to be redirected to a login page? What is the best approach to do that?
Look at the ViewConfig in Seam Faces. If you're not using Seam Faces you'll have to come up with another approach.