iegomez / mosquitto-go-auth

Auth plugin for mosquitto.
MIT License
495 stars 165 forks source link

the doc should specify which auth methods support TCP and Websocket connections #321

Open dberardo-com opened 4 months ago

dberardo-com commented 4 months ago

should be clear whether a specific authentication strategy is meant for TCP-only or WS-only connections or goes well for both.

example: JWT --> only in WS ? or also TCP ?

iegomez commented 4 months ago

Hey, @dberardo-com!

I think you're confused, that's not a concern of the plugin. It doesn't matter what the protocol is. In fact, the websocket protocol relies on TCP connection and the plugin won't know about it.

The example shown in the docs I took from something I did years ago at work, but it really doesn't matter if you sending a plain http request or you're establishing a two way ws connection, it's all irrelevant to the plugin.