~corey.bryant/ubuntu/wily/python-pysaml2/3.0.0

« back to all changes in this revision

Viewing changes to tests/servera_conf.py

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2014-09-08 16:11:53 UTC
  • Revision ID: package-import@ubuntu.com-20140908161153-vms9r4gu0oz4v4ai
Tags: upstream-2.0.0
ImportĀ upstreamĀ versionĀ 2.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from saml2.extension.idpdisc import BINDING_DISCO
 
2
from saml2 import BINDING_SOAP
 
3
from saml2 import BINDING_PAOS
 
4
from saml2 import BINDING_HTTP_POST
 
5
from saml2 import BINDING_HTTP_REDIRECT
 
6
from saml2 import BINDING_HTTP_ARTIFACT
 
7
from saml2.saml import NAMEID_FORMAT_TRANSIENT
 
8
from saml2.saml import NAMEID_FORMAT_PERSISTENT
 
9
 
 
10
from pathutils import full_path
 
11
from pathutils import xmlsec_path
 
12
 
 
13
BASE = "http://lingon.catalogix.se:8087"
 
14
 
 
15
CONFIG = {
 
16
    "entityid": "urn:mace:example.com:saml:roland:sp",
 
17
    "name": "urn:mace:example.com:saml:roland:sp",
 
18
    "description": "My own SP",
 
19
    "service": {
 
20
        "sp": {
 
21
            "endpoints": {
 
22
                "assertion_consumer_service": [
 
23
                    ("%s/" % BASE, BINDING_HTTP_POST),
 
24
                    ("%s/paos" % BASE, BINDING_PAOS),
 
25
                    ("%s/redirect" % BASE, BINDING_HTTP_REDIRECT)],
 
26
                "artifact_resolution_service": [
 
27
                    ("%s/ars" % BASE, BINDING_SOAP)
 
28
                ],
 
29
                "manage_name_id_service": [
 
30
                    ("%s/mni/soap" % BASE, BINDING_SOAP),
 
31
                    ("%s/mni/post" % BASE, BINDING_HTTP_POST),
 
32
                    ("%s/mni/redirect" % BASE, BINDING_HTTP_REDIRECT),
 
33
                    ("%s/mni/art" % BASE, BINDING_HTTP_ARTIFACT)
 
34
                ],
 
35
                "single_logout_service": [
 
36
                    ("%s/sls" % BASE, BINDING_SOAP)
 
37
                ],
 
38
                "discovery_response": [
 
39
                    ("%s/disco" % BASE, BINDING_DISCO)
 
40
                ]
 
41
            },
 
42
            "required_attributes": ["surName", "givenName", "mail"],
 
43
            "optional_attributes": ["title", "eduPersonAffiliation"],
 
44
            "idp": ["urn:mace:example.com:saml:roland:idp"],
 
45
            "name_id_format": [NAMEID_FORMAT_TRANSIENT,
 
46
                               NAMEID_FORMAT_PERSISTENT]
 
47
        }
 
48
    },
 
49
    "debug": 1,
 
50
    "key_file": full_path("test.key"),
 
51
    "cert_file": full_path("test.pem"),
 
52
    "ca_certs": full_path("cacerts.txt"),
 
53
    "xmlsec_binary": xmlsec_path,
 
54
    "metadata": {
 
55
        "local": [full_path("idp_all.xml"), full_path("vo_metadata.xml")],
 
56
    },
 
57
    "virtual_organization": {
 
58
        "urn:mace:example.com:it:tek": {
 
59
            "nameid_format": "urn:oid:1.3.6.1.4.1.1466.115.121.1.15-NameID",
 
60
            "common_identifier": "umuselin",
 
61
        }
 
62
    },
 
63
    "subject_data": "subject_data.db",
 
64
    "accepted_time_diff": 60,
 
65
    "attribute_map_dir": full_path("attributemaps"),
 
66
    "entity_category": ["http://www.swamid.se/category/sfs-1993-1153",
 
67
                        #"http://www.swamid.se/category/research-and-education",
 
68
                        "http://www.swamid.se/category/hei-service"],
 
69
    #"valid_for": 6,
 
70
    "organization": {
 
71
        "name": ("AB Exempel", "se"),
 
72
        "display_name": ("AB Exempel", "se"),
 
73
        "url": "http://www.example.org",
 
74
    },
 
75
    "contact_person": [
 
76
        {
 
77
            "given_name": "Roland",
 
78
            "sur_name": "Hedberg",
 
79
            "telephone_number": "+46 70 100 0000",
 
80
            "email_address": ["tech@eample.com", "tech@example.org"],
 
81
            "contact_type": "technical"
 
82
        },
 
83
    ],
 
84
    "logger": {
 
85
        "rotating": {
 
86
            "filename": "sp.log",
 
87
            "maxBytes": 500000,
 
88
            "backupCount": 5,
 
89
        },
 
90
        "loglevel": "info",
 
91
    }
 
92
}