简体   繁体   中英

restrict node.js restful api access

I would like to restrict client access to my restful node.js APIs. I'm about to create two different interfaces, an android app and a angular.js web app. All other third-party applications should not be authorize to use the APIs. I was thinking about something like Google Developers Code, registering a code for each authorized app, and storing/hiding somewhere/somehow in the app.

Ps. the restful server is under HTTPS and i'm not dealing with user authentication.

我将研究使用诸如Passport之类的框架来实现OAuth2解决方案。

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