ODrive icon indicating copy to clipboard operation
ODrive copied to clipboard

[BUG] Authentication Error

Open zelanko opened this issue 4 years ago • 25 comments
trafficstars

Describe the bug When trying to connect to my google account I am met by an Authentication Error.

To Reproduce Steps to reproduce the behavior:

  1. From a clean install, open preferences...
  2. Click Next on the Setup Required page.
  3. Under Account, click Connect.
  4. Follow the Google account sign in process (I have 2FA enabled, so I entered username on one page, password on the next, and completed 2FA with my phone)
  5. See Error Screenshot.

Expected behavior Successful authentication

Screenshots Authorization_Error

Desktop

  • OS: Ubuntu 20.04
  • Version 0.2.2 (installed with snap)

zelanko avatar Jun 02 '21 04:06 zelanko

I have exactly the same problem.

Desktop

  • OS: Ubuntu 20.04
  • I tried snap and the installation via npm run release-linux deb also with the same result.

samuelsayag avatar Jun 03 '21 04:06 samuelsayag

Same problem in Windows 10

It seems that google blocks the client

writingdeveloper avatar Jun 09 '21 05:06 writingdeveloper

Same problem in Linux Mint 20.1

JRubino-80 avatar Jun 15 '21 14:06 JRubino-80

same problem in arch linux

stperez avatar Jun 27 '21 00:06 stperez

I think the main issue is related to Google Drive API Scopes. When I changed the API key n Secret, there is no auth-related issue, but I unable to SYNC with Google Drive. In an API scope, I chose only basic permissions. I didn't choose or read more for what are scopes are required to sync with local because of sort of time. I hope I will check soon or someone can do it and post back here.

In the current code, the author's Goodge Drive API APP is not verified by google. So all issues raised because of it.

shivangpatel avatar Jun 27 '21 11:06 shivangpatel

Exact same error in Mint 19.3. "Less secure app access" is turned on in my Google account settings. Two-factor disabled.

UnisTorvalds avatar Jul 01 '21 14:07 UnisTorvalds

Exact same error in Ubuntu 20.04.2, even after "Less secure app access" is turned on in Google account. This is the latest git master compiled into a deb pkg.

hariseldon99 avatar Jul 05 '21 17:07 hariseldon99

Same problem with Ubuntu 20.04 installing from a Snap

mcamou avatar Jul 16 '21 08:07 mcamou

same issue manjaro

Classic298 avatar Jul 19 '21 15:07 Classic298

I'm experiencing this issue too on debian with the latest release. I think it might be an issue with GSuite accounts.

llui85 avatar Jul 23 '21 00:07 llui85

I have the bug, installed with snap on the latest ubuntu with kde.

BossCode45 avatar Jul 25 '21 09:07 BossCode45

Same issue, Kubuntu 20.04, installing from snap.

safield avatar Aug 04 '21 22:08 safield

If you are using ubuntu os, you can directly access your google drive by adding an online account in settings. Then after open the file manager and then go to "other locations". Here you will find your Gmail drive.

PS: This application project is not working only because of Google Drive API APP. Make your own and approve from google and add that API key in this app's sourcecode. Tada... That's all.

shivangpatel avatar Aug 10 '21 15:08 shivangpatel

