The authorization model of the portal is based on the association between the following actors: groups, memberships, users, and any content inside the portal (pages, categories, or portlets).
In this recipe, we will assign the admin role against a set of pages under a specific URL of the portal. This configuration can be found in the default portal provided with GateIn so you can take the complete code from there.
web.xml file inside your portal application.
We need to configure the
web.xml file assigning the admin role to the following pages under the URL
http://localhost:8080/portal/admin/* in the following way:
<security-constraint> <web-resource-collection> <web-resource-name> admin authentication ...