diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2011-12-22 18:55:52 +0100 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2011-12-22 18:55:52 +0100 |
| commit | 1907d66f1adbe2223d34144646debea6c4b5de5a (patch) | |
| tree | 19507722c028cb5fbe1e6884af0714f673ecc092 | |
| parent | 56d584ca69bf83d71bff52ecbf8fa3df6216c790 (diff) | |
| download | lasso-1907d66f1adbe2223d34144646debea6c4b5de5a.tar.gz lasso-1907d66f1adbe2223d34144646debea6c4b5de5a.tar.xz lasso-1907d66f1adbe2223d34144646debea6c4b5de5a.zip | |
[id-ff 1.2] in lasso_login_build_assertion() always add the assertion to the response
| -rw-r--r-- | lasso/id-ff/login.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lasso/id-ff/login.c b/lasso/id-ff/login.c index c20b4b5d..3bd29ebd 100644 --- a/lasso/id-ff/login.c +++ b/lasso/id-ff/login.c @@ -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); } |
