summaryrefslogtreecommitdiff
path: root/src/saml2/response.py
diff options
context:
space:
mode:
authorHans Hörberg <hans.horberg@umu.se>2015-03-18 08:57:21 +0100
committerHans Hörberg <hans.horberg@umu.se>2015-03-18 08:57:21 +0100
commit73dfdc9603859dad9a3c7fe261ba53cc20a081c6 (patch)
tree21369755151d46e2af755410394cc8ea10a71c85 /src/saml2/response.py
parentc4c5c224d47c3673e02092f48c63d7dc49ca9375 (diff)
downloadpysaml2-73dfdc9603859dad9a3c7fe261ba53cc20a081c6.tar.gz
Added tests for encryption and signing of the authentication response.
Added tests to decrypt authentication responses in the client.
Diffstat (limited to 'src/saml2/response.py')
-rw-r--r--src/saml2/response.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/response.py b/src/saml2/response.py
index 6f368196..bddc0326 100644
--- a/src/saml2/response.py
+++ b/src/saml2/response.py
@@ -646,7 +646,7 @@ class AuthnResponse(StatusResponse):
assert len(self.assertion.attribute_statement) == 1
_attr_statem = self.assertion.attribute_statement[0]
ava.update(self.read_attribute_statement(_attr_statem))
- if not ava == 1:
+ if not ava:
logger.error("Missing Attribute Statement")
return ava