I have this problem and i just cannot find a solution to it.
I am using JBoss AS 7 and created a dynamic web project using Eclipse Indigo. From my project i created a simple login form whereby after correctly logging in i should be directed to my appropriate section.
Users, Roles and Groups should be managed by jboss and not the project. So jboss should decide where to redirect me after checking in the correct properties files.
How can i do this? Can you all help me please.
Well i finally got it. Three simple steps to follow.
In the web.xml file, put all your security constraints according to the roles.
Authentication any name *.jsf GET POST admin NONE
The login config
FORM realm name /mylogin.jsf /myerror.jsf
security role
desc admin
Create a jboss-web.xml file in the WEB-INF folder. Inside this file, write
Create a folder classes in the WEB-INF folder and place your user.properties and role.properties file in it.
And then the final step is to add the configuration in the standalone.xml file