aws-sdk-java-v2
aws-sdk-java-v2 copied to clipboard
Async support for WebIdentityTokenCredentialsProvider
Describe the feature
Add support for WebIdentityTokenCredentialsProvider to use an async client
Use Case
Same use case than in this previous issue : https://github.com/aws/aws-sdk-java-v2/issues/1881
If I understand correctly, the new STSWebIdentityTokenCredentialsProvider didn't add the ability to use an async client. So we still need to add a sync http client on the classpath to use the WebIdentityTokenCredentialsProvider.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
AWS Java SDK version used
2.21.16
JDK version used
openjdk version "17.0.1" 2021-10-19
Operating System and version
macOS Monterey
@tms0 the STS client is only used to make the assumeRoleWithWebIdentity call. Is there any particular reason you need to use the async client? Do you explicitly remove the sync clients from the classpath?
Hi @debora-ito,
I use the Quarkus extension (https://github.com/quarkiverse/quarkus-amazon-services/tree/main) which explicitly exclude all the http clients to let us include only those needed.
But currently, I have to include both an async client (because I want to do non-blocking programming) and a sync client to use the WebIdentityTokenCredentialsProvider.
As a good practice, and particulary in a Quarkus / GraalVM world, I want to include as few dependencies as possible.
Thank you for the additional details. Acknowledged as a feature request.
Community note: please vote by adding a 👍 reaction to the original issue to help us with prioritization.