Closed
Description
Bug Report
google drive remote support with oauth authentication is currently broken for dvc
Description
Reproduce
- Follow oauth setup guide
- Add the google drive remote
dvc remote add gdrive://<id>
- Run the following snippet:
echo foo > file
dvc add file
dvc push
Expected
0% Checking cache in '<id> | |0/? [00:00<?, ?files/s]Go to the following link in your browser:
https://accounts.google.com/o/oauth2/auth?client_id=<client_id.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.appdata&access_type=offline&response_type=code&approval_prompt=force
Enter verification code:
Clicking on the URL would prompt the user with the OAuth consent screen.
Actual result:
Clicking on oauth2 authentication URL returns
You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure.
You can let the app developer know that this app doesn't comply with one or more Google validation rules.
Request Details
The content in this section has been provided by the app developer. This content has not been reviewed or verified by Google.
If you’re the app developer, make sure that these request details comply with Google policies.
redirect_uri: urn:ietf:wg:oauth:2.0:oob
Environment information
---------------------------------
Platform: Python 3.10.4 on Linux-5.15
Supports:
gdrive (pydrive2 = 1.10.1),
gs (gcsfs = 2022.5.0),
webhdfs (fsspec = 2022.5.0),
http (aiohttp = 3.8.1, aiohttp-retry = 2.4.6),
https (aiohttp = 3.8.1, aiohttp-retry = 2.4.6),
ssh (sshfs = 2022.6.0)
Cache types: reflink, hardlink, symlink
Cache directory: btrfs on /dev/mapper/lvm-root
Caches: local
Remotes: gs, gdrive
Workspace directory: btrfs on /dev/mapper/lvm-root
Repo: dvc, git
Reported on discord
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done