Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2842

Document and validate `authMechanismProperties` in connect options

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.2
    • Component/s: None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      `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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            calvin@scale.com Calvin Huang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: