首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误: Drupal 7 HybridAuth社会登录

错误: Drupal 7 HybridAuth社会登录
EN

Stack Overflow用户
提问于 2014-09-03 11:55:25
回答 3查看 1.9K关注 0票数 3

我安装了drupal 7杂交https://www.drupal.org/project/hybridauth。我为Google、Facebook、Twitter和LinkedIn配置了模块。除了谷歌,他们工作得很好。根据HybridAuth模块的指令,我去了https://code.google.com/apis/console#access。然后,我使用“created”按钮创建了应用程序,并设置了我为其他社交登录所做的所有信息。

之后,我尝试使用google链接登录,但是他们显示了一个错误:“处理您的请求时出错了!”我搜索了更多的时间。但我不能解决这个问题。

然后我去看了我的drupal网站的日志。我发现了以下错误信息-

DOMAIN-COM/drupalsocialauth/hybridauth/window/Google?destination=node&destination_error=node 定位:

消息:异常:用户配置文件请求失败!谷歌回复了一个无效的回复。in**混合_Providers_Google->getUserProfile()( /home/pydream/public_html/drupalsocialauth/sites/all/libraries/hybridauth/hybridauth/Hybrid/Providers/Google.php).第87行)

你能帮我修一下吗?

谢谢你抽出时间。

EN

回答 3

Stack Overflow用户

发布于 2014-09-18 20:37:16

我解决了这个问题,多亏了这里的最后一个评论:https://groups.google.com/forum/#!topic/hybridauth/dNSUDyWpc5w

https://code.google.com/apis/console#access的项目下

API &auth-> API启用: Contacts和Google+ API

API&auth->同意屏幕,确保完成同意屏幕并保存

链接:https://www.drupal.org/node/2339085#comment-9152359

票数 3
EN

Stack Overflow用户

发布于 2015-04-27 09:11:29

在我的情况下,变量表中的hybridauth_provider_Google_scope不是变量。我执行了命令:

代码语言:javascript
复制
drush vset hybridauth_provider_Google_scope "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"

现在Google auth运行正常。

P.S.可能和drush vset hybridauth_provider_Google_scope "https://www.googleapis.com/auth/plus.profile.emails.read"在一起也会正常工作。我没有检查这个变体。

票数 0
EN

Stack Overflow用户

发布于 2016-12-09 07:15:43

请尝试在此文件中进行注释:

代码语言:javascript
复制
/hybridauth/hybridauth/Hybrid/thirdparty/OAuth/OAuth2Client.php

这句话:

代码语言:javascript
复制
// curl_setopt($ch, CURLOPT_USERAGENT      , $this->curl_useragent );
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25643653

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档