summaryrefslogtreecommitdiffstats
path: root/python/environs
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2004-07-23 14:13:20 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2004-07-23 14:13:20 +0000
commitee2fba7c0fba3eb855a1ab5d32df65c4860bdf0b (patch)
tree98c53591e9975df8d3ff14ebfdc9a373069739fd /python/environs
parentafd693d03e6db77c6b0ab25a66cfe326975aa9f2 (diff)
downloadlasso-ee2fba7c0fba3eb855a1ab5d32df65c4860bdf0b.tar.gz
lasso-ee2fba7c0fba3eb855a1ab5d32df65c4860bdf0b.tar.xz
lasso-ee2fba7c0fba3eb855a1ab5d32df65c4860bdf0b.zip
update of logout with better support of propagation from idp
Diffstat (limited to 'python/environs')
-rw-r--r--python/environs/py_logout.c19
-rw-r--r--python/environs/py_logout.h1
2 files changed, 20 insertions, 0 deletions
diff --git a/python/environs/py_logout.c b/python/environs/py_logout.c
index 7e444a07..35fa483e 100644
--- a/python/environs/py_logout.c
+++ b/python/environs/py_logout.c
@@ -138,6 +138,25 @@ PyObject *logout_destroy(PyObject *self, PyObject *args){
return(Py_None);
}
+PyObject *logout_get_next_providerID(PyObject *self, PyObject *args) {
+ PyObject *logout_obj;
+ gchar *remote_providerID;
+
+ if (CheckArgs(args, "O:logout_get_next_providerID")) {
+ if(!PyArg_ParseTuple(args, (char *) "O:logout_get_next_providerID", &logout_obj))
+ return NULL;
+ }
+ else return NULL;
+
+ remote_providerID = lasso_logout_get_next_providerID(LassoLogout_get(logout_obj));
+ if(remote_providerID==NULL){
+ Py_INCREF(Py_None);
+ return (Py_None);
+ }
+
+ return (charPtr_wrap(remote_providerID));
+}
+
PyObject *logout_init_request(PyObject *self, PyObject *args) {
PyObject *logout_obj;
gchar *remote_providerID;
diff --git a/python/environs/py_logout.h b/python/environs/py_logout.h
index 479f0764..773ec548 100644
--- a/python/environs/py_logout.h
+++ b/python/environs/py_logout.h
@@ -44,6 +44,7 @@ PyObject *logout_getattr(PyObject *self, PyObject *args);
PyObject *logout_build_request_msg(PyObject *self, PyObject *args);
PyObject *logout_build_response_msg(PyObject *self, PyObject *args);
PyObject *logout_destroy(PyObject *self, PyObject *args);
+PyObject *logout_get_next_providerID(PyObject *self, PyObject *args);
PyObject *logout_init_request(PyObject *self, PyObject *args);
PyObject *logout_new(PyObject *self, PyObject *args);
PyObject *logout_process_request_msg(PyObject *self, PyObject *args);