-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds async methods for assuming roles #3627
base: main-staging
Are you sure you want to change the base?
Adds async methods for assuming roles #3627
Conversation
This is an attempt to fix aws#3626.
Thanks @mscottford for the PR. We consider additions to the So our options are either put the async methods in a new |
Ah, that makes sense. I'll take a stab at adding a new interface. Is that something that you'd like to see in a separate PR or as commits to this one? |
And do you have any guidance for the best way to go about adding tests for the logic that determines when to use the async path? I didn't find any tests for the |
As long as you targeting V3 then adding the As for tests do mean how to fallback to previous sync interface if the async interface is not around? If so unfortunately our tests are only setup for testing the tip of the codebase which of course would always have the async version. We have checks in our build system that look out for when we attempt breaking changes like this. In your case we would need to do the mix version tests manually and then add the exception in our validation checker. |
* Moves the definition of `CredentialsFromAssumeRoleAuthenticationAsync` into the new interface. * Only attempts to call `CredentialsFromAssumeRoleAuthenticationAsync` if the STS client instance implements `ICoreAmazonSTSAsync`.
@normj New interface has been added and it is only called if the I also added a log message to indicate that the All unit and protocol tests are passing, but I'm unsure how to do any more thorough testing with my limited understanding of the project. |
Adds async pathways for assuming a role.
Description
Adds async version of
AssumeRoleAWSCredentials.GenerateNewCredentials
and subsequent method call chain.Motivation and Context
There was no async pathway for assuming a role. This is causing issues on platforms that do not support calling
HttpClient.Send
such as Android and iOS.This should fix #3626.
Testing
All tests in
UnitTests.NetStandard
andAWSSDK.ProtocolTests.NetStandard
pass.Types of changes
Checklist
new andexisting tests passedLicense