Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Authentication Error #167

Open
zelanko opened this issue Jun 2, 2021 · 25 comments
Open

[BUG] Authentication Error #167

zelanko opened this issue Jun 2, 2021 · 25 comments
Labels

Comments

@zelanko
Copy link

zelanko commented Jun 2, 2021

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 zelanko added the bug label Jun 2, 2021
@samuelsayag
Copy link

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.

@writingdeveloper
Copy link

Same problem in Windows 10

It seems that google blocks the client

@JRubino-80
Copy link

Same problem in Linux Mint 20.1

@stperez
Copy link

stperez commented Jun 27, 2021

same problem in arch linux

@shivangpatel
Copy link

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.

@UnisTorvalds
Copy link

UnisTorvalds commented Jul 1, 2021

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

@hariseldon99
Copy link

hariseldon99 commented Jul 5, 2021

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.

@mcamou
Copy link

mcamou commented Jul 16, 2021

Same problem with Ubuntu 20.04 installing from a Snap

@Classic298
Copy link

same issue manjaro

@llui85
Copy link

llui85 commented Jul 23, 2021

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

@BossCode45
Copy link

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

@safield
Copy link

safield commented Aug 4, 2021

Same issue, Kubuntu 20.04, installing from snap.

@shivangpatel
Copy link

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.

@mcamou
Copy link

mcamou commented Aug 10, 2021

@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.

@BossCode45
Copy link

@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.

@shivangpatel
Copy link

@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.

@haperes
Copy link

haperes commented Aug 23, 2021

same issue, installed from flathub on ubuntu 20.04

@LeCmnGend
Copy link

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

@llui85
Copy link

llui85 commented Sep 14, 2021

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.

@LeCmnGend
Copy link

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?

@BossCode45
Copy link

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.

@llui85
Copy link

llui85 commented Sep 14, 2021

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.

@AMDphreak
Copy link

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

@samuelsayag
Copy link

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

@hrqmonteiro
Copy link

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

@llui85 llui85 mentioned this issue Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests