mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 13:53:14 +00:00
Polish Debug Messages
Issue gh-16484
This commit is contained in:
parent
291162a195
commit
6fdfeb3413
@ -187,16 +187,16 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar
|
|||||||
}
|
}
|
||||||
catch (AccountStatusException ex) {
|
catch (AccountStatusException ex) {
|
||||||
prepareException(ex, authentication);
|
prepareException(ex, authentication);
|
||||||
logger.debug(LogMessage.format("Authentication failed for user '%s' since account status is %s",
|
logger.debug(LogMessage.format("Authentication failed for user '%s' since their account status is %s",
|
||||||
authentication.getName(), ex.getMessage()));
|
authentication.getName(), ex.getMessage()), ex);
|
||||||
// SEC-546: Avoid polling additional providers if auth failure is due to
|
// SEC-546: Avoid polling additional providers if auth failure is due to
|
||||||
// invalid account status
|
// invalid account status
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
catch (InternalAuthenticationServiceException ex) {
|
catch (InternalAuthenticationServiceException ex) {
|
||||||
prepareException(ex, authentication);
|
prepareException(ex, authentication);
|
||||||
logger.debug(LogMessage.format(
|
logger.debug(LogMessage.format("Authentication service failed internally for user '%s'",
|
||||||
"Authentication failed due to an internal authentication service error: %s", ex.getMessage()));
|
authentication.getName()), ex);
|
||||||
// SEC-546: Avoid polling additional providers if auth failure is due to
|
// SEC-546: Avoid polling additional providers if auth failure is due to
|
||||||
// invalid account status
|
// invalid account status
|
||||||
throw ex;
|
throw ex;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user