fix #2711 improve log message

This commit is contained in:
Shinsuke Sugaya 2023-01-16 21:29:11 +09:00
parent 5948063883
commit 3c40f8df93

View file

@ -118,11 +118,11 @@ public class SpnegoAuthenticator implements SsoAuthenticator {
logger.debug("principal: {}", principal);
}
} catch (final Exception e) {
final String msg = "HTTP Authorization Header=" + request.getHeader(Constants.AUTHZ_HEADER);
final String msg = "Failed to process Authorization Header: " + request.getHeader(Constants.AUTHZ_HEADER);
if (logger.isDebugEnabled()) {
logger.debug(msg);
}
throw new SsoLoginException(msg, e);
throw new SsoLoginException(e.getMessage() + " " + msg, e);
}
// context/auth loop not yet complete