1.0
[auf_django_saml.git] / auf / django / saml / middleware.py
CommitLineData
aa2ccaae
OL
1# -*- coding: utf-8 -*-
2
3from django.contrib.auth.middleware import RemoteUserMiddleware
4from auf.django.saml import settings
5
6class SPMiddleware(RemoteUserMiddleware):
7
8 def process_request(self, request):
9 if not settings.SAML_AUTH:
10 return
11 return super(SPMiddleware, self).process_request(request)