As a convenience for the users on our internal network, I'm trying to detect their windows user id for a web site. I know it's pretty easy with .Net, but I'd really like to not use .Net. I found this example using PHP and I'd like to do exactly this except in Django.
I'm using Django 1.5.5 and I've been looking for the values in request.meta['HTTP_AUTHORIZE'], but that header doesn't seem to exist.
Relevant section of my settings
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.RemoteUserMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.RemoteUserBackend',
)
And I've added
WSGIPassAuthorization On
to my apache server, running on linux.
At this point, I'm at a loss of what to do.
Thanks in advance for any help.