OAuth 2.0 身份验证 SSL [英] OAuth 2.0 authentication SSL

查看:94
本文介绍了OAuth 2.0 身份验证 SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在没有 SSL 的情况下在本地使用 OAuth 2.0?我试图在我的本地服务器中执行它.但它说,我需要 SSL 才能使用 Oauth 2.0 执行操作.

Is there any way to locally use OAuth 2.0 without SSL ? I tried to execute it in my localserver. but it says, I need SSL to perfome actions with Oauth 2.0.

错误:无法打开 OAuth 访问令牌 URL:建立 SSL 连接需要启用 OpenSSL 扩展

Error: it was not possible to open the OAuth access token URL: establishing SSL connections requires the OpenSSL extension enabled

有没有办法在没有 SSL 的情况下使用 OAuth 2.0?

Is there any way to use OAuth 2.0 without SSL ?

  • 我将 PHP 客户端库用于 OAuth 2.0.

推荐答案

OAuth 2.0 的安全性依赖于 SSL,没有它任何人都可以看到属于用户的不记名令牌并使用它来假装是他们.但是,如果您出于调试目的需要关闭 ssl,并且您的服务器也是用 PHP 编写的,那么我会尝试查看以下内容:http://php.net/manual/en/oauth.disablesslchecks.php

The security of OAuth 2.0 is dependent on SSL, without it anyone could see the bearer token that belongs to the user and use it to pretend to be them. However if you need to turn ssl off for debugging purposes and your server is also written in PHP then I would try taking a look at this: http://php.net/manual/en/oauth.disablesslchecks.php

SSL 也依赖于服务器,而不是客户端.

Also SSL is dependent on the server, not the client.

这篇关于OAuth 2.0 身份验证 SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