diff options
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.""" |
