Use the OpenSSO Enterprise console to configure policy for Web Policy Agent 2 that will be used to verify that the agent is working properly.
You will add additional policies later when we add a load balancer in front of the Protected Resource 2 host machine.
Access https://osso-1.example.com:1081/opensso/console from a web browser.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
Under the Access Control tab, click / (Top Level Realm).
Click the Policies tab.
Click New Policy.
Enter URL Policy for Protected Resource 2 in the Name field.
Under Rules, click New.
The Rules properties page is displayed.
Select URL Policy Agent (with resource name) and click Next.
Provide the following information on the resulting page and click Finish.
URL Rule for Protected Resource 2
http://pr-2.example.com:1080/*
Mark this check box and verify that Allow is selected.
Mark this check box and verify that Allow is selected.
The rule URL Rule for Protected Resource 2 is added to the list of Rules.
Under Subjects, click New.
The Subjects properties page is displayed.
Select Access Manager Identity Subject and click Next.
On the resulting page, provide the following information and click Search.
Test Subject
Choose User and click Search to display a list of available users.
From the available users, select testuser1 and click Add.
Click Finish.
Click OK.
The new policy is included in the list of Policies.
Click Back to Access Control.
Log out of the console.