I want to write REST API using Node.js.
Part of my API needs additional security, It cannot be called directly from the browser or any other client. The client needs to send some authentication data along with the request. The Node.js server has to process the request and send response if the request is valid.
Do I want to look for OAuth libraries or is there any other libraries simpler than OAuth?
Thanks,
A simple OAuth can be found here: https://github.com/jaredhanson/oauth2orize. However I have no experience with this particular module.
You can use http://passportjs.org/ as it allows you to use a lot of login options...