Skip to content

Commit

Permalink
Revert "[fix][broker] Call originalAuthState.authenticate in ServerCnx"
Browse files Browse the repository at this point in the history
This reverts commit 870bf04.
  • Loading branch information
hangc0276 committed Mar 15, 2023
1 parent 7153c22 commit bff1284
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -848,12 +848,10 @@ protected void handleConnect(CommandConnect connect) {
+ " using auth method [%s] is not available", originalAuthMethod));
}

AuthData originalAuthDataCopy = AuthData.of(connect.getOriginalAuthData().getBytes());
originalAuthState = originalAuthenticationProvider.newAuthState(
originalAuthDataCopy,
AuthData.of(connect.getOriginalAuthData().getBytes()),
remoteAddress,
sslSession);
originalAuthState.authenticate(originalAuthDataCopy);
originalAuthData = originalAuthState.getAuthDataSource();
originalPrincipal = originalAuthState.getAuthRole();

Expand Down

0 comments on commit bff1284

Please sign in to comment.