Skip to content

Commit

Permalink
feat(DRIVERS-2983): use custom aws configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Jan 13, 2025
1 parent ce35696 commit e4b7aa5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions source/auth/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,21 @@ those credentials will be used by default if AWS auth environment variables are
application. Alternatively, you can create an AWS profile specifically for your MongoDB credentials and set the
`AWS_PROFILE` environment variable to that profile name."
##### Custom Credential Providers
Drivers that choose you use the AWS SDK to fetch credentials MAY also alow users to provide a custom credential provider
as an option to the `MongoClient`. The interface for the option provided depends on the individual language SDK and
drivers MUST consult AWS SDK documentation to determine that format when implementing. The name of the option MUST be
`awsCredentialProvider` or similar according to the language's idomatic naming conventions.

Drivers that implement this MAY choose to implement the following scenarios when applicable in their labguage's SDK:
1. The default SDK credential provider.
2. A custom credential provider chain.
3. A single credential provider of any available SDK options provided by the SDK.
##### Credential Fetching Order
The order in which Drivers MUST search for credentials is:
1. The URI
Expand Down

0 comments on commit e4b7aa5

Please sign in to comment.