Skip to content

bug: error configuring public_key in openid-connect plugin #7490

Open
@hnlzwaq

Description

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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    • Status

      📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions