Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environmental Variable/ Parameters for Client_Secret #6

Open
ram1505 opened this issue Jan 6, 2019 · 2 comments
Open

Environmental Variable/ Parameters for Client_Secret #6

ram1505 opened this issue Jan 6, 2019 · 2 comments

Comments

@ram1505
Copy link

ram1505 commented Jan 6, 2019

Actually, I've the client_secret in my global variable. How can I use this global variable with the JWT_SIGN node? I'm using a pre-shared key and therefore my payload will have a client_secret which is then stored in a global variable. When I use the JWT_SIGN node, with HS256, it asks me to enter either a "secret" property on the node text input field or use an environmental variable NODE_RED_NODE_JWT_SECRET. Please help. Can I somehow use my global variable without having to enter the secret each time on the property of the node?

Originally posted by @ram1505 in #2 (comment)

@ram1505
Copy link
Author

ram1505 commented Jan 8, 2019

Hi,
Would appreciate if you could advise how I can pass the access_token (my "Secret") into this node using a function node instead of the Secret Property on the UI.

@hipitihop
Copy link

I would second @ram1505 to optionally allow for the secret to be passed in the msg, or alternatively be able to define which environment variable name to use instead of hardwired NODE_RED_NODE_JWT_SECRET

Thanks for these nodes btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants