[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: |
|
||||||||
| 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.
|
| 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: 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 |