Set up broker authentication plugin

I need to restrict the MQTT publish (to port 1883) mechanism to certain users. I came across a plugin emqx_auth_username and was unable to install/load it to my EMQX in docker.

  • Is this plugin the right one?
  • Can anyone please share some documents or any related details for the installation purpose?

Thanks in advance.

EMQX version: 5.0.15

The plugin emqx_auth_username is provided for EMQX whose version is lower than 5.0.

In EMQX 5.0, authentication and authorization are more deeply integrated. You can see more information about AuthN and AuthZ in this doc: Authentication | EMQX 5.0 Documentation