All Projects → emqx → emqx-auth-username

emqx / emqx-auth-username

Licence: Apache-2.0 license
EMQ X Authentication with Username and Password

Programming Languages

erlang
1774 projects
Makefile
30231 projects

Projects that are alternatives of or similar to emqx-auth-username

emqx-auth-mysql
Authentication, ACL with MySQL Database
Stars: ✭ 52 (+225%)
Mutual labels:  emqx, emqx-plugin
emqx-lwm2m
EMQ X LwM2M Gateway
Stars: ✭ 29 (+81.25%)
Mutual labels:  emqx, emqx-plugin
emqx-auth-http
EMQ X HTTP Authentication/ACL Plugin
Stars: ✭ 42 (+162.5%)
Mutual labels:  emqx, emqx-plugin
emqx-rule-engine
EMQ X Rule Engine
Stars: ✭ 63 (+293.75%)
Mutual labels:  emqx
dgiot-dashboard
DG-IoT平台行业应用扩展插件 DG-IoT for application plugin
Stars: ✭ 229 (+1331.25%)
Mutual labels:  emqx
emqx-docs-en
EMQ X Broker Documentation
Stars: ✭ 12 (-25%)
Mutual labels:  emqx
mqtt5.0-cn
MQTT Version 5.0 Chinese
Stars: ✭ 22 (+37.5%)
Mutual labels:  emqx
emqx-chart
emqx kubernetes helm
Stars: ✭ 18 (+12.5%)
Mutual labels:  emqx
emqx-dashboard-frontend
EMQ X Dashboard Frontend
Stars: ✭ 27 (+68.75%)
Mutual labels:  emqx
qmqtt-client
MQTT Client GUI Written with Qt
Stars: ✭ 94 (+487.5%)
Mutual labels:  emqx
minirest
A Mini RESTful API Framework
Stars: ✭ 32 (+100%)
Mutual labels:  emqx

emqx_auth_username

EMQ X Authentication with Username and Password

Build

make && make tests

Configuration

etc/emqx_auth_username.conf:

## Password hash.
##
## Value: plain | md5 | sha | sha256 
auth.user.password_hash = sha256

REST API

List all usernames

# Request
GET api/v4/auth_username

# Response
{
    "code": 0,
    "data": ["username1"]
}

Add a username:

# Request
POST api/v4/auth_username
{
    "username": "some_name",
    "password": "password"
}

# Response
{
    "code": 0
}

Update password for a username:

# Request
PUT api/v4/auth_username/$NAME
{
    "password": "password"
}

# Response
{
    "code", 0
}

Lookup a username info:

# Request
GET api/v4/auth_username/$NAME

# Response
{
    "code": 0,
    "data": {
        "username": "some_username",
        "password": "hashed_password"
    }
}

Delete a username:

# Request
DELETE api/v4/auth_username/$NAME

# Response
{
    "code": 0
}

Load the Plugin

./bin/emqx_ctl plugins load emqx_auth_username

License

Apache License Version 2.0

Author

EMQ X Team.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].