ernestofreyreg / kong-plugin-deviceuid

A Kong plugin that will add a sticky deviceuid cookie to all request

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kong-plugin-deviceuid

A Kong plugin that will add a sticky deviceuid cookie to all requests

How it works

When enabled, this plugin will add a "deviceuid" cookie to all requests and it will persist the value making this user traceable.

Install

Install luarocks and run the following command

luarocks install kong-plugin-deviceuid

Configuration

Configuring the plugin is straightforward, you can add it on top of an API by executing the following request on your Kong server:

curl -X POST http://localhost:8001/apis/{api_id}/plugins \
--data "name=deviceuid" \
--data "config.cookie_name=deviceuid"
form parameter required description
name required The name of the plugin to use, in this case: deviceuid
cookie_name optional The name of the cookie you want to use, by default deviceuid

About

A Kong plugin that will add a sticky deviceuid cookie to all request


Languages

Language:Lua 100.0%