Initial commits
[freeradius-pysaml2.git] / etc / pysaml_config.py
1 from saml2.saml import NAME_FORMAT_URI
2 from saml2 import BINDING_PAOS
3
4 # *** Change this line ***
5 BASE= "http://localhost:8088/"
6
7 # Don't change this line
8 BASEDIR = "/usr/local/etc/moonshot/"
9
10 CONFIG = {
11     "entityid" : BASE + "metadata.xml",
12     "description": "Radius SP",
13     "service": {
14         "sp":{
15             "name" : "Radius SP",
16             "endpoints":{
17                 "assertion_consumer_service": [BASE,
18                                                (BASE+"ECP", BINDING_PAOS)],
19             },
20             # ** These you might want to change **
21 #            "required_attributes": ["surname", "givenName",
22 #                                    "eduPersonAffiliation"],
23 #            "optional_attributes": ["title"],
24         }
25     },
26     "debug" : 0,
27     "key_file" : BASEDIR + "pki/ssl.key",
28     "cert_file" : BASEDIR + "pki/ssl.cert",
29     "attribute_map_dir" : BASEDIR + "attributemaps",
30     "metadata" : {
31        "local": [BASEDIR + "metadata.xml"],
32     },
33     # in case xmlsec1 isn't anywhere normal
34     "xmlsec_binary":"/opt/local/bin/xmlsec1",
35     "name_form": NAME_FORMAT_URI,
36     # -- below used by make_metadata --
37     # ** These you probably want to change **
38     "organization": {
39         "name": "Exempel AB",
40         "display_name": [("Exempel AB","se"),("Example Co.","en")],
41         "url":"http://www.example.com/roland",
42     },
43     "contact_person": [{
44         "given_name":"John",
45         "sur_name": "Smith",
46         "email_address": ["john.smith@example.com"],
47         "contact_type": "technical",
48         },
49     ],
50 }
51