Skip to content
Snippets Groups Projects
Commit 3af97de9 authored by ysaito1001's avatar ysaito1001 Committed by Russell Cohen
Browse files

Ensure identity resolver is set when a credentials provider is given only at...

Ensure identity resolver is set when a credentials provider is given only at operation level (#3156)

Fixes https://github.com/awslabs/aws-sdk-rust/issues/901

This PR is a rework of https://github.com/awslabs/smithy-rs/pull/3021
whose fix was inadvertently discarded during
https://github.com/awslabs/smithy-rs/pull/3077. The way we fix the issue
is slightly different. In this PR, we add an identity resolver to
runtime components within `set_credentials_provider`, instead of using
`ServiceConfig.OperationConfigOverride`.

Added a Kotlin integration test to `CredentialProviderConfigTest.kt`
based on the customer reported issue.

<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [x] I have updated `CHANGELOG.next.toml` if I made changes to the AWS
SDK, generated SDK code, or SDK runtime crates

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent adb4b112
No related branches found
No related tags found
Loading
Showing
with 97 additions and 65 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment