[saml2] for any RequestDenied SAML2 response return LASSO_PROFILE_ERROR_REQUEST_DENIED as error

This commit is contained in:
Benjamin Dauvergne 2011-04-21 11:04:29 +02:00
parent ebd9266cb5
commit 7016e7c453
1 changed files with 3 additions and 0 deletions

View File

@ -1412,6 +1412,9 @@ lasso_saml20_profile_process_any_response(LassoProfile *profile,
if (!status_code2->Value)
goto cleanup;
/* FIXME: what to do with secondary status code ? */
if (lasso_strisequal(status_code2->Value, LASSO_SAML2_STATUS_CODE_REQUEST_DENIED)) {
rc = LASSO_PROFILE_ERROR_REQUEST_DENIED;
}
}
cleanup: