This content has been marked as final.
Show 1 reply
-
1. Re: PIcketlink: how to retrieve all groups/roles for a user?
horstl Nov 10, 2013 6:00 AM (in response to nico.ben)hi Nicola,
me helped first this site: PicketBox Mapping
where the this code part is:
import org.jboss.security.SecurityContext; import org.jboss.security.SecurityContextAssociation; import org.picketbox.util.PicketBoxUtil; SecurityContext sc = SecurityContextAssociation.getSecurityContext(); RoleGroup rG = PicketBoxUtil.getRolesFromSubject(sc.getUtil().getSubject());
then you can access the roles / groups of the actual user from request
hope info helps br horst