summaryrefslogtreecommitdiffstats
path: root/python/protocols
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-04-08 13:19:52 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-04-08 13:19:52 +0000
commit3d2a99d2ba0096930515a32a682e918f3081c039 (patch)
treef181cdf3093d99d3d16b6f185c27b6fdf2cf5ab2 /python/protocols
parent5ab4384d35718496cf9eb93159dbdd0d15da63c1 (diff)
downloadlasso-3d2a99d2ba0096930515a32a682e918f3081c039.tar.gz
lasso-3d2a99d2ba0096930515a32a682e918f3081c039.tar.xz
lasso-3d2a99d2ba0096930515a32a682e918f3081c039.zip
*** empty log message ***
Diffstat (limited to 'python/protocols')
-rw-r--r--python/protocols/py_single_sign_on_and_federation.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/python/protocols/py_single_sign_on_and_federation.c b/python/protocols/py_single_sign_on_and_federation.c
index b9ccc3b5..bf62a039 100644
--- a/python/protocols/py_single_sign_on_and_federation.c
+++ b/python/protocols/py_single_sign_on_and_federation.c
@@ -78,8 +78,8 @@ PyObject *authn_request_create(PyObject *self, PyObject *args) {
const xmlChar *isPassive;
const xmlChar *protocolProfile;
const xmlChar *assertionConsumerServiceID;
- GPtrArray *authnContextClassRefs = NULL;
- GPtrArray *authnContextStatementRefs = NULL;
+ //GPtrArray *authnContextClassRefs = NULL;
+ //GPtrArray *authnContextStatementRefs = NULL;
const xmlChar *authnContextComparison;
const xmlChar *relayState;
gint proxyCount;
@@ -91,9 +91,9 @@ PyObject *authn_request_create(PyObject *self, PyObject *args) {
if(!PyArg_ParseTuple(args, (char *) "ssssssOOssiOs:authn_request_create",
&providerID, &nameIDPolicy, &forceAuthn, &isPassive,
&protocolProfile, &assertionConsumerServiceID,
- &authnContextClassRefs, &authnContextStatementRefs,
+ &authnContextClassRefs_obj, &authnContextStatementRefs_obj,
&authnContextComparison, &relayState, &proxyCount,
- &idpList, &consent))
+ &idpList_obj, &consent))
return NULL;
request = lasso_authn_request_create(providerID,
@@ -102,8 +102,8 @@ PyObject *authn_request_create(PyObject *self, PyObject *args) {
isPassive,
protocolProfile,
assertionConsumerServiceID,
- NULL,
- NULL,
+ PythonStringList2_get(authnContextClassRefs_obj),
+ PythonStringList2_get(authnContextStatementRefs_obj),
authnContextComparison,
relayState,
proxyCount,
@@ -145,9 +145,13 @@ PyObject *authn_response_getattr(PyObject *self, PyObject *args) {
reponse = lassoAuthnResponse_get(reponse_obj);
if (!strcmp(attr, "__members__"))
- return Py_BuildValue("[s]", "node");
+ return Py_BuildValue("[sss]", "node", "isPassive", "mustAuthenticate");
if (!strcmp(attr, "node"))
return (LassoNode_wrap(reponse->node));
+ if (!strcmp(attr, "isPassive"))
+ return (int_wrap(reponse->isPassive));
+ if (!strcmp(attr, "mustAuthenticate"))
+ return (int_wrap(reponse->mustAuthenticate));
Py_INCREF(Py_None);
return (Py_None);