ECP SP returns no xml but text/html

John Dennis jdennis at redhat.com
Tue Aug 20 09:48:46 EDT 2019


On 8/7/19 3:40 PM, Peter Schober wrote:
> * John Dennis <jdennis at redhat.com> [2019-08-07 21:03]:
>> I could probably dust off the scripts and share them if there is
>> interest.
> 
> I personally have no use for this right now but if you would make that
> work under py3 and reference it from (or attach it to) the
> Contributions page in the wiki that would be helpful in case one needs
> such a thing.

I've completely re-written my Python ecp script to be modern Python (py3 
only and uses the requests library for all HTTP and lxml with xpath). I 
made an effort for this to be both educational (lot of comments on how 
ECP works) and as a diagnostic tool that dumps every piece of the ECP 
profile flow as it runs. You can find it here in my github repo.

https://github.com/jdennis/saml_ecp_demo/

Note, there is text file showing example output in the repo.

I added this to the the wiki contributions page as suggested.

Also, I've only tested this with non-shibboleth implementations (in 
theory it should work with any SAML2 compliant implementation). But if 
someone wanted to exercise it with a Shibboleth SP and/or IdP it would 
be appreciated. Any discovered issue should be reported in the Issues 
section of the github repo.

-- 
John Dennis


More information about the users mailing list