aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--portal-gui/rpkigui/settings.py.in10
1 files 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/'