Skip to content

Commit f303bd7

Browse files
author
Alexander Schrijver
committed
When preparing the keyinfo for EncryptedAssertions, I accidentally went 1 level too deep.
1 parent 17bacb3 commit f303bd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/onelogin/saml2/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ def __decrypt_assertion(self, xml):
918918
encrypted_data_nodes = OneLogin_Saml2_XML.query(encrypted_assertion_nodes[0], '//saml:EncryptedAssertion/xenc:EncryptedData')
919919
if encrypted_data_nodes:
920920
encrypted_data = encrypted_data_nodes[0]
921-
self.__prepare_keyinfo(encrypted_data)
921+
self.__prepare_keyinfo(encrypted_data.getparent())
922922

923923
decrypted = OneLogin_Saml2_Utils.decrypt_element(encrypted_data, key, debug=debug, inplace=True)
924924
xml.replace(encrypted_assertion_nodes[0], decrypted)

0 commit comments

Comments
 (0)