iegomez / mosquitto-go-auth

Auth plugin for mosquitto.
MIT License
519 stars 170 forks source link

ACL does not work #272

Closed rossendbruchseidor closed 1 year ago

rossendbruchseidor commented 1 year ago

Configured with http and auth and sa works fine but can't manage to work with acl. Here is my conf:

auth_plugin /mosquitto/go-auth.so auth_opt_backends http auth_opt_http_getuser_uri /MQTT/auth auth_opt_http_superuser_uri /MQTT/sa auth_opt_http_aclcheck_uri /MQTT/acl auth_opt_http_host host.docker.internal auth_opt_http_port 7055 auth_opt_http_method POST auth_opt_http_with_tls true

acl endpoint is not called. does I miss something?

iegomez commented 1 year ago

Besides the host that I guess you're just redacting, it looks fine. I'd need some logs to tell more.

rossendbruchseidor commented 1 year ago

Ok, ACL json parameter acc must be integer. It works ok.