So, I’ve never used the authorization stuff before, but am trying to
use it with REMOTE_DISPATCH, as you (Stefano) described in a message
last week. I’ve turned on external authorization, and set it up to
pull out a query parameter with
| function decorateClientObj(clientObj, info) {
| clientObj.externalUser = info.headers ? info.headers["id"] : "None";
| }
in auth.js. At this point I’m trying to test that things at least
start right, even though I’ve not yet tracked down what I need to do
with the registry stuff. If I type the following URL into a browser
http://localhost:8080/wroom/auth/password/?id=foo
all seems well and I am sent to the waiting room. This is with Chrome
(Version 99.0.4844.82) on Pop!_OS 21.10 (essentially Ubuntu 21.10).
I note that node also spits out to the console the following warning, though:
| [winston] Unknown logger level: (password) 0.0.0
| Client connected to waiting room: password
| NPL 1
But when I try to connect a second time in a different browser window using
http://localhost:8080/wroom/auth/password/?id=bar
I am told
| Wrong user/pwd or unauthorized access (already connected?). Attempt logged.
This time node spits nothing out to the console.
I presume this is nodeGame with authorization not liking multiple
connections from the same machine or something? How can I go about
testing this authorization stuff?
Thanks!
--
Don Morrison <
d...@ringing.org>
“A vacuum flask keeps hot things hot in the winter and cold things cold
in the summer....How does it know? I’ve studied vacuum flasks for many
years and not one of them gave any clues as to their inherent seasonal
cognitive ability.” — Jasper Fforde, /Lost in a Good Book/