We can now test the policy and make sure that it works as we intend. First, we test the policy directly from the Policy Editor's test interface.
- In the Policy Editor, click the Test tab at the top of the main pane to display the test interface.
-
Fill out the Request section. The test uses this
information to simulate the policy request that PingAuthorize Server makes
when it receives an HTTP request.
Description Details Service
Meme Games - Games
Action
inbound-POST
Attributes
HttpRequest.AccessToken
{ "active": true, "sub": "user.99@example.com" }
The following image shows the test.
-
Click Execute.
The policy test result displays. If the policy worked as expected, the leftmost result is red, indicating a
DENY
result. - Optional:
Experiment with testing.
Click the Testing Scenario tab and try different inputs to see how the policy result changes. For example, change the HttpRequest.AccessToken attribute value to
{ "active": true, "sub": "user.99@my-company.com" }
. The policy result is nowPERMIT
, as shown in the following image.