gharris1727 commented on code in PR #16522:
URL: https://github.com/apache/kafka/pull/16522#discussion_r1707416048


##########
clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/OAuthBearerSaslClientCallbackHandler.java:
##########
@@ -97,7 +97,7 @@ public void close() {
     private void handleCallback(OAuthBearerTokenCallback callback) throws 
IOException {
         if (callback.token() != null)
             throw new IllegalArgumentException("Callback had a token already");
-        Subject subject = Subject.getSubject(AccessController.getContext());
+        Subject subject = SecurityManagerCompatibility.get().current();
         Set<OAuthBearerToken> privateCredentials = subject != null

Review Comment:
   Thanks, this was due to doAs throwing a checked exception that 
unintentionally got wrapped in a RuntimeException. This should be fixed now.



-- 
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]

Reply via email to