LightOpenId不会重定向到登录页面

请有人帮我搞定这个。 问题是它只是将一个查询字符串附加到url,就是这样。没有谷歌登录页面!
http://domain.nl/controller/function?action=verify&openid_identifier=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid
Mayby是特定的东西,比如我使用mvc设计和htaccess文件。 我现在还不清楚这个解决方案。 请指出我正确的方向 谢谢,理查德 在控制器中....这是表单指向的功能
public function openid(){

        try {
    $openid = new LightOpenID;
    if(!$openid->mode) {
        if(isset($_GET['action'])) {
            $openid->identity = 'https://www.google.com/accounts/o8/id';
              //$openid->identity = 'https://www.google.com/accounts/o8/site-xrds?hd=YourDomain.in'; //this can be changed as you know...  
            header('Location: ' . $openid->authUrl());
        }
/*<form action="?login" method="post">
    <button>Login with Google</button>
</form>*/

    } elseif($openid->mode == 'cancel') {
        echo 'Gebruiker heeft authenticatie geannuleerd!';
    } else {
        echo 'Gebruiker ' . ($openid->validate() ? $openid->identity . ' heeft ' : 'heeft niet ') . 'ingelogd.';
    }
} catch(ErrorException $e) {
    echo $e->getMessage();
}

    }
    
已邀请:
看起来重定向不起作用。检查
$openid->authUrl()
是否返回正确的值。如果是这样,那么问题与LightOpenID无关。 此外,如果您计划将site-xrds与google身份验证一起使用,请务必在
http://your.domain/openid
返回的文档中包含以下标题:
header('X-XRDS-Location: https://www.google.com/accounts/o8/site-xrds?hd=your.domain');
否则,验证将失败。     

要回复问题请先登录注册