=== the Passport middleware for express looks like the best authentication approach npm install passport —save-dev

http://passportjs.org/guide/configure/

for http basic npm install passport-http –save-dev