File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
from saml2 .assertion import Policy
2
+ import saml2 .xmldsig as ds
2
3
3
- HOST = '127.0.0.1 '
4
+ HOST = 'localhost '
4
5
PORT = 8087
5
6
HTTPS = False
7
+ SIGN_ALG = None
8
+ DIGEST_ALG = None
9
+ #SIGN_ALG = ds.SIG_RSA_SHA512
10
+ #DIGEST_ALG = ds.DIGEST_SHA512
6
11
7
12
# Which groups of entity categories to use
8
13
POLICY = Policy (
Original file line number Diff line number Diff line change 41
41
#from srtest import exception_trace
42
42
from saml2 .samlp import Extensions
43
43
from saml2 import xmldsig as ds
44
+ import saml2 .xmldsig as ds
44
45
45
46
logger = logging .getLogger ("" )
46
47
hdlr = logging .FileHandler ('spx.log' )
@@ -877,6 +878,8 @@ def application(environ, start_response):
877
878
878
879
add_urls ()
879
880
881
+ ds .DefaultSignature (service_conf .SIGN_ALG , service_conf .DIGEST_ALG )
882
+
880
883
SRV = wsgiserver .CherryPyWSGIServer ((HOST , PORT ), application )
881
884
882
885
_https = ""
You can’t perform that action at this time.
0 commit comments