summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Hedberg <roland@catalogix.se>2017-10-11 08:29:19 +0200
committerGitHub <noreply@github.com>2017-10-11 08:29:19 +0200
commit9e6ddc0030828a17fe44a3ecdc5c95b6b6c8d741 (patch)
treedc05242a54f76d21d93c1dcfa6624ebd18ff8e73
parent53e527d7d0147f5d85f0ca456d8f609dd377d4ca (diff)
parent979b6b28a3b11275782b11518d5a7621fdb9285c (diff)
downloadpysaml2-9e6ddc0030828a17fe44a3ecdc5c95b6b6c8d741.tar.gz
Merge pull request #419 from leifj/satosa-double-parse
fix issue with satosa and encrypted assertions
-rw-r--r--src/saml2/response.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/saml2/response.py b/src/saml2/response.py
index 5ca75bf1..6de8723b 100644
--- a/src/saml2/response.py
+++ b/src/saml2/response.py
@@ -910,7 +910,8 @@ class AuthnResponse(StatusResponse):
else: # This is a saml2int limitation
try:
assert len(self.response.assertion) == 1 or \
- len(self.response.encrypted_assertion) == 1
+ len(self.response.encrypted_assertion) == 1 or \
+ self.assertion is not None
except AssertionError:
raise Exception("No assertion part")