Skip to content

Commit 9e6ddc0

Browse files
authored
Merge pull request #419 from leifj/satosa-double-parse
fix issue with satosa and encrypted assertions
2 parents 53e527d + 979b6b2 commit 9e6ddc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/saml2/response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,8 @@ def parse_assertion(self, keys=None):
910910
else: # This is a saml2int limitation
911911
try:
912912
assert len(self.response.assertion) == 1 or \
913-
len(self.response.encrypted_assertion) == 1
913+
len(self.response.encrypted_assertion) == 1 or \
914+
self.assertion is not None
914915
except AssertionError:
915916
raise Exception("No assertion part")
916917

0 commit comments

Comments
 (0)