Skip to content

Commit 979b6b2

Browse files
committed
fix issue with satosa and encrypted assertions
1 parent 8aa80e9 commit 979b6b2

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)