eclipse-basyx / basyx-databridge

Eclipse Public License 2.0
9 stars 13 forks source link

General MQTT authentication with user and password #280

Open ParvisSchirinov opened 5 months ago

ParvisSchirinov commented 5 months ago

Hello everyone, to my knowledge there is no complete support yet to authenticate with the Databridge to an MQTT broker such as Mosquitto. The file mqttdatasink.json has a password and user function, but as far as I can see, this is limited to the DataBridge environment. In this case paho: https://github.com/eclipse-basyx/basyx-databridge/blob/main/databridge.camel-paho/src/main/java/org/eclipse/digitaltwin/basyx/databridge/paho/configuration/MqttDataSinkConfiguration.java

Is a general MQTT authentication with user and password for both mqttconsumer.json and mqttdatasink.json planned for the future?

FrankSchnicke commented 5 months ago

Thanks for pointing out the missing authentification for the consumer. We will take a look at this and provide the functionality in the next update.

ParvisSchirinov commented 5 months ago

Thank you very much for your response. Another question that I have is whether it's possible to set custom headers for authentication with the HTTP datasource.

FrankSchnicke commented 5 months ago

We're adding the capability of adding tokens soon. Is there anything else that you would need?