apisix icon indicating copy to clipboard operation
apisix copied to clipboard

help request: LUA Plugin or Openid-Connect-Cookie support

Open spamokm opened this issue 3 years ago • 3 comments

Description

Hello,

I have a JWT token stored in cookie called JWT. It is present at a request to a route, which is protected by an openid-connect plugin. The plugin only accepts a jwt in the authorization header, so my requests are failing. (If I call them manually iwth an authorization header they are completed successfully)

SO I can request a change for the openId plugin or I create a clone of it (calling it openid-connect-cookie) and add it to my apisix instance.

But here I am struggling as well, how do I add a custom lua plugin with a helm chart. I didn't get it hot to use the config map. Is there a "how to" available or can someone guide me? Apisix is installed via Helm to a kubernetes cluster

Which approach is the preferred one own plugin or creating a feature request?

Thank you Oliver

Environment

  • APISIX version (run apisix version): 2.14.1
  • Operating system (run uname -a): 18.04.1-Ubuntu
  • OpenResty / Nginx version (run openresty -V or nginx -V): nginx version: openresty/1.19.9.1
  • 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):

spamokm avatar Jul 27 '22 11:07 spamokm

We may extend the oidc plugin in terms of the token position. Just like other auth plugins.

tokers avatar Jul 28 '22 01:07 tokers

We may extend the oidc plugin in terms of the token position. Just like other auth plugins.

yes, in fact, lua-resty-openid lib support to get JWT from cookie.

tzssangglass avatar Jul 28 '22 04:07 tzssangglass

Great news, should I raise a feature request for the openId-Connect plugin?

edit: Raised a feature reuest as you can see below

spamokm avatar Jul 28 '22 05:07 spamokm

This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Jul 17 '23 10:07 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Aug 01 '23 10:08 github-actions[bot]