Authentication in a reverse proxy for node.js