node-red-contrib-websocket-auth0 0.1.1

A web-socket with Auth0 authentication support.

npm install node-red-contrib-websocket-auth0

A web-socket with Auth0 authentication support.

npm version codeship

Install

Run the following command in the root directory of your Node-RED install

npm install node-red-contrib-websocket-auth0

Usage

Edit the websocket-listener-auth0 node with your Domain value above in the Account setting panel.

  • By default, it checks for the valid auth0's token and pass the request to the downstream node.
  • Request is authorized if the role value is set to the auth0 user's role value. Usually setup by https://manage.auth0.com/#/rules
  • Request is authorized if the group value is set to the auth0 user's group value. Usually setup by installing the Auth0 Authorization 1.4 extension

Try to get your auth0's id_token from your auth0 application and pass it into the Authorization Header

Currently it supports only Bearer token which is taken from id_token parameter.

curl -i http://127.0.0.1:1880/test -H "Authorization: Bearer {{auth0-id-token}}"

Node Info

Version: 0.1.1
Updated 1 year, 1 month ago
License: MIT

Downloads

1 in the last day
8 in the last week
50 in the last month

Nodes

  • websocket-in-auth0
  • websocket-out-auth0
  • websocket-listener-auth0
  • websocket-client-auth0

Keywords

  • node-red
  • websocket
  • socket
  • auth0

Maintainers

  • cuongquay