1.8
[auf_django_saml.git] / auf / django / saml / admin.py
1 # -*- coding: utf-8 -*-
2
3 from views import redirect_to_login, redirect_to_logout
4 from django.contrib.admin import site
5
6 def saml_login(request, extra_context=None):
7 return redirect_to_login(request)
8
9 def saml_logout(request, extra_context=None):
10 return redirect_to_logout(request)
11
12 # on recable runtime les fonctions qui prennent en charge
13 # l'authentification pour communiquer avec l'IdP
14 site.login = saml_login
15 site.logout = saml_logout
16