Skip to content

Commit

Permalink
GODRIVER-3358 Do not override authSource from TXT record (#1830) [mas…
Browse files Browse the repository at this point in the history
…ter] (#1832)

Co-authored-by: Steven Silvester <[email protected]>
  • Loading branch information
mongodb-drivers-pr-bot[bot] and blink1073 authored Sep 30, 2024
1 parent 4fa9e22 commit f7e18a6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x/mongo/driver/connstring/connstring.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,6 @@ func (u *ConnString) setDefaultAuthParams(dbName string) error {
}
fallthrough
case "mongodb-aws", "mongodb-x509", "mongodb-oidc":
// dns.LookupTXT will get "authSource=admin" from Atlas hosts.
if u.AuthSource == "admin" {
u.AuthSource = "$external"
}
if u.AuthSource == "" {
u.AuthSource = "$external"
} else if u.AuthSource != "$external" {
Expand Down

0 comments on commit f7e18a6

Please sign in to comment.