Welcome! Log In Create A New Profile

Advanced

Re: [ANNOUNCE] auth request module 0.2

June 21, 2011 04:52PM
I actually got this working with the built-in memcache and userid modules. This is REALLY cool and I'm going to be re-thinking how to provide security/authentication in other projects using this approach. Thanks for the quick feedback and your hard work Maxim.

Here's a snippet of my configuration:

server {
...
auth_request /auth;

location = /auth {
auth_request off;
set $memcached_key sso$cookie_uid;
memcached_pass mmc:11211;
error_page 404
=403 /login.html;
}
location = /login.php {
auth_request off;
# fastcgi_param
fastcgi_pass unix:/var/lib/php.sock;
}
...
}

Note: this example uses PHP/FastCGI instead of proxy_pass.
Subject Author Posted

[ANNOUNCE] auth request module 0.2

Maxim Dounin March 24, 2010 12:16PM

Re: [ANNOUNCE] auth request module 0.2

adamchal June 21, 2011 10:43AM

Re: [ANNOUNCE] auth request module 0.2

Maxim Dounin June 21, 2011 01:02PM

Re: [ANNOUNCE] auth request module 0.2

adamchal June 21, 2011 02:00PM

Re: [ANNOUNCE] auth request module 0.2

adamchal June 21, 2011 04:52PM

Re: [ANNOUNCE] auth request module 0.2

Maxim Dounin June 21, 2011 02:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 73
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready