-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.6.2
-
Component/s: None
`authMechanismProperties` is currently not considered a valid connection option and as such, attempting to pass it in results in a warning:
the options [authMechanismProperties] is not supported
However, setting it to an object of shape `{awsSessionToken: <session token>}` in conjunction with setting `auth.user` and `auth.pass` does work to authenticate the user with MONGODB-AWS.
Suggest adding this property to the list of valid connection options, and updating the MongoDB node driver docs accordingly, so that the Node driver can officially support setting an AWS session token without having to modify the connection string.