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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user