简体   繁体   中英

Node.js API REST security

I was trying to implement some sort of security in an node.js rest api, either using tokens, avoiding oauth, which is the easiest option? Thanks!

Have you looked at passport http bear ? This would allow you to secure your api end points.

您可以浏览http://passportjs.org/。这是我在查看示例时经常看到的库。

Which Node Framework are you using? Have you looked at https://www.npmjs.org/package/iron for tokens Authorization and/or Bell for Authentication https://www.npmjs.org/package/bell ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM