Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2403

Don't require a username in the connection string for MONGODB-X509

      As of MongoDB 3.4 the username is optional for the X.509 authentication mechanism, and the Java driver supports that as of version 3.4.0 when using the MongoCredential API. But when using a connection string like:

      mongodb://host/?authMechanism=MONGODB-X509&ssl=true
      

      the driver silently ignores the authMechanism.

      The driver should instead respect the auth mechanism, treating it as equivalent to:

      MongoCredential.createMongoX509Credential()
      

      For all other authMechanism, an IllegalArgumentException should be thrown if no username is specified.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: