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

Authentication to Google Drive not working #293

Open
gaelso opened this issue Aug 12, 2023 · 0 comments
Open

Authentication to Google Drive not working #293

gaelso opened this issue Aug 12, 2023 · 0 comments

Comments

@gaelso
Copy link
Member

gaelso commented Aug 12, 2023

Describe the bug
Authentication fails with 2 methods:

Error 400: invalid_request
The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow migration guide linked in the developer docs below to migrate your app to an alternative method.
Request details: redirect_uri=urn:ietf:wg:oauth:2.0:oob

Potential app out-of-date issue: odeke-em/drive#1146

  • Rstudio googledrive::drive_auth()

Error 400: redirect_uri_mismatch
The redirect URI in the request, urn:ietf:wg:oauth:2.0:oob, can only be used by a Client ID for native application. It is not allowed for the WEB client type. You can create a Client ID for native application at https://console.developers.google.com/apis/credentials/oauthclient

using googledrive::drive_auth(use_oob = TRUE) as suggested here for R in a web browser also doesn't work: https://googledrive.tidyverse.org/reference/drive_auth.html

To Reproduce
Steps to reproduce the behavior:

  1. Launch and instance and in terminal type: drive init

  2. Copy/paste the url to a new tab

  3. Launch Rstudio and in the console type: googledrive::drive_auth()

Expected behavior
in both case the code /url should open a new page asking for credentials to user's google drive account and unlock functions to upload and download data

Screenshots
If applicable, add screenshots to help explain your problem.

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

1 participant