php - 谷歌登录codeigniter上的范围电子邮件问题
问题描述
对不起,我再次重复我的问题,因为我没有得到任何答案,但我希望今天我会。现在,我已经使用 CodeIgniter 创建了谷歌登录,它运行良好,当我点击下一步按钮填写所有详细信息后点击登录页面时,Google image
它会将我从谷歌登录到我的网站,并且 URL 看起来像
https://example.com/google_login?code=4/lQDGQ6sJog3ZrLKGJtn-VVD3rbzgJl16jMLUrk6wzBIbsu-F6mjlLuPOepeobDLmFYqQL25jo4iAgI9ZnVKTSVY&scope=email%20profile%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile
这向我显示 404 错误,但如果我删除
&scope=email%20profile%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile
从 URL 然后它向我显示客户的所有信息。
请帮我
谢谢你
解决方案
我试过没有在 routes.php 中添加路由并且它可以工作(删除的字符串放在里面$this->input->get('scope')
)。
您可能需要在 routes.php 中添加路由。如果路由匹配谷歌响应 url,请将其链接到您的控制器。
推荐阅读
- android - Android中可自定义的浮动按钮
- java - Spring MVC中POST方法后重定向
- python - 正则表达式不匹配:在任何地方搜索特定数量的数字
- angular - 将取消按钮添加到角材料中的选项卡组件
- azure-aks - Azure Kubernetes 服务上的垂直 Pod 自动缩放
- docker - 无法使用 nginx-proxy 和 dnsmasq 使用 docker-compose 访问容器之间的虚拟主机
- python - Python MySQLdb“错误:需要Microsoft Visual C++ 14.0”,即使它已经安装
- css - 如何使页面上的所有超链接(不是菜单颜色相同)
- scala - 将 RDD 保存为文本文件会导致 FileAlreadyExists 异常。如何在每次程序加载时创建新文件并使用 FileUtils 删除旧文件
- ruby-on-rails - 无法加载日志 Papertrail