googleapis / googleapis/google-cloud-java

[google-auth-library-java] ServiceAccountCredentials with SSJ flow will get error when invoking refreshAccessToken()

オープン
#12,591 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
priority: p4 type: bug
主要言語
Java
スター
2.1k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
154

説明

[refreshAccessToke()](https://github.com/googleapis/google-auth-library-java/blob/89201558db913d9a71b3acccbab8eb0045ada6de/oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java#L496) posts request to OAuth2 token server (see [code](https://github.com/googleapis/google-auth-library-java/blob/89201558db913d9a71b3acccbab8eb0045ada6de/oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java#L507)).
This code path is not exercised for TPC flow via getRequestMetadata(), but it is an public method and is possible to accidentally get triggered by customer's code.

One invocation within this library (that we are patching in googleapis/google-auth-library-java#1528 ) is [here](https://github.com/googleapis/google-auth-library-java/blob/89201558db913d9a71b3acccbab8eb0045ada6de/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java#L493)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。