PingOne

Configuring Kong Gateway for PingOne Authorize integration

To integrate PingOne Authorize with Kong Gateway, install and configure the integration kit. You’ll use LuaRocks to install the integration kit.

Steps

  1. Run the following command to install the plugin:

    luarocks install kong-plugin-ping-auth

    Learn more in the Kong Gateway plugin installation documentation.

  2. After installation, load the plugin into Kong by editing the plugins = bundled,ping-auth property in the kong.conf file.

    Alternatively, you can use the equivalent environment variable to set this property: KONG_PLUGINS = bundled,ping-auth.

  3. Restart Kong Gateway to apply the plugin.

  4. To verify that Kong loads the plugin successfully, check for the debug-level message Loading plugin: ping-auth in Kong’s error.log file.

  5. Use the Kong Gateway UI or API to complete the configuration.

  1. In Kong Manager, select the default workspace, and then click Plugins.

    Screen capture of the Plugins page in Kong Manager.
  2. On the ping-auth line, click Edit.

  3. On the Update ping-auth plugin page, click the toggle to enable the plugin.

    Screen capture of the Enable toggle for the ping-auth plugin in Kong Manager.
  4. (Optional) To enable the plugin for specific consumers, services, or routes, click Scoped and then enter Service, Route, and Consumer information as necessary.

  5. Paste the Service URL from the API gateway you added in PingOne Authorize into the Config.Service Url field.

    This is the full URL of the Ping Identity policy provider.

    Screen capture of ping-auth plugin configuration fields in Kong Manager.
  6. In the Config.Shared Secret field, enter the API gateway credential you created in PingOne Authorize.

    The gateway credential is the shared secret that authenticates the ping-auth plugin to PingOne Authorize. Version 1.2 of the plugin supports referenceable secrets. For security reasons, store the gateway credential in a vault supported by Kong. Learn more in Secrets Management and Environment Variables Vault in the Kong documentation.

  7. (Optional) Configure additional options in Kong Manager:

    Option API Field Name Description

    Config.Connection KeepAlive Ms

    connection_keepAlive_ms

    The duration to keep the connection alive for reuse. The default is 6000 milliseconds.

    Config.Connection Timeout Ms

    connection_timeout_ms

    The duration to wait before the connection times out. The default is 10000 milliseconds.

    Config.Enable Debug Logging

    enable_debug_logging

    Controls if requests and responses are logged at the debug level. The default is false.

    For log messages to show in the error.log, you must set log_level = debug in kong.conf.

    Config.Verify Service Certificate

    verify_service_certificate

    Controls whether the service certificate is verified. This is intended for testing purposes, and the default is true.

  8. Click Update, and then click Update Plugin.

Result

Kong Gateway is now configured to work with PingOne Authorize.

Next steps

Define a managed API service that represents your API so that PingOne Authorize can help your API gateway enforce access control. Learn more in Defining your API in PingOne Authorize.