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 2020/03/19 08:54:14 UTC

[GitHub] [incubator-apisix] liujianri edited a comment on issue #1297: bug: jwt plugin make the request http StatusCode= 500

liujianri edited a comment on issue #1297: bug: jwt plugin make the request http StatusCode= 500
URL: https://github.com/apache/incubator-apisix/issues/1297#issuecomment-601060640
 
 
   这个问题 是因为在resty.jwt.lua 中取header中的alg时,是header.alg 这样取出来的,仔细看生成的jwt token 就能发现,生成jwt token 中的header 部分 header.alg 是nil的,注意是区分大小写的哦。
   正确的应该是 :
   `{
     "alg": "HS256",
     "typ": "JWT"
   }`
   错误的:
   `{
     "Alg": "HS256",
     "Typ": "JWT"
   }`
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services