Hi,
I want to implement a customer authentication for node red that uses a http header set by a reverse proxy. After several time searching in the internet, I was still unable to find any hint that pointed me in the right direction.
Can you help me?
How can I access the http header variables (e.g. user-agent) from within the plugin module?
Short answer: The Auth plugin api doesn't provide a way for it to access the headers. So it isn't possible to do it today.
This has come up a few times recently. There is some work going on to extend what is possible to do with Auth plugins. It doesn't currently address this particular scenario, but perhaps it should.
Thank you very much @knolleary )
What do you mean with "there is some work going on"?
I think another authentication scenario is to use client-certificate authentication, this would also require to access the authenticated certificate e.g. using https://www.npmjs.com/package/client-certificate-auth