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

Support GCD impersonation via modified service account file #612

Merged
merged 1 commit into from
Mar 9, 2021

Conversation

gilbertchen
Copy link
Owner

This change allows a service account json file created by a domain admin to be used to access Google Drive for another user under the same domain.

The service account json file must be manually edited to add these two lines:

  "subject": "user@domain.com",
  "scope": "https://www.googleapis.com/auth/drive.file",

The scope can be drive, drive.file, or drive.appdata. For drive.appdata, the backups will be stored under the special app data folder that isn't usually visible in the Google Drive. It can only be accessed programmatically with the Spaces set appDataFolder (the default Spaces is drive) with the root id of appDataFolder.

See discussion here: https://forum.duplicacy.com/t/google-drive-drive-appdata-scope-service-account-impersonate/4462

@gilbertchen
Copy link
Owner Author

This pull request has been mentioned on Duplicacy Forum. There might be relevant details there:

https://forum.duplicacy.com/t/google-drive-drive-appdata-scope-service-account-impersonate/4462/11

@gilbertchen
Copy link
Owner Author

This pull request has been mentioned on Duplicacy Forum. There might be relevant details there:

https://forum.duplicacy.com/t/using-google-drive-file-stream-with/2088/33

@gilbertchen
Copy link
Owner Author

This pull request has been mentioned on Duplicacy Forum. There might be relevant details there:

https://forum.duplicacy.com/t/restore-speed-with-duplicacy-is-quite-slow-can-that-be-improved/4719/24

@gilbertchen
Copy link
Owner Author

This pull request has been mentioned on Duplicacy Forum. There might be relevant details there:

https://forum.duplicacy.com/t/hitting-google-rate-limit/4801/6

@gilbertchen
Copy link
Owner Author

This pull request has been mentioned on Duplicacy Forum. There might be relevant details there:

https://forum.duplicacy.com/t/duplicacy-vs-apple-time-machine/4834/7

@gilbertchen gilbertchen merged commit fd1b7e1 into master Mar 9, 2021
@gilbertchen gilbertchen deleted the gcd_impersonate branch March 9, 2021 16:09
@gilbertchen
Copy link
Owner Author

This pull request has been mentioned on Duplicacy Forum. There might be relevant details there:

https://forum.duplicacy.com/t/cannot-add-gdrive-as-storage-option-rate-limit-exceeded-trying-to-add/6693/7

@gilbertchen
Copy link
Owner Author

This pull request has been mentioned on Duplicacy Forum. There might be relevant details there:

https://forum.duplicacy.com/t/adding-a-google-drive-broken-on-the-web-gui/6802/8

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

Successfully merging this pull request may close these issues.

None yet

1 participant