kirktrue commented on code in PR #19622:
URL: https://github.com/apache/kafka/pull/19622#discussion_r2086871765


##########
clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/secured/DefaultJwtRetriever.java:
##########
@@ -86,6 +90,18 @@ public static AccessTokenRetriever create(Map<String, ?> 
configs,
                 cu.validateInteger(SASL_LOGIN_READ_TIMEOUT_MS, false),
                 urlencodeHeader);
         }
+
+        delegate.init();
+    }
+
+    @Override
+    public String retrieve() throws IOException {
+        return Objects.requireNonNull(delegate).retrieve();

Review Comment:
   Updated to throw an `IllegalStateException` with a better message.



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to