summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
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)