diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:06:25 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:06:25 +0000 |
| commit | 34e4fd0b5aae872344a16267efac847f45108ca7 (patch) | |
| tree | 904ed6027947636f41f52c6a04ae33507509711e /bindings/python | |
| parent | 073b0504389253893c636f40047eb4e0531cec34 (diff) | |
| download | lasso-34e4fd0b5aae872344a16267efac847f45108ca7.tar.gz lasso-34e4fd0b5aae872344a16267efac847f45108ca7.tar.xz lasso-34e4fd0b5aae872344a16267efac847f45108ca7.zip | |
[project @ fpeters@0d.be-20080118215410-d45drghkhvba7822]
merged Damien branch; and fixed PHP5 binding to use GLib memory management
functions
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-01-18 22:54:10.239000+01:00
Diffstat (limited to 'bindings/python')
| -rw-r--r-- | bindings/python/examples/get_attributes_from_assertion.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bindings/python/examples/get_attributes_from_assertion.py b/bindings/python/examples/get_attributes_from_assertion.py new file mode 100644 index 00000000..44ceb9e5 --- /dev/null +++ b/bindings/python/examples/get_attributes_from_assertion.py @@ -0,0 +1,8 @@ +# Example SP Python code to get attributes from an assertion + +for attribute in assertion.attributeStatement[0].attribute: + if attribute.name == lasso.SAML2_ATTRIBUTE_NAME_EPR: + continue + print 'attribute : ' + attribute.name + for value in attribute.attributeValue: + print ' value : ' + value.any[0].content |
