Kong Key Auth Plugin
irobust Apr 23rd, 2019 (edited) 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- 1. Add Key Auth plugin
- curl -X POST http://localhost:8001/plugins
- 2. Add consumers
- curl -X POST http://localhost:8001/consumers
- 3. Generate Key
- curl -X POST http://localhost:8001/consumers/john/key-auth
- 4. Get generated key
- curl -X GET http://localhost:8001/consumers/john/key-auth
- 5. Add apiKey header
- curl -X GET http://locahost:8000/api/v1/products --header="apiKey=<Get API KEY from previous step>"
RAW Paste Data