@shivangpatel That is not the same thing:

  1. It does not work from the command line. You have to find the file and copy it over manually (whether to or from GDrive). What odrive gives us is the same experience as the official Google Sync (or whatever it's called these days) client on Windows and Mac.
  2. odrive syncs all the files to your local hard drive. In my case I need this because I often need to work offline.

While you can use the workaround you mentioned and make your own, that means that you have to constantly merge changes from upstream and rebuild the app. While I could do that, it is one more thing to remember to do.

mcamou avatar Aug 10 '21 15:08 mcamou

@shivangpatel I tried to do your idea of adding a google account in the settings but it didn't work. Since then I have been using OverGrive, although my trial ran out, since its in a partition that is available on my windows boot too (I need windows to play games) I just let it sync when I switch to windows.

BossCode45 avatar Aug 10 '21 19:08 BossCode45

@BossCode45 I think you need more privileges/scopes in drive API, and you need to approve your app from google. Then after those API will work. One more thing, you need to update electron and other packages too. because, when I tried with a normal drive key, one of the issues was an old browser error.

shivangpatel avatar Aug 11 '21 13:08 shivangpatel

same issue, installed from flathub on ubuntu 20.04

haperes avatar Aug 23 '21 21:08 haperes

anyone have fork to solve this, seem like dev abandoned project

LeCmnGend avatar Sep 14 '21 10:09 LeCmnGend

anyone have fork to solve this, seem like dev abandoned project

So the cause of this issue is that the Google Drive API Key which liberodark uses isn't verified by Google. I believe Google requires a paid security audit for this level of access to google drive (I may be wrong though, correct me if I am).

To fix this, you can create your own token from your account:

  1. Go to the Google Developers console and create a new project.
  2. Enable the google drive API (API's & Services > Library)
  3. Create an OAuth token (Credentials) with access to google drive (use "Desktop App"). You shouldn't need approval if it's set up for just your gmail account.
  4. Clone the repo and update config/globals.js file with your token. Now you can run:
npm install
npm start

and it should work. You might need to add the relevant redirect_uri in the console if you get a different error when trying to sign in.

llui85 avatar Sep 14 '21 10:09 llui85

anyone have fork to solve this, seem like dev abandoned project

So the cause of this issue is that the Google Drive API Key which liberodark uses isn't verified by Google. I believe Google requires a paid security audit for this level of access to google drive (I may be wrong though, correct me if I am).

To fix this, you can create your own token from your account:

  1. Go to the Google Developers console and create a new project.
  2. Enable the google drive API (API's & Services > Library)
  3. Create an OAuth token (Credentials) with access to google drive (use "Desktop App"). You shouldn't need approval if it's set up for just your gmail account.
  4. Clone the repo and update config/globals.js file with your token. Now you can run:
npm install
npm start

and it should work. You might need to add the relevant redirect_uri in the console if you get a different error when trying to sign in.

Thank you very much sir. How i can complie this app for Windows?

LeCmnGend avatar Sep 14 '21 10:09 LeCmnGend

anyone have fork to solve this, seem like dev abandoned project

So the cause of this issue is that the Google Drive API Key which liberodark uses isn't verified by Google. I believe Google requires a paid security audit for this level of access to google drive (I may be wrong though, correct me if I am). To fix this, you can create your own token from your account:

  1. Go to the Google Developers console and create a new project.
  2. Enable the google drive API (API's & Services > Library)
  3. Create an OAuth token (Credentials) with access to google drive (use "Desktop App"). You shouldn't need approval if it's set up for just your gmail account.
  4. Clone the repo and update config/globals.js file with your token. Now you can run:
npm install
npm start

and it should work. You might need to add the relevant redirect_uri in the console if you get a different error when trying to sign in.

Thank you very much sir. How i can complie this app for Windows?

Why would you want to compile it for windows - the google backup and sync is perfectly fine for windows. It just isn't available on linux. But if you did want to do so then install node.js and follow the insutrctions.

BossCode45 avatar Sep 14 '21 10:09 BossCode45

Thank you very much sir. How i can complie this app for Windows?

npm run release-windows should do the trick. See the README for more information.

llui85 avatar Sep 14 '21 10:09 llui85

It's been a year. Any word on this?

AMDphreak avatar Mar 10 '22 03:03 AMDphreak

@AMDphreak I use https://github.com/astrada/google-drive-ocamlfuse which is ok.

samuelsayag avatar Mar 10 '22 07:03 samuelsayag

Ok so will ANYONE fix this? It's been a year. The app will remain literally unusable?

hrqmonteiro avatar Apr 17 '23 12:04 hrqmonteiro