Skip to content

Commit

Permalink
Log principals when it changes during auth refresh. (apache#8410)
Browse files Browse the repository at this point in the history
  • Loading branch information
cckellogg authored Oct 30, 2020
1 parent bebce4f commit c43f02c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@ private State doAuthentication(AuthData clientData,
// If the connection was already ready, it means we're doing a refresh
if (!StringUtils.isEmpty(authRole)) {
if (!authRole.equals(newAuthRole)) {
log.warn("[{}] Principal cannot be changed during an authentication refresh", remoteAddress);
log.warn("[{}] Principal cannot change during an authentication refresh expected={} got={}",
remoteAddress, authRole, newAuthRole);
ctx.close();
} else {
log.info("[{}] Refreshed authentication credentials for role {}", remoteAddress, authRole);
Expand Down

0 comments on commit c43f02c

Please sign in to comment.