Giter Club home page Giter Club logo

Comments (4)

gimite avatar gimite commented on August 17, 2024

Can you try to log in with application specific password instead of your normal password?:
http://support.google.com/accounts/bin/answer.py?hl=en&answer=185833

from google-drive-ruby.

brntsllvn avatar brntsllvn commented on August 17, 2024

Hi, I am having the same issue. I replaced my password with my application-specific password and get the following error... I am using Nitrous.io, does this complicate things?

GoogleDrive::AuthenticationError in ContactsController#create
Authentication failed for [email protected]: Response code 403 for post https://www.google.com/accounts/ClientLogin: Error=BadAuthentication Info=InvalidSecondFactor

def update_spreadsheet
connection = GoogleDrive.login(Rails.application.secrets.email_provider_username, Rails.application.secrets.email_provider_password)

SOLUTION:

Disable two-step verification in Google.

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

Enable "Less secure apps"

Run app again.

from google-drive-ruby.

gimite avatar gimite commented on August 17, 2024

The best solution would be to switch to use OAuth:
http://gimite.net/doc/google-drive-ruby/GoogleDrive.html#method-c-login_with_oauth

It should work with account with 2-step authentication enabled. Also, anyway login with user name + password will soon be unavailable in coming new version of google-drive-ruby.

In your solution, I guess you don't need to disable 2-step authentication, but just enable "less secure apps" and use application-specific password. I haven't verified it, though.

from google-drive-ruby.

brntsllvn avatar brntsllvn commented on August 17, 2024

Thanks a bunch for the message. I will take a close look at OAuth.

On Wed, Oct 1, 2014 at 7:43 AM, Hiroshi Ichikawa [email protected]
wrote:

The best solution would be to switch to use OAuth:

http://gimite.net/doc/google-drive-ruby/GoogleDrive.html#method-c-login_with_oauth

It should work with account with 2-step authentication enabled. Also,
anyway login with user name + password will soon be unavailable in coming
new version of google-drive-ruby.

In your solution, I guess you don't need to disable 2-step authentication,
but just enable "less secure apps" and use application-specific password. I
haven't verified it, though.


Reply to this email directly or view it on GitHub
#40 (comment)
.

from google-drive-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.