https://github.com/ernestofreyreg/kong-plugin-deviceuid
A Kong plugin that will add a sticky deviceuid cookie to all request
https://github.com/ernestofreyreg/kong-plugin-deviceuid
cookie kong kong-plugin lua uuid
Last synced: 20 days ago
JSON representation
A Kong plugin that will add a sticky deviceuid cookie to all request
- Host: GitHub
- URL: https://github.com/ernestofreyreg/kong-plugin-deviceuid
- Owner: ernestofreyreg
- Created: 2017-05-25T20:57:29.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-26T05:37:02.000Z (almost 9 years ago)
- Last Synced: 2025-03-27T21:27:35.964Z (about 1 year ago)
- Topics: cookie, kong, kong-plugin, lua, uuid
- Language: Lua
- Size: 9.77 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
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`