Creating an API application
About this task
To verify the connection by making an end-to-end request:
Steps
-
In PingAccess, create an application for Kong.
For more information, see Adding an application.
-
Go to Applications → Applications and click Add Application.
-
Enter the Name, Context Root, and Virtual Host(s) information to match how the application APIs are exposed.
-
In the Destination list, select Sideband.
-
In the Sideband Client list, select the sideband client you created for Kong. 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. In the
ping-auth
config, setenable_debug_logging
to true, and setlog_level = debug
inkong.conf
. 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 node can also provide useful debugging data. For more information, see 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. See Rule management for more information about configuring rules.