-
Type: Sub-task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
Use Case
As a... engineer
I want... to store the AWS provider per client
So that... it uses the native AWS ASK cashing feature and prevents overwhelming the auth endpoint
Acceptance Criteria
Implementation Requirements
- Refactor AUTH_PROVIDERS to have factory functions instead of creating providers
- Create Provider on MongoClient
- Store AWS SDK provider on the MongoDBAWS AuthProvider instance
- Providers must be stateless
Testing Requirements
- See the STS test that spies on the fromNodeProviderChain, assert that we only call it once even when making more than one connection