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

gargle 1.2.1 breaks token authentication example #167

Open
oobd opened this issue Oct 11, 2022 · 0 comments
Open

gargle 1.2.1 breaks token authentication example #167

oobd opened this issue Oct 11, 2022 · 0 comments

Comments

@oobd
Copy link

oobd commented Oct 11, 2022

updating to gargle 1.2.1 seems to break the authentication method examples given at:
https://code.markedmondson.me/googleCloudStorageR/articles/googleCloudStorageR.html

library(googleCloudStorageR)
library(gargle)

## Fetch token. See: https://developers.google.com/identity/protocols/oauth2/scopes
scope <-c("https://www.googleapis.com/auth/cloud-platform")
token <- token_fetch(scopes = scope)

## Pass your token to gcs_auth
gcs_auth(token = token)

## Perform gcs operations as normal
gcs_list_objects(bucket = "my-bucket")

Looking at gargle 1.2.1 release notes, it looks like they stopped supporting googleapis.com/ methods?
Release notes:
"We have switched to newer oauth2.googleapis.com-based OAuth2 URIs, moving away from the accounts.google.com and googleapis.com/oauth2 equivalents."

This has been the easiest method to authenticate for gcs access (much simpler than methods using json files).
Is there a way to still use this method?

Thanks!

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