summaryrefslogtreecommitdiffstats
path: root/python/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'python/protocols')
-rw-r--r--python/protocols/py_single_sign_on_and_federation.c14
-rw-r--r--python/protocols/py_single_sign_on_and_federation.h1
2 files changed, 15 insertions, 0 deletions
diff --git a/python/protocols/py_single_sign_on_and_federation.c b/python/protocols/py_single_sign_on_and_federation.c
index 74637829..57562fff 100644
--- a/python/protocols/py_single_sign_on_and_federation.c
+++ b/python/protocols/py_single_sign_on_and_federation.c
@@ -417,3 +417,17 @@ PyObject *response_init(PyObject *self, PyObject *args) {
return (int_wrap(ret));
}
+
+PyObject *response_add_assertion(PyObject *self, PyObject *args) {
+ PyObject *response_obj, *assertion_obj;
+ int ret;
+
+ if(!PyArg_ParseTuple(args, (char *) "OO:response_add_assertion",
+ &response_obj, &assertion_obj))
+ return NULL;
+
+ ret = lasso_response_add_assertion(lassoResponse_get(response_obj),
+ LassoNode_get(assertion_obj));
+
+ return (int_wrap(ret));
+}
diff --git a/python/protocols/py_single_sign_on_and_federation.h b/python/protocols/py_single_sign_on_and_federation.h
index 94c75b6f..9ac4fa43 100644
--- a/python/protocols/py_single_sign_on_and_federation.h
+++ b/python/protocols/py_single_sign_on_and_federation.h
@@ -78,5 +78,6 @@ PyObject *request_create(PyObject *self, PyObject *args);
PyObject *response_getattr(PyObject *self, PyObject *args);
PyObject *response_create(PyObject *self, PyObject *args);
PyObject *response_init(PyObject *self, PyObject *args);
+PyObject *response_add_assertion(PyObject *self, PyObject *args);
#endif /* __PYLASSO_PY_SINGLE_SIGN_ON_AND_FEDERATION_H__ */