summaryrefslogtreecommitdiff
path: root/src/saml2/response.py
diff options
context:
space:
mode:
authorRoland Hedberg <roland@catalogix.se>2017-10-11 08:32:10 +0200
committerGitHub <noreply@github.com>2017-10-11 08:32:10 +0200
commitb71f1443991c94099ff49226c92b8671d657fade (patch)
tree69cb8fb94681a3273d1fe995e0e79bb047d307cf /src/saml2/response.py
parent546f9d4ca82c8b4ae5cf7aa0fb80f0bedf385c89 (diff)
parent9e6ddc0030828a17fe44a3ecdc5c95b6b6c8d741 (diff)
downloadpysaml2-b71f1443991c94099ff49226c92b8671d657fade.tar.gz
Merge branch 'master' into master
Diffstat (limited to 'src/saml2/response.py')
-rw-r--r--src/saml2/response.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/saml2/response.py b/src/saml2/response.py
index 13323509..6de8723b 100644
--- a/src/saml2/response.py
+++ b/src/saml2/response.py
@@ -666,7 +666,7 @@ class AuthnResponse(StatusResponse):
_attr_statem = _assertion.attribute_statement[0]
ava.update(self.read_attribute_statement(_attr_statem))
if not ava:
- logger.error("Missing Attribute Statement")
+ logger.debug("Assertion contains no attribute statements")
return ava
def _bearer_confirmed(self, data):
@@ -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")