Opened 18 years ago

Closed 17 years ago

#4342 closed (duplicate)

Addition information about apache authentication via cookies to mod_python/auth docs

Reported by: cwurld@… Owned by: Jacob
Component: Documentation Version: dev
Severity: Keywords: authentication, mod_python, docs
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: yes
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,

In "Authenticating against Django’s user database from Apache" , you suggest that this might be useful for "Serve static/media files directly from Apache only to authenticated users." That sounds really great. Especially given all the dire warnings against serving static file through Django.

However, it seems that the way this code works is a user goes to get a file from a protected dir. Then Apache forces the user to give a username and password. After that, the request gets sent to the django mod_python handler, which then authenticates the entered username and password against the django auth system.

But I am guessing that most developers who want to serve secured static files, don't want the user to have to give apache a username and password. Rather, they would like the authentication to work like any other page in django.

This snippet explains how to solve this problem: http://www.djangosnippets.org/snippets/62/

The reason I think you should add this to the standard django docs is that I think noobs (like me) would run into the problem fairly frequently. And without a deep understanding of apache and mod_python, it is very hard to know what questions to ask to find the solution.

Thanks,
Chuck

Change History (2)

comment:1 by Simon G. <dev@…>, 17 years ago

Keywords: authentication mod_python docs added
Needs documentation: set
Summary: Addition to mod_python/auth docsAddition information about apache authentication via cookies to mod_python/auth docs
Triage Stage: UnreviewedDesign decision needed

comment:2 by Chris Beaven, 17 years ago

Resolution: duplicate
Status: newclosed

Dupe of #3583

Note: See TracTickets for help on using tickets.
Back to Top