How to use Lua scripts in filters

Our micro service system does not use JWT, so I want to add a filter to ingress and request our authentication service in the filter. Who has ever done this? Is there an example?

thanks ~ :grinning: :grinning: