ODrive icon indicating copy to clipboard operation
ODrive copied to clipboard

[BUG] google drive says app not secure to connect

Open johannm2018 opened this issue 5 years ago • 89 comments

Describe the bug When you odrive for first time and connect to google account, google tells you " you re trying to connt from browser or app witch not is secure...."

so it's imposible to connet to google drive...

Desktop (please complete the following information):

  • OS: Mint 19.2

Thx !

johannm2018 avatar Dec 06 '19 15:12 johannm2018

image

Same error here, just got this message:

You are trying to sign in from a browser or app that doesn't allow us to keep your account secure.

rafaone avatar Dec 06 '19 17:12 rafaone

Same issue here. The sign-in page should open in default browser maybe?

pkgacek avatar Dec 14 '19 19:12 pkgacek

image

Same here.

bpowell2008 avatar Dec 15 '19 13:12 bpowell2008

And yes, same here :D I am using 2FA might that be the Problem?

kian1991 avatar Dec 18 '19 21:12 kian1991

Same here :/

Xwzyk avatar Dec 19 '19 09:12 Xwzyk

Same here. OS: OpenSuse 15.0

drojasd avatar Dec 20 '19 00:12 drojasd

Same problem. Manjaro KDE | odrive-bin 0.3.0-1 (installed from AUR)

MythikAngel avatar Dec 23 '19 21:12 MythikAngel

Same here. Windows & Ubuntu

pablodegrande avatar Dec 25 '19 22:12 pablodegrande

Same Problem here Ubuntu 18.04.3 LTS

lapu2x avatar Dec 28 '19 08:12 lapu2x

Describe the bug When you odrive for first time and connect to google account, google tells you " you re trying to connt from browser or app witch not is secure...."

so it's imposible to connet to google drive...

Desktop (please complete the following information):

  • OS: Mint 19.2

Thx !

I'm haveing the same issue as everyone else it seems, ubuntu 18.04, set chromium as default browser and that didn't help. i'm signed in to google account in chromium and with gnome. just can't do it with ODrive.

kirk276 avatar Dec 28 '19 12:12 kirk276

Same Problem here (K) Ubuntu 19.10

caguiar avatar Dec 28 '19 18:12 caguiar

Same Problem here Windows 10 1909

zLuCaS2K avatar Dec 28 '19 18:12 zLuCaS2K

Same Problem here Ubuntu 19.10

StoneyFish avatar Jan 01 '20 09:01 StoneyFish

Having the same issue as well. Using: Arch

ghost avatar Jan 01 '20 21:01 ghost

Same issue here Manjaro 18.1.5

jwi84 avatar Jan 03 '20 07:01 jwi84

Same Issue here

Ubuntu 18.04

robertobermudez avatar Jan 03 '20 15:01 robertobermudez

Any news on this? Is this great project still alive?

rektosaure avatar Jan 05 '20 04:01 rektosaure

Google changed their API, so now they consider non-browser apps as insecure. The way to change this is doing some kind of xdg-open on the ODrive to catch the token.

A possible palliative solution is find the database which stores the token and insert it manually. I tried to find the database by myself, but I couldn't found.

If someone know coding, please help us.

RudahXimenes avatar Jan 05 '20 16:01 RudahXimenes

You can have a look at how freeFileSync deals with the problem (select Google Drive as connection type). I guess they open a local http server on 127.0.0.1 and make chrome navigate that.

As far as I see know, it's the Google's official way to do it. There are samples here:

https://developers.google.com/identity/protocols/OAuth2InstalledApp

On Sun, Jan 5, 2020 at 1:03 PM RudahXimenes [email protected] wrote:

Google changed their API, so now they consider non-browser apps as insecure. The way to change this is doing some kind of xdg-open on the ODrive to catch the token.

A possible palliative solution is find the database which stores the token and insert it manually. I tried to find the database by myself, but I couldn't found.

If someone know coding, please help us.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/liberodark/ODrive/issues/147?email_source=notifications&email_token=ACYIIEGREAYEXTYCMB7INUDQ4IAGPA5CNFSM4JW2GINKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIDZ43A#issuecomment-570924652, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYIIEEFYW4MJKCWQLYUES3Q4IAGPANCNFSM4JW2GINA .

pablodegrande avatar Jan 05 '20 17:01 pablodegrande

Well guys, this is just outdated. I downloaded the source and built it with new electron-bundler (the GUI Framework). And guess what it is working again. So either someone is forking this and continue developing or the devs would become active again.

kian1991 avatar Jan 05 '20 20:01 kian1991

@kian1991

If someone want to fork it should be really nice. But if it not happen, there are the VGrive, which still in development.

But in VGrive there is only one maintainer and have some bugs that still in progress. If someone knows Vala / C / C# and wants to help the guy, it will be really good.

RudahXimenes avatar Jan 05 '20 21:01 RudahXimenes

Well guys, this is just outdated. I downloaded the source and built it with new electron-bundler (the GUI Framework). And guess what it is working again. So either someone is forking this and continue developing or the devs would become active again.

Any chance you can post detailed instructions on how to do this for thouse of us that are new to Linux, I tried removing and reinstalling ODrive with the same result as privous.

kirk276 avatar Jan 07 '20 07:01 kirk276

One hacky solution is to retrieve the AuthURL from console log, than manually paste into the broswer and give access to ODrive: Check ../ODrive/node_modules/google-auth-library/lib/auth/oauth2client.js after npm install and insert console.log(rootUrl + '?' + querystring.stringify(opts)); into line 125:

OAuth2Client.prototype.generateAuthUrl = function(opt_opts) {
  var opts = opt_opts || {};
//...
//...
  console.log(rootUrl + '?' + querystring.stringify(opts));
  return rootUrl + '?' + querystring.stringify(opts);
};

than you will get the Auth URL during npm start on console output which you can open in browser:

Generating oauth url
https://accounts.google.com/o/oauth2/auth?access_type=offline...
GET /connect 302 3.489 ms - 628

markojaadam avatar Jan 10 '20 08:01 markojaadam

Ok I'm still having the same problem, even though one guy claims the bug to be fixed. Did a fresh install and still no change. And I don't have any programming experience outside of basic on a trs 80 back in the early 80's. Anyone have a solution a mortal can understand?

kirk276 avatar Jan 10 '20 12:01 kirk276

Same Issue here

Debian 10.2

rodrigo-sumar avatar Jan 16 '20 02:01 rodrigo-sumar

A workaround that work from is to launch opendrive and instead of using the electron browser that is launched, open other browser like firefox and navigate to "127.0.0.1:16409/settings" and follow the configuration steps in this browser.

jmanfer8 avatar Jan 16 '20 15:01 jmanfer8

  console.log(rootUrl + '?' + querystring.stringify(opts));

This helped me move on from the Error page. However, on return from Google I get this error on the browser:

Error: invalid_grant
    at Gaxios._request (/path/to/odrive/node_modules/gaxios/build/src/gaxios.js:85:23)
    at process._tickCallback (internal/process/next_tick.js:68:7)

pendashteh avatar Jan 16 '20 15:01 pendashteh

same. Ubuntu 18.04

Samael1982 avatar Jan 27 '20 08:01 Samael1982

Yeah is new functionality... If you have idea for fix dont hesitate to make a PR

liberodark avatar Jan 29 '20 10:01 liberodark

Have merge the pr from @dionaditya but that help for update deps but no fix the problem. If you have time to test from the source try.

liberodark avatar Jan 29 '20 10:01 liberodark