Android Question Authorisation in mosquitto MQTT

alimanam3386

Active Member
Licensed User
Longtime User

alimanam3386

Active Member
Licensed User
Longtime User
Ok thank you Erel , Can we generate ( create new user/pass in server side ) dynamic username & pass in server ?
 
Upvote 0

MaFu

Well-Known Member
Licensed User
Longtime User
You can create a program that generates the configuration file. I think that you will need to restart the broker after each change.
That's correct. Mosquitto must be restarted to read the changes in the configuration file.
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
To complement this thread, there is a plugin called "mosquitto-auth-plug" which is an authentication plugin for the Mosquitto-broker working with multiple back-ends (MySQL, Redis, CDB, SQLite3). You need to compile it and set it up to work with Mosquitto but it is well worth the effort if you want more flexibility to handle users and topics in real time. I have tested it and it works well without restarting the Mosquitto-server.

I published a support library here which can help you when using said plugin with B4X.
 
Upvote 0
Top