diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/examples/logout-from-idp.py | 2 | ||||
| -rw-r--r-- | python/protocols/py_logout_request.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/python/examples/logout-from-idp.py b/python/examples/logout-from-idp.py index 38266d44..398b9695 100644 --- a/python/examples/logout-from-idp.py +++ b/python/examples/logout-from-idp.py @@ -17,7 +17,7 @@ server.add_provider("../../examples/sp3.xml", None, None) # user : -sp1_identity = """<LassoIdentity RemoteProviderID="https://service-provider1:2003/liberty-alliance/metadata"><LassoRemoteNameIdentifier><NameIdentifier NameQualifier="https://identity-provider:2003/liberty-alliance/metadata" Format="federated">111111111111111111111111</NameIdentifier></LassoRemoteNameIdentifier></LassoIdentity>""" +sp1_identity = """<LassoIdentity RemoteProviderID="https://service-provider1:2003/liberty-alliance/metadata"><LassoRemoteNameIdentifier><NameIdentifier NameQualifier="https://identity-provider:2003/liberty-alliance/metadata" Format="federated">111111111111111111111111</NameIdentifier></LassoRemoteNameIdentifier><LassoLocalNameIdentifier><NameIdentifier NameQualifier="https://identity-provider:2003/liberty-alliance/metadata" Format="federated">222222222222222222222222</NameIdentifier></LassoLocalNameIdentifier></LassoIdentity>""" sp1_assertion = """<LassoAssertion RemoteProviderID="https://service-provider1:2003/liberty-alliance/metadata"><Assertion AssertionID="1234567890"></Assertion></LassoAssertion>""" sp2_identity = """<LassoIdentity RemoteProviderID="https://service-provider2:2003/liberty-alliance/metadata"><LassoRemoteNameIdentifier><NameIdentifier NameQualifier="https://identity-provider:2003/liberty-alliance/metadata" Format="federated">222222222222222222222</NameIdentifier></LassoRemoteNameIdentifier></LassoIdentity>""" diff --git a/python/protocols/py_logout_request.c b/python/protocols/py_logout_request.c index ee4a75bf..803a3346 100644 --- a/python/protocols/py_logout_request.c +++ b/python/protocols/py_logout_request.c @@ -63,18 +63,18 @@ PyObject *logout_request_new(PyObject *self, PyObject *args) { } PyObject *logout_request_new_from_export(PyObject *self, PyObject *args) { - gchar *buffer; - lassoNodeExportTypes export_type; - LassoNode *request; + gchar *buffer; + gint type; + LassoNode *request; if (CheckArgs(args, "SS:logout_request_new_from_export")) { if(!PyArg_ParseTuple(args, (char *) "ss:logout_request_new_from_export", - &buffer, &export_type)) + &buffer, &type)) return NULL; } else return NULL; - request = lasso_logout_request_new_from_export(buffer, export_type); + request = lasso_logout_request_new_from_export(buffer, type); return (LassoLogoutRequest_wrap(LASSO_LOGOUT_REQUEST(request))); } |
