This content has been marked as final.
Show 1 reply
-
1. Re: AbstractServerLoginModule how does it map roles of appli
frobazz Apr 22, 2003 1:06 PM (in response to mschreiber)I looked at the code and wrote my own login module from scratch (this is in JBoss 3.0.3), and didn't use getRoleSets. Basically, I was required to create a NestableGroup with the name "Roles", then add to it a SimpleGroup named "Roles" as well. To the simple group I added my SimplePrincipals with the appropriate role names. Not sure why it works that way, but it seems to work fine.
Here's an example:
SimpleGroup sg = new SimpleGroup("Roles");
sg.addMember(new SimplePrincipal("RoleName"));
NestableGroup ng = new NestableGroup("Roles");
ng.addMember(sg);
Hope this helps.