From f8b363262daaa664446c382b88b4cdb1de2ac08c Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Sun, 11 Jul 2004 22:29:40 +0000 Subject: *** empty log message *** --- python/environs/py_login.c | 2 +- python/lasso.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/environs/py_login.c b/python/environs/py_login.c index c2f8691b..b135f5b2 100644 --- a/python/environs/py_login.c +++ b/python/environs/py_login.c @@ -108,7 +108,7 @@ PyObject *login_new_from_dump(PyObject *self, PyObject *args) { gchar *dump; if (CheckArgs(args, "OoS:login_new_from_dump")) { - if(!PyArg_ParseTuple(args, (char *) "O|Os:login_new_from_dump", &server_obj, + if(!PyArg_ParseTuple(args, (char *) "OOs:login_new_from_dump", &server_obj, &user_obj, &dump)) return NULL; } diff --git a/python/lasso.py b/python/lasso.py index c171ac33..e126bfe6 100644 --- a/python/lasso.py +++ b/python/lasso.py @@ -861,6 +861,11 @@ class Login: return Login(obj) new = classmethod(new) + def new_from_dump(cls, server, user, dump): + obj = lassomod.login_new_from_dump(server, user, dump) + return Login(obj) + new_from_dump = classmethod(new_from_dump) + def build_artifact_msg(self, authentication_result, authenticationMethod, reauthenticateOnOrAfter, method): return lassomod.login_build_artifact_msg(self, authentication_result, @@ -871,9 +876,18 @@ class Login: def build_authn_request_msg(self): return lassomod.login_build_authn_request_msg(self) + def build_authn_response_msg(self, authentication_result, authenticationMethod, + reauthenticateOnOrAfter): + return lassomod.login_build_authn_response_msg(self, authentication_result, + authenticationMethod, + reauthenticateOnOrAfter) + def build_request_msg(self): return lassomod.login_build_request_msg(self) + def dump(self): + return lassomod.login_dump(self) + def handle_authn_response_msg(self, authn_response_msg): return lassomod.login_handle_authn_response_msg(self, authn_response_msg) -- cgit