googleapis / googleapis/google-api-java-client

Allow to not cache the application default credentials

オープン
#2,541 コメント 0 件 リアクション 0 件 担当者 1 名 @diegomarquezp が担当を希望しています GitHub で見る
priority: p3 type: feature request
主要言語
Java
スター
1.5k
フォーク
772
平均マージ
1時間 44分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。