Hi,
I am using the use-authorization-key, have granted the user with publish/subscribe permission. I got connection failed[code: not authorized]. Do you know why it fails? What the password salt, iteration here?
The client information is
var options = new HiveMQClientOptions
{
ClientId = “Client_1”,
Host = hostName,
Port = 1883,
UseTLS = false,
UserName = “admin2”,
Password = “hivemq”,
CleanStart = false
};
The user table is this:
id username password
1 admin1 hivemq
2 admin2 hivemq
The permission table is:
id topic publish_allowed subscribe_allowed
1 t1 true false
2 t1 false true
The user_permission table is:
user_id permission
1 1
2 2
the configure is
postgres-backend
postgres-backend
true
false