I have one web application. I've successfully authenticated the users using OpenAM. For that i deployed and configured OpenAM on one Tomcate(8080) and my web application is deployed on another tomcate(8081).I have configured 'J2EE_AGENT' on tomcate(8081).
I am using OpenDJ for data store. I have created two users/group
user1 ----> group1 user2 ----> group2
I've created Agent and Policies on OpenAM. The configuration for Policies is as follows.
Resource Name which i wanted to protect is : http://example.com:8081/SpringMVC/welcome and allowed for GET and POST action. And assigned the group1 to this rule.
When i am trying to access protected URL, it gets successfully authenticated using OpenAM and able to access the link. But unfortunately group2 is also able to access the url though i didn't assgin that group to that rule.
My question comes over here How i can configure the rule so that group2 can not access that url or group2 get access denied for that URL.
I've spent around 1 day on this. Early help would be appreciated.