Fix for EncryptedAssertion

This commit is contained in:
Hans Hörberg
2014-03-19 16:14:48 +01:00
parent 08eb8de6ed
commit a0a2e95a2a

View File

@@ -839,12 +839,13 @@ class Entity(HTTPBase):
logger.debug("XMLSTR: %s" % xmlstr)
for encrypted_assertion in response.response.encrypted_assertion:
if encrypted_assertion.extension_elements is not None:
assertion_list = extension_elements_to_elements(encrypted_assertion.extension_elements, [saml])
for assertion in assertion_list:
_assertion = saml.assertion_from_string(str(assertion))
response.response.assertion.append(_assertion)
if hasattr(response.response, 'encrypted_assertion'):
for encrypted_assertion in response.response.encrypted_assertion:
if encrypted_assertion.extension_elements is not None:
assertion_list = extension_elements_to_elements(encrypted_assertion.extension_elements, [saml])
for assertion in assertion_list:
_assertion = saml.assertion_from_string(str(assertion))
response.response.assertion.append(_assertion)
if response:
response = response.verify()