Closed prashanthca closed 3 years ago
Looks good, but I don't really what this is for. Also, add a brief documentation to README.md
might be necessary, or users will not know this feature.
As for code addition, please fix some coding style using prettier with this config. Also, prefer const
over let
, var
if not necessary.
Service Accounts can be used instead of standard Google/GSuite accounts with rclone
setup.
The same way rclone
can use Service Accounts - https://rclone.org/drive/#service-account-support.
Thanks for looking into this @maple3142! And yes, as @CatTheHacker said, it's basically a way to use service accounts to access GDrive. This eliminates the standard upload/download quota that usually applies to normal accounts
This eliminates the standard upload/download quota that usually applies to normal accounts
Service accounts are still subject to upload/download quota just like the normal user accounts, it's just easier and faster to manage/use as they don't require manual authentication via web browser.
@CatTheHacker Yes, it seems that I was mistaken about the quota. Nevertheless, as you mentioned, it's a easier way to setup GDIndex, without having to get the refresh token via rclone or the web method. Maybe I can look into modifying the props to contain multiple service account credentials, so the client can cycle through them randomly, distributing the usage across the accounts.
@maple3142, I've made the changes you suggested and I've added a section in README for this feature. I've made changes in the Chinese README (both traditional and simplified versions) files as well.
This code change will allow the usage of service accounts with GDIndex. This will mainly benefit the end-users