pysaml2
pysaml2 copied to clipboard
config.py IdPConfig assertion_consumer_services method is broken
Here is the error I'm receiving:
File "/opt/kavi/service/web/ve/lib/python2.7/site-packages/pysaml2-0.4.2-py2.7.egg/saml2/config.py", line 454, in assertion_consumer_services return [s[binding] for s in acs] TypeError: string indices must be integers, not NoneType
acs is a dictionary returned from what appears to be a deprecated method on the metadata object "sp_services".
I've duplicated the issue with the latest pysaml2 code as well.
Changing the line to "return acs.values()" results in the expected list.
Uploaded fix