dongxiong5546 2016-12-23 11:45
浏览 70

PHP Hybrid auth Google登录 - 用户个人资料请求失败。 很可能用户未连接到提供商

My google login throwing exception as

User profile request failed. Most likely the user is not connected to the provider and he should authenticate again.

but I have linkedin and facbook as well it is working properly.

I have enabled Google+ API and Contacts API also. I am attaching the trace as well here

Exception Object
(
    [message:protected] => User profile request failed! Google returned an error: exception 'Exception' with message 'The Authorization Service has return: invalid_request' in /home/proj/public_html/vendor/hybridauth/hybridauth/hybridauth/Hybrid/thirdparty/OAuth/OAuth2Client.php:85
Stack trace:
#0 /home/proj/public_html/vendor/hybridauth/hybridauth/hybridauth/Hybrid/Provider_Model_OAuth2.php(120): OAuth2Client->authenticate('4/9QL_m58Ny929x...')
#1 /home/proj/public_html/vendor/hybridauth/hybridauth/hybridauth/Hybrid/Endpoint.php(173): Hybrid_Provider_Model_OAuth2->loginFinish()
#2 /home/proj/public_html/vendor/hybridauth/hybridauth/hybridauth/Hybrid/Endpoint.php(55): Hybrid_Endpoint->processAuthDone()
#3 /home/proj/public_html/vendor/hybridauth/hybridauth/hybridauth/Hybrid/Endpoint.php(72): Hybrid_Endpoint->__construct(NULL)
#4 /home/proj/public_html/catalog/controller/social/auth.php(15): Hybrid_Endpoint::process()
#5 [internal function]: ControllerSocialAuth->index(Array)
#6 /home/proj/public_html/vqmod/vqcache/vq2-system_modification_system_engine_action.php(65): call_user_func(Array, Array)
#7 /home/proj/public_html/system/engine/front.php(34): Action->execute(Object(Registry))
#8 /home/proj/public_html/system/engine/front.php(29): Front->execute(Object(Action))
#9 /home/proj/public_html/index.php(284): Front->dispatch(Object(Action), Object(Action))
#10 {main}
...
...
...

Can anyone help me to resolve this...

  • 写回答

1条回答 默认 最新

  • douquan1953 2017-01-05 16:38
    关注

    I have a similar problem, out of nowwhere. Allthough my search, i think it has to do with Google because everything in the code is correct. Have you found something new these days?

    评论

报告相同问题?

悬赏问题

  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥30 python代码,帮调试,帮帮忙吧