[GODRIVER-486] Connection String AuthSource should default to using connection string database name before defaulting to admin Created: 09/Jul/18 Updated: 12/Jul/18 Resolved: 12/Jul/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | Options & Configuration |
| Affects Version/s: | 0.0.8, 0.0.7 |
| Fix Version/s: | 0.0.9 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kristofer Brandow (Inactive) | Assignee: | Kristofer Brandow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
If an authMechanism is not specified on the connection string, the authSource should always default to the database name specified in the connection string before defaulting to the admin database. Add code to ensure that the authSource is set to the database name and only default to admin when the database name is empty. |
| Comments |
| Comment by Githook User [ 12/Jul/18 ] |
|
Author: {'username': 'skriptble', 'name': 'Kris Brandow', 'email': 'kris@mongodb.com'}Message: Ensure authsource defaults to dbname before admin Change-Id: Ie79cf08351b9f2bbbf1a4a47f548827ffee89cbf |
| Comment by Kristofer Brandow (Inactive) [ 09/Jul/18 ] |
|
Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/418719. |