Comments (4)
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.
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.
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.
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)
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Can list files but not read them HOT 5
- Incompatible dependencies with 3.0.7 HOT 1
- How to download file infected with virus?
- Support shortcut files
- How can i get a file by id HOT 2
- Warning: `Unknown key: SameSite = none`
- support googleauth gem 1.0? HOT 1
- Deprecated OAuth out-of-band (oob) flow HOT 3
- App blocked
- How can I obtain the hyperlink of a cell
- Google Oauth out-of-band (OOB) Flow Deprecated Oct 3 HOT 12
- SSL Error while accessing the GoogleDrive API HOT 2
- [ASK] Is there a way to set Folder permission HOT 1
- Breaks console, multiple issues.
- Runtime dependency / googleauth ~> 1.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-drive-ruby.