"snavjot" wrote : 
  | 
  | <module-option name="rolesQuery">
  | select role, "Roles" from CustomerLogin where custCode=?
  | </module-option>
  | 



The roles query returns two columns the first one containing the Role name and the 
second the Role Group that this role is being added to.

The default role group is called "Roles" and is the one used for normal EE role based 
security - if the role group is null or empty the default group will be used, so you 
could have used:

select role, "" from CustomerLogin where custCode=?
or
select role, NULL from CustomerLogin where custCode=?

with the same effect.

If you where using an application with role groups other than the default then you 
would need to use this feature; normally, as you have discovered, it is just disabled 
by providing the default as a constant column in the query.

So groups with names other than "Roles" do exist (and are loaded and attached to the 
Subject), but they are not used for the simple roles based security you are using.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840221#3840221

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840221


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to