Skip to content

cafe01/node-mosquitto-dynsec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-mosquitto-dynsec

This is a NodeJS module for managing eclipse-mosquitto Dynamic Security plugin.

import {MosquittoDynsec} from "mosquitto-dynsec"
const dynsec = new MosquittoDynsec()

try {
  await dynsec.connect({
    hostname: "mqtt.example.com",
    username: "foo",
    password: "bar"
  })
} catch(e) {
  console.error("Connect error:", e)
}

const res = await dynsec.createClient({ username: "user1", password: "pass" })

Implemented commands

The folowing commands specs were imeplmented using the source code of mosquitto_ctlr as reference. (dynsec.c)

listClients

createClient

deleteClient

setClientId

setClientPassword

getClient

addClientRole

removeClientRole

enableClient

disableClient

createRole

deleteRole

getRole

listRoles

addRoleACL

removeRoleACL

createGroup

deleteGroup

listGroups

getGroup

getAnonymousGroup

setAnonymousGroup

addGroupClient

removeGroupClient

addGroupRole

removeGroupRole

getDefaultACLAccess

setDefaultACLAccess

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published