Resources |
Python CodeHere is a collection of libraries and examples written in Python. Most of these are ports of code I had written in PHP. I have not touched python in 10 years prior to writing the following code and it is only supplied as proof-of-concept code. Due to the fact that I have not finished porting all of the code, there is very little error handling. Currently most of the PHP exceptions have been converted to simply returning None for now with no additional information why an error has occurred.
Security Library - Base XML Security library (xmlseclibs.py) implementing XMLENC and XMLDSig functionality. I am still working on conversion from PHP code, so this is not complete yet. Currently I have only tested various decryption and signature verification scenarios.
Infocard Library - Base library for processing infocards (infocardlib.py). Infocard demonstration - Demonstration of processing a submitted InfoCard. Upon submission, the card will be decrypted, the signature on the SAML token verified and upon successful completion of both, the supplied assertions will be output. Try the demo to see InfoCards working with python. |