Multiple Jaas authentications #2031
-
Hello ! I can't find a way to configure multiple JaasConfigurations (using KafkaJaasLoginModuleInitializer) to connect in different kafka clusters, currently we can create different clusters connection, but they share the same authentication. Would be an fine option to set which authentication should be used for each DefaultKafkaConsumerFactory/DefaultKafkaProducerFactory. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Issues are not for asking questions - converting to a discussion. |
Beta Was this translation helpful? Give feedback.
-
It can't be done using You have to configure it via producer/consumer configs; e.g. https://kafka.apache.org/documentation/#consumerconfigs_sasl.jaas.config |
Beta Was this translation helpful? Give feedback.
It can't be done using
KafkaJaasLoginModuleInitializer
- it sets the JVM global JAAS config.You have to configure it via producer/consumer configs; e.g. https://kafka.apache.org/documentation/#consumerconfigs_sasl.jaas.config