1

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,

2

2 Answers 2

1

A simple OAuth can be found here: https://github.com/jaredhanson/oauth2orize. However I have no experience with this particular module.

Sign up to request clarification or add additional context in comments.

Comments

1

You can use http://passportjs.org/ as it allows you to use a lot of login options...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.