djangosnippets.org: Latest snippets posted by cmehttps://djangosnippets.org/users/cme/2008-10-23T03:46:50.530779-05:00cmeSimple FastCGI authorizer view
2008-10-23T03:46:50.530779-05:00cmehttps://djangosnippets.org/snippets/1150/<p>This is a basic view for a FastCGI authorizer against the Django auth. The idea is to return either a blank response with REMOTE_USER set on success, a forbidden response for failure, or a redirect to a login page when no user is logged in.</p>
<p>I use this view for …</p>
Freely redistributableRun Django as a FastCGI authorizer
2008-10-23T03:36:38.184924-05:00cmehttps://djangosnippets.org/snippets/1149/<p>I use this as the FastCGI script for authorizers with lighttpd (though I guess it should work with little change on any other webserver supporting FastCGI). I point it to the same Django project/settings as the normal responder script.</p>
<p>As I use it to gate access to pages not served …</p>
Freely redistributable