Is it possible to do basic auth in Node.js just like in Apache?
http://doc.norang.ca/apache-basic-auth.html
I know that if using Express or Connect I can add
Have a look at: user authentication libraries for node.js?
It does not answer your question 100% - but maybe it helps.