Kong Gateway might return HTTP 502 when there is misconfiguration or miscommunication between the Ping Identity plugin for Kong Gateway and PingAuthorize Server.
The plugin for Kong Gateway logs warning messages to the Kong Gateway error log when it encounters problems communicating with PingAuthorize.
For more information, see Enabling error logging in Kong Gateway.
ping-authshared secret value in Kong Gateway to confirm it matches your PingAuthorize environment.
ping-authConfig.Shared Secret value doesn’t match the PingAuthorize sideband client's shared secret value, the Kong error log message might indicate that the plugin received an HTTP 401 error from PingAuthorize, which gets translated to a 5xx error sent to the API client. For example:
2022/03/28 16:19:49 [warn] 78#0: *85187 [lua] network_handler.lua:145: is_failed_request(): [ping-auth] Sideband request denied with status code 401: The Gateway Token is invalid
- If there is a shared secret mismatch, go to PingAuthorize Admin Console. in the
- Update the shared secret value for PingAuthorize.
Copy the value to the Config.Shared Secret field
in the Kong Gateway
ping-authConfig.Service URL value in Kong Gateway to confirm that it matches your PingAuthorize environment.
If the Config.Service URL value doesn’t contain the hostname and HTTPS Connection Handler port configured for your PingAuthorize server, the Kong error log message might indicate that the plugin received an invalid response from the server. For example:
2022/03/28 16:19:49 [error] 78#0: *90929 [lua] access.lua:114: handle_response(): [ping-auth] Unable to parse JSON body returned from policy provider. Error: Expected value but found T_END at character 1
If necessary, confirm that the values entered in the
Config.Service Url field of the
ping-authplugin in Kong Gateway correspond to the hostname and HTTPS Connection Handler port of your PingAuthorize server.
You can find this port number in the PingAuthorize Admin Console by going to .
- Update any mismatched values in Config.Service Url.
- If necessary, confirm that the values entered in the Config.Service Url field of the