googleapis / googleapis/google-api-java-client

Allow to not cache the application default credentials

未关闭
#2,541 0 条评论 0 个 reaction 已指派 1 人 已被 @diegomarquezp 认领 在 GitHub 查看
priority: p3 type: feature request
主要语言
Java
星标
1.5k
派生
772
平均合并
1 小时 44 分钟
30 天内合并 PR
1

描述

When using `GoogleCredential.getApplicationDefault`, the credentials are cached in `DefaultCredentialProvider` ([code](https://github.com/googleapis/google-api-java-client/blob/8b46efb4532097fecff2591398dcf6667718e432/google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/DefaultCredentialProvider.java#L95)).

This is an issue for long lived programs where the application defaults may change. One example is the Gradle wrapper (see https://github.com/gradle/gradle/issues/31652#issuecomment-2535320948).

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。