通过LightOpenID在Codeigniter中通过Google登录 [英] Login through Google in Codeigniter via LightOpenID
问题描述
我使用此答案通过Google设置登录信息中提供的说明通过LightOpenId。它工作正常,直到它必须检查 $ openid->模式
,以确定是否google已验证登录凭据。从Google收到的网址具有 openid.mode = id_res
参数。但是 $ openid-> mode
从库中的变量仍然返回false,表示未验证。
I used the instructions given in this answer to setup login through Google via LightOpenId. It's working fine up till the point where it has to check $openid->mode
to find out whether google has verified the login credentials. The Url received from Google does have the openid.mode=id_res
parameter. But $openid->mode
variable from the library still returns false, meaning that it's not verified.
帮助!
推荐答案
我能够使用您引用的StackOverflow问题,并成功实现CodeIgniter的解决方案。您是否尝试在routes.php文件中添加新行,以将返回URL定向到logingoogle / loginAuth函数?也许一个默认路由绕过调用你需要完成登录的函数。
I was able to use the StackOverflow question you referenced and implement the solution in CodeIgniter with success. Have you tried adding a new line in the routes.php file to direct the return URL to the logingoogle/loginAuth function? Perhaps a default route is circumventing calling the function that you need to complete logging in.
这篇关于通过LightOpenID在Codeigniter中通过Google登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!