简体   繁体   中英

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:

"Authentication failed for [my_email_address]@gmail.com: Response code 403 for post https://www.google.com/accounts/ClientLogin : Error=BadAuthentication Info=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.

Someone suggested I enabled two-step verification in my gmail account to ultimately retrieve an "application-specific password." 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.

Any idea how to get around this?

Solution...

Disable two-step verification.

Go here: https://www.google.com/settings/security/lesssecureapps

Enable "Less secure apps"

Run app again with usual password.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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