diff options
| author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-11 23:02:55 +0000 |
|---|---|---|
| committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-11 23:02:55 +0000 |
| commit | 2c3b5a50c5c1e6d84ccc74eb55b355af13fd8aa8 (patch) | |
| tree | 0ecaf6efca3920c6adde149b58ad53d64339132b /python/tests/login_tests.py | |
| parent | 02677987a48a67d99f5aacd915119a658dacd42a (diff) | |
| download | lasso-2c3b5a50c5c1e6d84ccc74eb55b355af13fd8aa8.tar.gz lasso-2c3b5a50c5c1e6d84ccc74eb55b355af13fd8aa8.tar.xz lasso-2c3b5a50c5c1e6d84ccc74eb55b355af13fd8aa8.zip | |
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.
Diffstat (limited to 'python/tests/login_tests.py')
| -rw-r--r-- | python/tests/login_tests.py | 19 |
1 files changed, 19 insertions, 0 deletions
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.""" |
