Skip to content

Commit 73f9aaf

Browse files
GODRIVER-3358 Do not override authSource from TXT record (#1830)
(cherry picked from commit a94713a)
1 parent 9d41460 commit 73f9aaf

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
@@ -292,10 +292,6 @@ func (u *ConnString) setDefaultAuthParams(dbName string) error {
292292
}
293293
fallthrough
294294
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-
}
299295
if u.AuthSource == "" {
300296
u.AuthSource = "$external"
301297
} else if u.AuthSource != "$external" {

0 commit comments

Comments
 (0)