From 210693c46dc8de2faf0e26c04a45e64a1e0b26bb Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Sun, 11 Jul 2004 03:09:12 +0000 Subject: *** empty log message *** --- python/environs/py_login.c | 22 +++++++++++++++++++++- python/environs/py_login.h | 1 + 2 files changed, 22 insertions(+), 1 deletion(-) (limited to 'python/environs') diff --git a/python/environs/py_login.c b/python/environs/py_login.c index f0dbee5a..6d2882c0 100644 --- a/python/environs/py_login.c +++ b/python/environs/py_login.c @@ -57,7 +57,7 @@ PyObject *login_getattr(PyObject *self, PyObject *args) { if (!strcmp(attr, "__members__")) return Py_BuildValue("[ssssss]", "request", "response", "request_type", - "msg_url", "msg_body", "protocolProfile"); + "msg_url", "msg_body", "protocolProfile", "assertionArtifact"); if (!strcmp(attr, "request")) return (LassoNode_wrap(LASSO_PROFILE_CONTEXT(login)->request)); if (!strcmp(attr, "response")) @@ -70,6 +70,8 @@ PyObject *login_getattr(PyObject *self, PyObject *args) { return (charPtrConst_wrap(LASSO_PROFILE_CONTEXT(login)->msg_body)); if (!strcmp(attr, "protocolProfile")) return (int_wrap(login->protocolProfile)); + if (!strcmp(attr, "assertionArtifact")) + return (charPtrConst_wrap(login->assertionArtifact)); Py_INCREF(Py_None); return (Py_None); @@ -179,6 +181,24 @@ PyObject *login_build_request_msg(PyObject *self, PyObject *args) { return (int_wrap(ret)); } +PyObject *login_handle_request_msg(PyObject *self, PyObject *args) { + PyObject *login_obj; + gchar *request_msg; + gboolean ret; + + if (CheckArgs(args, "OS:login_handle_request_msg")) { + if(!PyArg_ParseTuple(args, (char *) "Os:login_handle_request_msg", + &login_obj, &request_msg)) + return NULL; + } + else return NULL; + + ret = lasso_login_handle_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; diff --git a/python/environs/py_login.h b/python/environs/py_login.h index 7b8b4e2d..8fed53ae 100644 --- a/python/environs/py_login.h +++ b/python/environs/py_login.h @@ -45,6 +45,7 @@ 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_request_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); PyObject *login_init_request(PyObject *self, PyObject *args); -- cgit