summaryrefslogtreecommitdiff
path: root/coip/apps/saml2/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'coip/apps/saml2/conf.py')
-rw-r--r--coip/apps/saml2/conf.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/coip/apps/saml2/conf.py b/coip/apps/saml2/conf.py
new file mode 100644
index 0000000..4dc70d9
--- /dev/null
+++ b/coip/apps/saml2/conf.py
@@ -0,0 +1,42 @@
+'''
+Created on Apr 2, 2012
+
+@author: leifj
+'''
+
+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
+
+CONFIG={
+ "entityid" : "%s/saml2/entity" % PREFIX_URL,
+ "description": "COIP",
+ "service": {
+ "aa": {
+ "name" : "COIP",
+ "endpoints" : {
+ "attribute_service" : [("%s/aq" % PREFIX_URL, BINDING_SOAP)],
+ },
+ "policy": {
+ "default": {
+ "lifetime": {"minutes":15},
+ "attribute_restrictions": None, # means all I have
+ "name_form": NAME_FORMAT_URI
+ },
+ },
+ "subject_data": ("dict", {}),
+ }
+ },
+ "debug" : 1,
+ "key_file" : SAML_KEY,
+ "cert_file" : SAML_CERT,
+ "attribute_map_dir" : "%s/saml2/attributemaps" % BASE_DIR,
+ "metadata" : {
+ "local": ["%s/saml2/metadata/sp.xml" % BASE_DIR],
+ },
+ "organization": {
+ "display_name": "COIP",
+ "name": "COIP",
+ "url": PREFIX_URL,
+ },
+} \ No newline at end of file