Auth_request using lua script


Hi I am trying to achieve something like ngx_http_auth_request_module.

I followed this TimWolla/haproxy-auth-request. It works fine with haproxy 1.8.4. But I am getting following error for haproxy 1.7.10:

[ALERT] 071/113202 (13139) : parsing [haproxy.conf:2] : lua runtime error: /usr/share/haproxy/auth-request.lua:56: 'register_action' needs 3 arguments

Is there any workaround to make to it work in haproxy 1.7.10 ? Or any alternative to this lua script ?