summaryrefslogtreecommitdiff
path: root/coip/apps/saml2
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-04-02 17:11:00 +0200
committerLeif Johansson <leifj@sunet.se>2012-04-02 17:11:00 +0200
commit0939d94fac7b03b165acbc3e8a39ce20a1cfba7c (patch)
tree1b6ad89a1a1544b402f2be0a3524add71965fe80 /coip/apps/saml2
parent957cba741d40c259acf46d2151384f83a3a2b0a4 (diff)
foo
Diffstat (limited to 'coip/apps/saml2')
-rw-r--r--coip/apps/saml2/views.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/coip/apps/saml2/views.py b/coip/apps/saml2/views.py
index cb25d73..72486af 100644
--- a/coip/apps/saml2/views.py
+++ b/coip/apps/saml2/views.py
@@ -4,14 +4,12 @@ Created on Apr 2, 2012
@author: leifj
'''
-import re
from saml2 import server, BINDING_SOAP
-from saml2 import saml
from saml2 import soap
+from saml2 import config
import logging
from django.contrib.auth.models import User
from django.http import HttpResponse, HttpResponseBadRequest
-from saml2.config import Config
from saml2.metadata import entity_descriptor
from saml2.saml import NAME_FORMAT_URI
from django.conf import settings
@@ -50,7 +48,7 @@ def _config(request):
"url": request.build_absolute_uri("/"),
},
}
- return Config().load(c)
+ return config.Config().load(c)
def _aa_reply(aa, aq, user, sp_entityid):
consumer_url = aa.metadata.consumer_url(aq.issuer.text)
@@ -66,7 +64,7 @@ def _aa_reply(aa, aq, user, sp_entityid):
issuer=aa.conf.entityid)
def metadata(request):
- cnf = Config().load(_config(request), metadata_construction=True)
+ cnf = config.Config().load(_config(request), metadata_construction=True)
ed = entity_descriptor(cnf, 0)
return HttpResponse(content=ed,content_type="text/xml")