Skip to content

Commit 1b7bcf0

Browse files
committed
Exception handing on context.request["SAMLResponse"] KeyError
1 parent 12d9f25 commit 1b7bcf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/satosa/backends/saml2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def authn_response(self, context, binding):
311311
:param binding: The saml binding type
312312
:return: response
313313
"""
314-
if not context.request["SAMLResponse"]:
314+
if not context.request.get("SAMLResponse"):
315315
msg = "Missing Response for state"
316316
logline = lu.LOG_FMT.format(id=lu.get_session_id(context.state), message=msg)
317317
logger.debug(logline)

0 commit comments

Comments
 (0)