[mod_python] Using mod_python for auth only

Graham Dumpleton grahamd at dscpl.com.au
Fri Dec 16 16:22:42 EST 2005


On 16/12/2005, at 7:00 PM, Deron Meranda wrote:

> On 12/15/05, Graham Dumpleton <grahamd at dscpl.com.au> wrote:
>
>> The mod_python authentication handler will not be called
>> by default though, the Apache configuration has to be such as to
>> cause it to be triggered. This generally requires AuthType directive,
>> plus Require directive.
>>
>
> If you don't want to get Apache's Auth* directives involved,
> you can use the PythonAccessHandler instead.  That request
> phase occurs between the authentication and fixup phases,
> and is called regardless of any require directives.  It's a bit
> cheating, since authentication is not exactly the purpose of
> that phase, but you can still use it as such with some
> restrictions.

I believe the access handler is actually called prior to authentication.

   http://httpd.apache.org/docs/2.0/developer/request.html

Sorry for being pedantic, but always like to see correct details posted
since this all gets archived for later searching... ;-)

Graham




More information about the Mod_python mailing list