From decd5ab4a65a74ff8d6504ef770070b519597f8c Mon Sep 17 00:00:00 2001 From: Jan Krcmar Date: Tue, 22 Dec 2015 09:48:54 +0100 Subject: [PATCH] add remoteuser auth middleware classes --- webvirtcloud/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webvirtcloud/settings.py b/webvirtcloud/settings.py index a163fa3..d8e8906 100644 --- a/webvirtcloud/settings.py +++ b/webvirtcloud/settings.py @@ -38,11 +38,16 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.auth.middleware.RemoteUserMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ) +AUTHENTICATION_BACKENDS = ( + 'django.contrib.auth.backends.RemoteUserBackend', +) + ROOT_URLCONF = 'webvirtcloud.urls' WSGI_APPLICATION = 'webvirtcloud.wsgi.application'