diff options
author | Leif Johansson <leifj@sunet.se> | 2017-05-29 11:15:41 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2017-05-29 11:15:41 +0200 |
commit | 979b6b28a3b11275782b11518d5a7621fdb9285c (patch) | |
tree | 26b5a01754d62b70e13ba83ce992fa0452289553 | |
parent | 8aa80e9e67f76ef230cb377dfe8b2050fc1f82bf (diff) | |
download | pysaml2-979b6b28a3b11275782b11518d5a7621fdb9285c.tar.gz |
fix issue with satosa and encrypted assertions
-rw-r--r-- | src/saml2/response.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/saml2/response.py b/src/saml2/response.py index 13323509..70ca93a8 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") |