1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
'''
Created on Apr 2, 2012
@author: leifj
'''
from saml2 import BINDING_SOAP
from saml2.saml import NAME_FORMAT_URI
from django.conf import settings
CONFIG={
"entityid" : "%s/saml2/entity" % settings.PREFIX_URL,
"description": "COIP",
"service": {
"aa": {
"name" : "COIP",
"endpoints" : {
"attribute_service" : [("%s/aq" % settings.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" : settings.SAML_KEY,
"cert_file" : settings.SAML_CERT,
"attribute_map_dir" : "%s/saml2/attributemaps" % settings.BASE_DIR,
"metadata" : {
"local": ["%s/saml2/metadata/sp.xml" % settings.BASE_DIR],
},
"organization": {
"display_name": "COIP",
"name": "COIP",
"url": settings.PREFIX_URL,
},
}
|