Skip to content

Commit

Permalink
Fix service authentification when using `gcloud auth application-defa…
Browse files Browse the repository at this point in the history
…ult` database. Fix #73.
  • Loading branch information
meztez committed Nov 3, 2024
1 parent 5c71e2b commit 73844dd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: bigrquerystorage
Type: Package
Title: An Interface to Google's 'BigQuery Storage' API
Version: 1.2.1
Version: 1.2.1.9000
Authors@R: c(
person("Bruno", "Tremblay", role = c("aut", "cre"), email = "openr@neoxone.com"),
person(family = "Google LLC", role = c("cph", "fnd")))
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# bigrquerystorage Development Version

* Fix service authentification when using `gcloud auth application-default` database.

# bigrquerystorage 1.2.1

* Increment `nanoarrow` version requirement.
Expand Down
6 changes: 3 additions & 3 deletions R/bqs_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ bqs_auth <- function() {
if (bigrquery::bq_has_token()) {
.authcred <- asNamespace("bigrquery")[[".auth"]][["cred"]]
if (!is.null(refresh_token <- .authcred[["credentials"]][["refresh_token"]])) {
.authclient <- .authcred[["client"]]
.authsource <- c(.authcred[["client"]], .authcred[["app"]])
access_token <- ""
refresh_token <- c(
type = "authorized_user",
client_secret = .authclient[["secret"]],
client_id = .authclient[["key"]],
client_secret = .authsource[["secret"]],
client_id = .authsource[["key"]],
refresh_token = refresh_token
)
refresh_token <- paste0("{", paste0(
Expand Down
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ apt-get install -y 'libgrpc\+\+-dev'/buster-backports \
```
##### OpenSUSE

In OpenSUSE 15.4 and 15.5 the version of the grpc package is tool old,
In OpenSUSE 15.4 and 15.5 the version of the grpc package is too old,
so installation fails. You can potentially compile a newer version of
grpc from source.

##### Ubuntu 20.04

In Ubuntu 20.04 the version of the grpc package is tool old,
In Ubuntu 20.04 the version of the grpc package is too old,
so installation fails. You can potentially compile a newer version of
grpc from source.

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ apt-get install -y 'libgrpc\+\+-dev'/buster-backports \

##### OpenSUSE

In OpenSUSE 15.4 and 15.5 the version of the grpc package is tool old,
In OpenSUSE 15.4 and 15.5 the version of the grpc package is too old,
so installation fails. You can potentially compile a newer version of
grpc from source.

##### Ubuntu 20.04

In Ubuntu 20.04 the version of the grpc package is tool old, so
In Ubuntu 20.04 the version of the grpc package is too old, so
installation fails. You can potentially compile a newer version of grpc
from source.

Expand Down

0 comments on commit 73844dd

Please sign in to comment.