aulisius / kong-plugin-upstream-auth-basic

Kong Plugin to add HTTP Basic Authentication to the upstream request header

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kong Upstream HTTP Basic Authentication (upstream-auth-basic)

Kong Plugin to add HTTP Basic Authentication to the upstream request header.

Compatible with Kong 2.0

Installation

  1. The Golang package manager must be installed.
  2. Kong must be Installed and you must be familiar with using and configuring Kong.
  3. Install the module upstream-auth-basic.
go build -buildmode=plugin github.com/aulisius/kong-plugin-upstream-auth-basic
  1. Add the custom plugin while starting Kong
-e "KONG_PLUGINS=bundled,upstream-auth-basic"
  1. Restart kong

Plugin Fields

The plugin accepts the following fields.

Name Type Required Description
username text true The username to send in the Authorization header to the upstream service
password text false The password to send in the Authorization header to the upstream service

About

Kong Plugin to add HTTP Basic Authentication to the upstream request header

License:MIT License


Languages

Language:Go 100.0%