-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help request: missing user key in JWT token #11365
Comments
Yes , key is required |
I am also getting the same issue. Our jwt tokens has |
hey @TheShubhendra, have you solved this problem? I got the same issue |
@untilyou2605 I have added a key field to the JWT payload. In the consumer configuration, you need to specify the value of the key that the For example, if you have two types of API consumers—user and admin: The JWT for a user should include When creating consumers in APISIX: |
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
):The text was updated successfully, but these errors were encountered: