From 2c3b5a50c5c1e6d84ccc74eb55b355af13fd8aa8 Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Wed, 11 Aug 2004 23:02:55 +0000 Subject: Create a new test Proxy server (a server between a SP and an IDP, which acts as an IDP for the SP and as a SP for the IDP): login works. --- python/tests/login_tests.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'python/tests/login_tests.py') diff --git a/python/tests/login_tests.py b/python/tests/login_tests.py index ac95b648..5f69f903 100644 --- a/python/tests/login_tests.py +++ b/python/tests/login_tests.py @@ -130,6 +130,25 @@ class LoginTestCase(unittest.TestCase): failIf(spSite.sessions) failIf(idpSite.sessions) + def test01_withRelayState(self): + """Service provider initiated login using HTTP redirect and service provider initiated logout using SOAP. Checking RelayState.""" + + internet = Internet() + idpSite = self.generateIdpSite(internet) + spSite = self.generateSpSite(internet) + spSite.idpSite = idpSite + principal = Principal(internet, 'Romain Chantereau') + principal.keyring[idpSite.url] = 'Chantereau' + principal.keyring[spSite.url] = 'Romain' + + httpResponse = principal.sendHttpRequestToSite( + spSite, 'GET', '/login?RelayState=a_sample_relay_state') + failUnlessEqual(httpResponse.statusCode, 200) + httpResponse = principal.sendHttpRequestToSite(spSite, 'GET', '/logoutUsingSoap') + failUnlessEqual(httpResponse.statusCode, 200) + failIf(spSite.sessions) + failIf(idpSite.sessions) + def test02(self): """Service provider initiated login using HTTP redirect and service provider initiated logout using SOAP. Done three times.""" -- cgit