Correct URL for assertion export

Peter Schober peter.schober at univie.ac.at
Tue Dec 12 06:02:00 EST 2017


* Rainer Hoerbe <rainer at hoerbe.at> [2017-12-12 09:11]:
> Are the URL parameters correct? The documentation how to query the
> AssertionExport handler was not clear to me:
> https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPAssertionExport

Here's some Python (2.x) code I wrote to get all assertions:

def get_assertion():
    count = request.environ['Shib-Assertion-Count']
    assertions = []
    for n in range(1,int(count)+1):
        ass = "Shib-Assertion-%02d" % (n,)
        url = request.environ[ass]
        doc = urllib2.urlopen(url).read()
        assertions.append(doc)
    return assertions

Hopefully that's illustrative.
-peter


More information about the users mailing list