Skip to content

Commit 38dd8a3

Browse files
Merge pull request #326 from peppelinux/context_request_keyerror
Check both the key and the content when retrieving the SAMLResponse from the a request
2 parents fc6ee29 + 1b7bcf0 commit 38dd8a3

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)