summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-07-11 22:29:40 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-07-11 22:29:40 +0000
commitf8b363262daaa664446c382b88b4cdb1de2ac08c (patch)
treeb1b39165e76c4a531f52a458116b5d2b94a9da8d /python
parentc1ffd41e7599ac1502c29d0a04a2b1ca289d7f66 (diff)
downloadlasso-f8b363262daaa664446c382b88b4cdb1de2ac08c.tar.gz
lasso-f8b363262daaa664446c382b88b4cdb1de2ac08c.tar.xz
lasso-f8b363262daaa664446c382b88b4cdb1de2ac08c.zip
*** empty log message ***
Diffstat (limited to 'python')
-rw-r--r--python/environs/py_login.c2
-rw-r--r--python/lasso.py14
2 files changed, 15 insertions, 1 deletions
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)