diff options
| author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-20 17:43:07 +0000 |
|---|---|---|
| committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-20 17:43:07 +0000 |
| commit | 90f1e1f49379a69e21ddc4087f662244e0495465 (patch) | |
| tree | e93ed94fc2a250094833f8f65b820183d1701def /python/lasso.py | |
| parent | 68b494d9b507a0f787678dec321c4c7829d7a070 (diff) | |
| download | lasso-90f1e1f49379a69e21ddc4087f662244e0495465.tar.gz lasso-90f1e1f49379a69e21ddc4087f662244e0495465.tar.xz lasso-90f1e1f49379a69e21ddc4087f662244e0495465.zip | |
Added new argument to lasso_login_build_authn_request_msg.
Diffstat (limited to 'python/lasso.py')
| -rw-r--r-- | python/lasso.py | 15 |
1 files changed, 8 insertions, 7 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: |
