Setting up the token validation workaround
Shared secrets are available out of the box with the PingAuthorize policy decision access control rule, but token validation is not. You can perform the following workaround to set up token validation.
|
This procedure is optional. |
About this task
To set up token validation, you’ll build the call to the introspection endpoint manually and create a policy to check if the token is active.
There are three main steps in this workaround:
-
Creating an HTTP service for the PingFederate introspection endpoint
-
Creating attributes for the
client_id,client_secret, and active token -
Creating a policy to validate the access token
To create an HTTP service for the PingFederate introspection endpoint:
Steps
-
In the PingAuthorize administrative console, go to Trust Framework > Services > PDP and create a service named
PingFederate Introspection. -
In the Service Type list, select HTTP.
-
In the HTTP Settings section:
-
In the URL field, enter the PingFederate introspection endpoint.
-
In the HTTP Method list, select
POST. -
In the Body field, enter
token={{HttpRequest.AccessToken.access_token}} -
In the Authentication list, select Basic.
-
In the Username list, select the PingFederate client option.
-
In the Password list, select the PingFederate client option.
-
-
In the Value Processors section, add a new JSON path processor:
-
In the Processor list, select JSON and enter
activein the field. -
In the Value Type list, select Boolean.
-
-
In the Value Settings section:
-
In the Type list, select String, and enter
Secretin the field.
-
-
In the Timeout and Retry section:
-
In the Request Timeout (ms) field, enter
2000.
-
-
Click Save.