Php HybridAuth与谷歌在codeigniter-a3m中重定向错误

Php HybridAuth与谷歌在codeigniter-a3m中重定向错误,php,google-oauth,hybridauth,codeigniter-a3m,Php,Google Oauth,Hybridauth,Codeigniter A3m,我正在使用向我的应用程序添加安全身份验证。由于日志显示: ( [hauth_return_to] => https://mywebsite.com/account/connect/Google [hauth_token] => uhas9b51ajhlehkbo1fehj79t0 [hauth_time] => 1405629149 [login_start] => https://mywebsite.com/account/connect

我正在使用向我的应用程序添加安全身份验证。由于日志显示:

(
    [hauth_return_to] => https://mywebsite.com/account/connect/Google
    [hauth_token] => uhas9b51ajhlehkbo1fehj79t0
    [hauth_time] => 1405629149
    [login_start] => https://mywebsite.com/account/connect_end?hauth.start=Google&hauth.time=1405629149
    [login_done] => https://mywebsite.com/account/connect_end?hauth.done=Google
)
但它会将我重定向到以下URL处的页面:

https://mywebsite.com/account/connect_end?hauth.start=Google&hauth.time=1405629255
关于这一内容:

HybridAuth
Open Source Social Sign On PHP Library. 
hybridauth.sourceforge.net/

并且未完成登录或帐户链接。我尝试将Google开发者控制台中的
重定向uri
更改为
'/account/connect\u end'
'/account/connect/Google'
,结果相同。如何使其连接?

好的,虽然看起来像是配置文件问题或bug,但实际上这是web服务器中URL处理的问题。我将此规则添加到NGINX:

location / {

    try_files $uri $uri/ /index.php;
    if (!-e $request_filename){
        rewrite ^(.*)$ /index.php?/$1 last;
    }
}

我最近尝试使用PHP League库,但失败了——请参见我的另一个问题: