googleapis / googleapis/google-cloud-java
[google-auth-library-java] Add DefaultAwsSecurityCredentialsSupplier supporting AWS default credentials chain
- 主要语言
- Java
- 星标
- 2.1k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 157
描述
**Is your feature request related to a problem? Please describe.**
The current [InternalAwsSecurityCredentialsSupplier](https://github.com/googleapis/google-auth-library-java/blob/v1.23.0/oauth2_http/java/com/google/auth/oauth2/InternalAwsSecurityCredentialsSupplier.java#L52-L55) does not support all AWS authentication methods and depends on an AWSCredentialSource. In many cases, it would be useful to have a built-in implementation that leverages the AWS Default Credentials provider chain.
**Describe the solution you'd like**
A full implementation, similar to the one shown in [this sample](https://github.com/googleapis/google-auth-library-java/blob/73e9e448dfc48de783ee0740c288853de51ac964/samples/snippets/src/main/java/CustomCredentialSupplierAwsWorkload.java#L110), could be added as a separate class (e.g., DefaultAwsSecurityCredentialsSupplier) that uses the default AWS credential resolution logic.
贡献指南
调研方向
从 oauth2_http/java/com/google/auth/oauth2/InternalAwsSecurityCredentialsSupplier.java 开始,并将其与 samples/snippets/src/main/java/CustomCredentialSupplierAwsWorkload.java 进行比较。跟踪示例如何解析 AWS 凭证,并围绕该行为定义独立的 DefaultAwsSecurityCredentialsSupplier。新的 supplier 支持 AWS 的默认凭证提供程序链即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- aws, java
- 领域
- authentication, cloud
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100