[CXX-438] ConnectionString should default to using the specified DB and use a default mechanism Created: 04/Dec/14  Updated: 19/Dec/14  Resolved: 09/Dec/14

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: legacy-1.0.0-rc2
Fix Version/s: legacy-1.0.0-rc3

Type: Improvement Priority: Major - P3
Reporter: Pieter Jordaan Assignee: Spencer Jackson
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

linux, gcc, c++11



 Description   

Connecting with ConnectionString works great when not authenticating.

Authentication needs implicit authMechanism authSource declarations.

I propose using the specified DB (if specified and authSource isn't) as the connection string already allows for this:
mongodb://user:pass@host:port/DB

Furthermore authMechanism has no default value and must be explicitly defined in the connection string.



 Comments   
Comment by Githook User [ 09/Dec/14 ]

Author:

{u'username': u'spencerjackson', u'name': u'Spencer Jackson', u'email': u'spencer.jackson@mongodb.com'}

Message: CXX-438 Provide implicit authMechanism and source
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/286319d3e98610fc6bd5c516b604f4b7a53a18e6

Comment by Spencer Jackson [ 05/Dec/14 ]

https://github.com/mongodb/mongo-cxx-driver/pull/212

Generated at Wed Feb 07 21:59:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.