简体   繁体   English

Nitrous.io google_drive gem“身份验证失败”错误

[英]Nitrous.io google_drive gem “Authentication failed” error

I am trying to utilize the google_drive gem in a Rails app and am getting the following error: 我正在尝试在Rails应用程序中使用google_drive gem,并遇到以下错误:

"Authentication failed for [my_email_address]@gmail.com: Response code 403 for post https://www.google.com/accounts/ClientLogin : Error=BadAuthentication Info=InvalidSecondFactor" “ [my_email_address] @ gmail.com的身份验证失败:帖子https://www.google.com/accounts/ClientLogin的响应代码403:错误=错误身份验证信息= InvalidSecondFactor”

Google is preventing access (I keep getting security warnings via email from Google: "Google Account: sign-in attempt blocked"), and am looking for a way to get around this error. Google正在阻止访问(我一直通过来自Google的电子邮件收到安全警告:“ Google帐户:登录尝试被阻止”),并且正在寻找解决此错误的方法。

Someone suggested I enabled two-step verification in my gmail account to ultimately retrieve an "application-specific password." 有人建议我在gmail帐户中启用两步验证,以最终检索“特定于应用程序的密码”。 I entered the application-specific password in place of my normal gmail password but Google, I believe, is still denying my application access to my gmail account. 我输入的是应用专用密码,而不是普通的Gmail密码,但我相信Google仍拒绝我的应用访问我的Gmail帐户。

Any idea how to get around this? 任何想法如何解决这个问题?

Solution... 解...

Disable two-step verification. 禁用两步验证。

Go here: https://www.google.com/settings/security/lesssecureapps 前往这里: https//www.google.com/settings/security/lesssecureapps

Enable "Less secure apps" 启用“安全性较低的应用程序”

Run app again with usual password. 使用通常的密码再次运行应用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM