{"repo":"TimWolla/haproxy-auth-request","free":true,"listed":false,"github":"https://github.com/TimWolla/haproxy-auth-request","clone":"git clone https://github.com/TimWolla/haproxy-auth-request.git","description":"auth-request allows you to add access control to your HTTP services based on a subrequest to a configured HAProxy backend.","language":"Lua","stars":168,"topics":["haproxy","haproxy-lua","http","lua-script","subrequests","authentication","authentication-service"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"auth-request auth-request allows you to add access control to your HTTP services based on a subrequest to a configured HAProxy backend. The workings of this Lua script are loosely based on the [ngx http auth request module] module for nginx. Requirements - HAProxy 1.8.4+ (2.2.0+ recommended) - Only the latest version of each HAProxy branch is supported. - USE LUA=1 must be set at compile time. - [haproxy-lua-http] must be available within the Lua path. - A json library within the Lua path (dependency of haproxy-lua-http). - With HAProxy 2.1.3+ you can use the [ lua-prepend-path ] configuration option to specify the search path. Usage 1. Load this Lua script in the global section of your haproxy.cfg : 2. Define a backend that is used for the subrequests: 3. Execute the subrequest in your frontend (as early as possible): 4. Act on the results: Parameters The scripts receive a list of parameters used to build the authentication request: Backend name : is the name of an HAProxy backend. See the Inner Workings section. Path to request : the request URL sent to the auth-request backend. The following parameters are only available in the auth-intercept script: Method : the HTTP method that should be used. Use an asterisk to ask auth-intercept to copy the same method used by the client. auth-request uses the HEAD method. Headers to copy on Request : a comma-separated list of a simplified glob pattern that should match the HTTP header names to copy from the client to the auth-intercep","default_branch":null,"files":null,"tree":[],"storefront":"/r/TimWolla","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/TimWolla/haproxy-auth-request/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}