Skip to content

Allow to not cache the application default credentials #2541

@martinbonnin

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.

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions