Welcome to the new FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
If you are having a problem, please check the Help Center for known solutions.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.
Need the latest SmartSDR and Power Genius Software?
SmartSDR v3.1.12 and the SmartSDR v3.1.12 Release Notes. | SmartSDR v2.6.2 and the SmartSDR v2.6.2 Release Notes.
SmartSDR v1.12.1 and the SmartSDR v1.12.1 Release Notes. | Power Genius XL Firmware v3.4.16. | Power Genius XL Utility v2.2.10.
SmartSDR v3.1.12 and the SmartSDR v3.1.12 Release Notes. | SmartSDR v2.6.2 and the SmartSDR v2.6.2 Release Notes.
SmartSDR v1.12.1 and the SmartSDR v1.12.1 Release Notes. | Power Genius XL Firmware v3.4.16. | Power Genius XL Utility v2.2.10.
Node-Red using Auth0
Hi,
I have the development of our club's station ready to go. I am looking for advice on how to implement Auth0 with Node-Red. Currently we use Apache2 with ssl. I realized we do the entire site with Node - Red and we want to do away with Apache2. I downloaded the node-red-contrib-http-auth0 pallet and installed it and also have a Auth0 account but I am hoping some one can advise on how to set this up...
Thanks for any advice,
Mick
0
Leave a Comment
Categories
- 69 Community Topics
- 1.9K New Ideas
- 120 The Flea Market
- 5.4K Software
- 4.9K SmartSDR for Windows
- 35 SmartSDR for Maestro and M models
- 86 SmartSDR for Mac
- 143 SmartSDR for iOS
- 149 SmartSDR CAT
- 68 DAX
- 278 SmartSDR API
- 7.1K Radios and Accessories
- 5.8K FLEX-6000 Signature Series
- 555 Maestro
- 14 FlexControl
- 723 FLEX Series (Legacy) Radios
- 150 Power Genius Products
- 117 Power Genius XL Amplifier
- 11 Power Genius Utility
- 22 Tuner Genius
- 41 Shack Infrastructure
- 22 Networking
- 89 Remote Operation (SmartLink)
- 50 Contesting
- 127 Peripherals & Station Integration
- 62 Amateur Radio Interests
- 404 Third-Party Software
Comments
Ok so by the lack of any response I think it is safe to assume I am in uncharted territory. I gave up on Auth0 for the moment but did implement this node-red flow:
node-red-contrib-users
It took me awhile to figure it out. Here is the flow:
The biggest headache was getting past the /demo from the initial flow. I found out I had to edit the following file:
/home/pi/.node-red/node_modules/node-red-contrib-users/app/login.html
This allows me to redirect logins to the ui
Mick
Mick
My reading of the Node-Red config setup instructions was the credential setup only worked for the editor. The Dashboard was not included in the credentials. Did you find this to be the case? Good news if the credentials do include the Dashboard.
Can you point us to the example you found? And a copy of your .json file.
Alan
Alan,
I think you may be confusing the default node red security in settings.js with the node-red-contrib-users flow..Here is the url
https://flows.nodered.org/node/node-red-contrib-users#:~:text=Create%20the%20allowed%20users%20list,their%20username%20in%20the%20list.
This module does not have any affect on the editor. You must still secure it the default way in settings.js. What this module does is examine a request to /users. So in my case for testing i am using my ipaddress:/users (i.e= 10.1.2.3:1880/users). Once there you have a login screen that authenticates you.
In the flow you go to the ui panel and create each user's login....
once you do that anyone who can authenticate can be redirected to /ui . The file to edit is
/.node-red/node_modules/node-red-contrib-users/app/login.html. In this section you will add /ui:
$.post('./', cred).done(function () {
showResponse("Login success! Redirecting...", "success");
setTimeout(function () {
var returnUrl = getParameterByName('return');
if (returnUrl) {
window.location = returnUrl;
} else {
window.location = "/ui";
This just does the basic authentication. The way I hope I see it working is when you go to https//domain it will point to /users. There you will see the login and can authenticate. That's the plan at this point. I will let you know how this works out.
Mick