Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 谷歌登录codeigniter上的范围电子邮件问题_Php_Codeigniter_Google Api_Google Login - Fatal编程技术网

Php 谷歌登录codeigniter上的范围电子邮件问题

Php 谷歌登录codeigniter上的范围电子邮件问题,php,codeigniter,google-api,google-login,Php,Codeigniter,Google Api,Google Login,对不起,我再次重复我的问题,因为我没有得到任何答案,但我希望今天我能得到答案。现在,我已经使用CodeIgniter创建了google登录,它工作正常。当我点击google image时,它会将我带到登录页面,当我点击next按钮填写完所有详细信息后,它会将我从google登录带到我的网站和URL https://example.com/google_login?code=4/lQDGQ6sJog3ZrLKGJtn-VVD3RBZGJL16JM6WZBIBSU-F6MJLLUPOEPEOBDLM

对不起,我再次重复我的问题,因为我没有得到任何答案,但我希望今天我能得到答案。现在,我已经使用CodeIgniter创建了google登录,它工作正常。当我点击
google image
时,它会将我带到登录页面,当我点击next按钮填写完所有详细信息后,它会将我从google登录带到我的网站和URL

https://example.com/google_login?code=4/lQDGQ6sJog3ZrLKGJtn-VVD3RBZGJL16JM6WZBIBSU-F6MJLLUPOEPEOBDLMFYQL25JO4IAGI9ZNVKTSVY&scope=电子邮件%20配置文件%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile

显示404错误,但如果我删除

&范围=电子邮件%20配置文件%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile
从URL中,它会显示客户端的所有信息

请帮帮我


谢谢

我尝试过在routes.php中不添加route,它可以工作(删除的字符串放在
$this->input->get('scope')
中)


您可能需要在routes.php中添加路由。如果路由与google响应url匹配,请将其链接到您的控制器。

欢迎使用stack我们不会因为没有得到原始问题所需的答案而重复提出问题。我们改进了原来的问题,希望得到答案。你只等了21个小时,可能要等上几天才会有人发现你的问题。阅读这篇文章可能会帮助你改进你的问题,请看一下这是我的同一个问题@Bruce我不知道为什么,但这个url对我有用