We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a982e8c commit 5a11b4aCopy full SHA for 5a11b4a
src/onelogin/saml2/response.py
@@ -460,11 +460,11 @@ def __decrypt_assertion(self, dom):
460
if 'RetrievalMethod' in child.tag:
461
if child.attrib['Type'] != 'http://www.w3.org/2001/04/xmlenc#EncryptedKey':
462
raise Exception('Unsupported Retrieval Method found')
463
- uri = child.attrib['URI']
+ uri = child.attrib['URI']
464
if not uri.startswith('#'):
465
break
466
uri = uri.split('#')[1]
467
- encrypted_key = OneLogin_Saml2_Utils.query(encrypted_assertion_nodes[0], './xenc:EncryptedKey[@Id="'+uri +'"]')
+ encrypted_key = OneLogin_Saml2_Utils.query(encrypted_assertion_nodes[0], './xenc:EncryptedKey[@Id="' + uri + '"]')
468
if encrypted_key:
469
keyinfo.append(encrypted_key[0])
470
0 commit comments