Skip to content

Allow to not cache the application default credentials #2541

Description

@martinbonnin

When using GoogleCredential.getApplicationDefault, the credentials are cached in DefaultCredentialProvider (code).

This is an issue for long lived programs where the application defaults may change. One example is the Gradle wrapper (see gradle/gradle#31652 (comment)).

It would be nice if GoogleCredential could be instanciated so that we could manage its lifecycle.

Activity

  1. added theissue type on Mar 11, 2025
  2. added
    priority: p3
    on Mar 11, 2025
  3. added
    type: feature request
    on Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p3type: feature request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions