summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2004-08-20 17:43:07 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2004-08-20 17:43:07 +0000
commit90f1e1f49379a69e21ddc4087f662244e0495465 (patch)
treee93ed94fc2a250094833f8f65b820183d1701def /python
parent68b494d9b507a0f787678dec321c4c7829d7a070 (diff)
downloadlasso-90f1e1f49379a69e21ddc4087f662244e0495465.tar.gz
lasso-90f1e1f49379a69e21ddc4087f662244e0495465.tar.xz
lasso-90f1e1f49379a69e21ddc4087f662244e0495465.zip
Added new argument to lasso_login_build_authn_request_msg.
Diffstat (limited to 'python')
-rw-r--r--python/lasso.py15
-rw-r--r--python/tests/ServiceProvider.py2
2 files changed, 9 insertions, 8 deletions
diff --git a/python/lasso.py b/python/lasso.py
index 96756b8b..461e5f4a 100644
--- a/python/lasso.py
+++ b/python/lasso.py
@@ -472,8 +472,9 @@ class Login(_ObjectMixin, lassomod.LassoLogin, _ProfileChild):
if errorCode:
raise newError(errorCode, 'lasso_login_build_artifact_msg')
- def build_authn_request_msg(self, remote_providerID):
- errorCode = lassomod.lasso_login_build_authn_request_msg(self, remote_providerID)
+ def build_authn_request_msg(self, remote_providerID, http_method):
+ errorCode = lassomod.lasso_login_build_authn_request_msg(
+ self, remote_providerID, http_method)
if errorCode:
raise newError(errorCode, 'lasso_login_build_authn_request_msg')
@@ -497,14 +498,14 @@ class Login(_ObjectMixin, lassomod.LassoLogin, _ProfileChild):
if errorCode:
raise newError(errorCode, 'lasso_login_init_authn_request')
- def init_from_authn_request_msg(self, authn_request_msg, authn_request_method):
+ def init_from_authn_request_msg(self, authn_request_msg, authn_request_http_method):
errorCode = lassomod.lasso_login_init_from_authn_request_msg(
- self, authn_request_msg, authn_request_method)
+ self, authn_request_msg, authn_request_http_method)
if errorCode:
raise newError(errorCode, 'lasso_login_init_from_authn_request_msg')
- def init_request(self, response_msg, response_method):
- errorCode = lassomod.lasso_login_init_request(self, response_msg, response_method)
+ def init_request(self, response_msg, response_http_method):
+ errorCode = lassomod.lasso_login_init_request(self, response_msg, response_http_method)
if errorCode:
raise newError(errorCode, 'lasso_login_init_request')
@@ -725,7 +726,7 @@ if __name__ == '__main__':
login.request.set_isPassive(False)
login.request.set_nameIDPolicy(libNameIDPolicyTypeFederated)
login.request.set_consent(libConsentObtained)
- login.build_authn_request_msg('https://idp1/metadata')
+ login.build_authn_request_msg('https://idp1/metadata', httpMethodRedirect)
print 'Redirect URL =', login.msg_url
shutdown()
else:
diff --git a/python/tests/ServiceProvider.py b/python/tests/ServiceProvider.py
index a9d75a72..fdf3b7ff 100644
--- a/python/tests/ServiceProvider.py
+++ b/python/tests/ServiceProvider.py
@@ -233,7 +233,7 @@ class ServiceProviderMixin(Provider.ProviderMixin):
login.request.set_consent(lasso.libConsentObtained)
if relayState:
login.request.set_relayState(relayState)
- login.build_authn_request_msg(self.idpSite.providerId)
+ login.build_authn_request_msg(self.idpSite.providerId, lasso.httpMethodRedirect)
authnRequestUrl = login.msg_url
failUnless(authnRequestUrl)
return handler.respondRedirectTemporarily(authnRequestUrl)