@@ -15,25 +15,36 @@ except ImportError:
15
15
get_xmlsec_binary = None
16
16
17
17
if get_xmlsec_binary :
18
- xmlsec_path = get_xmlsec_binary (["/opt/local/bin" ])
18
+ xmlsec_path = get_xmlsec_binary (["/opt/local/bin" , "/usr/local/bin" ])
19
19
else :
20
- xmlsec_path = '/usr/bin/xmlsec1'
20
+ xmlsec_path = '/usr/local/ bin/xmlsec1'
21
21
22
22
BASEDIR = os .path .abspath (os .path .dirname (__file__ ))
23
23
24
24
25
25
def full_path (local_file ):
26
26
return os .path .join (BASEDIR , local_file )
27
27
28
+ #HOST = '130.239.200.190'
28
29
HOST = 'localhost'
29
30
PORT = 8088
30
31
31
- BASE = "http://%s:%s" % (HOST , PORT )
32
+ HTTPS = True
33
+
34
+ if HTTPS :
35
+ BASE = "https://%s:%s" % (HOST , PORT )
36
+ else :
37
+ BASE = "http://%s:%s" % (HOST , PORT )
38
+
39
+ # HTTPS cert information
40
+ SERVER_CERT = "pki/mycert.pem"
41
+ SERVER_KEY = "pki/mykey.pem"
42
+ CERT_CHAIN = ""
32
43
33
44
CONFIG = {
34
45
"entityid" : "%s/idp.xml" % BASE ,
35
46
"description" : "My IDP" ,
36
- "valid_for" : 168 ,
47
+ # "valid_for": 168,
37
48
"service" : {
38
49
"aa" : {
39
50
"endpoints" : {
@@ -81,6 +92,29 @@ CONFIG = {
81
92
("%s/nim" % BASE , BINDING_SOAP ),
82
93
],
83
94
},
95
+ "ui_info" : {
96
+ "display_name" : [
97
+ {
98
+ "text" : "InAcademia.org - TEST" ,
99
+ "lang" : "en"
100
+ }
101
+ ],
102
+ "description" : [
103
+ {
104
+ "text" : "The InAcademia Simple validation Sevice allows for the easy validation of affiliation (Student, Faculty, Staff) of a user in Academia. This is a TEST instance" ,
105
+ "lang" : "en"
106
+ }
107
+ ],
108
+ "logo" : [
109
+ {
110
+ "text" : "https://inacademia.org/static/logo.png" ,
111
+ "width" : "120" ,
112
+ "height" : "60" ,
113
+ "lang" : "en"
114
+
115
+ }
116
+ ],
117
+ },
84
118
"policy" : {
85
119
"default" : {
86
120
"lifetime" : {"minutes" : 15 },
@@ -98,19 +132,23 @@ CONFIG = {
98
132
"key_file" : full_path ("pki/mykey.pem" ),
99
133
"cert_file" : full_path ("pki/mycert.pem" ),
100
134
"metadata" : {
101
- "local" : [full_path ("../sp-wsgi/sp.xml" )],
135
+ #"local": [full_path("../sp-wsgi/sp.xml")],
136
+ "local" : ["/Users/mathiashedstrom/work/DIRG/VOpaas_proxy/example/saml2.xml" ],
137
+ # "local": ["/Users/mathiashedstrom/work/DIRG/VOpaas_proxy/example/proxy.xml"],
138
+ # "local": ["/Users/mathiashedstrom/work/DIRG/s2sproxy/example/proxy.xml"],
102
139
},
103
140
"organization" : {
104
- "display_name" : "Rolands Identiteter" ,
105
- "name" : "Rolands Identiteter" ,
106
- "url" : "http://www.example.com" ,
141
+ "display_name" : [( "Rolands Identiteter" , "en" )] ,
142
+ "name" : [( "Rolands Identiteter" , "se" ), ( "Rolands Identities" , "en" )] ,
143
+ "url" : [( "http://www.example.com" , "en" ), ( "http://www.example.se" , "se" )] ,
107
144
},
108
145
"contact_person" : [
109
146
{
110
147
"contact_type" : "technical" ,
111
148
"given_name" : "Roland" ,
112
149
"sur_name" : "Hedberg" ,
113
- "email_address" :
"[email protected] "
150
+
151
+
114
152
}, {
115
153
"contact_type" : "support" ,
116
154
"given_name" : "Support" ,
0 commit comments