From 979b6b28a3b11275782b11518d5a7621fdb9285c Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 29 May 2017 11:15:41 +0200 Subject: fix issue with satosa and encrypted assertions --- src/saml2/response.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") -- cgit v1.2.1