*** empty log message ***

This commit is contained in:
Nicolas Clapies 2004-08-23 16:19:40 +00:00
parent 784ae391d0
commit d76c084fb6
4 changed files with 51 additions and 50 deletions

View File

@ -182,7 +182,7 @@ lasso_authn_request_new(const xmlChar *providerID,
lasso_samlp_request_abstract_set_signature_tmpl(LASSO_SAMLP_REQUEST_ABSTRACT(request),
sign_type,
sign_method,
id);
NULL);
}
/* ProviderID */
lasso_lib_authn_request_set_providerID(LASSO_LIB_AUTHN_REQUEST(request),

View File

@ -105,16 +105,18 @@ lasso_logout_request_new(gchar *providerID,
(const xmlChar *)time);
xmlFree(time);
class = LASSO_NODE_GET_CLASS(request);
doc = xmlNewDoc("1.0");
xmlNode = class->get_xmlNode(request);
id_attr = lasso_node_get_attr(request, "RequestID", NULL);
if (id_attr != NULL) {
id_value = xmlNodeListGetString(doc, id_attr->children, 1);
id = xmlAddID(NULL, doc, id_value, id_attr);
xmlFree(id_value);
}
/* class = LASSO_NODE_GET_CLASS(request); */
/* doc = xmlNewDoc("1.0"); */
/* xmlNode = class->get_xmlNode(request); */
/* xmlAddChild((xmlNodePtr)doc, xmlNode); */
/* id_attr = lasso_node_get_attr(request, "RequestID", NULL); */
/* if (id_attr != NULL) { */
/* printf("Request id found %s, get his value and set ID\n", xmlNode->name); */
/* id_value = xmlNodeListGetString(doc, id_attr->children, 1); */
/* id = xmlAddID(NULL, doc, id_value, id_attr); */
/* printf("id from xmlAddID() %s\n", id->value); */
/* xmlFree(id_value); */
/* } */
/* set the signature template */
if (sign_type != lassoSignatureTypeNone) {

View File

@ -126,7 +126,7 @@ lasso_logout_response_new(gchar *providerID,
/* set the signature template */
if (sign_type != lassoSignatureTypeNone) {
lasso_samlp_response_abstract_set_signature_tmpl(LASSO_SAMLP_RESPONSE_ABSTRACT(request),
lasso_samlp_response_abstract_set_signature_tmpl(LASSO_SAMLP_RESPONSE_ABSTRACT(response),
sign_type,
sign_method);
}

View File

@ -452,7 +452,6 @@ lasso_logout_init_request(LassoLogout *logout,
}
done:
printf("lasso_logout_init_request() done\n");
if (federation != NULL) {
lasso_federation_destroy(federation);
}
@ -683,51 +682,51 @@ lasso_logout_validate_request(LassoLogout *logout)
/* if SOAP request method at IDP then verify all the remote service providers support SOAP protocol profile.
If one remote authenticated principal service provider doesn't support SOAP
then return UnsupportedProfile to original service provider */
if (profile->provider_type==lassoProviderTypeIdp && profile->http_request_method==lassoHttpMethodSoap) {
gboolean all_http_soap;
LassoProvider *provider;
gchar *providerID, *protocolProfile;
int i;
/* if (profile->provider_type==lassoProviderTypeIdp && profile->http_request_method==lassoHttpMethodSoap) { */
/* gboolean all_http_soap; */
/* LassoProvider *provider; */
/* gchar *providerID, *protocolProfile; */
/* int i; */
all_http_soap = TRUE;
/* all_http_soap = TRUE; */
for (i = 0; i<profile->server->providers->len; i++) {
provider = g_ptr_array_index(profile->server->providers, i);
providerID = lasso_provider_get_providerID(provider);
/* for (i = 0; i<profile->server->providers->len; i++) { */
/* provider = g_ptr_array_index(profile->server->providers, i); */
/* providerID = lasso_provider_get_providerID(provider); */
/* if the original service provider then continue */
if (xmlStrEqual(remote_providerID, providerID)) {
continue;
}
/* /\* if the original service provider then continue *\/ */
/* if (xmlStrEqual(remote_providerID, providerID)) { */
/* continue; */
/* } */
/* if principal is not authenticated with this remote service provider, continue */
assertion = lasso_session_get_assertion(profile->session, providerID);
if (assertion == NULL) {
continue;
}
/* /\* if principal is not authenticated with this remote service provider, continue *\/ */
/* assertion = lasso_session_get_assertion(profile->session, providerID); */
/* if (assertion == NULL) { */
/* continue; */
/* } */
/* if protocolProfile is SOAP continue else break */
protocolProfile = lasso_provider_get_singleLogoutProtocolProfile(provider, lassoProviderTypeIdp, NULL);
if (protocolProfile == NULL || !xmlStrEqual(protocolProfile, lassoLibProtocolProfileSloSpSoap)) {
all_http_soap = FALSE;
break;
}
/* /\* if protocolProfile is SOAP continue else break *\/ */
/* protocolProfile = lasso_provider_get_singleLogoutProtocolProfile(provider, lassoProviderTypeIdp, NULL); */
/* if (protocolProfile == NULL || !xmlStrEqual(protocolProfile, lassoLibProtocolProfileSloSpSoap)) { */
/* all_http_soap = FALSE; */
/* break; */
/* } */
if (protocolProfile != NULL) {
xmlFree(protocolProfile);
}
/* if (protocolProfile != NULL) { */
/* xmlFree(protocolProfile); */
/* } */
if (providerID != NULL) {
xmlFree(providerID);
}
}
/* if (providerID != NULL) { */
/* xmlFree(providerID); */
/* } */
/* } */
if (all_http_soap==FALSE) {
statusCode_class->set_prop(statusCode, "Value", lassoLibStatusCodeUnsupportedProfile);
ret = -1;
goto done;
}
}
/* if (all_http_soap==FALSE) { */
/* statusCode_class->set_prop(statusCode, "Value", lassoLibStatusCodeUnsupportedProfile); */
/* ret = -1; */
/* goto done; */
/* } */
/* } */
lasso_federation_destroy(federation);