I want to use node.js for file uploading at my company. The current file uploader they have is a simple html 5 page with a php script backend that is php_auth_user to authenticate. My boss loves the idea of node.js for file upload but is unsure about how we would authenticate / authorize this file uploader.
I have figured out how to forward to my node server from apache at these two sites:
Apache + Node.js + mod_proxy. How to route one domain to :3000 and another to :80
http://thatextramile.be/blog/2012/01/hosting-a-node-js-site-through-apache
However, I can't figure out how I would access the php_auth_user server variable in my node application.
Any ideas?
Edit:
I am not looking for authentication for node.js. i will be using one of the ldap authentication libraries already out there. What I want is a way for my node server to be able to pick up the php_user_auth and php_user_pwd server variables sent during our pre-existing http basic auth. I will then use those variables to authenticate against the ldap in the background.