We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b2bf60 commit fbc0117Copy full SHA for fbc0117
k8s/kong-plugin-auth.yaml
@@ -6,11 +6,9 @@ metadata:
6
config:
7
access:
8
- |
9
- kong.log("Executing Auth Plugin.")
10
- local http = require "resty.http"
11
- local req = kong.request
+ kong.log.info("Executing Auth Plugin.")
12
13
- local user_id = req.get_header("X-User-ID")
+ local user_id = kong.request.get_header("X-User-ID")
14
if not user_id then
15
kong.log.err("Missing X-User-ID header")
16
return kong.response.exit(400, { message = "Missing user ID" })
0 commit comments