apisix-ingress-controller
apisix-ingress-controller copied to clipboard
request help: missing user key in JWT token
Issue description
Our existing JWT token payload not contains key, due to we are getting error "missing user key in JWT token". Here Apache APISIX expects a specific key in the JWT payload, which is not present in our existing token.
Does Apache APISIX's jwt-auth plugin must requires the key value defined in the consumer ?
How to resolve this issue without modifying our existing token payload ?
bala@kubelancer ~ % curl -s -i -X GET "httpbin1.poc.kubelancer.net/get?foo1=bar1&foo2=bar2" -H "Authorization: Bearer ${TOKEN}"HTTP/1.1 401 UnauthorizedDate: Tue, 18 Jun 2024 12:54:08 GMTContent-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: APISIX/3.9.1
{"message":"missing user key in JWT token"}
bala@kubelancer ~ %
Environment
- your apisix-ingress-controller version (output of apisix-ingress-controller version --long):apache/apisix-ingress-controller:1.7.1
- your Kubernetes cluster version (output of kubectl version):Client Version: v1.27.3
- if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a):