Commit a5a6b1f3 by x

Log shibboleth logins

parent 8c181d28
......@@ -20,6 +20,9 @@ from django.views.decorators.http import *
from django.views.generic import *
from one.models import *
import django.contrib.auth as auth
import logging
logger = logging.getLogger(__name__)
SHIB_ATTRIBUTE_MAP = {
......@@ -73,5 +76,7 @@ def login(request):
user.backend = 'django.contrib.auth.backends.ModelBackend'
auth.login(request, user)
logger.warning("Shib login with %s" % request.META)
return redirect('/')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment