Clarify request URI mismatch error message in SAML adapter.

Show expected URI and received URI in error message. Also makes the logging behavior of 'handleSamlResponse' the same as 'handleSamlRequest' since that method already shows the expected and received URI.
This commit is contained in:
Jasper Siepkes 2017-09-11 19:52:49 +02:00
parent 0a5de1239f
commit 458c2f2682
No known key found for this signature in database
GPG key ID: 26561247092EC4D2

View file

@ -187,7 +187,7 @@ public abstract class AbstractSamlAuthenticationHandler implements SamlAuthentic
final StatusResponseType statusResponse = (StatusResponseType) holder.getSamlObject();
// validate destination
if (!requestUri.equals(statusResponse.getDestination())) {
log.error("Request URI does not match SAML request destination");
log.error("Request URI '" + requestUri + "' does not match SAML request destination '" + statusResponse.getDestination() + "'");
return AuthOutcome.FAILED;
}