Open GChannonLondon opened 3 months ago
That's correct you use KafkaClientOptions.OnAuthenticate(...)
:
Essentially, you can pass the same delegate you would to ProducerBuilder.SetOAuthBearerTokenRefreshHandler(...) or ConsumerBuilder.SetOAuthBearerTokenRefreshHandler(...). The only difference is that I've consolidated them to a single method.
If you're wondering how to actually generate a token from the config, there's a pretty good example in the Confluent repository.
Hi,
How do I set SetOAuthBearerTokenRefreshHandler and OAuthBearerSetToken using the DI library?