googleapis / googleapis/google-cloud-java
[google-auth-library-java] Investigate using ServiceAccountJwtAccessCredentials vs ServiceAccountCredentials
- 主要语言
- Java
- 星标
- 2.1k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 157
描述
Issue stemmed from b/354698601
ServiceAccountJwtAccessCredentials may be setting the incorrect audience (not the default audience that is passed in to the Credentials). It may be using the URI for the http request instead of the shortened URI.
For example, the audience from this sample: https://cloud.google.com/bigquery/docs/json-web-tokens#java_example is `https://bigquery.googleapis.com/bigquery/v2/...` instead of `https://bigquery.googleapis.com/`. Previous attempts to use the shortened URI resulted in downstream failures in Spring-Cloud-GCP and java samples(see comments in https://github.com/googleapis/google-auth-library-java/pull/572).
Our guidance is to use ServiceAccountCredentials with SSJWT whenever possible.
## Scope
1. Investigate the use cases of ServiceAccountJwtAccessCredentials
2. Try to migrate any samples + recommendations of ServiceAccountJwtAccessCredentials to ServiceAccountCredentials with SSJWT
3. Try to patch ServiceAccountJwtAccessCredentials to use the correct audience
**edits:**
by @zhumin8 Minor corrections and provided more context links.
贡献指南
调研方向
Start by comparing ServiceAccountJwtAccessCredentials with ServiceAccountCredentials and reviewing the BigQuery JSON Web Tokens Java sample. Read the linked google-auth-library-java pull request #572 for prior downstream failures. Done means the use cases and audience behavior are established, applicable samples and recommendations are addressed, and any needed credential change is validated.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- authentication
- Issue 类型
- 缺陷
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100