jQuery in Action, 2nd edition
The moose likes Security and the fly likes JAAS with JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "JAAS with JBoss" Watch "JAAS with JBoss" New topic
Author

JAAS with JBoss

Carlos Ic
Greenhorn

Joined: Nov 17, 2011
Posts: 1
Hi all,

I'm using JAAS with JBoss in my Web application, I configure the login-config.xml file



and the web.xml file:


and the others elements like <security-constraint> , <security-role>...etc, in my login xhtml I use j_security_check, j_username and j_password, everything works fine, but now I need to authenticate and authorize users based on their company, since a user can be in one or more companies and each have different roles. I need something like j_company (ComboBox) in my login xhtml
and get the roles based on the company code.

Any ideas or suggestions for this case?. Thanks in advance



 
 
subject: JAAS with JBoss
 
Threads others viewed
[jboss jaas] login-conf.xml configuration
authentication problem
Single Sign-on across web-apps
Authorization issue while implementing login module with DatabaseServerLoginModule
req.isUserInRole("admin"); return false??
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture