Spelling error. Added and extra parameter check.

This commit is contained in:
Roland Hedberg
2015-03-31 09:56:30 +02:00
parent e075717fa8
commit 8bd652682d

View File

@@ -132,8 +132,13 @@ class Service(object):
else:
# saml_msg may also contain Signature and SigAlg
if "Signature" in saml_msg:
kwargs = {"signature": saml_msg["signature"],
"sigalg": saml_msg["SigAlg"]}
try:
kwargs = {"signature": saml_msg["Signature"],
"sigalg": saml_msg["SigAlg"]}
except KeyError:
resp = BadRequest(
'Signature Algorithm specification is missing')
return resp(self.environ, self.start_response)
else:
kwargs = {}
try: