1
+ from saml2 import BINDING_HTTP_REDIRECT
2
+ from saml2.saml import NAME_FORMAT_URI
3
+
4
+ BASE= "http://localhost:8087"
5
+ #BASE= "http://lingon.catalogix.se:8087"
6
+
7
+ CONFIG = {
8
+ "entityid": "%s/sp.xml" % BASE,
9
+ "description": "My SP",
10
+ "service": {
11
+ "sp": {
12
+ "name": "Rolands SP",
13
+ "endpoints": {
14
+ "assertion_consumer_service": [BASE],
15
+ "single_logout_service": [(BASE + "/slo",
16
+ BINDING_HTTP_REDIRECT)],
17
+ },
18
+ "required_attributes": ["surname", "givenname",
19
+ "edupersonaffiliation"],
20
+ "optional_attributes": ["title"],
21
+ }
22
+ },
23
+ "debug": 1,
24
+ "key_file": "pki/mykey.pem",
25
+ "cert_file": "pki/mycert.pem",
26
+ "attribute_map_dir": "./attributemaps",
27
+ "metadata": {"local": ["../idp2/idp.xml"]},
28
+ # -- below used by make_metadata --
29
+ "organization": {
30
+ "name": "Exempel AB",
31
+ "display_name": [("Exempel AB", "se"), ("Example Co.", "en")],
32
+ "url": "http://www.example.com/roland",
33
+ },
34
+ "contact_person": [{
35
+ "given_name":"John",
36
+ "sur_name": "Smith",
37
+ "email_address": ["
[email protected] "],
38
+ "contact_type": "technical",
39
+ },
40
+ ],
41
+ #"xmlsec_binary":"/opt/local/bin/xmlsec1",
42
+ "name_form": NAME_FORMAT_URI,
43
+ "logger": {
44
+ "rotating": {
45
+ "filename": "sp.log",
46
+ "maxBytes": 100000,
47
+ "backupCount": 5,
48
+ },
49
+ "loglevel": "debug",
50
+ }
51
+ }
0 commit comments