chirpstack / chirpstack-gateway-bridge

ChirpStack Gateway Bridge abstracts Packet Forwarder protocols into Protobuf or JSON over MQTT.
https://www.chirpstack.io
MIT License
422 stars 270 forks source link

Setting HTTP headers when using MQTT over WebSocket #133

Closed a-backman closed 3 years ago

a-backman commented 4 years ago

Is this a bug or a feature request?

Feature request

Hi, Would it be possible to add the ability to set HTTP headers when connecting to MQTT over WebSocket? I noticed that you are using the Paho MQTT client which supports this. (https://github.com/eclipse/paho.mqtt.golang/blob/master/options.go#L85)

I have a use-case where I'm connecting to the MQTT-broker through a generic WebSocket proxy that does not speak MQTT. Here I would like to let the proxy handle the authentication by looking at a HTTP header.

brocaar commented 3 years ago

I'm closing this issue. I do understand that there could be an use-case for this, but this looks really specific to me and this issue hasn't seen any other interest. I would like to avoid adding too much configuration, I hope you understand. Of course you could always create a custom build for your use-case :)