esp-idf-mqtt-broker
esp-idf-mqtt-broker copied to clipboard
is it possible to create username and password for clients?
i was wondering if it is possible to assign a username/password for clients that would connect to the broker?
This is a good idea.
Try latest.
yes i just tried and it works thanks! next request :) two nice features to have :
- having a list of clients ( cid, user and password) that broker can use for authentication
- having list of topics that above clients can subscribe/publish to
Are there any open source brokers with this kind of functionality?
If there is one, I would like to imitate its implementation and settings..
There are no plans to implement unique access restrictions specific to this broker.
yes there is https://github.com/eclipse/mosquitto it one of the most popular mqtt brokers
I'm using Mosquito, but I don't know the settings to achieve this.
In mosquitto, what settings do I need to do to achieve this?
having a list of clients ( cid, user and password) that broker can use for authentication
having list of topics that above clients can subscribe/publish to
https://mosquitto.org/man/mosquitto-conf-5.html check general options>acl file option and "password_file" option .there is a description there.
Thank you for the information. I'll try to investigate, but it will take some time.
If we use a password file, we will need a file system like SPIFFS.