summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/lasso.py6
-rw-r--r--python/lassomod.c2
-rw-r--r--python/xml/py_lib_authn_request.c36
-rw-r--r--python/xml/py_lib_authn_request.h2
4 files changed, 46 insertions, 0 deletions
diff --git a/python/lasso.py b/python/lasso.py
index 39f5170e..c8e8ca27 100644
--- a/python/lasso.py
+++ b/python/lasso.py
@@ -96,9 +96,15 @@ class LibAuthnRequest(Node):
def set_isPassive(self, isPassive):
lassomod.lib_authn_request_set_isPassive(self, isPassive)
+ def set_nameIDPolicy(self, nameIDPolicy):
+ lassomod.lib_authn_request_set_nameIDPolicy(self, nameIDPolicy)
+
def set_protocolProfile(self, protocolProfile):
lassomod.lib_authn_request_set_protocolProfile(self, protocolProfile)
+ def set_relayState(self, relayState):
+ lassomod.lib_authn_request_set_relayState(self, relayState)
+
class LibFederationTerminationNotification(Node):
def __init__(self, _obj=None):
diff --git a/python/lassomod.c b/python/lassomod.c
index 49e86b31..34ca0eb7 100644
--- a/python/lassomod.c
+++ b/python/lassomod.c
@@ -70,7 +70,9 @@ static PyMethodDef lasso_methods[] = {
{"lib_authn_request_new", lib_authn_request_new, METH_VARARGS},
{"lib_authn_request_set_forceAuthn", lib_authn_request_set_forceAuthn, METH_VARARGS},
{"lib_authn_request_set_isPassive", lib_authn_request_set_isPassive, METH_VARARGS},
+ {"lib_authn_request_set_nameIDPolicy", lib_authn_request_set_nameIDPolicy, METH_VARARGS},
{"lib_authn_request_set_protocolProfile", lib_authn_request_set_protocolProfile, METH_VARARGS},
+ {"lib_authn_request_set_relayState", lib_authn_request_set_relayState, METH_VARARGS},
/* py_lib_federation_termination_notification.h */
{"lib_federation_termination_notification_new", lib_federation_termination_notification_new, METH_VARARGS},
diff --git a/python/xml/py_lib_authn_request.c b/python/xml/py_lib_authn_request.c
index 1b1d2185..2aef05bf 100644
--- a/python/xml/py_lib_authn_request.c
+++ b/python/xml/py_lib_authn_request.c
@@ -85,6 +85,24 @@ PyObject *lib_authn_request_set_isPassive(PyObject *self, PyObject *args) {
return (Py_None);
}
+PyObject *lib_authn_request_set_nameIDPolicy(PyObject *self, PyObject *args) {
+ PyObject *node_obj;
+ const xmlChar *nameIDPolicy;
+
+ if (CheckArgs(args, "OS:lib_authn_request_set_nameIDPolicy")) {
+ if(!PyArg_ParseTuple(args, (char *) "Os:lib_authn_request_set_nameIDPolicy",
+ &node_obj, &nameIDPolicy))
+ return NULL;
+ }
+ else return NULL;
+
+ lasso_lib_authn_request_set_nameIDPolicy(LassoLibAuthnRequest_get(node_obj),
+ nameIDPolicy);
+
+ Py_INCREF(Py_None);
+ return (Py_None);
+}
+
PyObject *lib_authn_request_set_protocolProfile(PyObject *self, PyObject *args) {
PyObject *node_obj;
const xmlChar *protocolProfile;
@@ -102,3 +120,21 @@ PyObject *lib_authn_request_set_protocolProfile(PyObject *self, PyObject *args)
Py_INCREF(Py_None);
return (Py_None);
}
+
+PyObject *lib_authn_request_set_relayState(PyObject *self, PyObject *args) {
+ PyObject *node_obj;
+ const xmlChar *relayState;
+
+ if (CheckArgs(args, "OS:lib_authn_request_set_relayState")) {
+ if(!PyArg_ParseTuple(args, (char *) "Os:lib_authn_request_set_relayState",
+ &node_obj, &relayState))
+ return NULL;
+ }
+ else return NULL;
+
+ lasso_lib_authn_request_set_relayState(LassoLibAuthnRequest_get(node_obj),
+ relayState);
+
+ Py_INCREF(Py_None);
+ return (Py_None);
+}
diff --git a/python/xml/py_lib_authn_request.h b/python/xml/py_lib_authn_request.h
index a718c8bb..b6e98ce0 100644
--- a/python/xml/py_lib_authn_request.h
+++ b/python/xml/py_lib_authn_request.h
@@ -39,6 +39,8 @@ PyObject *LassoLibAuthnRequest_wrap(LassoLibAuthnRequest *request);
PyObject *lib_authn_request_new(PyObject *self, PyObject *args);
PyObject *lib_authn_request_set_forceAuthn(PyObject *self, PyObject *args);
PyObject *lib_authn_request_set_isPassive(PyObject *self, PyObject *args);
+PyObject *lib_authn_request_set_nameIDPolicy(PyObject *self, PyObject *args);
PyObject *lib_authn_request_set_protocolProfile(PyObject *self, PyObject *args);
+PyObject *lib_authn_request_set_relayState(PyObject *self, PyObject *args);
#endif /* __PYLASSO_PY_LIB_AUTHN_REQUEST_H__ */