Preparing PingAuthorize for Kong Gateway integration
For Kong Gateway to use PingAuthorize as an external authorization policy runtime service, you must prepare PingAuthorize to receive authorization requests from Kong Gateway.
Before you begin
-
Install and start Kong Gateway. Learn more in the Kong Gateway documentation.
-
Install and start PingAuthorize. Learn more in Installing PingAuthorize.
Steps
-
In the PingAuthorize administrative console, go to Configuration > HTTP Servlet Extensions > Sideband API.
-
In the Request Context Method list, select State.
-
In the Shared Secret Header Name field, enter
CLIENT-TOKEN
. -
Next to the Selected table for Shared Secrets, click the icon to create a new shared secret.
The shared secret authenticates the
ping-auth
plugin to PingAuthorize. Version 1.2.0 of the plugin supports referenceable secrets. For security reasons, store the shared secret in a vault supported by Kong. Learn more in Secrets Management and Environment Variables Vault in the Kong documentation. -
In the modal dialog, create a suitably long shared secret value, and then click Save To PingAuthorize Server Cluster.
-
At the top of the Edit Sideband API HTTP Servlet Extension page, click Save.