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 2022/09/19 01:45:08 UTC

[GitHub] [apisix] wulinghui commented on issue #7924: help request: jwt-auth token

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

   http code码是 401  内容是 {"message":"failed to verify jwt"}
   
   我看是这里出现的问题。
   https://github.com/apache/apisix/blob/9129572f6302300ddeee3f2234393445d8ead781/apisix/plugins/jwt-auth.lua#L405
   ```lua
       if not jwt_obj.verified then
           core.log.warn("failed to verify jwt: ", jwt_obj.reason)
           return 401, {message = "failed to verify jwt"}
       end
   ```
   
   我没有看到具体的对应的warn日志,
   日志配置是默认的。
    
   这2个`access.log  error.log` 日志文件中都有warn的日志级别,但是没有和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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org