我是否可以使用PHP SDK从非HTTPS站点进行身份验证?

我是否可以使用PHP SDK从非HTTPS站点进行身份验证?

问题描述:

Using the official Dropbox PHP SDK, I'm starting the oauth process from a local site where the redirect URI is simple HTTP

Invalid redirect_uri: "http://mylocalsite.local/finish": When response_type=code, only localhost URIs can start with "http://"; all others must start with "https://".

Does that mean that I can't use Dropbox with an HTTP site or is there a different configuration I can use? The response_type is hardcoded to code in the SDK

使用官方Dropbox PHP SDK,我从重定向URI很简单的本地站点启动oauth进程 HTTP p>

 无效的redirect_uri:“http://mylocalsite.local/finish”:当response_type = code时,只有localhost URI可以以“http://”开头; 所有其他人必须以“https://”开头。
  code>  pre> 
 
 

这是否意味着我不能将Dropbox与HTTP站点一起使用,或者是否有不同的配置我 可以使用? response_type code>被硬编码到SDK中的 code code> p> div>

As a matter of security, Dropbox API OAuth 2 redirect URIs can only use http:// on localhost. (Otherwise, sensitive information would be sent in the clear.)

So, you'll need to use https:// on any non-localhost redirect URI. For working locally, you can use http://, but the address will need to be localhost.