wulinghui commented on issue #7924:
URL: https://github.com/apache/apisix/issues/7924#issuecomment-1248823047

   谢谢。的确是这个问题。但是我发现了新的问题。
   生成的JWT代码:
   ```
           Map<String,Object> map = new HashMap<>();
           map.put("key","foo");
           map.put("exp","1879318541"); // 该时间是固定写死的,测试一下。
           String token = JWTUtil.createToken(map, "my-secret-key".getBytes());
   ```
   apisix消费者配置:
   ```
   {
     "username": "jwt_foo",
     "plugins": {
       "jwt-auth": {
         "algorithm": "HS256",
         "base64_secret": false,
         "exp": 86400,
         "key": "foo",
         "secret": "my-secret-key"
       }
     }
   }
   ```
   
   
   页面报错:
   `{"message":"failed to verify jwt"}` 
   
   请问除了这2个还有啥需要校验吗?
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to