How to know the current apache authenticated user

2 views
Skip to first unread message

Maykel Moya

unread,
Jun 1, 2008, 11:27:47 PM6/1/08
to Django users
I'm running a Django site via apache2 + mod_python. I'm not using any
Django related authentication mechanism, just apache digest
authentication against a flat file.

I need to know what user is currently authenticated by apache. Some
people on #django have had point me to PythonAuthHandler but I
actually don't like to change the way the access to the site is
authenticated.

I'm thinking on a environment variable or alike that holds the
username that is currently authenticated to apache but Google and
docs/ had not been of much help.

Regards,
maykel

Ramiro Morales

unread,
Jun 2, 2008, 12:01:55 AM6/2/08
to django...@googlegroups.com
On Mon, Jun 2, 2008 at 12:27 AM, Maykel Moya <mo...@latertulia.org> wrote:
>
> I'm running a Django site via apache2 + mod_python. I'm not using any
> Django related authentication mechanism, just apache digest
> authentication against a flat file.
>
> [...]

>
> I'm thinking on a environment variable or alike that holds the
> username that is currently authenticated to apache but Google and
> docs/ had not been of much help.
>

You migh want to take a look at ticket [1]689 and one of latest patches
attached to it.

HTH.

--
Ramiro Morales

1. http://code.djangoproject.com/ticket/689

Reply all
Reply to author
Forward
0 new messages