Hi,
I recently did the same thing. In my experience, after you have made the
class, there are 4 things to do:
0. I suppose that things work using the basic SASL/PLAIN config.
1. Use maven or gradle to build a jar which includes the customized class.
2. Put the jar in the CLASSPATH that Kafka uses, such as lib/ in Kafka
directory.
3. Add a configuration entry in server.properties:
listener.name.sasl_plaintext.plain.sasl.server.callback.handler.class=com.example.MyCallbackHandler
4. Restart Kafka.
I wrote a blog about this:
https://iamabug.github.io/2019/10/21/kafka-sasl-plain-plugin/, maybe you want
to check it out, though it is in Chinese. If it is not clear enough, please
feel free to reach to me.
On 10/30/2019 05:09,khoi dinh<[email protected]> wrote:
I am looking at this thread:
https://cwiki.apache.org/confluence/display/KAFKA/KIP-86%3A+Configurable+SASL+callback+handlers
on how to create the sasl plain callback handler. I have made the class but I
don't know what to do next. Is there a page or tutorial that explains how to
fully implement and use the custom callback handlers?