diff options
author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-07-11 22:13:42 +0000 |
---|---|---|
committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-07-11 22:13:42 +0000 |
commit | c1ffd41e7599ac1502c29d0a04a2b1ca289d7f66 (patch) | |
tree | 68f2c852a9fb6491f3c6953f9c32a10dabd1e3e3 /python | |
parent | 9f85a16d977b9724c2ef45e819a03ed4c00d6cdc (diff) | |
download | lasso-c1ffd41e7599ac1502c29d0a04a2b1ca289d7f66.tar.gz lasso-c1ffd41e7599ac1502c29d0a04a2b1ca289d7f66.tar.xz lasso-c1ffd41e7599ac1502c29d0a04a2b1ca289d7f66.zip |
*** empty log message ***
Diffstat (limited to 'python')
-rw-r--r-- | python/environs/py_login.c | 57 | ||||
-rw-r--r-- | python/environs/py_login.h | 3 | ||||
-rw-r--r-- | python/lasso.py | 3 | ||||
-rw-r--r-- | python/lassomod.c | 3 |
4 files changed, 66 insertions, 0 deletions
diff --git a/python/environs/py_login.c b/python/environs/py_login.c index 6d2882c0..c2f8691b 100644 --- a/python/environs/py_login.c +++ b/python/environs/py_login.c @@ -165,6 +165,29 @@ PyObject *login_build_authn_request_msg(PyObject *self, PyObject *args) { return (int_wrap(ret)); } +PyObject *login_build_authn_response_msg(PyObject *self, PyObject *args) { + PyObject *login_obj; + gint authentication_result; + const gchar *authenticationMethod; + const gchar *reauthenticateOnOrAfter; + gint ret; + + if (CheckArgs(args, "OISS:login_build_artifact_msg")) { + if(!PyArg_ParseTuple(args, (char *) "Oiss:login_build_artifact_msg", + &login_obj, &authentication_result, + &authenticationMethod, &reauthenticateOnOrAfter)) + return NULL; + } + else return NULL; + + ret = lasso_login_build_authn_response_msg(LassoLogin_get(login_obj), + authentication_result, + authenticationMethod, + reauthenticateOnOrAfter); + + return (int_wrap(ret)); +} + PyObject *login_build_request_msg(PyObject *self, PyObject *args) { PyObject *login_obj; gint ret; @@ -181,6 +204,40 @@ PyObject *login_build_request_msg(PyObject *self, PyObject *args) { return (int_wrap(ret)); } +PyObject *login_dump(PyObject *self, PyObject *args) { + PyObject *login_obj; + gchar *ret; + + if (CheckArgs(args, "O:login_dump")) { + if(!PyArg_ParseTuple(args, (char *) "O:login_dump", + &login_obj)) + return NULL; + } + else return NULL; + + ret = lasso_login_dump(LassoLogin_get(login_obj)); + + return (charPtrConst_wrap(ret)); +} + +PyObject *login_handle_authn_response_msg(PyObject *self, PyObject *args) { + PyObject *login_obj; + gchar *authn_response_msg; + gboolean ret; + + if (CheckArgs(args, "OS:login_handle_authn_response_msg")) { + if(!PyArg_ParseTuple(args, (char *) "Os:login_handle_authn_response_msg", + &login_obj, &authn_response_msg)) + return NULL; + } + else return NULL; + + ret = lasso_login_handle_authn_response_msg(LassoLogin_get(login_obj), + authn_response_msg); + + return (int_wrap(ret)); +} + PyObject *login_handle_request_msg(PyObject *self, PyObject *args) { PyObject *login_obj; gchar *request_msg; diff --git a/python/environs/py_login.h b/python/environs/py_login.h index 8fed53ae..3c50fe9f 100644 --- a/python/environs/py_login.h +++ b/python/environs/py_login.h @@ -44,7 +44,10 @@ PyObject *login_new(PyObject *self, PyObject *args); PyObject *login_new_from_dump(PyObject *self, PyObject *args); PyObject *login_build_artifact_msg(PyObject *self, PyObject *args); PyObject *login_build_authn_request_msg(PyObject *self, PyObject *args); +PyObject *login_build_authn_response_msg(PyObject *self, PyObject *args); PyObject *login_build_request_msg(PyObject *self, PyObject *args); +PyObject *login_dump(PyObject *self, PyObject *args); +PyObject *login_handle_authn_response_msg(PyObject *self, PyObject *args); PyObject *login_handle_request_msg(PyObject *self, PyObject *args); PyObject *login_init_authn_request(PyObject *self, PyObject *args); PyObject *login_init_from_authn_request_msg(PyObject *self, PyObject *args); diff --git a/python/lasso.py b/python/lasso.py index 8f6df7c1..c171ac33 100644 --- a/python/lasso.py +++ b/python/lasso.py @@ -874,6 +874,9 @@ class Login: def build_request_msg(self): return lassomod.login_build_request_msg(self) + def handle_authn_response_msg(self, authn_response_msg): + return lassomod.login_handle_authn_response_msg(self, authn_response_msg) + def handle_request_msg(self, request_msg): return lassomod.login_handle_request_msg(self, request_msg) diff --git a/python/lassomod.c b/python/lassomod.c index 846e07e3..ce18c5e4 100644 --- a/python/lassomod.c +++ b/python/lassomod.c @@ -207,7 +207,10 @@ static PyMethodDef lasso_methods[] = { {"login_new_from_dump", login_new_from_dump, METH_VARARGS}, {"login_build_artifact_msg", login_build_artifact_msg, METH_VARARGS}, {"login_build_authn_request_msg", login_build_authn_request_msg, METH_VARARGS}, + {"login_build_authn_response_msg", login_build_authn_response_msg, METH_VARARGS}, {"login_build_request_msg", login_build_request_msg, METH_VARARGS}, + {"login_dump", login_dump, METH_VARARGS}, + {"login_handle_authn_response_msg", login_handle_authn_response_msg, METH_VARARGS}, {"login_handle_request_msg", login_handle_request_msg, METH_VARARGS}, {"login_init_authn_request", login_init_authn_request, METH_VARARGS}, {"login_init_from_authn_request_msg", login_init_from_authn_request_msg, METH_VARARGS}, |