diff options
author | Emmanuel Raviart <eraviart@entrouvert.com> | 2005-01-26 14:35:05 +0000 |
---|---|---|
committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2005-01-26 14:35:05 +0000 |
commit | 46db75a3beebca75dd659c7415fe1269b86cc8b5 (patch) | |
tree | 7c3853a8e0661c78b6ac9e70609956f0bf639705 /python/examples/user.py | |
parent | 10d94be454ae5b428e3301aa64dd4edaae44c425 (diff) | |
download | lasso-46db75a3beebca75dd659c7415fe1269b86cc8b5.tar.gz lasso-46db75a3beebca75dd659c7415fe1269b86cc8b5.tar.xz lasso-46db75a3beebca75dd659c7415fe1269b86cc8b5.zip |
Removed obsolete Python sample code.
Diffstat (limited to 'python/examples/user.py')
-rw-r--r-- | python/examples/user.py | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/python/examples/user.py b/python/examples/user.py deleted file mode 100644 index 0aa641de..00000000 --- a/python/examples/user.py +++ /dev/null @@ -1,47 +0,0 @@ -#! /usr/bin/env python - -import sys -sys.path.insert(0, '../') -import lasso - - -lasso_assertions = """<LassoAssertions><LassoAssertion RemoteProviderID="https://service-provider1:2003/liberty-alliance/metadata"><Assertion AssertionID="1234567890"></Assertion></LassoAssertion><LassoAssertion RemoteProviderID="https://service-provider2:2003/liberty-alliance/metadata"><Assertion AssertionID="1234567890"></Assertion></LassoAssertion><LassoAssertion RemoteProviderID="https://service-provider3:2003/liberty-alliance/metadata"><Assertion AssertionID="1234567890"></Assertion></LassoAssertion></LassoAssertions>""" - -lasso_identities = """<LassoIdentities><LassoIdentity RemoteProviderID="https://service-provider1:2003/liberty-alliance/metadata"><LassoRemoteNameIdentifier><NameIdentifier>111111111111111111111111111111</NameIdentifier></LassoRemoteNameIdentifier></LassoIdentity></LassoIdentities>""" - - -user_dump = "<LassoUser>%s%s</LassoUser>" % (lasso_assertions, lasso_identities) - -user = lasso.User.new_from_dump(user_dump); - -print "Dump of user environ : %s\n" % user.dump() - -next_provider_id = user.get_next_assertion_remote_providerID() -while(next_provider_id): - print "Next provider id : ", next_provider_id - assertion = user.get_assertion(next_provider_id) - print "his Assertion : ", assertion.dump() - print "Remove his assertion from user ..." - user.remove_assertion(next_provider_id) - - next_provider_id = user.get_next_assertion_remote_providerID() - -print "All assertions deleted\n" - -print "Dump of user environ :" -print user.dump() - -user2 = lasso.User.new_from_dump(user.dump()); -print 'user2 dump 1' -print user2.dump() - -assertion = lasso.Assertion("http://nowhere.com", "CD8CS7C6CS6CD6C6SC6SSDC6CS6D") - -print 'user dump 1' -print user.dump() - -user.add_assertion("https://service-provider1:2003/liberty-alliance/metadata", assertion) - -print user.dump() - -user.destroy() |