You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Devraj Mukherjee <de...@gmail.com> on 2011/10/05 02:51:14 UTC
[users@httpd] Can Basic authentication (or equivalent) ask a script to perform the authentication?
Hi all,
We have a largish application written in Python / MySQL running under
Apache 2.2.x + mod_wsgi (Ubuntu 11.04).
Part of the application requires us to deliver large number of
documents to each user. Problem being each user has different levels
of access (based on roles they have in an application).
I hate the idea of having my app generate .htaccess files (like what a
lot of popular CMSes do), or streaming the file through a script
(would undermine performance).
I have looked into using mod_auth_mysql which could do the
authentication part, but authorization would be an issue due to the
complex rules of our app.
Is it possible to configure Apache to ask a script to perform the
authentication / authorization but allow Apache to serve the content?
Thanks.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Can Basic authentication (or equivalent) ask a
script to perform the authentication?
Posted by Devraj Mukherjee <de...@gmail.com>.
On Wed, Oct 5, 2011 at 4:15 PM, Ben Timby <bt...@gmail.com> wrote:
> On Tue, Oct 4, 2011 at 8:51 PM, Devraj Mukherjee <de...@gmail.com> wrote:
>> Is it possible to configure Apache to ask a script to perform the
>> authentication / authorization but allow Apache to serve the content?
>
> Yes, with mod_wsgi even.
>
> http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms
>
Thanks very much for pointing that out.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Can Basic authentication (or equivalent) ask a
script to perform the authentication?
Posted by Ben Timby <bt...@gmail.com>.
On Tue, Oct 4, 2011 at 8:51 PM, Devraj Mukherjee <de...@gmail.com> wrote:
> Is it possible to configure Apache to ask a script to perform the
> authentication / authorization but allow Apache to serve the content?
Yes, with mod_wsgi even.
http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org