We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fa9e22 commit f7e18a6Copy full SHA for f7e18a6
x/mongo/driver/connstring/connstring.go
@@ -292,10 +292,6 @@ func (u *ConnString) setDefaultAuthParams(dbName string) error {
292
}
293
fallthrough
294
case "mongodb-aws", "mongodb-x509", "mongodb-oidc":
295
- // dns.LookupTXT will get "authSource=admin" from Atlas hosts.
296
- if u.AuthSource == "admin" {
297
- u.AuthSource = "$external"
298
- }
299
if u.AuthSource == "" {
300
u.AuthSource = "$external"
301
} else if u.AuthSource != "$external" {
0 commit comments