GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Auth issue when using revoked Cloud SDK creds with local test helpers. · Issue #710 · googleapis/google-cloud-java

Auth issue when using revoked Cloud SDK creds with local test helpers. #710

New issue
Copy link
New issue
Copy link
Closed
Closed
Auth issue when using revoked Cloud SDK creds with local test helpers.#710
Copy link
Assignees
ajkannan
Labels
authtype: questionRequest for information or clarification. Not an issue.

Description

@ajkannan
ajkannan
opened on Mar 4, 2016
Issue body actions

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.

Should we:

  1. Document that you should use gcloud auth login when using local test helpers?
    or
  2. Figure out how to parse the credentials to figure out that they're valid or revoked?
    I 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.

Activity

Next
  1. ajkannan
    added
    type: questionRequest for information or clarification. Not an issue.
    auth
    on Mar 4, 2016
  2. ajkannan commented on Mar 4, 2016

    @ajkannan
    ajkannan
    on Mar 4, 2016
    Author
    More actions

    A third option would be to create another subclass of AuthCredentials that represents "no auth". When users set this option, they explicitly say they don't want to use auth. By contrast, leaving the auth unset (null) in the ServiceOptions builder will use application default credentials. In the options methods for the local service helpers, we can specify "no auth" so users won't see auth errors in this scenario. If users really want to use auth with local service helpers, they can use toBuilder() and set auth as needed.

  3. aozarov commented on Mar 4, 2016

    @aozarov
    aozarov
    on Mar 4, 2016
    Contributor
    More actions

    +1 for the (3) option (Adding AuthCredentials.noAuth and using it in the Test helpers' returned options).

  4. ajkannan
    closed this as completedin #719on Mar 7, 2016
  5. JustinBeckwith
    assigned
    ajkannan
    on Feb 1, 2021
  6. github-actions
    added 3 commits that reference this issue on Jun 29, 2022

    build(deps): update dependency org.apache.maven.plugins:maven-project…

    1977084

    chore: update dependencies for regapic (googleapis#1467) (googleapis#710

    83a2644

    chore(main): release 2.4.0 (googleapis#710)

    802650e
  7. github-actions
    added 3 commits that reference this issue on Jul 14, 2022

    chore: add native image checks as required (#710)

    8608008

    chore(deps): update dependency com.google.cloud:libraries-bom to v26 (#…

    70f1754

    build(deps): update dependency org.apache.maven.plugins:maven-deploy-…

    ea07791
  8. github-actions
    added a commit that references this issue on Jul 28, 2022

    build(deps): update dependency com.google.cloud:google-cloud-shared-c…

    fd2e8c5
  9. github-actions
    added 2 commits that reference this issue on Aug 9, 2022

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    0dcf715

    chore(main): release 2.2.2 (#712)

    df1eef6
  10. 1 remaining item

  11. github-actions
    added 3 commits that reference this issue on Sep 15, 2022

    chore(main): release 2.4.4-SNAPSHOT (#710)

    40da1df

    chore: Generated snippets should not be owned by samples reviewers (#…

    0303378

    chore(main): release 2.3.3 (#710)

    b5816d6
  12. github-actions
    added 4 commits that reference this issue on Sep 30, 2022

    deps: update dependency importlib-metadata to v4.12.0 (#710)

    4041426

    chore(main): release 0.123.16 (#712)

    ed79ff9

    chore(main): release 2.3.4 (#718)

    4c0d90a

    chore(main): release 2.6.5 (#712)

    ce2b1bf
  13. suztomo
    added 2 commits that reference this issue on Feb 1, 2023

    deps: update dependency com.google.api:api-common to v2.2.1 (#710)

    d25da50

    chore(main): release 2.0.0 (#739)

    ea9f421
  14. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore: fix license header in build.bat (#1363) (#710)

    4dd2e88
  15. chingor13
    added 2 commits that reference this issue on Jan 22, 2026

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    ed8de9c

    chore(main): release 2.4.0 (#707)

    0e2a803
  16. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore: release 2.5.8 (googleapis#710)

    a854ec2
  17. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    chore: release 1.113.4-SNAPSHOT (#710)

    dec5e56

    chore: release 1.113.4-SNAPSHOT (#710)

    25f0a42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ajkannan
    ajkannan

Labels

authtype: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.