[jboss-user] [Security & JAAS/JBoss] - Re: got 403 error but module auth worked

raivil do-not-reply at jboss.com
Tue Nov 14 08:44:50 EST 2006


JBoss expects to find the user's roles in a group called "Roles"

instead of just adding roles to the Subject, add a Group o roles caales "Roles"


  | java.security.acl.GrouprolesGroup = new SimpleGroup( "Roles" );
  |     rolesGroup.addMember( 
  |         new SimplePrincipal( "ExampleRole" ) );
  | subject.getPrincipals().add(group);
  | 

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

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



More information about the jboss-user mailing list