Skip to content

Commit 234ce01

Browse files
author
Hans Hörberg
committed
Removed dirty changes.
1 parent 0213e18 commit 234ce01

File tree

5 files changed

+17
-206
lines changed

5 files changed

+17
-206
lines changed

example/sp/nocert_sp_conf/sp.xml

Lines changed: 0 additions & 2 deletions
This file was deleted.

example/sp/nocert_sp_conf/sp_conf.py

Lines changed: 0 additions & 97 deletions
This file was deleted.

example/sp/nocert_sp_conf/who.ini

Lines changed: 0 additions & 42 deletions
This file was deleted.

example/sp/sp_conf.py.example

Lines changed: 17 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,44 @@
11
from saml2 import BINDING_HTTP_REDIRECT
2-
from saml2.extension.idpdisc import BINDING_DISCO
32
from saml2.saml import NAME_FORMAT_URI
4-
from saml2.sigver import get_xmlsec_binary, CertHandlerExtra
5-
from saml2.entity_category.edugain import COC
6-
from saml2.entity_category.swamid import RESEARCH_AND_EDUCATION
7-
from saml2.entity_category.swamid import HEI
8-
from saml2.entity_category.swamid import SFS_1993_1153
9-
from saml2.entity_category.swamid import NREN
10-
from saml2.entity_category.swamid import EU
113

12-
13-
#BASE= "http://130.239.200.146:8087"
144
BASE= "http://localhost:8087"
155
#BASE= "http://lingon.catalogix.se:8087"
166

17-
18-
class SpCertHandlerExtraClass(CertHandlerExtra):
19-
20-
def use_generate_cert_func(self):
21-
return True
22-
23-
def generate_cert(self, generate_cert_info, ca_cert_string, ca_key_string):
24-
print "Hello"
25-
return (ca_cert_string, ca_key_string)
26-
27-
def use_validate_cert_func(self):
28-
return False
29-
30-
def validate_cert(self, cert_str, ca_cert_string, ca_key_string):
31-
pass
32-
337
CONFIG = {
34-
"entityid": "%s/LocalTestSPHans.xml" % BASE,
35-
"description": "Lokal test SP Hans",
36-
"entity_category": [COC, RESEARCH_AND_EDUCATION, HEI, SFS_1993_1153, NREN, EU],
37-
"only_use_keys_in_metadata": False,
38-
"cert_handler_extra_class": None,#MyCertGeneration(),
39-
"generate_cert_info": {
40-
"cn": "localhost",
41-
"country_code": "se",
42-
"state": "ac",
43-
"city": "Umea",
44-
"organization": "ITS Umea University",
45-
"organization_unit": "DIRG"
46-
},
47-
"tmp_key_file": "pki/tmp_mykey.pem",
48-
"tmp_cert_file": "pki/tmp_mycert.pem",
49-
"validate_certificate": True,
8+
"entityid": "%s/sp.xml" % BASE,
9+
"description": "My SP",
5010
"service": {
5111
"sp": {
52-
"authn_requests_signed": "true", #Will sign the request!
53-
"want_assertions_signed": "true", #Demands that the assertion is signed.
54-
"name": "LocalTestSPHans",
12+
"name": "Rolands SP",
5513
"endpoints": {
5614
"assertion_consumer_service": [BASE],
5715
"single_logout_service": [(BASE + "/slo",
5816
BINDING_HTTP_REDIRECT)],
59-
"discovery_response": [
60-
("%s/disco" % BASE, BINDING_DISCO)
61-
]
6217
},
6318
"required_attributes": ["surname", "givenname",
6419
"edupersonaffiliation"],
6520
"optional_attributes": ["title"],
6621
}
6722
},
6823
"debug": 1,
69-
"key_file": "pki/localhost.ca.key",
70-
"cert_file": "pki/localhost.ca.crt",
24+
"key_file": "pki/mykey.pem",
25+
"cert_file": "pki/mycert.pem",
7126
"attribute_map_dir": "./attributemaps",
72-
"metadata": {
73-
#"local": ["../idp2/idp_nocert.xml"]
74-
"local": ["/Users/haho0032/Develop/svn/trunk/pyOpSamlProxy/idp_nocert.xml"]
75-
# #"remote": [{"url": "http://130.239.201.5/role/idp.xml", "cert": None}],
76-
},
77-
#"metadata": {"local": ["/Users/haho0032/Develop/svn/trunk/pyOpSamlProxy/idp_nocert.xml"]},
78-
27+
"metadata": {"local": ["../idp2/idp.xml"]},
7928
# -- below used by make_metadata --
8029
"organization": {
81-
"name": "Lokal test SP Hans",
82-
"display_name": [("Lokal test SP Hans", "se"), ("Lokal test SP Hans", "en")],
83-
"url": "http://130.239.200.146:8087",
30+
"name": "Exempel AB",
31+
"display_name": [("Exempel AB", "se"), ("Example Co.", "en")],
32+
"url": "http://www.example.com/roland",
8433
},
85-
"contact_person": [
34+
"contact_person": [{
35+
"given_name":"John",
36+
"sur_name": "Smith",
37+
"email_address": ["[email protected]"],
38+
"contact_type": "technical",
39+
},
8640
],
87-
"xmlsec_binary": '/usr/local/bin/xmlsec1',
41+
#"xmlsec_binary":"/opt/local/bin/xmlsec1",
8842
"name_form": NAME_FORMAT_URI,
8943
"logger": {
9044
"rotating": {
@@ -94,5 +48,4 @@ CONFIG = {
9448
},
9549
"loglevel": "debug",
9650
}
97-
}
98-
51+
}

example/sp/who.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ saml_conf = sp_conf
1717
remember_name = auth_tkt
1818
sid_store = outstanding
1919
idp_query_param = IdPEntityId
20-
discovery = http://130.239.201.5/role/idp.ds
2120

2221
[general]
2322
request_classifier = s2repoze.plugins.challenge_decider:my_request_classifier

0 commit comments

Comments
 (0)