googleapis / googleapis/google-cloud-java

[google-auth-library-java] Allow AwsCredentials/ExternalAccountCredentials to take in customized environmentProvider

Open
#12,603 0 comments 2 reactions 0 assignees View on GitHub
type: feature request
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
157

Description

**Is your feature request related to a problem? Please describe.**
I'm always frustrated when I want to use my own temporary (AWS) credentials to fetch jwt. The only way to pass in my own `environmentProvider` is through the System env right now. But I want to rotate the info inside `environmentProvider` over the time, setting System env is not a great choice.
`EnvironmentProvider` interface provided by the lib is package level so I could not implement my own and pass in.

**Describe the solution you'd like**
Expose `EnvironmentProvider` and allow me to pass in my own implementation of it to AwsCredentials/ExternalAccountCredentials.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.