diff options
Diffstat (limited to 'portal-gui/rpkigui')
-rw-r--r-- | portal-gui/rpkigui/myrpki/views.py | 5 | ||||
-rw-r--r-- | portal-gui/rpkigui/settings.py.in | 13 |
2 files changed, 9 insertions, 9 deletions
diff --git a/portal-gui/rpkigui/myrpki/views.py b/portal-gui/rpkigui/myrpki/views.py index 731e7d56..674d5af1 100644 --- a/portal-gui/rpkigui/myrpki/views.py +++ b/portal-gui/rpkigui/myrpki/views.py @@ -555,4 +555,9 @@ def upload_myrpki_xml(request, self_handle): return serve_file(self_handle, 'myrpki.xml', 'application/xml') +# apache is configured to set REMOTE_USER when the user visits /accounts/login/ +# simply redirect to the dashboard page since the user will already be logged in +def login(request): + return http.HttpResponseRedirect('/myrpki/') + # vim:sw=4 ts=8 expandtab diff --git a/portal-gui/rpkigui/settings.py.in b/portal-gui/rpkigui/settings.py.in index e8bf2b7e..5a2c5ebc 100644 --- a/portal-gui/rpkigui/settings.py.in +++ b/portal-gui/rpkigui/settings.py.in @@ -67,7 +67,7 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.auth.middleware.AuthenticationMiddleware', # uncomment if using apache basic/digest http auth - #'django.contrib.auth.middleware.RemoteUserMiddleware', + 'django.contrib.auth.middleware.RemoteUserMiddleware', # order is important here. if csrfmidware is put before condgetmidware, # the returned pages get truncated for some reason! @@ -104,14 +104,9 @@ TEMPLATE_CONTEXT_PROCESSORS = ( ) # uncomment if using apache basic/digest http auth -#AUTHENTICATION_BACKENDS = ( -# 'django.contrib.auth.backends.RemoteUserBackend', -#) - -# -# RPKI GUI specific -# -LOGIN_REDIRECT_URL='/myrpki/' +AUTHENTICATION_BACKENDS = ( + 'django.contrib.auth.backends.RemoteUserBackend', +) # Top of directory tree where myrpki.conf, etc are stored for each # resource holder. |