diff options
author | Roland Hedberg <roland@catalogix.se> | 2017-10-11 08:29:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-11 08:29:19 +0200 |
commit | 9e6ddc0030828a17fe44a3ecdc5c95b6b6c8d741 (patch) | |
tree | dc05242a54f76d21d93c1dcfa6624ebd18ff8e73 /src | |
parent | 53e527d7d0147f5d85f0ca456d8f609dd377d4ca (diff) | |
parent | 979b6b28a3b11275782b11518d5a7621fdb9285c (diff) | |
download | pysaml2-9e6ddc0030828a17fe44a3ecdc5c95b6b6c8d741.tar.gz |
Merge pull request #419 from leifj/satosa-double-parse
fix issue with satosa and encrypted assertions
Diffstat (limited to 'src')
-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 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") |