FrankYang0529 commented on code in PR #22759:
URL: https://github.com/apache/kafka/pull/22759#discussion_r4607934518
##########
clients/src/main/java/org/apache/kafka/common/security/oauthbearer/BrokerJwtValidator.java:
##########
@@ -154,9 +157,19 @@ public void configure(Map<String, ?> configs, String
saslMechanism, List<AppConf
SASL_OAUTHBEARER_EXPECTED_ISSUER,
SASL_OAUTHBEARER_EXPECTED_ISSUER, SASL_OAUTHBEARER_ALLOW_UNVERIFIED_ISSUER));
}
- CloseableVerificationKeyResolver verificationKeyResolver =
verificationKeyResolverOpt.orElseGet(
- () -> VerificationKeyResolverFactory.get(configs, saslMechanism,
jaasConfigEntries)
- );
+ CloseableVerificationKeyResolver verificationKeyResolver;
+
+ if (verificationKeyResolverOpt.isPresent()) {
Review Comment:
Done. `BrokerJwtValidator` now gets its resolver from a package-private
`createCloseableVerificationKeyResolver()`, which the tests override.
--
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]