diff options
Diffstat (limited to 'coip/apps/saml2/conf.py')
-rw-r--r-- | coip/apps/saml2/conf.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/coip/apps/saml2/conf.py b/coip/apps/saml2/conf.py index 4dc70d9..8e9cf34 100644 --- a/coip/apps/saml2/conf.py +++ b/coip/apps/saml2/conf.py @@ -6,16 +6,16 @@ Created on Apr 2, 2012 from saml2 import BINDING_SOAP from saml2.saml import NAME_FORMAT_URI -from coip.settings import PREFIX_URL, SAML_CERT, SAML_KEY, BASE_DIR, METADATA +from django.conf import settings CONFIG={ - "entityid" : "%s/saml2/entity" % PREFIX_URL, + "entityid" : "%s/saml2/entity" % settings.PREFIX_URL, "description": "COIP", "service": { "aa": { "name" : "COIP", "endpoints" : { - "attribute_service" : [("%s/aq" % PREFIX_URL, BINDING_SOAP)], + "attribute_service" : [("%s/aq" % settings.PREFIX_URL, BINDING_SOAP)], }, "policy": { "default": { @@ -28,15 +28,15 @@ CONFIG={ } }, "debug" : 1, - "key_file" : SAML_KEY, - "cert_file" : SAML_CERT, - "attribute_map_dir" : "%s/saml2/attributemaps" % BASE_DIR, + "key_file" : settings.SAML_KEY, + "cert_file" : settings.SAML_CERT, + "attribute_map_dir" : "%s/saml2/attributemaps" % settings.BASE_DIR, "metadata" : { - "local": ["%s/saml2/metadata/sp.xml" % BASE_DIR], + "local": ["%s/saml2/metadata/sp.xml" % settings.BASE_DIR], }, "organization": { "display_name": "COIP", "name": "COIP", - "url": PREFIX_URL, + "url": settings.PREFIX_URL, }, }
\ No newline at end of file |