前提:①禁用EMQX中配置文件的匿名认证配置项allow_anonymous = false
②启用用户认证的插件,例如emqx_auth_username插件
@hostname =192.168.1.102
@port =8081
@contentType=application/json
@userName=admin
@password=public
#############查看用户认证数据列表#################
GET http://192.168.1.102:8081/api/v4/auth_username HTTP/1.1
Content-Type: {
{
contentType}