Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hardillb/node-red-contrib-auth-mongodb
A authentication plugin for Node-RED that uses MongoDB as the backend
https://github.com/hardillb/node-red-contrib-auth-mongodb
mongodb node-red
Last synced: about 2 months ago
JSON representation
A authentication plugin for Node-RED that uses MongoDB as the backend
- Host: GitHub
- URL: https://github.com/hardillb/node-red-contrib-auth-mongodb
- Owner: hardillb
- License: apache-2.0
- Created: 2020-09-18T12:09:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-10T00:01:33.000Z (almost 4 years ago)
- Last Synced: 2024-11-13T20:11:54.438Z (2 months ago)
- Topics: mongodb, node-red
- Language: JavaScript
- Homepage:
- Size: 35.2 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: change-password.js
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# node-red-contrib-auth-mongodb
This is an authentication plugin for Node-RED that uses MongoDB as the backend
## Setup
You need to add the following to `settings.js`
```
adminAuth: require('node-red-contrib-auth-mongodb').setup({
mongoURI: "mongodb://mongo.exmample.com/nodered",
appname: "foo"
})
```Where `mongoURI` is the location of a MongoDB database and `appname` is a unique identifier for this instance of Node-RED to allow multiple instances to use the same DB.
It will use a collection called `users` in the datbase.
For an example of how to create user entries in the collection look at `create-user.js`