googleapis / sdk-platform-java

Tooling and shared libraries for Cloud SDK for Java
https://cloud.google.com/java/docs/bom
Apache License 2.0
64 stars 52 forks source link

feat(gax): add API key authentication to ClientSettings #3137

Open ldetmer opened 1 month ago

ldetmer commented 1 month ago

Allow gax client libraries to authenticate using API key via setApiKey method exposed from ClientSettings. Also added deduping to GRPC calls for api key headers.

Tested using LanguageServiceSettings

cc @westarle

conventional-commit-lint-gcf[bot] commented 1 month ago

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot https://conventionalcommits.org/

sonarcloud[bot] commented 5 hours ago

Quality Gate Passed Quality Gate passed for 'gapic-generator-java-root'

Issues
57 New issues
0 Accepted issues

Measures
0 Security Hotspots
94.7% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarcloud[bot] commented 4 hours ago

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
62 New issues
0 Accepted issues

Measures
0 Security Hotspots
84.2% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud