Databases Reference
In-Depth Information
11.
For
USER_ROLE
, add
operationsuser
and
webuser
.
12.
For the
MARKETING_DUTY
role add
EMPLOYEE_ROLE
and
MANAGER_ROLE
as the
applicaion roles.
OPERATION_DUTY
will have only
MANAGER_ROLE
assigned as
the applicaion role. Applicaion roles are those which end with
_DUTY
, and the
enterprise roles end with
_ROLE
.
13.
Now move to the
Resource Grants
secion and click on the
index
page. In the
Granted To
secion, we have
authenticated-role
already added to it. Click on
the
+
icon and add
Applicaion Roles
.
14.
Now select the
OPERATION_DUTY
role in the
Select Applicaion Roles
window.
What just happened?
When we run the
index.jspx
file and try to log in with
marketinguser
. You will get
the
401 unauthorized
error, and you will not be allowed to enter the page. However, when
you log in using
operationsuser
, you will be redirected to the correct page because
operationsuser
alone fits into the hierarchy as shown in the following diagram:
MANAGER_ROLE
OPERATIONS_DUTY
VP_ROLE
operationuser
Search WWH ::
Custom Search