Title: Auth issue when using revoked Cloud SDK creds with local test helpers. · Issue #710 · googleapis/google-cloud-java · GitHub
Open Graph Title: Auth issue when using revoked Cloud SDK creds with local test helpers. · Issue #710 · googleapis/google-cloud-java
X Title: Auth issue when using revoked Cloud SDK creds with local test helpers. · Issue #710 · googleapis/google-cloud-java
Description: When running code that uses local service emulators, users that have Google Cloud SDK installed but have out-of-date or revoked credentials (and don't specify other credentials in any other way) will see error messages when making API ca...
Open Graph Description: When running code that uses local service emulators, users that have Google Cloud SDK installed but have out-of-date or revoked credentials (and don't specify other credentials in any other way) wi...
X Description: When running code that uses local service emulators, users that have Google Cloud SDK installed but have out-of-date or revoked credentials (and don't specify other credentials in any other way...
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/710
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Auth issue when using revoked Cloud SDK creds with local test helpers.","articleBody":"When running code that uses local service emulators, users that have Google Cloud SDK installed but have out-of-date or revoked credentials (and don't specify other credentials in any other way) will see error messages when making API calls that send requests to the local emulator. This is because we detect the Google Cloud SDK json credentials file exists, and use those to set credentials in `ServiceOptions`. As a result, requests attempt to use these credentials (even though they aren't necessary) and fail. \n\nShould we:\n1) Document that you should use `gcloud auth login` when using local test helpers?\nor \n2) Figure out how to parse the credentials to figure out that they're valid or revoked?\nI notice that under \".config/gcloud/legacy_credentials\", the folder corresponding to my gcloud email account is removed when I revoke credentials. However, I'm unsure that that's a valid way to check for revoked credentials. The other files related to credentials in that directory don't seem to indicate whether they are valid or revoked.\n","author":{"url":"https://github.com/ajkannan","@type":"Person","name":"ajkannan"},"datePublished":"2016-03-04T02:46:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/710/google-cloud-java/issues/710"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2c4e7184-705f-afb4-1fa0-fab0eddb7317 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0BE:37AFAD:A52EF0:DE9B1A:6A4D7471 |
| html-safe-nonce | 816bfc51bf996a340e30873be85a5bcc00dc30a54cf27a4e3e60822ceb20872c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEJFOjM3QUZBRDpBNTJFRjA6REU5QjFBOjZBNEQ3NDcxIiwidmlzaXRvcl9pZCI6IjYxODM2MzE0MzYyMjc5MDA1MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dbfc694e540c6f753c20008a92576aaaf8d63dced7ef4e6d9a6c8d5ee4dd3894 |
| hovercard-subject-tag | issue:138359989 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-java/710/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6ab9a2c31e321f62698fef6f52b6c46f7cf0d27ad19e6f517bec9f6e1eb3fab3/googleapis/google-cloud-java/issues/710 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6ab9a2c31e321f62698fef6f52b6c46f7cf0d27ad19e6f517bec9f6e1eb3fab3/googleapis/google-cloud-java/issues/710 |
| og:image:alt | When running code that uses local service emulators, users that have Google Cloud SDK installed but have out-of-date or revoked credentials (and don't specify other credentials in any other way) wi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ajkannan |
| hostname | github.com |
| expected-hostname | github.com |
| None | c78260c7b3f4ac4b0356c8208537f05406a3a2d46a9ec3f735b372dcc519c39e |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-java git https://github.com/googleapis/google-cloud-java.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 26181278 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26181278 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 399fff412f48461d435721c009efc17ea44be72f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width