node-red-contrib-websocket-auth0

0.1.2 • Public • Published

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}}"

Package Sidebar

Install

npm i node-red-contrib-websocket-auth0

Weekly Downloads

11

Version

0.1.2

License

MIT

Unpacked Size

36.3 kB

Total Files

6

Last publish

Collaborators

  • cuongquay