summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorHans Hörberg <hans.horberg@umu.se>2015-11-06 12:40:47 +0100
committerHans Hörberg <hans.horberg@umu.se>2015-11-06 12:40:47 +0100
commit1d1b7b2624745e8d3605a159a0de37fb8ac95f5a (patch)
tree5b060a4692b73f1938ee89b14391ed4b19687ea4 /example
parent664503f3f8a92f53a807d31c1b77fae8a153a681 (diff)
downloadpysaml2-1d1b7b2624745e8d3605a159a0de37fb8ac95f5a.tar.gz
Changed the sp to accept config files without sign and digest configurations.
Diffstat (limited to 'example')
-rwxr-xr-xexample/sp-wsgi/sp.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/example/sp-wsgi/sp.py b/example/sp-wsgi/sp.py
index 9d216959..27759594 100755
--- a/example/sp-wsgi/sp.py
+++ b/example/sp-wsgi/sp.py
@@ -877,8 +877,17 @@ if __name__ == '__main__':
POLICY = service_conf.POLICY
add_urls()
-
- ds.DefaultSignature(service_conf.SIGN_ALG, service_conf.DIGEST_ALG)
+ sign_alg = None
+ digest_alg = None
+ try:
+ sign_alg = service_conf.SIGN_ALG
+ except:
+ pass
+ try:
+ digest_alg = service_conf.DIGEST_ALG
+ except:
+ pass
+ ds.DefaultSignature(sign_alg, digest_alg)
SRV = wsgiserver.CherryPyWSGIServer((HOST, PORT), application)