Open bakuppus opened 3 months ago
Yes , key is required https://apisix.apache.org/docs/apisix/plugins/jwt-auth/
I am also getting the same issue. Our jwt tokens has sub
as a key for user_id. Where can i set this key when enabling jwt-auth
plugin for routes.
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 ?
Environment
apisix version
):uname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):