Files
authentik/website/integrations/development/node-red/index.md
Teffen Ellis 6ed5cb5249 website/docs: Modal and wizard button labels (#21549)
* website/integrations: rename "Create with Provider" to "New Application"

The application list page now uses a split-button labeled
"New Application" instead of the old "Create with Provider" dropdown.
Update all 113 integration guides to match.

* website/docs: update flow, stage, and policy button labels

- "Create" → "New Flow", "New Stage", "New Policy" for trigger buttons
- "Finish" → "Create Flow", "Create Stage", "Create Policy" for submit
- "Create and bind stage" → "New Stage" / "Bind Existing Stage"
- "Create" (binding submit) → "Create Stage Binding"

* website/docs: update provider button labels

- "Create" → "New Provider" for trigger buttons
- "Create with Provider" → "New Application" in RAC docs
- "Create" → "New Property Mapping", "New RAC Endpoint", "New Prompt"
  for related entity creation

* website/docs: update directory button labels

- "Create" → "New Source" for federation/social login pages
- "Create" → "New Role", submit → "Create Role"
- "Create" → "New Invitation"
- Policy binding submit → "Create Policy Binding"

* website/docs: update endpoint device and system management button labels

- "Create" → "New Endpoint Connector", "New Enrollment Token",
  "New Device Access Group", "New Flow"
- Submit → "Create Device Access Group"
- "Create" → "New Notification Rule", "New Notification Transport"
- Binding submit → "Create Policy Binding"

* Reorganize policy documentation

* website/docs: address policy docs review feedback

* post-rebase

* website/docs: Reorganize policy documentation -- Revisions (#21601)

* apply suggestions

* Fix escaped.

* Fix whitespace.

* Update button label.

* Fix phrasing.

* Fix phrasing.

* Clean up stragglers.

* Format.

---------

Co-authored-by: Dominic R <dominic@sdko.org>
2026-04-16 17:35:38 +00:00

4.3 KiB

title, sidebar_label, support_level
title sidebar_label support_level
Integrate with Node-RED Node-RED community

What is Node-RED

Node-RED is a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways.

It provides a browser-based editor that makes it easy to wire together flows using the wide range of nodes in the palette that can be deployed to its runtime in a single-click.

-- https://nodered.org/

:::caution This requires modification of the Node-RED settings.js file and installing additional Passport-js packages; see Securing Node-RED documentation for further details. :::

Preparation

The following placeholders are used in this guide:

  • authentik.company is the FQDN of authentik.
  • nodered.company is the FQDN of Node-RED.

:::info This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application. :::

authentik configuration

To support the integration of Node-RED with authentik, you need to create an application/provider pair in authentik.

Create an application and provider in authentik

  1. Log in to authentik as an administrator and open the authentik Admin interface.
  2. Navigate to Applications > Applications and click New Application to open the application wizard.
  • Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings.
  • Choose a Provider type: select OAuth2/OpenID Connect as the provider type.
  • Configure the Provider: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
    • Note the Client ID, Client Secret, and slug values because they will be required later.
    • Set a Strict redirect URI to https://nodered.company/auth/strategy/callback/.
    • Select any available signing key.
  • Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's My applications page.
  1. Click Submit to save the new application and provider.

Node-RED configuration

Step 1

:::info Group-based permissions are not implemented in the example below. :::

Use npm to install passport-openidconnect.

Navigate to the Node-RED node_modules directory. This depends on your chosen install method. In the official Node-RED Docker container the node_modules directory is located in the data volume data/node_modules/. Alternatively, enter the Docker container with docker exec -it nodered bash and cd /data/node_modules to use npm within the container.

Run the command npm install passport-openidconnect.

Step 2

Edit the Node-RED settings.js file (/data/settings.js) to use the external authentication source via passport-openidconnect.

adminAuth: {
        type:"strategy",
        strategy: {
                name: "openidconnect",
                label: 'Sign in with authentik',
                icon:"fa-cloud",
                strategy: require("passport-openidconnect").Strategy,
                options: {
                        issuer: 'https://authentik.company/application/o/<application_slug>/',
                        authorizationURL: 'https://authentik.company/application/o/authorize/',
                        tokenURL: 'https://authentik.company/application/o/token/',
                        userInfoURL: 'https://authentik.company/application/o/userinfo/',
                        clientID: '<client_id>',
                        clientSecret: '<client_secret>',
                        callbackURL: 'https://nodered.company/auth/strategy/callback/',
                        scope: ['email', 'profile', 'openid'],
                        proxy: true,
                        verify: function(context, issuer, profile, done) {
                                return done(null, profile);
                        },
                }
        },
        users: function(user) {
                return Promise.resolve({ username: user, permissions: "*" });
        }
},