@fullmetal-fred/node-red-dashboard-2-cloudflare-auth 0.1.7

When used with Cloudflare Access authentication, this plugin will pass the email address of an authenticated user into the _client object under _client.user.email

npm install @fullmetal-fred/node-red-dashboard-2-cloudflare-auth

node-red-dashboard-2-cloudflare-auth

Enables Cloudflare Access user auth information to be passed to Node-RED.

This authentication plugin was made for the fantastic Node-RED Dashboard 2 project by FlowFuse. It enables those using Cloudflare Access to receive user information such as email address in Node-RED anytime they interact with Dashboard elements. This can be useful for configuring authorization (authz) rules, or for per-user scoped reads/writes, etc.

Getting Started

Pre-requisites:

Steps:

  1. Install @flowfuse/node-red-dashboard

  2. Install @fullmetal-fred/node-red-dashboard-2-cloudflare-auth via npm or flows.nodered.org

  3. Create a Dashboard element and wire it up to a debug node set to display the whole msg object (not just payload)

  4. Navigate to your Node-RED dashboard instance via your Cloudflare tunnel, authenticate with Access, and click on the button in your Node-RED dashboard

  5. Navigate back to the Node-RED editor's debug window and see information provided under msg._client.user

Contributing

Pull requests and issues welcome!

In order to develop:

  1. Clone the repo
  2. Optionally run the devcontainer in vscode
  3. 'npm run dev' for local Node-RED instance with the module installed

Node Info

Version: 0.1.7
Updated 3 months ago
License: AGPL-3.0-or-later
Rating: 5.0 1

Actions

Rate:

Downloads

5 in the last week

Keywords

  • node-red
  • node-red-dashboard
  • cloudflare
  • cloudflare-access
  • cloudflare-tunnels
  • auth
  • authentication

Maintainers