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

Limit Drive API scope #59

Open
vojta001 opened this issue Dec 12, 2020 · 2 comments
Open

Limit Drive API scope #59

vojta001 opened this issue Dec 12, 2020 · 2 comments

Comments

@vojta001
Copy link

I don't know all the internals of this library, but cannot you use the https://www.googleapis.com/auth/drive.file API scope only?

According to the docs it is

View and manage Google Drive files and folders that you have opened or created with this app

which should be enough, shouldn't it?

@Lykos153
Copy link
Owner

I thought so, too, but no. This scope is made for apps that you can open within Google Drive (by clicking on a file and selecting "open with") such as editors and the like. And it also doesn't actually work with folders, so you can't select an app to open a folder with.

At least in my experiments I could never get it to work with the drive.file scope. I might look into it another time, so I'm leaving this issue open for now. But I'm quite pessimistic about it.

@vojta001
Copy link
Author

I have used rclone recently to upload some files to Drive and drive.file worked fine for me – rclone was unable to see other files stored in my Drive but was able to upload new ones and I was able to access them using the web interface.

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

No branches or pull requests

2 participants