Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Sign in with Google temporarily disabled for this app [with solution] #525

Open
mdobydullah opened this issue Jan 12, 2020 · 25 comments
Open

Comments

@mdobydullah
Copy link

mdobydullah commented Jan 12, 2020

Hi,
I'm using gdrive to backup my CentOS 7's files for a long time. Gdrive is the best among all google drive backup tools. A few days ago, I've launched a new server (CentOS 8) and tried to setup gdrive. But Google shows "Sign in with Google temporarily disabled for this app".

error_sign_in

Please take a look and please resume the maintenance. We love this tool.

Update: I've written a way to fix the issue. Please check this article: Mount Google Drive using GDrive on Linux Server with Own OAuth Credentials.

I hope this method will work on all servers.

Thank you.

@mdobydullah mdobydullah changed the title Sign in with Google temporarily disabled for this app - CentOS 8 Sign in with Google temporarily disabled for this app Jan 12, 2020
@mmmarceleza
Copy link

I had the same problem with a new server with Ubuntu 18.04. :(

@huabin
Copy link

huabin commented Jan 13, 2020

I had the same issue with Debian 9

@donand
Copy link

donand commented Jan 22, 2020

Same problem with Ubuntu 18.04, any update?

@mdobydullah mdobydullah changed the title Sign in with Google temporarily disabled for this app Sign in with Google temporarily disabled for this app [Fixed] Jan 22, 2020
@mdobydullah mdobydullah reopened this Jan 22, 2020
@mdobydullah
Copy link
Author

Hello Everyone,

I've written a way to fix the issue. Please check this article: Mount Google Drive using GDrive on Linux Server with Own OAuth Credentials.

I hope this method will work on all servers.

Thanks.

@donand
Copy link

donand commented Jan 23, 2020

In the end I solved it by using rclone https://github.com/rclone/rclone, the login procedure is working there.

@mdobydullah
Copy link
Author

Hi @donand

Congrats. Rclone is a great alternative. Yesterday night, I've solved by compiling the GDrive project with my own OAuth credentials. Now it works fine. I'm using GDrive commands like before.

@ianxm
Copy link

ianxm commented Feb 1, 2020

I don't think this should be marked [Fixed]. Hard coding credentials is not secure. if someone copies your gdrive binary they'll have access to your account. Is this the recommended path? Will the root cause be fixed?

@mdobydullah
Copy link
Author

Hi @ianxm,

GDrive is not being actively maintained at the moment. You should use the compiled gdrive only for you. For security reasons, you shouldn't share your compiled file with others.

@ianxm
Copy link

ianxm commented Feb 2, 2020

it was good of you to write up the steps to get it to work, but I don't think it's a good idea. It is a security risk even if you don't purposely share the file. It's uncommon to keep binaries around with credentials embedded in them. it would be easy to forget that file requires special handling. If you do this you might want to keep it in your ~/bin and chmod 700 it.

thanks for clarifying about the project. I didn't realize it was unmaintained. I'll use rclone.

@mdobydullah mdobydullah changed the title Sign in with Google temporarily disabled for this app [Fixed] Sign in with Google temporarily disabled for this app [with solution] Feb 2, 2020
@mdobydullah
Copy link
Author

Hello @ianxm,

Thanks for your information. Yeah rclone, borg, odeke-em/drive are the great alternatives.

@develooper1994
Copy link

@mdobydullah
Copy link
Author

Hi @develooper1994, Please follow all the steps properly and check file permission. It works for me and also tested by more users.

@cipri-tom
Copy link

@donand have you managed to download a file with rclone which is not on your own drive ? gdrive had the id option for that. I can't figure out how to do it with rclone until gdrive is fixed

@develooper1994
Copy link

unfortunately but I don't need anymore.

@yarkm13
Copy link

yarkm13 commented Mar 7, 2020

No need to compile from source, just create service account in google console and use --service-account option

@mdobydullah
Copy link
Author

Thanks @yarkm13 for sharing. I've tried some methods. Unfortunately, no method worked. Then I've compiled from source and works.

@yarkm13
Copy link

yarkm13 commented Mar 7, 2020

@mdobydullah you just need to go to https://console.cloud.google.com/iam-admin/serviceaccounts and create service account and you will be able to download json file with credentials (something like project-name-111-1b3f56a.json). Than put it to ~/.gdrive/ and run gdrive

./gdrive --service-account project-name-111-1b3f56a.json about

such method was not mentioned in thread

@mdobydullah
Copy link
Author

@yarkm13 thanks again. I'll try this method. :)

@yarkm13
Copy link

yarkm13 commented Mar 7, 2020

@mdobydullah i will be glad to hear from you if it was [in]successful. Please share your experience

@mdobydullah
Copy link
Author

@yarkm13 sure... :)

@nftleader
Copy link

@mdobydullah you just need to go to https://console.cloud.google.com/iam-admin/serviceaccounts and create service account and you will be able to download json file with credentials (something like project-name-111-1b3f56a.json). Than put it to ~/.gdrive/ and run gdrive

./gdrive --service-account project-name-111-1b3f56a.json about

such method was not mentioned in thread

I tried but uploaded file does not appear in my google drive and it's not able to view & download from browser.
The service account is the owner of the file.
What to do next?

@sanketssj5
Copy link

This works. Thank You

@mdobydullah
Copy link
Author

mdobydullah commented Apr 19, 2020

@captainheart Sorry for late reply. Please follow these steps.

@mdobydullah
Copy link
Author

@sanketssj5 Great. Nice to hear. :)

@tslater
Copy link

tslater commented May 25, 2021

@nftleader I created a service account and did this...it uploaded...but now how do I know what account they uploaded to? the project is part of an organization. Do you know how to specify a user account?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests