From 481aeef4e00c1c4193154674f15c8267f976641a Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 21 Apr 2011 11:06:04 +0200 Subject: [PATCH] [saml2] if Status is not Success pass continue processing the response lasso_saml20_login_process_response_status_and_assertion does analyze the response status code login specific error codes, if the generic processing from lasso_saml20_profile_process_any_response returns a status of response is not success, we must continue processing. --- lasso/saml-2.0/login.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lasso/saml-2.0/login.c b/lasso/saml-2.0/login.c index 08e5d6a2..3955b62c 100644 --- a/lasso/saml-2.0/login.c +++ b/lasso/saml-2.0/login.c @@ -1057,7 +1057,8 @@ lasso_saml20_login_process_authn_response_msg(LassoLogin *login, gchar *authn_re /* Skip signature errors, let lasso_saml20_login_process_response_status_and_assertion * handle them */ - goto_cleanup_if_fail (rc == 0 || rc == LASSO_PROFILE_ERROR_CANNOT_VERIFY_SIGNATURE); + goto_cleanup_if_fail (rc == 0 || rc == LASSO_LOGIN_ERROR_STATUS_NOT_SUCCESS || rc == + LASSO_PROFILE_ERROR_CANNOT_VERIFY_SIGNATURE); rc = lasso_saml20_login_process_response_status_and_assertion(login); cleanup: