hnlzwaq opened a new issue, #7490:
URL: https://github.com/apache/apisix/issues/7490

   ### Current Behavior
   
   对public-key进行了各种设置,都无法离线验证jwt token
   第一种直接设置公钥,不行
   第二种在公钥前后增加 -----BEGIN PUBLIC KEY----- ,还是不行
   第三种对公钥做base64转换还是不行 
   
   ### Expected Behavior
   
   我期望设置一个公钥字符串就可以验证通过,可是怎么样都不行 
   
   希望作者对public_key有明确的定义说明 
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   最后的解决办法是,
   增加了一个 "public_key_from_odic": true, 替换了"public_key"参数,
   同时修改了 脚本 openid-connect.lua 中的第182行    if conf.public_key_from_odic then ,
   目前公钥从openId-connect中心获取,完美解决问题 
   
   
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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