Skip to content

Commit f7e18a6

Browse files
GODRIVER-3358 Do not override authSource from TXT record (#1830) [master] (#1832)
Co-authored-by: Steven Silvester <[email protected]>
1 parent 4fa9e22 commit f7e18a6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

x/mongo/driver/connstring/connstring.go

-4
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)