From 80a5b0009a69fd1e4d0451278dbbc5808563dc42 Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Wed, 11 Aug 2004 09:59:58 +0000 Subject: In python/tests, there are now a sample IDP (sample-idp.py) and a sample SP (sample-sp.py). The two applications are real servers. --- python/tests/LibertyEnabledClientProxy.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'python/tests/LibertyEnabledClientProxy.py') diff --git a/python/tests/LibertyEnabledClientProxy.py b/python/tests/LibertyEnabledClientProxy.py index 12871ca9..46a2f9dc 100644 --- a/python/tests/LibertyEnabledClientProxy.py +++ b/python/tests/LibertyEnabledClientProxy.py @@ -24,10 +24,10 @@ import lasso -from websimulator import * +import abstractweb -class LibertyEnabledClientProxy(WebClient): +class LibertyEnabledClientProxyMixin(abstractweb.WebClientMixin): # A service provider MAY provide a list of identity providers it recognizes by including the # element in the . The format and processing rules for # the identity provider list MUST be as defined in [LibertyProtSchema]. @@ -58,7 +58,7 @@ class LibertyEnabledClientProxy(WebClient): # MUST be encoded by applying a base64 transformation (refer to # [RFC2045]) to the and all its elements. - httpRequestHeaders = WebClient.httpRequestHeaders.copy() + httpRequestHeaders = abstractweb.WebClientMixin.httpRequestHeaders.copy() httpRequestHeaders.update({ # FIXME: Is this the correct syntax for several URLs in LIBV? 'Liberty-Enabled': 'LIBV=urn:liberty:iff:2003-08,http://projectliberty.org/specs/v1', @@ -73,9 +73,6 @@ class LibertyEnabledClientProxy(WebClient): lassoServerDump = None principal = None - def __init__(self, internet): - WebClient.__init__(self, internet) - def getLassoServer(self): return lasso.Server.new_from_dump(self.lassoServerDump) -- cgit