Skip to content

Access blocked: This app’s request is invalid #433

@czechtech

Description

@czechtech

When I try to get authorization, the google website says: Access blocked: This app’s request is invalid

I am using Google Colab with the R kernel. I used pak to get googledrive 2.1.1.9 and gargle 1.5.0.9.

install.packages("pak")
library("pak")
pak::pak("tidyverse/googledrive")
pak::pakI("r-lib/gargle")

install.packages("httr")
install.packages("R.utils")
library("R.utils")
library("httr")
reassignInPackage("is_interactive", pkgName = "httr", function() return(TRUE))
options(rlang_interactive=TRUE)

library("googledrive")
drive_auth(use_oob = TRUE, cache = FALSE)

I follow the link for authorization, but it says: "Access blocked: This app’s request is invalid" "You can’t sign in because this app sent an invalid request. You can try again later, or contact the developer about this issue."

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions