You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to see if I can build a command-line tool that authenticates to Google APIs using the auth model used by gcloud, which involves user to click to a browser URL and go to a localhost:8080 callback url, or something like user copying the token back to the CLI tool.
I've been trying to see if oauth2l can provide interactive input (#61 claims it can). But when I try this, it doesn't work:
$ oauth2l fetch --type=oauth --scope cloud-platform
google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
I'm curious if there's a code sample in this repo about that.
The text was updated successfully, but these errors were encountered:
Hi ahmetb, the issue is that you have not configured any local credentials. You can specify it through the "--credentials" parameter OR set an environment variable. Please refer to the README file, which includes instructions on how to download a credentials file from cloud console and example code. Note that in order to get an interactive auth flow (a.k.a 3-legged OAuth), you need to use an OAuth Client ID instead of service account key as your credentials.
Hi, thanks for this cool tool!
I'm trying to see if I can build a command-line tool that authenticates to Google APIs using the auth model used by gcloud, which involves user to click to a browser URL and go to a localhost:8080 callback url, or something like user copying the token back to the CLI tool.
I've been trying to see if oauth2l can provide interactive input (#61 claims it can). But when I try this, it doesn't work:
I'm curious if there's a code sample in this repo about that.
The text was updated successfully, but these errors were encountered: