apisix icon indicating copy to clipboard operation
apisix copied to clipboard

request help: how to get username of key-auth in my Lua script

Open cverdela opened this issue 5 years ago • 2 comments

Issue description

how to get username of key-auth in my Lua script i want Routing path = username

Environment

  • apisix version (cmd: apisix version):
  • OS:

cverdela avatar Dec 07 '20 01:12 cverdela

Take a look at https://github.com/apache/apisix/blob/c41aa8534a18f43ef0c3cd6780f106595f9f9b88/apisix/plugins/key-auth.lua#L91-L99

spacewander avatar Dec 07 '20 01:12 spacewander

Consider solved as the author didn't reply.

spacewander avatar Dec 14 '20 10:12 spacewander