You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a `MongoClient` configured with AWS auth and credentials in the URI. Example: `mongodb://<AccessKeyId>:<SecretAccessKey>@localhost:27017/?authMechanism=MONGODB-AWS`
43
+
44
+
Configure a custom credential provider to pass valid AWS credentials. The provider must track if it was called.
45
+
46
+
Expect authentication to succeed and the custom credential provider was *not* called.
47
+
48
+
#### Case 2: Custom Provider Takes Precedence Over Environment Variables
49
+
50
+
Run this test in an environment with AWS credentials configured as environment variables (e.g. `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_SESSION_TOKEN`)
51
+
52
+
Create a `MongoClient` configured to use AWS auth. Example: `mongodb://localhost:27017/?authMechanism=MONGODB-AWS`.
53
+
54
+
Configure a custom credential provider to pass valid AWS credentials. The provider must track if it was called.
55
+
56
+
Expect authentication to succeed and the custom credential provider was called.
57
+
36
58
## Regular credentials
37
59
38
60
Drivers MUST be able to authenticate by providing a valid access key id and secret access key pair as the username and
0 commit comments