Allow customizing the StsClient in StsAssumeRoleCredentialsProvider and others #1132
Closed
1 task done
Labels
feature-request
A feature should be added or improved.
Describe the feature
I would like to be able to turn on detailed logging in the StsClient that is used by StsAssumeRoleCredentialsProvider and possibly other similar classes such as StsWebIdentityCredentialsProvider.
Is your Feature Request related to a problem?
Debugging credentials issue is not as easy as it could be.
Proposed Solution
I need to be able to pass in the LogMode to be used when constructing the StsClient. Not sure if it makes sense to pass in an StsClientBuilder or something else to make it more generic. My immediate use case is just for logging.
Perhaps when you set a credentialProvider in another Client such as the S3Client it could automatically propagate the logging settings.
The change required is here:
aws-sdk-kotlin/aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/StsAssumeRoleCredentialsProvider.kt
Line 104 in ae1f19d
Describe alternative solutions or features you've considered
No response
Acknowledge
AWS Kotlin SDK version used
0.35.1-beta
Platform (JVM/JS/Native)
JVM
Operating System and version
Mac and Linux
The text was updated successfully, but these errors were encountered: