Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including node-red-contrib-httpauth with all npm packages installed. Try it out:

node-red-contrib-httpauth lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("node-red-contrib-httpauth/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

node-red-contrib-httpauth v1.0.12

Node which implements HTTP Basic/Digest Authorization.

node-red-contrib-httpauth

Node-RED node for HTTP Basic/Digest Auth

This Node-RED module performs Basic and Digest authentication. It is to be used in conjunction with an http input node.

flow.png

Config

flow.png

There are three type of configuration:

  1. File: the user credentials are stored in a file. (mutliple credentials)
  2. Shared: credentials shared which multiple nodes. (one credential)
  3. Not Shared: each node has it's own credentials. (one credential)

With all three config types you must specify the following:

  • Auth Type: what authentication type will be used: Basic, Digest
  • Realm: what realm will be used with this node
  • Hashed: are the passwords in the Password field or in the credentials file hashed. This field is only relavent if Auth Type is Digest. It has no effect on Basic. Hash format: MD5(Username:Realm:Password)

With Shared and Not Shared config types you must specify the following:

  • Username: the username
  • Password: the password If you entered a hashed password you must check the Hashed checkbox.

With File config type you must specify the following:

  • File: location of the file containing the credentials relative to the presently working directory If the password are hashed you must check the Hashed checkbox.

File Configuration

file.png

Shared config

cred.png

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free