[JAVA-2375] Make username optional for MONGODB-X509 authentication mechanism Created: 02/Nov/16  Updated: 18/Apr/17  Resolved: 03/Nov/16

Status: Closed
Project: Java Driver
Component/s: Authentication
Affects Version/s: None
Fix Version/s: 3.4.0

Type: New Feature Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Ross Lawley
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-333 Drivers MUST NOT require a username f... Closed

 Description   

MongoDB 3.4 will automatically extract the username from the provided certificate, so there is no need to provide it anymore.

See the recent update to the authentication specification: https://github.com/mongodb/specifications/commit/964a8aa571040208bd5e5443241b3bb628fb535f



 Comments   
Comment by Githook User [ 22/Nov/16 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Updated equals and hashcode for MongoCredential

userName can now be null so need to null check first.

JAVA-2375
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/c8d013a2f61ed0a207e6d65f772646f1e5af2404

Comment by Githook User [ 03/Nov/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2375: Make userName optional for MONGODB-X509 authentication mechanism

As of MongoDB 3.4, the user name is optional, as the server will extract it from the distinguished subject name of the client certificate
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/13546807d2a3c50520b8d0dc8e1d1fee60c42f8f

Generated at Thu Feb 08 08:57:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.