From df7ff6df0795072e56a4147f908c41f557712a22 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 4 Mar 2013 06:40:13 +0100 Subject: post logout destroy shib session --- meetingtools/apps/auth/views.py | 2 +- meetingtools/settings.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meetingtools/apps/auth/views.py b/meetingtools/apps/auth/views.py index ff7a932..edff910 100644 --- a/meetingtools/apps/auth/views.py +++ b/meetingtools/apps/auth/views.py @@ -52,7 +52,7 @@ def _is_member_or_employee(user): def logout(request): auth.logout(request) post_logout= "/" - if hasattr(settings,'POST_LOGOUT'): + if hasattr(settings, 'POST_LOGOUT'): post_logout = settings.POST_LOGOUT return HttpResponseRedirect(post_logout) diff --git a/meetingtools/settings.py b/meetingtools/settings.py index c50947d..761e162 100644 --- a/meetingtools/settings.py +++ b/meetingtools/settings.py @@ -153,6 +153,8 @@ AUTH_PROFILE_MODULE = "userprofile.UserProfile" LOGIN_URL = '/saml2/sp/login/' LOGIN_REDIRECT_URL = "/rooms" +POST_LOGOUT = '/Shibboleth.sso/Logout' + AUTO_REMOTE_SUPERUSERS = ['leifj@nordu.net'] #try: -- cgit v1.1