This content has been marked as final.
Show 3 replies
-
1. Re: GateIn 3.1 JAAS Role issue
mwringe May 24, 2011 10:23 AM (in response to m_m)What exactly is the question here?
-
2. Re: GateIn 3.1 JAAS Role issue
m_m May 24, 2011 12:34 PM (in response to mwringe)I updated the my post to make it clear - clicked "post" too early before.
-
3. Re: GateIn 3.1 JAAS Role issue
m_m Jun 2, 2011 12:03 PM (in response to m_m)Ok guys, the problem was that we have been using customized version of portal. The challenge was that we have around 20 portlets and 150 roles. To declare them in each portlet.xml would be a bad thing to do, also because there are more roles added as the project grows.
Solution was to modify the file:
so that the function isUserInRole looks like this:
public boolean isUserInRole(String roleName)
{
return securityContext.isUserInRole(roleName);
}
M