node-red-auth-contrib-bluemix
v0.1.0
Published
Authentication module for Node-RED on Bluemix
Downloads
4
Readme
node-red-auth-contrib-bluemix
Authentication module for Node-RED on Bluemix
Using this module on Bluemix, you can access to Node-RED by IBM ID.
Method 1: Deploy Node-RED with this authentication module
There is a setting example(bluemix-settings.js and package.json) on the following GitHub page.
https://github.com/zuhito/node-red-bluemix-starter
You can deploy secure Node-RED from the GitHub source using the following "Deploy to Bluemix" button.
Method 2: Custom configuration
You can configure secure Node-RED manually as follows.
(1) Add adminAuth setting into bluemix-settings.js (Example)
var settings = module.exports = {
...
adminAuth: require("node-red-auth-contrib-bluemix"), // Add
...
}
(2) Remove current authentication settings from bluemix-settings.js (Example)
if (process.env.NODE_RED_USERNAME && process.env.NODE_RED_PASSWORD) { // Remove
... // Remove
} // Remove
(3) Add node-red-auth-contrib-bluemix module into package.json (Example)
"dependencies": {
...
"node-red-auth-contrib-bluemix": "*", // Add
...
}