A Kong plugin that will add a sticky deviceuid cookie to all requests
When enabled, this plugin will add a "deviceuid" cookie to all requests and it will persist the value making this user traceable.
Install luarocks and run the following command
luarocks install kong-plugin-deviceuid
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 |