Skip to content

Creating pseudo OOB auth from DIY client #263

@meztez

Description

@meztez

Running

library(bigrquery)
bigrquery::bq_auth_configure(path = "extraw.json") #this function is obfuscated in internal data of package
gargle::cred_funs_set(list("credentials_user_oauth2" = gargle::cred_funs_list()$credentials_user_oauth2))

bigrquery::bq_auth(use_oob = TRUE)
con <- DBI::dbConnect(
  bigrquery::bigquery(),
  project = {project},
  dataset = {dataset},
  billing = {project},
  bigint = "numeric",
  quiet = FALSE
)

We hit Erreur 400 : redirect_uri_mismatch

We tracked it down to :

params$oob_value <- select_pseudo_oob_value(client$redirect_uris)

there is something funky going on client_type and client$type, so params$oob_value end up null and not working.

We will replicate the function for now, until we can propose a better fix.

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