Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4463

Disallow comma character in authMechanismProperties connection string value

    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      Commas in the RESOURCE_TOKEN authMechanismProperty are not allowed in a connection string. If there is a comma, it should be provided as an argument to MongoClient.

      2. Would you like the user to see examples of the syntax and/or executable code and its output?

      props = dict(TOKEN_RESOURCE="mongo://host1,host2")
      client = MongoClient(url, auth_mechanism="MONGODB-OIDC", auth_mechanism_properties=props)
      

      3. Which versions of the driver/connector does this apply to?
      4.7

      Show
      1. What would you like to communicate to the user about this feature? Commas in the RESOURCE_TOKEN authMechanismProperty are not allowed in a connection string. If there is a comma, it should be provided as an argument to MongoClient. 2. Would you like the user to see examples of the syntax and/or executable code and its output? props = dict(TOKEN_RESOURCE= "mongo: //host1,host2" ) client = MongoClient(url, auth_mechanism= "MONGODB-OIDC" , auth_mechanism_properties=props) 3. Which versions of the driver/connector does this apply to? 4.7

      This ticket was split from DRIVERS-2915, please see that ticket for a detailed description.

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: