简体   繁体   English

如何保护网络服务呼叫

[英]How to secure web service call

I am developing SaS based application where users can call the api from their websites. 我正在开发基于SaS的应用程序,用户可以从其网站调用api。 Basically it can be called from static websites. 基本上可以从静态网站调用它。 How to secure the web api call without getting spammed and allow it to be called only by the registered users. 如何保护网络api调用安全而又不会被垃圾邮件过滤,并仅允许注册用户调用它。

There are many possibilities to secure web services. 有许多保护Web服务的可能性。 However, the basic idea is to give clients a clientId. 但是,基本思想是为客户提供一个clientId。 Each time when a legit client (holding the clientId), logs in, it provides that clientId, username and password which is checked against a database. 每次合法客户端(持有clientId)登录时,都会提供针对数据库检查的clientId,用户名和密码。 If clientId is there, then the username and password get validated. 如果存在clientId,则验证用户名和密码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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