Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoran10 committed Dec 7, 2023
1 parent 1d08cb1 commit 4227b41
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,10 @@ private void doAuthentication(AuthData clientData,
String authRole = useOriginalAuthState ? originalPrincipal : this.authRole;
AuthData brokerData = authState.authenticate(clientData);

if (log.isDebugEnabled()) {
log.debug("Authenticate using original auth state : {}, role = {}", useOriginalAuthState, authRole);
}

if (authState.isComplete()) {
// Authentication has completed. It was either:
// 1. the 1st time the authentication process was done, in which case we'll send
Expand All @@ -650,11 +654,6 @@ private void doAuthentication(AuthData clientData,

String newAuthRole = authState.getAuthRole();

// Refresh the auth data.
if (log.isDebugEnabled()) {
log.debug("[{}] Auth data refreshed for role={}", remoteAddress, this.authRole);
}

AuthenticationDataSource newAuthDataSource = authState.getAuthDataSource();
if (state != State.Connected) {
// First time authentication is done
Expand Down

0 comments on commit 4227b41

Please sign in to comment.