summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2013-05-05 21:02:55 +0200
committerRoland Hedberg <roland.hedberg@adm.umu.se>2013-05-05 21:02:55 +0200
commitc54d115d5367ecdce8ccfc58148232550f221bb6 (patch)
tree249a2f84bf9418fc6f0791a79259cda94f0c4d74
parent4951a6089c9095a561d144994f530dae544cfed3 (diff)
downloadpysaml2-c54d115d5367ecdce8ccfc58148232550f221bb6.tar.gz
Missed one file.
-rw-r--r--tests/idp_conf_ec.py55
1 files changed, 55 insertions, 0 deletions
diff --git a/tests/idp_conf_ec.py b/tests/idp_conf_ec.py
new file mode 100644
index 00000000..683c21d4
--- /dev/null
+++ b/tests/idp_conf_ec.py
@@ -0,0 +1,55 @@
+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
+
+from pathutils import full_path, xmlsec_path
+
+BASE = "http://localhost:8088"
+
+CONFIG = {
+ "entityid": "urn:mace:example.com:saml:roland:idp",
+ "name": "Rolands IdP",
+ "service": {
+ "idp": {
+ "endpoints": {
+ "single_sign_on_service": [
+ ("%s/sso" % BASE, BINDING_HTTP_REDIRECT)],
+ "single_logout_service": [
+ ("%s/slo" % BASE, BINDING_SOAP),
+ ("%s/slop" % BASE, BINDING_HTTP_POST)]
+ },
+ "policy": {
+ "default": {
+ "lifetime": {"minutes": 15},
+ "entity_categories": ["swamid", "edugain"],
+ "name_form": NAME_FORMAT_URI,
+ }
+ },
+ "subject_data": full_path("subject_data.db"),
+ #"domain": "umu.se",
+ #"name_qualifier": ""
+ },
+ },
+ "debug": 1,
+ "key_file": full_path("test.key"),
+ "cert_file": full_path("test.pem"),
+ "xmlsec_binary": xmlsec_path,
+ "metadata": {
+ "local": [full_path("metadata_sp_1.xml"),
+ full_path("vo_metadata.xml")],
+ },
+ "attribute_map_dir": full_path("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",
+ },
+ ],
+}