Verifying the connection
About this task
You can verify the connection between PingAccess and Kong Gateway by making an end-to-end request. To do so, first create an application for Kong in PingAccess.
This procedure contains only information that’s specific to creating a working Kong Gateway connection. Learn more about configuration settings outside the scope of this procedure in Adding an application and Application field descriptions. |
Steps
-
In the PingAccess admin console, go to Applications > Applications and click Add Application.
-
In the Name, Context Root, and Virtual Host(s) fields, enter information matching how the application APIs are exposed.
-
In the Application Type list, select API.
-
In the Destination list, select Sideband.
-
In the Sideband Client list, select the sideband client you created for Kong in Configuring PingAccess for Kong Gateway integration.
-
Select the Enabled checkbox to allow the application to process requests.
-
After you’ve finished filling out the configuration, click Save.
Troubleshooting:
-
If the requests aren’t going through to the backend service as expected, debug logging can give a detailed breakdown of the request/response flow through Kong. To enable Kong debug logging:
-
In the
ping-auth
config, setenable_debug_logging
to true. -
In the
kong.conf
file, setlog_level = debug
.
These messages might contain sensitive request information and accumulate disk space, so you should disable debug logging after troubleshooting. -
-
The
pingaccess.log
on the PingAccess engine node can also provide useful debugging data. You can find information about how to access and interpret the PingAccess logs in Log configuration.
Next steps
After you create the application, you can assign rules to it to control access to APIs protected by the Kong gateway. Learn more about configuring rules in Rule management.