java - How to allow any user in JBoss config -


i have access problem in java web application , think it's because of rights of jboss. i'm using jboss 7.1. found files application-roles.properties , application-users.properties , think it's must assign rights. actually, have nothing in these files.

i've searched conf don't find can me.

can me give rights users please ? , maybe explain me how works please.

just adding users file not going trick. here basic steps in adding authentincation , authorization in java web app.

  1. create login module , define jndi name login module in java application server. there many login modules choose such ldap, database, userproperties, certificate, etc. can point login module application-user.properties principal authentication , application-roles.properties roles definitions.
  2. then need add proper web application security-constraints in web.xml along authentication type of basic or form. pretty standard configuration.
  3. finally, add login module jndi name in jboss-web.xml file under web-inf (for war file) or meta-inf (for jar or ear file).

you can follow along example if planning use application-user , roles file application. organizations use ldap or database type of login modules authentication since that's more scalable , secured. can see list of few other login modules here.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -