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
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from saml2.config import Config
sp1 = {
"entityid" : "urn:mace:umu.se:saml:roland:sp",
"service": {
"sp": {
"url" : "http://lingon.catalogix.se:8087/",
"name": "test",
}
},
"key_file" : "tests/mykey.pem",
"cert_file" : "tests/mycert.pem",
"xmlsec_binary" : "/opt/local/bin/xmlsec1",
"metadata": {
"local": ["tests/metadata.xml",
"tests/urn-mace-swami.se-swamid-test-1.0-metadata.xml"],
# "remote":{
# "edugain":{
# "url": "https://www.example.com/?id=edugain&set=saml2",
# "cert": "./edugain.pem",
# }
# }
},
"idp" : {
"entity_id": ["urn:mace:umu.se:saml:roland:idp"],
},
"virtual_organization" : {
"http://vo.example.org/biomed":{
"nameid_format" : "urn:oid:2.16.756.1.2.5.1.1.1-NameID",
"common_identifier": "swissEduPersonUniqueID",
}
}
}
def test_1():
c = Config()
c.load(sp1)
|