aws-sdk-java-v2 icon indicating copy to clipboard operation
aws-sdk-java-v2 copied to clipboard

Async support for WebIdentityTokenCredentialsProvider

Open tms0 opened this issue 1 year ago • 3 comments

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 avatar Nov 07 '23 12:11 tms0

@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?

debora-ito avatar Nov 07 '23 19:11 debora-ito

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.

tms0 avatar Nov 07 '23 20:11 tms0

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.

debora-ito avatar Nov 11 '23 00:11 debora-ito