You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/10/21 19:44:23 UTC
[GitHub] [apisix] bisakhmondal commented on issue #4241: request help: when add jwt-auth plugin to a service/route,jwt token must contain "key" claim。
bisakhmondal commented on issue #4241:
URL: https://github.com/apache/apisix/issues/4241#issuecomment-948947962
Hi @spacewander, could you please summarize the requirements here?
I created a consumer with the following config;
```json
{
"username":"test",
"plugins": {
"jwt-auth": {
"key": "application1",
"algorithm": "HS256",
"secret": "my-secret-key"
}
}
}
```
But the jwt I got from the following route (/apisix/plugin/jwt/sign?key=application1) without any external data extension has already a key claim.
jwt: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MzQ5MzE3ODAsImtleSI6ImFwcGxpY2F0aW9uMSJ9.XC5vuHIajGtB-GRHi-AweHYKRIeYiY-_FBMtGR8eOUY
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org