diff options
Diffstat (limited to 'python/examples')
| -rw-r--r-- | python/examples/logout-from-idp.py | 22 |
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() |
