SML0127 commented on code in PR #2263:
URL: https://github.com/apache/fluss/pull/2263#discussion_r2768875781
##########
fluss-common/src/main/java/org/apache/fluss/security/auth/sasl/authenticator/SaslServerAuthenticator.java:
##########
@@ -131,13 +135,16 @@ public void matchProtocol(String protocol) {
}
}
+ @Nullable
@Override
public byte[] evaluateResponse(byte[] token) throws
AuthenticationException {
try {
- return saslServer.evaluateResponse(token);
- } catch (SaslException e) {
+ return Subject.doAs(
+ loginManager.subject(),
+ (PrivilegedExceptionAction<byte[]>) () ->
saslServer.evaluateResponse(token));
Review Comment:
Sure, will add it here as well.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]