[id-ff 1.2] in lasso_login_build_assertion() always add the assertion to the response

This commit is contained in:
Benjamin Dauvergne 2011-12-22 18:55:52 +01:00
parent 56d584ca69
commit 1907d66f1a
1 changed files with 4 additions and 7 deletions

View File

@ -413,13 +413,8 @@ lasso_login_build_assertion(LassoLogin *login,
lasso_check_good_rc(lasso_server_set_signature_for_provider_by_name(login->parent.server,
profile->remote_providerID, (LassoNode*)assertion));
if (login->protocolProfile == LASSO_LOGIN_PROTOCOL_PROFILE_BRWS_POST || \
login->protocolProfile == LASSO_LOGIN_PROTOCOL_PROFILE_BRWS_LECP) {
/* only add assertion if response is an AuthnResponse */
lasso_list_add_gobject(LASSO_SAMLP_RESPONSE(profile->response)->Assertion,
assertion);
}
lasso_list_add_gobject(LASSO_SAMLP_RESPONSE(profile->response)->Assertion,
assertion);
#ifdef LASSO_WSF_ENABLED
lasso_login_assertion_add_discovery(login, assertion);
@ -864,6 +859,8 @@ lasso_login_build_assertion_artifact(LassoLogin *login)
b64_samlArt = xmlSecBase64Encode(samlArt, 42, 0);
lasso_assign_string(login->assertionArtifact, (char*)b64_samlArt);
lasso_assign_string(login->parent.private_data->artifact,
(char*)b64_samlArt);
lasso_release_xml_string(b64_samlArt);
}