[jboss-user] [JBoss Portal] - Apply a role policy access to a portlet

manui do-not-reply at jboss.com
Wed Oct 25 11:00:09 EDT 2006


Hi JBoss world, 
I'm trying to apply a role policy in a portlet deployed in JBoss Portal v. 2.4. I want to restrict the access to my portlet depending of the role of the authenticated user (using the portal capabilities)....
I can access to user information by using 
Map userInfo = (Map) rRequest.getInformations(); and get for example the locale variable, but not the role information....
So I also try with the 
rRequest.isUserInRole("role") but does not work in my portlet.....
I also try by using the descriptor using 
<policy-permission>
<role-name>role</role-name>
	   <action-name>viewrecursive</action-name>
            </policy-permission>
         </security-constraint>
but it stil not works....
I only want to get role information... I can program the policy inside the portlet... but I need this information....
I'm a bit lost....
Thanks for the attention
Manuel Ottaviano


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

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



More information about the jboss-user mailing list