summaryrefslogtreecommitdiffstats
path: root/python/environs
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-07-11 00:18:26 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-07-11 00:18:26 +0000
commite1580d4b512b7fdbaed988e50b8069b66ff688d5 (patch)
treee10a22ec7b06271b2364c29e757a4cd2dcaa3dd2 /python/environs
parent3677573bee663ff680489855724dcdc8360e6860 (diff)
downloadlasso-e1580d4b512b7fdbaed988e50b8069b66ff688d5.tar.gz
lasso-e1580d4b512b7fdbaed988e50b8069b66ff688d5.tar.xz
lasso-e1580d4b512b7fdbaed988e50b8069b66ff688d5.zip
*** empty log message ***
Diffstat (limited to 'python/environs')
-rw-r--r--python/environs/py_login.c45
-rw-r--r--python/environs/py_login.h2
2 files changed, 45 insertions, 2 deletions
diff --git a/python/environs/py_login.c b/python/environs/py_login.c
index d7734a2f..f0dbee5a 100644
--- a/python/environs/py_login.c
+++ b/python/environs/py_login.c
@@ -56,8 +56,8 @@ PyObject *login_getattr(PyObject *self, PyObject *args) {
login = LassoLogin_get(login_obj);
if (!strcmp(attr, "__members__"))
- return Py_BuildValue("[sssss]", "request", "response", "request_type",
- "msg_url", "protocolProfile");
+ return Py_BuildValue("[ssssss]", "request", "response", "request_type",
+ "msg_url", "msg_body", "protocolProfile");
if (!strcmp(attr, "request"))
return (LassoNode_wrap(LASSO_PROFILE_CONTEXT(login)->request));
if (!strcmp(attr, "response"))
@@ -66,6 +66,8 @@ PyObject *login_getattr(PyObject *self, PyObject *args) {
return (int_wrap(LASSO_PROFILE_CONTEXT(login)->request_type));
if (!strcmp(attr, "msg_url"))
return (charPtrConst_wrap(LASSO_PROFILE_CONTEXT(login)->msg_url));
+ if (!strcmp(attr, "msg_body"))
+ return (charPtrConst_wrap(LASSO_PROFILE_CONTEXT(login)->msg_body));
if (!strcmp(attr, "protocolProfile"))
return (int_wrap(login->protocolProfile));
@@ -161,6 +163,22 @@ PyObject *login_build_authn_request_msg(PyObject *self, PyObject *args) {
return (int_wrap(ret));
}
+PyObject *login_build_request_msg(PyObject *self, PyObject *args) {
+ PyObject *login_obj;
+ gint ret;
+
+ if (CheckArgs(args, "O:login_build_request_msg")) {
+ if(!PyArg_ParseTuple(args, (char *) "O:login_build_request_msg",
+ &login_obj))
+ return NULL;
+ }
+ else return NULL;
+
+ ret = lasso_login_build_request_msg(LassoLogin_get(login_obj));
+
+ return (int_wrap(ret));
+}
+
PyObject *login_init_authn_request(PyObject *self, PyObject *args) {
PyObject *login_obj;
gchar *remote_providerID;
@@ -199,6 +217,29 @@ PyObject *login_init_from_authn_request_msg(PyObject *self, PyObject *args) {
return (int_wrap(ret));
}
+PyObject *login_init_request(PyObject *self, PyObject *args) {
+ PyObject *login_obj;
+ gchar *response_msg;
+ lassoHttpMethods response_method;
+ const gchar *remote_providerID;
+ gint ret;
+
+ if (CheckArgs(args, "OSIS:login_init_request")) {
+ if(!PyArg_ParseTuple(args, (char *) "Osis:login_init_request",
+ &login_obj, &response_msg,
+ &response_method, &remote_providerID))
+ return NULL;
+ }
+ else return NULL;
+
+ ret = lasso_login_init_request(LassoLogin_get(login_obj),
+ response_msg,
+ response_method,
+ remote_providerID);
+
+ return (int_wrap(ret));
+}
+
PyObject *login_must_authenticate(PyObject *self, PyObject *args) {
PyObject *login_obj;
gboolean ret;
diff --git a/python/environs/py_login.h b/python/environs/py_login.h
index cb48de1c..7b8b4e2d 100644
--- a/python/environs/py_login.h
+++ b/python/environs/py_login.h
@@ -44,8 +44,10 @@ PyObject *login_new(PyObject *self, PyObject *args);
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_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);
#endif /* __PYLASSO_PY_LOGIN_H__ */