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

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

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions