emqx / emqx-auth-username

EMQX Authentication with Username and Password
https://emqx.io
Apache License 2.0
18 stars 22 forks source link

Add the username CURD HTTP API #82

Closed HJianBo closed 5 years ago

HJianBo commented 5 years ago

Try to fix https://github.com/emqx/emqx/issues/2200

In the current implementation, we can add or management by the HTTP interface:

## Add a username
$ curl -v --user appname:appsecret -H "Content-Type: application/json" -d "{username: "user1", password:"pwd"}" SERVER:8080/api/v3/auth_username