summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-04-02 16:13:00 +0200
committerLeif Johansson <leifj@sunet.se>2012-04-02 16:13:00 +0200
commit39f1b3244e7779b611b54223095ef586938f01c4 (patch)
treec4bc6fb81074b93ff1fe5c014cf1c54b34d1cacd
parentf939426fc32edb41be77c28d94c020a8fbc6c1bd (diff)
djangonic settings
-rw-r--r--coip/apps/saml2/conf.py16
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