Git Product home page Git Product logo

node-red-contrib-iiot-jwt's Introduction

Platform Node-RED Node-RED JWT NodeJS_Version Standard - JavaScript Style Guide NPM download NPM version Repository GitHub Build and publish Codacy Badge Gitpod Ready-to-Code

nodejsonwebtoken

node-red-contrib-iiot-jwt

The JSON Web Token (JWT) toolbox package for Node-RED.

  • v1.x is now LTS version until Oktober 2019 (branch 1.0)
  • based on jsonwebtoken library v8.x

If you like that contributor's package for JWT, then please give us your star at GitHub!

You could also help as a backer of the project.

JWT Version

JWT 8.4.x

Install

Run command on Node-RED installation directory.

npm install node-red-contrib-iiot-jwt 

or run command for global installation.

npm install -g node-red-contrib-iiot-jwt 

try these options on npm install to build, if you have problems to install

--unsafe-perm --build-from-source

Contributing

Let's work together! Please read and in best case accept CONTRIBUTING by your sign and send it via E-Mail. You could also send just a pull request.

TODO

  • more options
  • more testing

License

The MIT License

Klaus Landsdorf

Important

This is not an official product of the AuthO Group. It is just to provide JSON Web Tokens to Node-RED based on jsonwebtoken package.

Contribution JWT

I'd like to give special thanks to AuthO for the jwt package!

node-red-contrib-iiot-jwt's People

Contributors

biancode avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-red-contrib-iiot-jwt's Issues

This Node doesnt return the msg property

Which node-red-contrib-bit version are you using?

node-red-contrib-iiot-jwt

What happened?

Case: I am generating a jwt token for one of my usecase. So there is a flow. Now when I want to pass few msg parameters through the jwt node. My pass through msg parameters is getting blocked by the node.

How can this be reproduced?

Step 1: Insert a inject node and try to send few msg params such as msg.timestamp, msg.timeout, msg.node.
Step 2: Insert the jwt node
Step 3: Insert the debug at the end

Connect all the flows and click on inject.

What did you expect to happen?

You would notice that the msg.timestamp, msg.timeout, msg.node wont have passed through the node. Because the jwt node is not returning the msg parameter.

Other Information

No response

( node - jwt-out optionals) payload JTI is showing blank even if set.

when using the JWT-OUT node and i try to fill in jti with anything or auto generate it keeps popping up blank
example.

{
"iat": 1617313025,
"nbf": 1617313026,
"exp": 1617313028,
"aud": "aud",
"iss": "iss",
"sub": "sub",
"jti": ""
}

i dont know which file to modify some show jwtId and some show jwtid so i dont know if this is down to a capital I thing is just a quick guess.

Problem

  • (x) bug report => please search GitHub for a similar issue or PR before submitting
  • (x ) I am using just the Node-RED package and got jsonwebtoken installed with it

HS256 sign using global variable

Hi,
IS there an example flow to show how to use the "secret" to verify the certificate? I've a dynamic client_secret from my application and i'm storing it in a global variable in node-red. Was wondering how to use this node to sign and verify using the secret with HS256 alg?

Signing places whole message into "data" property

When I am passing a message to the JWT-OUT node, everything gets placed into a data property. This breaks my functionality.

Expected Payload:
{ "_msgid": "9cd92065.07eb9", "topic": "", "payload": 1519916609289, "foo": "bar", "iat": 1519916609 }

Recieved Payload:
{ "data": { "_msgid": "9cd92065.07eb9", "topic": "", "payload": 1519916609289, "foo": "bar" }, "iat": 1519916609 }

Additional information as per CONTRIBUTING:
Node: v8.9.4
Node-Red: v0.18.4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.