From 675b5f5e111061e4bdad37d8724d77cd25a02575 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 5 Apr 2012 13:03:02 +0200 Subject: djangosaml2 --- coip/apps/saml2/views.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'coip/apps/saml2/views.py') diff --git a/coip/apps/saml2/views.py b/coip/apps/saml2/views.py index f109094..1055644 100644 --- a/coip/apps/saml2/views.py +++ b/coip/apps/saml2/views.py @@ -15,12 +15,7 @@ from saml2.saml import NAME_FORMAT_URI from django.conf import settings from django.views.decorators.csrf import csrf_exempt from saml2.request import AttributeQuery - -def get_full_path(request,path=None): - if path == None: - path = request.path - full_path = ('http', ('', 's')[request.is_secure()], '://', request.META['HTTP_HOST'], path) - return ''.join(full_path) +from coip.utils import get_full_path def _config(request): host = request.get_host().replace(":","-") -- cgit v1.1