Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cafe01/node-mosquitto-dynsec
https://github.com/cafe01/node-mosquitto-dynsec
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cafe01/node-mosquitto-dynsec
- Owner: cafe01
- Created: 2021-02-24T01:32:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-21T15:51:18.000Z (9 months ago)
- Last Synced: 2024-04-17T21:15:18.814Z (7 months ago)
- Language: TypeScript
- Size: 33.2 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-mosquitto-dynsec
This is a NodeJS module for managing eclipse-mosquitto Dynamic Security plugin.
```js
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