从主页登录不适用于新用户或现有用户,具有用户/通行证的现有用户也无法链接其Google帐户-所有用户都遇到相同的错误。
是的,我确定这是一个错误,没有功能要求或一般性问题。
顺便说一句,同样的问题。 回调URL是正确的,并且同一封电子邮件下的Google帐户存在,并且实际上拥有zammad获得其客户端密钥+机密的项目。
有什么方法可以找到针对您的项目的auth oauth请求的日志?
感谢您的发布。
我可以通过从未启用身份验证的项目来验证这一点-但:
这不是错误。
可以在log / web-1.log中找到此问题的原因:
I, [2018-11-16T10:39:42.637447 #23972] INFO -- omniauth: (google_oauth2) Request phase initiated.
I, [2018-11-16T10:39:42.970970 #23972] INFO -- omniauth: (google_oauth2) Callback phase initiated.
E, [2018-11-16T10:39:43.325612 #23972] ERROR -- omniauth: (google_oauth2) Authentication failure! invalid_credentials: OAuth2::Error, {"errors"=>[{"domain"=>"usageLimits", "reason"=>"accessNotConfigured", "message"=>"Access Not Configured. Google+ API has not been used in project [PROJECTID_GOOGLE] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.", "extendedHelp"=>"https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE]"}], "code"=>403, "message"=>"Access Not Configured. Google+ API has not been used in project [PROJECTID_GOOGLE] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."}:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Google+ API has not been used in project [PROJECTID_GOOGLE] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"extendedHelp": "https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE]"
}
],
"code": 403,
"message": "Access Not Configured. Google+ API has not been used in project [PROJECTID_GOOGLE] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}
实际上,您需要先启用Google+ API,然后才能通过Google对用户进行身份验证。
我将进行文档更新,因为我们文档的这一部分编写得很差。 不便之处,敬请原谅。
访问以下链接(您需要使用API-Project-ID对其进行调整)以启用Google+ API:
https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[Your-API-Project-ID]
我将关闭此问题-您可以在这里找到文档问题: https :
谢谢,我可以确认启用Google+ API后-现在可以正常使用了。
最有用的评论
谢谢,我可以确认启用Google+ API后-现在可以正常使用了。