Closed SurferJeffAtGoogle closed 7 years ago
Does gcloud auth list
also include gcloud auth application-default
? What happens if you run gcloud auth application-default print-access-token
? It seems more likely that auth details are coming from somewhere we're not expecting than that they're genuinely working with no auth information anywhere.
Rather than running the tests, it may be worth having a minimal app that just calls GoogleCredential.GetApplicationDefaultAsync().Result
and looks at that return value.
PS C:\Users\Jeffrey Rennie\gitrepos\dotnet-docs-samples\datastore\api> gcloud auth application-default print-access-token
ya29.REDACTED....
Ok. This is a usability issue in gcloud.
I cleared all my authentication information: the GOOGLE_APPLICATION_CREDENTIALS variable and gcloud. Yet these tests still pass, and they can't pass without credentials.