diff options
Diffstat (limited to 'coip/apps/saml2/views.py')
-rw-r--r-- | coip/apps/saml2/views.py | 8 |
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") |