Login through Google in Codeigniter via LightOpenID

只谈情不闲聊 提交于 2019-12-11 18:05:24

问题


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.

Please help!


回答1:


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.



来源:https://stackoverflow.com/questions/22173781/login-through-google-in-codeigniter-via-lightopenid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!