How to Use the Kong Gateway Key Authentication Plugin

How to Use the Kong Gateway Key Authentication Plugin

May 25, 2021

This tutorial will walk through a common use case for the Kong Gateway Key Authentication plugin: using API key authentication to protect a route to an API server endpoint. Install Kong Gateway: https://bit.ly/3rYb9SV Set up a Node.js Express API server with a single endpoint. (0:30) Set up Kong Gateway to sit in front of an upstream service: our API server. (2:30) Set up the Key Authentication plugin to protect the route by requiring a valid API key in the request header. If the user provides no key, they’ll receive a 401 Unauthorized response. (7:30) Use Kong to create a consumer (a valid user) and a credential (an API key). (10:30) Demonstrate that a request through Kong—if it includes a valid API key—is forwarded to our API server. (11:55)

Read the full tutorial blog post: https://bit.ly/3vkZS1v

The Kong Gateway Key Authentication Plugin provides a highly configurable API key management system that is simple to set up and quick to deploy. We're going to see the ease and power of this plugin in our walkthrough.

If you have any additional questions, post them on Kong Nation: https://discuss.konghq.com/

To stay in touch, join the Kong Community: https://bit.ly/3d1E8Bi

Once you’ve successfully set up Kong Gateway key authentication, you may find these other tutorials helpful:

#Microservices #APIgateway #APIs #Authentication