summaryrefslogtreecommitdiffstats
path: root/python/examples
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2004-07-18 22:37:39 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2004-07-18 22:37:39 +0000
commit721642847cd1acf399f191d1bb205d7d6466f4fb (patch)
tree1af626c31b7a658c27b1431185b72915723f9d63 /python/examples
parenta19c201029c4708c1e21519ae76758565190dc7f (diff)
downloadlasso-721642847cd1acf399f191d1bb205d7d6466f4fb.tar.gz
lasso-721642847cd1acf399f191d1bb205d7d6466f4fb.tar.xz
lasso-721642847cd1acf399f191d1bb205d7d6466f4fb.zip
*** empty log message ***
Diffstat (limited to 'python/examples')
-rw-r--r--python/examples/logout-from-idp.py22
1 files changed, 21 insertions, 1 deletions
diff --git a/python/examples/logout-from-idp.py b/python/examples/logout-from-idp.py
index 304f397b..3732cc0e 100644
--- a/python/examples/logout-from-idp.py
+++ b/python/examples/logout-from-idp.py
@@ -32,4 +32,24 @@ print user.dump()
# requests :
logout = lasso.Logout.new(server, user, lasso.providerTypeIdp);
-next_providerID = user.get_next_providerID();
+next_provider_id = user.get_next_providerID();
+while(next_provider_id):
+ assertion = user.get_assertion(next_provider_id)
+
+ logout.init_request(next_provider_id)
+ logout.build_request_msg();
+
+ # send the request with logout.msg_url and logout.msg_body
+ print 'url : ', logout.msg_url
+ print 'body : ', logout.msg_body
+
+ user.remove_assertion(next_provider_id)
+ next_provider_id = user.get_next_providerID()
+
+print "End of logout ..."
+print "Dump of user environ :"
+print user.dump()
+
+user.destroy()
+
+logout.destroy()