Good day, ladies and gentlemen. Need your expertise.
With help of other topics from this forum I managed to configure my adminAuth module. It's working great! I chose as an option to pass access_token through editor url query (?access_token=<ACCESS_TOKEN>).
The main question is.
Can i have an access to this token from httpAdminMiddleware? I tried to catch it from request referrer but somehow referrer shows in request without queries.
looks like this: http://127.0.0.1:1880/?
Maybe there is the way to fix this behavior or any other way to store data into current session and then receive it on httpAdminMiddleware.
I would also explain why i need this. On every request from Node-Red to my other server i need to provide some extra headers. I thought to manage it with httpAdminMiddleware and since Node-Red have express maybe you could recommend any better approach (something like express.use() on Node-Red requests)?