npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@processlink/node-red-contrib-kerberos-auth

v1.0.0

Published

Node-RED node for HTTP requests with Kerberos/SPNEGO authentication, designed for PI Web API

Readme

@processlink/node-red-contrib-kerberos-auth

Node-RED node for making HTTP requests with Kerberos/SPNEGO (Negotiate) authentication. Built for talking to OSIsoft/AVEVA PI Web API servers, but works with anything that uses Windows Negotiate auth.

Why this exists

The built-in Node-RED HTTP request node doesn't support Kerberos. The node-red-contrib-piwebapi package only supports Basic auth. If your PI Web API server requires Windows authentication, you're stuck. This fixes that.

Install

From the Node-RED Palette Manager

  1. Open Node-RED in your browser
  2. Go to Menu (top right) > Manage palette > Install
  3. Search for kerberos-auth
  4. Click Install

From the command line

cd ~/.node-red
npm install @processlink/node-red-contrib-kerberos-auth

Or install directly from GitHub:

cd ~/.node-red
npm install github:process-link/node-red-contrib-kerberos-auth

Restart Node-RED after installing.

How it works

The node uses the kerberos package to handle SPNEGO negotiation. On Windows it uses SSPI, on Linux it uses GSSAPI.

  Node-RED                                PI Web API             Active Directory
  (your flow)                             Server                 (KDC)
      │                                       │                       │
      │  1. Message hits the                   │                       │
      │     kerberos http node                 │                       │
      │                                        │                       │
      │  2. Node asks kerberos lib:            │                       │
      │     "I need to auth to                 │                       │
      │      HTTP@piserver"                    │                       │
      │         │                              │                       │
      │         │  3. Kerberos lib talks to AD ─┼──────────────────────▶│
      │         │     (SSPI on Win,            │  "Give me a ticket    │
      │         │      GSSAPI on Linux)        │   for HTTP@piserver"  │
      │         │                              │                       │
      │         │  4. AD returns a ◀───────────┼───────────────────────│
      │         │     service ticket           │  "Here's your ticket" │
      │         │                              │                       │
      │  5. Node sends HTTP request ──────────▶│                       │
      │     Authorization: Negotiate <token>   │                       │
      │                                        │                       │
      │                                        │  6. Server validates ─▶│
      │                                        │     ticket with AD    │
      │                                        │                       │
      │  7. Server returns data ◀──────────────│◀── "Yes, legit" ──────│
      │     (200 OK + JSON)                    │                       │
      ▼                                        ▼                       ▼

If the server returns 401, the node retries once with a fresh token.

Nodes

kerberos http (request node)

Drag this onto your flow. Works like the built-in HTTP request node but with Kerberos auth.

Properties:

  • Server — pick a server config (see below)
  • Method — GET, POST, PUT, DELETE, PATCH, or set via msg.method
  • URL Path — appended to the server's base URL, or a full URL
  • Return — parsed JSON, UTF-8 string, or binary buffer

Input msg:

  • msg.url — override the URL path
  • msg.method — override the method (when set to "set by msg.method")
  • msg.payload — request body for POST/PUT/PATCH (objects are auto-serialized to JSON)
  • msg.headers — extra headers to include

Output msg:

  • msg.payload — response body
  • msg.statusCode — HTTP status code
  • msg.headers — response headers

Server config node

Stores your connection details. Shared across all kerberos http nodes pointing to the same server.

Settings:

  • Base URL — e.g. https://piserver.domain.com/piwebapi
  • Service FQDN — hostname for the SPN (optional, extracted from URL if blank)
  • Verify SSL Certificate — uncheck for self-signed certs
  • Domain / Username / Password — AD credentials. On Windows, leave blank to use the current user's identity via SSPI.

Platform setup

Windows

No extra setup needed if your machine is domain-joined — leave the credentials blank and it uses your Windows login.

For non-domain machines, provide explicit domain/username/password in the server config.

Linux

  1. Install Kerberos dev libraries:

    # Debian/Ubuntu
    apt-get install libkrb5-dev
    
    # RHEL/CentOS
    yum install krb5-devel
  2. Configure /etc/krb5.conf with your realm and KDC:

    [libdefaults]
        default_realm = YOURDOMAIN.COM
    
    [realms]
        YOURDOMAIN.COM = {
            kdc = your-dc-server.yourdomain.com
        }
  3. Get a ticket before starting Node-RED:

    kinit [email protected]

Testing without Node-RED

There's a standalone test script to verify Kerberos works before you wire anything up:

  1. Edit test.js with your server details and credentials
  2. Run node test.js
  3. If you see PI Web API system info, you're good

Author

Built and maintained by Process Link Pty Ltd.

License

MIT