pysaml2 icon indicating copy to clipboard operation
pysaml2 copied to clipboard

config.py IdPConfig assertion_consumer_services method is broken

Open sergedomk opened this issue 14 years ago • 1 comments

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.

sergedomk avatar Oct 31 '12 19:10 sergedomk

Uploaded fix

rohe avatar Nov 01 '12 08:11 rohe