diff options
| author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-07-14 13:29:42 +0000 |
|---|---|---|
| committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-07-14 13:29:42 +0000 |
| commit | 37b91c1e7a48b5f693a8ecd1820900e247313ccd (patch) | |
| tree | f93ccaf25d630dc151e52e47cbb024cf31108258 /python | |
| parent | 6dd81a97236a54cde4bf80b18d28b191b13f6127 (diff) | |
| download | lasso-37b91c1e7a48b5f693a8ecd1820900e247313ccd.tar.gz lasso-37b91c1e7a48b5f693a8ecd1820900e247313ccd.tar.xz lasso-37b91c1e7a48b5f693a8ecd1820900e247313ccd.zip | |
*** empty log message ***
Diffstat (limited to 'python')
| -rw-r--r-- | python/environs/py_login.c | 91 | ||||
| -rw-r--r-- | python/environs/py_login.h | 5 | ||||
| -rw-r--r-- | python/lasso.py | 15 | ||||
| -rw-r--r-- | python/lassomod.c | 5 |
4 files changed, 70 insertions, 46 deletions
diff --git a/python/environs/py_login.c b/python/environs/py_login.c index de835293..b64c9b9a 100644 --- a/python/environs/py_login.c +++ b/python/environs/py_login.c @@ -222,42 +222,6 @@ PyObject *login_dump(PyObject *self, PyObject *args) { return (charPtrConst_wrap(ret)); } -PyObject *login_process_authn_response_msg(PyObject *self, PyObject *args) { - PyObject *login_obj; - gchar *authn_response_msg; - gboolean ret; - - if (CheckArgs(args, "OS:login_process_authn_response_msg")) { - if(!PyArg_ParseTuple(args, (char *) "Os:login_process_authn_response_msg", - &login_obj, &authn_response_msg)) - return NULL; - } - else return NULL; - - ret = lasso_login_process_authn_response_msg(LassoLogin_get(login_obj), - authn_response_msg); - - return (int_wrap(ret)); -} - -PyObject *login_process_request_msg(PyObject *self, PyObject *args) { - PyObject *login_obj; - gchar *request_msg; - gboolean ret; - - if (CheckArgs(args, "OS:login_process_request_msg")) { - if(!PyArg_ParseTuple(args, (char *) "Os:login_process_request_msg", - &login_obj, &request_msg)) - return NULL; - } - else return NULL; - - ret = lasso_login_process_request_msg(LassoLogin_get(login_obj), - request_msg); - - return (int_wrap(ret)); -} - PyObject *login_init_authn_request(PyObject *self, PyObject *args) { PyObject *login_obj; gchar *remote_providerID; @@ -334,3 +298,58 @@ PyObject *login_must_authenticate(PyObject *self, PyObject *args) { return (int_wrap(ret)); } + +PyObject *login_process_authn_response_msg(PyObject *self, PyObject *args) { + PyObject *login_obj; + gchar *authn_response_msg; + gboolean ret; + + if (CheckArgs(args, "OS:login_process_authn_response_msg")) { + if(!PyArg_ParseTuple(args, (char *) "Os:login_process_authn_response_msg", + &login_obj, &authn_response_msg)) + return NULL; + } + else return NULL; + + ret = lasso_login_process_authn_response_msg(LassoLogin_get(login_obj), + authn_response_msg); + + return (int_wrap(ret)); +} + +PyObject *login_process_request_msg(PyObject *self, PyObject *args) { + PyObject *login_obj; + gchar *request_msg; + gboolean ret; + + if (CheckArgs(args, "OS:login_process_request_msg")) { + if(!PyArg_ParseTuple(args, (char *) "Os:login_process_request_msg", + &login_obj, &request_msg)) + return NULL; + } + else return NULL; + + ret = lasso_login_process_request_msg(LassoLogin_get(login_obj), + request_msg); + + return (int_wrap(ret)); +} + +PyObject *login_process_response_msg(PyObject *self, PyObject *args) { + PyObject *login_obj; + gchar *response_msg; + gchar *remote_providerID; + gboolean ret; + + if (CheckArgs(args, "OSS:login_process_response_msg")) { + if(!PyArg_ParseTuple(args, (char *) "Oss:login_process_response_msg", + &login_obj, &response_msg, &remote_providerID)) + return NULL; + } + else return NULL; + + ret = lasso_login_process_response_msg(LassoLogin_get(login_obj), + response_msg, remote_providerID); + + return (int_wrap(ret)); +} diff --git a/python/environs/py_login.h b/python/environs/py_login.h index f0a22ee9..4fae7931 100644 --- a/python/environs/py_login.h +++ b/python/environs/py_login.h @@ -47,11 +47,12 @@ 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_process_authn_response_msg(PyObject *self, PyObject *args); -PyObject *login_process_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); PyObject *login_init_request(PyObject *self, PyObject *args); PyObject *login_must_authenticate(PyObject *self, PyObject *args); +PyObject *login_process_authn_response_msg(PyObject *self, PyObject *args); +PyObject *login_process_request_msg(PyObject *self, PyObject *args); +PyObject *login_process_response_msg(PyObject *self, PyObject *args); #endif /* __PYLASSO_PY_LOGIN_H__ */ diff --git a/python/lasso.py b/python/lasso.py index 5a30fe06..d41d93f9 100644 --- a/python/lasso.py +++ b/python/lasso.py @@ -928,12 +928,6 @@ class Login: def dump(self): return lassomod.login_dump(self) - def process_authn_response_msg(self, authn_response_msg): - return lassomod.login_process_authn_response_msg(self, authn_response_msg) - - def process_request_msg(self, request_msg): - return lassomod.login_process_request_msg(self, request_msg) - def init_authn_request(self, remote_providerID): return lassomod.login_init_authn_request(self, remote_providerID) @@ -948,6 +942,15 @@ class Login: def must_authenticate(self): return lassomod.login_must_authenticate(self) + def process_authn_response_msg(self, authn_response_msg): + return lassomod.login_process_authn_response_msg(self, authn_response_msg) + + def process_request_msg(self, request_msg): + return lassomod.login_process_request_msg(self, request_msg) + + def process_response_msg(self, response_msg, remote_providerID): + return lassomod.login_process_response_msg(self, response_msg, remote_providerID) + providerTypeSp = 1 providerTypeIdp = 2 diff --git a/python/lassomod.c b/python/lassomod.c index b89613e5..af6a6897 100644 --- a/python/lassomod.c +++ b/python/lassomod.c @@ -210,12 +210,13 @@ static PyMethodDef lasso_methods[] = { {"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_process_authn_response_msg", login_process_authn_response_msg, METH_VARARGS}, - {"login_process_request_msg", login_process_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}, {"login_init_request", login_init_request, METH_VARARGS}, {"login_must_authenticate", login_must_authenticate, METH_VARARGS}, + {"login_process_authn_response_msg", login_process_authn_response_msg, METH_VARARGS}, + {"login_process_request_msg", login_process_request_msg, METH_VARARGS}, + {"login_process_response_msg", login_process_response_msg, METH_VARARGS}, /* py_logout.h */ {"logout_new", logout_new, METH_VARARGS}, |
