Time for action – adding permissions
Now we will see how to provide permissions for the available resources:
Double-click on the
jazn-data.xml
file from theMETA-INF
folder in Application Resources | Descriptors.Go to the Resource Grants section in the
jazn-data.xml
file. Set the Source Project value toViewController
.From the Resource Type list, select the Web Page option.
When you select the Web Page option, you will see that all the page resources for the application are listed below.
Now we will have to give permission for our
index
page so that we can see the page instead of getting the 401 --Unauthorized error after login.Select the
index
page from the Resources list and then click on the + icon from the Granted To section. We are going to grant permission for theindex
page to anonymous role as shown in the following screenshot:After clicking on the + icon, we select the Add Application Role option from the menu. This will open the Select Application Roles pop up.
In the pop...