Skip to content

Commit aefd9b3

Browse files
author
Hans Hörberg
committed
Fix for PEFIM
1 parent d6d76e1 commit aefd9b3

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
@@ -878,7 +878,7 @@ def parse_assertion(self, keys=None):
878878
resp = samlp.response_from_string(decr_text)
879879
_enc_assertions = self.decrypt_assertions(resp.encrypted_assertion, decr_text)
880880
decr_text_old = None
881-
while self.find_encrypt_data(resp) or self.find_encrypt_data_assertion_list(_enc_assertions) and \
881+
while (self.find_encrypt_data(resp) or self.find_encrypt_data_assertion_list(_enc_assertions)) and \
882882
decr_text_old != decr_text:
883883
decr_text_old = decr_text
884884
decr_text = self.sec.decrypt_keys(decr_text, keys)
@@ -891,6 +891,7 @@ def parse_assertion(self, keys=None):
891891
if len(all_assertions) > 0:
892892
for tmp_ass in all_assertions:
893893
if tmp_ass.advice and tmp_ass.advice.encrypted_assertion:
894+
894895
advice_res = self.decrypt_assertions(tmp_ass.advice.encrypted_assertion,
895896
decr_text,
896897
tmp_ass.issuer)

0 commit comments

Comments
 (0)