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/defederation.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/defederation.py')
-rw-r--r-- | python/examples/defederation.py | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/python/examples/defederation.py b/python/examples/defederation.py deleted file mode 100644 index 0b709575..00000000 --- a/python/examples/defederation.py +++ /dev/null @@ -1,44 +0,0 @@ -#! /usr/bin/env python - -import sys -sys.path.insert(0, '../') -import lasso - - -spidentity_dump = "<LassoIdentity><LassoFederations><LassoFederation RemoteProviderID=\"https://identity-provider:2003/liberty-alliance/metadata\"><LassoRemoteNameIdentifier><NameIdentifier NameQualifier=\"qualifier.com\" Format=\"federated\">1111111111111111111111111</NameIdentifier></LassoRemoteNameIdentifier></LassoFederation></LassoFederations></LassoIdentity>" - -idpidentity_dump = "<LassoIdentity><LassoFederations><LassoFederation RemoteProviderID=\"https://service-provider:2003/liberty-alliance/metadata\"><LassoLocalNameIdentifier><NameIdentifier NameQualifier=\"qualifier.com\" Format=\"federated\">1111111111111111111111111</NameIdentifier></LassoLocalNameIdentifier></LassoFederation></LassoFederations></LassoIdentity>" - - -# SP : -spserver = lasso.Server.new("../../examples/sp.xml", - "../../examples/rsapub.pem", "../../examples/rsakey.pem", "../../examples/rsacert.pem", - lasso.SIGNATURE_METHOD_RSA_SHA1) -spserver.add_provider("../../examples/idp.xml", None, None) - -spdefederation = lasso.FederationTermination.new(spserver, lasso.providerTypeSp) -spdefederation.set_identity_from_dump(spidentity_dump) -spdefederation.init_notification() -spdefederation.build_notification_msg() -print 'url : ', spdefederation.msg_url -print 'body : ', spdefederation.msg_body - -notification_msg = spdefederation.msg_body - - -# IDP : -idpserver = lasso.Server.new("../../examples/idp.xml", - "../../examples/rsapub.pem", "../../examples/rsakey.pem", "../../examples/rsacert.pem", - lasso.SIGNATURE_METHOD_RSA_SHA1) -idpserver.add_provider("../../examples/sp.xml", None, None) - -idpdefederation = lasso.FederationTermination.new(idpserver, lasso.providerTypeIdp) -idpdefederation.process_notification_msg(notification_msg, lasso.HTTP_METHOD_SOAP) -print 'NameIdentifier :', idpdefederation.nameIdentifier - -idpdefederation.set_identity_from_dump(idpidentity_dump); -idpdefederation.validate_notification() - -print 'End of federation termination notification' - -lasso.shutdown() |