Kafka output in Logstash with authentification password and username

I see that we can specify username and password in the output Kafka of Filebeat but these fields are not present in the Kafka output of Logstash. What can I do to specify username and password ?

The exemple of input in Filebeat :

output.kafka:
enabled: true
hosts: ["<Kafka_Broker_1>:", "<Kafka_Broker_2>:"]
topic: 'NAME'
username: "user"
password: "mdp"
ssl.endpoint: "https"
required_acks: 1
compression: gzip

I think it is going to be something like

sasl_mechanism => "PLAIN"
sasl_jaas_config => "org.apache.kafka.common.security.plain.PlainLoginModule required username='username' password='password';"