This content has been marked as final.
Show 2 replies
-
1. Re: force login
nickarls Oct 22, 2008 9:23 AM (in response to ajanz)I'm sure this is in the manual
-
2. Re: force login
fillo Oct 22, 2008 11:00 AM (in response to ajanz)
Sascha janz wrote on Oct 22, 2008 08:31:
i use an application generated by seam gen.
how can i force the user to login ? so that my pages only can be reached when the user is logged in.Nicklas is right, this is basic and is in the manual, all the tutorials and all the books I've seen.
In your pages.xml you need to have something like this:
<page view-id="/yourpage.xhtml" login-required="true"> </page>
I'm not sure what do you want to say with
login by java code
I think you should read something about AuthenticatorAction class. Perhaps this is what you are looking for.