From 30d53daaf8430d078ff78fc3c4761883fa40ce13 Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Sun, 23 Jan 2011 17:35:27 +0000 Subject: redirect to /myrpki/ after successful login via /accounts/login/ remove old http digest auth configuration svn path=/portal-gui/rpkigui/settings.py.in; revision=3642 --- portal-gui/rpkigui/settings.py.in | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/portal-gui/rpkigui/settings.py.in b/portal-gui/rpkigui/settings.py.in index d9ae3fb4..f369adbe 100644 --- a/portal-gui/rpkigui/settings.py.in +++ b/portal-gui/rpkigui/settings.py.in @@ -65,9 +65,6 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', - # uncomment if using apache basic/digest http auth - #'django.contrib.auth.middleware.RemoteUserMiddleware', - # order is important here. if csrfmidware is put before condgetmidware, # the returned pages get truncated for some reason! 'django.middleware.http.ConditionalGetMiddleware', @@ -102,10 +99,8 @@ TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.request" ) -# uncomment if using apache basic/digest http auth AUTHENTICATION_BACKENDS = ( - #'django.contrib.auth.backends.RemoteUserBackend', - 'django.contrib.auth.backends.ModelBackend', + 'django.contrib.auth.backends.ModelBackend', ) # Top of directory tree where rpki.conf, etc are stored for each @@ -114,3 +109,6 @@ MYRPKI_DATA_DIR = '@CONFDIR@' # Where to find the myrpki command line tool. MYRPKI = '@MYRPKI@' + +# where to redirect from /accounts/login/ after successful authentication +LOGIN_REDIRECT_URL = '/myrpki/' -- cgit v1.2.3