|
| 1 | +from pathutils import full_path |
| 2 | +from pathutils import xmlsec_path |
| 3 | + |
| 4 | +CONFIG = { |
| 5 | + "entityid": "urn:mace:example.com:saml:roland:sp", |
| 6 | + "name": "urn:mace:example.com:saml:roland:sp", |
| 7 | + "description": "My own SP", |
| 8 | + "service": { |
| 9 | + "sp": { |
| 10 | + "endpoints": { |
| 11 | + "assertion_consumer_service": [ |
| 12 | + "http://lingon.catalogix.se:8087/"], |
| 13 | + }, |
| 14 | + "required_attributes": ["surName", "givenName", "mail"], |
| 15 | + "optional_attributes": ["title"], |
| 16 | + "idp": ["urn:mace:example.com:saml:roland:idp"], |
| 17 | + "requested_attributes": [ |
| 18 | + { |
| 19 | + "name": "http://eidas.europa.eu/attributes/naturalperson/DateOfBirth", |
| 20 | + "required": False, |
| 21 | + }, |
| 22 | + { |
| 23 | + "friendly_name": "PersonIdentifier", |
| 24 | + "required": True, |
| 25 | + }, |
| 26 | + { |
| 27 | + "friendly_name": "PlaceOfBirth", |
| 28 | + }, |
| 29 | + ], |
| 30 | + "sp_type": "public", |
| 31 | + "sp_type_in_metadata": False, |
| 32 | + "force_authn": True, |
| 33 | + "node_country": "GR" |
| 34 | + } |
| 35 | + }, |
| 36 | + "debug": 1, |
| 37 | + "key_file": full_path("test.key"), |
| 38 | + "cert_file": full_path("test.pem"), |
| 39 | + "encryption_keypairs": [{"key_file": full_path("test_1.key"), "cert_file": full_path("test_1.crt")}, |
| 40 | + {"key_file": full_path("test_2.key"), "cert_file": full_path("test_2.crt")}], |
| 41 | + "ca_certs": full_path("cacerts.txt"), |
| 42 | + "xmlsec_binary": xmlsec_path, |
| 43 | + "metadata": [{ |
| 44 | + "class": "saml2.mdstore.MetaDataFile", |
| 45 | + "metadata": [(full_path("idp.xml"), ), (full_path("vo_metadata.xml"), )], |
| 46 | + }], |
| 47 | + "virtual_organization": { |
| 48 | + "urn:mace:example.com:it:tek": { |
| 49 | + "nameid_format": "urn:oid:1.3.6.1.4.1.1466.115.121.1.15-NameID", |
| 50 | + "common_identifier": "umuselin", |
| 51 | + } |
| 52 | + }, |
| 53 | + "subject_data": "subject_data.db", |
| 54 | + "accepted_time_diff": 60, |
| 55 | + "attribute_map_dir": full_path("attributemaps"), |
| 56 | + "valid_for": 6, |
| 57 | + "organization": { |
| 58 | + "name": ("AB Exempel", "se"), |
| 59 | + "display_name": ("AB Exempel", "se"), |
| 60 | + "url": "http://www.example.org", |
| 61 | + }, |
| 62 | + "contact_person": [{ |
| 63 | + "given_name": "Roland", |
| 64 | + "sur_name": "Hedberg", |
| 65 | + "telephone_number": "+46 70 100 0000", |
| 66 | + "email_address": [ "[email protected]", |
| 67 | + |
| 68 | + "contact_type": "technical" |
| 69 | + }, |
| 70 | + ], |
| 71 | + "logger": { |
| 72 | + "rotating": { |
| 73 | + "filename": full_path("sp.log"), |
| 74 | + "maxBytes": 100000, |
| 75 | + "backupCount": 5, |
| 76 | + }, |
| 77 | + "loglevel": "info", |
| 78 | + } |
| 79 | +} |
0 commit comments