Closed ahmetb closed 4 years ago
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.
Got it, thanks. My eyes were looking for -client-id , -client-secret options. This explains it.
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.