node-red-auth-pam

1.1.0 • Public • Published

node-red-auth-pam

Provides an authentication mechanism for NodeRED based on PAM on Linux

Installing

This requires authenitcate-pam, that requires PAM headers for compilation. Install the package libpam0g-dev with your favorite package manager. On Debian-based distros:

 sudo apt-get install libpam0g-dev

Then install this package on the folder your settings.js is located, typically ~/.node-red, by running

 npm install node-red-auth-pam

Usage

Just require the module and call the returning function, setting the result to adminAuth, as the example below:

// ...
//    }]
//},
adminAuth: require('node-red-auth-pam')(),

// To password protect the node-defined HTTP endpoints (httpNodeRoot), or
// the static content (httpStatic), the following properties can be used.
// ...

Limitations

  • All authenticated users have full access, i.e. no permissions control

Bugs and enhancements

Please open an issue on the page of the project on GitHub, or reach out on the Node-RED forum.

License

Copyright 2017-2020 Smart-Tech, Apache 2.0 license.

Readme

Keywords

Package Sidebar

Install

npm i node-red-auth-pam

Weekly Downloads

6

Version

1.1.0

License

Apache-2.0

Unpacked Size

3.92 kB

Total Files

3

Last publish

Collaborators

  • fernandoamorim
  • daniel.michalichyn
  • gfcittolin
  • machadotiago