Skip to content

Instantly share code, notes, and snippets.

@ugifractal
Created December 4, 2020 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugifractal/0069d25b31d4760b6e053a8595002c2c to your computer and use it in GitHub Desktop.
Save ugifractal/0069d25b31d4760b6e053a8595002c2c to your computer and use it in GitHub Desktop.
sample auth plugin for mqtt http /usr/local/etc/mosquitto/mosquitto.conf
auth_plugin /Users/sugiarto/my_apps/sugi/goapp/mosquitto-go-auth/go-auth.so
auth_opt_backends http
auth_opt_http_host localhost
auth_opt_http_port 8000
auth_opt_http_getuser_uri /mqtt/get_user
auth_opt_http_response_mode status
auth_opt_http_params_mode json
auth_opt_http_aclcheck_uri /mqtt/get_acl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment