Spelling error. Added and extra parameter check.
This commit is contained in:
@@ -132,8 +132,13 @@ class Service(object):
|
|||||||
else:
|
else:
|
||||||
# saml_msg may also contain Signature and SigAlg
|
# saml_msg may also contain Signature and SigAlg
|
||||||
if "Signature" in saml_msg:
|
if "Signature" in saml_msg:
|
||||||
kwargs = {"signature": saml_msg["signature"],
|
try:
|
||||||
"sigalg": saml_msg["SigAlg"]}
|
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:
|
else:
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user