Kong Plugin to add HTTP Basic Authentication to the upstream request header.
Compatible with Kong 2.0
- The Golang package manager must be installed.
- Kong must be Installed and you must be familiar with using and configuring Kong.
- Install the module upstream-auth-basic.
go build -buildmode=plugin github.com/aulisius/kong-plugin-upstream-auth-basic
- Add the custom plugin while starting Kong
-e "KONG_PLUGINS=bundled,upstream-auth-basic"
- Restart kong
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 |