Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Brent Sullivan
Brent Sullivan
9,877 Points

Nitrous.io, Rails, google_drive gem. "Authentication failed" error. Any ideas?

Hi, 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?

Thanks a bunch!

Brent

1 Answer