Skip to content

Commit a94713a

Browse files
authored
GODRIVER-3358 Do not override authSource from TXT record (#1830)
1 parent e1994e4 commit a94713a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

x/mongo/driver/connstring/connstring.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,6 @@ func (u *ConnString) setDefaultAuthParams(dbName string) error {
297297
}
298298
fallthrough
299299
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-
}
304300
if u.AuthSource == "" {
305301
u.AuthSource = "$external"
306302
} else if u.AuthSource != "$external" {

0 commit comments

Comments
 (0)