Resources
  • eBooks
  • Reports
  • Case Studies
  • Demos
  • Videos
  • Value Calculator
  • Home
  • Resources
  • Videos
  • How to Use the Kong Gateway Key Authentication Plugin
Video

How to Use the Kong Gateway Key Authentication Plugin

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.

1. Set up a Node.js Express API server with a single endpoint. (0:30)

2. Set up Kong Gateway to sit in front of an upstream service: our API server. (2:30)

3. 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)

4. Use Kong to create a consumer (a valid user) and a credential (an API key). (10:30)

5. 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.

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.

To stay in touch, join the Kong Community.

Topics:API Authentication
|
API Gateway
|
Kong Gateway
Powering the API world

Increase developer productivity, security, and performance at scale with the unified platform for API management, AI gateways, service mesh, and ingress controller.

Sign up for Kong newsletter

Platform
Kong KonnectKong GatewayKong AI GatewayKong InsomniaDeveloper PortalGateway ManagerCloud GatewayGet a Demo
Explore More
Open Banking API SolutionsAPI Governance SolutionsIstio API Gateway IntegrationKubernetes API ManagementAPI Gateway: Build vs BuyKong vs PostmanKong vs MuleSoftKong vs Apigee
Documentation
Kong Konnect DocsKong Gateway DocsKong Mesh DocsKong AI GatewayKong Insomnia DocsKong Plugin Hub
Open Source
Kong GatewayKumaInsomniaKong Community
Company
About KongCustomersCareersPressEventsContactPricing
  • Terms•
  • Privacy•
  • Trust and Compliance
  • © Kong Inc. 2025