nginx_auth_mysql

agentzh agentzh at gmail.com
Tue Aug 10 06:58:03 MSD 2010


On Mon, Aug 9, 2010 at 8:23 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> You may want to try this one:
>
> http://mdounin.ru/hg/ngx_http_auth_request_module/
>
> It's non-blocking and you are free to code any
> authentication/authorization backend.
>

This auth_request module can now be combined with our ngx_lua module
and thus can be further combined with our ngx_drizzle module to access
mysql to do the actual lookup.

See the TEST 4 and TEST 5 cases in the ngx_lua module's test suite for
sample configurations to combine ngx_http_auth_request with ngx_lua:

    http://github.com/chaoslawful/lua-nginx-module/blob/master/t/5-throw.t#L55

And see the following example (TEST 14) to capture subrequests'
responses in Lua:

     http://github.com/chaoslawful/lua-nginx-module/blob/master/t/2-content.t#L233

Cheers,
-agentzh



More information about the nginx mailing list