onelogin/python-saml — pull request #4 by dolfandringa (2012-03-23 13:36:57+00:00)
Title: Hey all, I have another addition: reading saml:Attribute tags

I made another addition to python-saml. It involves reading saml:Attribute tags from the saml:Assertion tag. These saml:Attributes can contain additional data stored in the Assertion.
An example message is this, where I want the saml.Response to fetch the value for the saml:Attribute named "datasessionid".

>>> response.get_assertion_attribute_value('datasessionid')

from the the following message

8