GithubHelp home page GithubHelp logo

350984267 / emqx-auth-clientid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emqx/emqx-auth-clientid

0.0 1.0 0.0 198 KB

EMQ X ClientId Authentication Plugin

Home Page: https://www.emqx.io

License: Apache License 2.0

Makefile 1.52% Erlang 98.48%

emqx-auth-clientid's Introduction

emqx_auth_clientid

Authentication with ClientId and Password

Build

make && make tests

Configuration

etc/emqx_auth_clientid.conf:

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

List all clientids:

# Request
GET api/v4/auth_clientid

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

Add clientid:

# Request
POST api/v4/auth_clientid
{
    "clientid": "a_client_id",
    "password": "password"
}

# Response
{
    "code": 0
}

Update password for a clientid:

# Request
PUT api/v4/auth_clientid/$CLIENTID

{
    "password": "password"
}

# Response
{
    "code": 0
}

Lookup a clientid info:

# Request
GET api/v4/auth_clientid/$CLIENTID

# Response
{
    "code": 0,
    "data": {
        "clientid": "a_client_id",
        "password": "hash_password" 
    }
}

Delete a clientid:

# Request
DELETE api/v4/auth_clientid/$CLIENTID

# Response
{
    "code": 0
}

Load the Plugin

./bin/emqx_ctl plugins load emqx_auth_clientid

License

Apache License Version 2.0

Author

EMQ X Team.

emqx-auth-clientid's People

Contributors

huangdan avatar rory-z avatar terry-xiaoyu avatar gilbertwong96 avatar linjunjj avatar emqplus avatar tigercl avatar hjianbo avatar spring2maz avatar phanimahesh avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.