Skip to content

Commit 00dbb01

Browse files
committed
feat(DRIVERS-2983): use custom aws configuration
1 parent ce35696 commit 00dbb01

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

source/auth/auth.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,21 @@ those credentials will be used by default if AWS auth environment variables are
987987
application. Alternatively, you can create an AWS profile specifically for your MongoDB credentials and set the
988988
`AWS_PROFILE` environment variable to that profile name."
989989
990+
##### Custom Credential Providers
991+
992+
Drivers that choose you use the AWS SDK to fetch credentials MAY also allow users to provide a custom credential provider
993+
as an option to the `MongoClient`. The interface for the option provided depends on the individual language SDK and
994+
drivers MUST consult AWS SDK documentation to determine that format when implementing. The name of the option MUST be
995+
`awsCredentialProvider` or similar according to the language's idomatic naming conventions.
996+
997+
Drivers that implement this MAY choose to implement the following scenarios when applicable in their labguage's SDK:
998+
999+
1. The default SDK credential provider.
1000+
2. A custom credential provider chain.
1001+
3. A single credential provider of any available SDK options provided by the SDK.
1002+
1003+
##### Credential Fetching Order
1004+
9901005
The order in which Drivers MUST search for credentials is:
9911006
9921007
1. The URI

0 commit comments

Comments
 (0)