使用 REST API 和 OAuth,在没有 HTTPS 连接的情况下发送数据有多不安全?

发布于 2024-10-10 04:16:34 字数 116 浏览 0 评论 0原文

我想使用 OAuth 协议为我的 Web 服务实现 REST API。但是我注意到您必须通过互联网发送数据,为用户提供正确的权限。

自发产生的问题是:在没有 HTTPS 连接的情况下发送数据有多不安全?

I would like to implement REST APIs with the OAuth protocol for my web service. However I noticed that you must send datas over the internet that give the correct permissions to users.

The question that arose spontaneously is: how much is it insecure to send data without an HTTPS connection?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

七颜 2024-10-17 04:16:34

任何未通过 https 发送的数据都适合由 Web 服务器和最终客户端之间的某些第三方路由器收集。

顺便说一句,您可以将 HTTPS 与 RESTful 服务一起使用。

Any data not sent over https is ripe for being collected by some third party router between the web server and the end client.

Incidentally, you can use HTTPS with RESTful services.

[浮城] 2024-10-17 04:16:34

在没有 HTTPS 的情况下使用 OAuth 1.0 或 1.1 很可能是不安全的(尽管之所以采用这种方式是因为在获取令牌和授权时采取了额外的预防措施),但使用 OAuth 2.0(Facebook 和当今大多数东西使用的 OAuth 2.0)如果完全不安全并且实际上违反了 OAuth 2.0 规范,

则应通过 HTTPS 连接使用和访问。

Using OAuth 1.0 or 1.1 without HTTPS may well be insecure (although it was made to be used this way because of extra precautions taken when getting tokens and authorisation), but using OAuth 2.0 (the one used by facebook and most stuff now-adays) if totally insecure and actually goes against the specification for OAuth 2.0

It should be used and accessed over a HTTPS connection.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文