“未找到服务器”使用 openid 灯


"No servers found" using openid light

突然间,我使用Light Open ID收到此错误消息。

致命错误:未捕获的异常"ErrorException",消息"未找到服务器!"在/home/a3422801/public_html/LoginAssignment/php/openid.php:463 堆栈跟踪:#0/home/a3422801/public_html/LoginAssignment/php/openid.php(595):LightOpenID->discover() #1/home/a3422801/public_html/LoginAssignment/index.php(

9): LightOpenID->authUrl() #2 {main} 扔在第 463 行的/home/a3422801/public_html/LoginAssignment/php/openid.php

。以及openid.php中的一小段相关代码:

if ($server) {
                # We found an OpenID2 OP Endpoint
                if ($delegate) {
                    # We have also found an OP-Local ID.
                    $this->identity = $delegate;
                }
                $this->server = $server;
                return $server;
            }
            throw new ErrorException('No servers found!');

我不知道问题是什么 - 这是最近的问题。有谁知道OpenID最近有什么变化。我很乐意提供更多所需的代码。我是登录名和PHP的新手,所以如果这非常模糊,我深表歉意。

如果这有任何影响,则此Google登录与FB登录相结合 - 但就像我说的,这是正常运行的。

我遇到了同样的问题,并通过比较我正在使用的OpenID URL和StackOverflow上的URL来解决它。事实证明我没有使用https。直到最近,这还不是问题,但现在似乎是必需的。

因此,请确保您使用以下 URL:https://www.google.com/accounts/o8/id

更改此设置后,它在我的网站上再次工作。