diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2012-05-23 18:56:51 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2012-05-23 18:56:51 +0200 |
commit | 1d7b2964d16b5c4443a3e7037d1bffe281726fc6 (patch) | |
tree | f191828115e6f89419cb8c2b34652546bab37889 /tests/idp_conf.py | |
download | pysaml2-1d7b2964d16b5c4443a3e7037d1bffe281726fc6.tar.gz |
Initial add0.4.2
Diffstat (limited to 'tests/idp_conf.py')
-rw-r--r-- | tests/idp_conf.py | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/tests/idp_conf.py b/tests/idp_conf.py new file mode 100644 index 00000000..33b9c8a7 --- /dev/null +++ b/tests/idp_conf.py @@ -0,0 +1,61 @@ +from saml2 import BINDING_SOAP, BINDING_HTTP_REDIRECT, BINDING_HTTP_POST +from saml2.saml import NAMEID_FORMAT_PERSISTENT +from saml2.saml import NAME_FORMAT_URI + +try: + from xmlsec_location import xmlsec_path +except ImportError: + xmlsec_path = '/opt/local/bin/xmlsec1' + + +CONFIG = { + "entityid" : "urn:mace:example.com:saml:roland:idp", + "name" : "Rolands IdP", + "service": { + "idp": { + "endpoints" : { + "single_sign_on_service" : [ + ("http://localhost:8088/sso", BINDING_HTTP_REDIRECT)], + "single_logout_service": [ + ("http://localhost:8088/slo", BINDING_SOAP), + ("http://localhost:8088/slop",BINDING_HTTP_POST)] + }, + "policy": { + "default": { + "lifetime": {"minutes":15}, + "attribute_restrictions": None, # means all I have + "name_form": NAME_FORMAT_URI, + }, + "urn:mace:example.com:saml:roland:sp": { + "lifetime": {"minutes": 5}, + "nameid_format": NAMEID_FORMAT_PERSISTENT, + # "attribute_restrictions":{ + # "givenName": None, + # "surName": None, + # } + } + }, + "subject_data": "subject_data.db", + }, + }, + "debug" : 1, + "key_file" : "test.key", + "cert_file" : "test.pem", + "xmlsec_binary" : xmlsec_path, + "metadata": { + "local": ["metadata.xml", "vo_metadata.xml"], + }, + "attribute_map_dir" : "attributemaps", + "organization": { + "name": "Exempel AB", + "display_name": [("Exempel AB","se"),("Example Co.","en")], + "url":"http://www.example.com/roland", + }, + "contact_person": [{ + "given_name":"John", + "sur_name": "Smith", + "email_address": ["john.smith@example.com"], + "contact_type": "technical", + }, + ], +} |