#3583: cookie-based modpython / apache authentication
-----------------------------------------------+----------------------------
   Reporter:  midfield <[EMAIL PROTECTED]>    |                Owner:  jacob    
    
     Status:  new                              |            Component:  
Uncategorized
    Version:  SVN                              |           Resolution:          
     
   Keywords:  authentication modpython apache  |                Stage:  
Accepted     
  Has_patch:  0                                |           Needs_docs:  0       
     
Needs_tests:  0                                |   Needs_better_patch:  0       
     
-----------------------------------------------+----------------------------
Comment (by anonymous):

 I wrote a little PythonAccessHandler tightly based on the authhandler
 mentioned. I don't think you can use the PythonAuthHandler, because that
 needs all the authentication stuff from apache and I haven't found a way
 to surpress the prompt.
 There is a lot of overhead in the current implementation, as all request
 middleware components are applied, but only session and authentication
 middleware would be needed.
 I use this apache configuration for the access control:
 {{{
 <Location "/images/full">
             SetHandler python-program
             PythonPath "['/path/to/proj/'] + sys.path"
             PythonOption DJANGO_SETTINGS_MODULE myproj.settings
             PythonDebug On
 
             PythonOption DjangoPermissionName '<permission.codename>'
             PythonAccessHandler my_proj.modpython
 </Location>
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3583#comment:3>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to