-
Type: Sub-task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
Use Case
As a... AWS user
I want... connect with key and secret and without token
According to spec:
Users MAY have obtained temporary credentials through an AssumeRole request. If so, then in addition to a username and password, users MAY also provide an AWS_SESSION_TOKEN as a mechanism_property.
The AWS_SESSION_TOKEN is optional, so we should not check for it when making temp credentials: https://github.com/mongodb/node-mongodb-native/blob/main/src/cmap/auth/mongodb_aws.ts
Acceptance Criteria
Implementation Requirements
- Remove check that creds.Token is present in makeTempCredentials()
Testing Requirements
- Verify that there is no new MongoMissingCredentialsError('Could not obtain temporary MONGODB-AWS credentials') exception in case of a missing token
- backported by
-
NODE-5945 [v5.x BACKPORT] Make AWS session token optional
- Closed