-
Notifications
You must be signed in to change notification settings - Fork 8
Description
It looks like there are some compatibility issues with the latest node-red. I'm guessing this has to do with
- all of our hacks around dealing with "All Firebase references to the same database share the same authentication status"
- the fact that there is no way to enforce a singleton authentication in Node-RED
- Some of the changes to scope of config nodes
The Firebase references sharing auth has been a problem with these nodes for some time, there is no way to grab data that spans across multiple accounts that you can access unless you have access to an admin account that can access both of them.
According to this Google Group, it looks like there may now be an undocumented way to get this to work! It looks like the magic is a second arbirtrary argument (the node-id?) to new Firebase:
var ref1 = new Firebase(url, "foo");
var ref2 = new Firebase(url, "bar");
And that's really it. The second parameter to new Firebase is a context,
which can be any arbitrary non-empty string. You can separately
authenticate ref1 and ref2 above, at the same time, using different
authentication providers. Note that for every new context, you create a new
concurrent user. This is important since while most clients use the same
websocket for all data regardless of how many times you call new
Firebase (meaning
they only count as one concurrent), passing a context will open up a new
websocket (and thus count as an extra concurrent).
Look into implementing this, upgrading to the latest libraries, potentially add some flexibility to the Master Token auth method to allow passing in more arguments, and get everything up and running on the latest node-red (really the way that it always should have been)