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 bd39092 commit c0afeeeCopy full SHA for c0afeee
x/mongo/driver/connstring/connstring.go
@@ -297,10 +297,6 @@ func (u *ConnString) setDefaultAuthParams(dbName string) error {
297
}
298
fallthrough
299
case "mongodb-aws", "mongodb-x509", "mongodb-oidc":
300
- // dns.LookupTXT will get "authSource=admin" from Atlas hosts.
301
- if u.AuthSource == "admin" {
302
- u.AuthSource = "$external"
303
- }
304
if u.AuthSource == "" {
305
u.AuthSource = "$external"
306
} else if u.AuthSource != "$external" {
0 commit comments