https://github.com/hardillb/emqx-mongo-auth
Go HTTP backend to authenticate EMQX MQTT clients against Mongoeb
https://github.com/hardillb/emqx-mongo-auth
Last synced: 21 days ago
JSON representation
Go HTTP backend to authenticate EMQX MQTT clients against Mongoeb
- Host: GitHub
- URL: https://github.com/hardillb/emqx-mongo-auth
- Owner: hardillb
- License: apache-2.0
- Created: 2026-04-04T22:39:33.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-04-04T22:48:51.000Z (4 months ago)
- Last Synced: 2026-04-05T00:39:58.862Z (4 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EMQX HTTP Authentication/Authorization backend
Intended to be used with Node-RED Amazon Alexa and Google Home backend
## Configure
Needs the following environment variables setting to configure MongoDD
client
- MONGODB_URI=mongodb://root:secret@127.0.0.1:27017
- MONGODB_DB=assistant
- MONGODB_COLLECTION=accounts
Command line Arguments
- `--port`, default `8080`
- `--passField`, default `mqttPass`
- `--userField`, default `username`
## MongoDB
It expects the MongoDB Collection to have a field called `username` and
`mqttPass` which should be in PBKDF2 format, currently on SHA256 hashes
are supported.