Skip to content

Commit

Permalink
GODRIVER-3358 [release/1.17] Do not override authSource from TXT reco…
Browse files Browse the repository at this point in the history
…rd (#1840)
  • Loading branch information
blink1073 authored Sep 30, 2024
1 parent bd39092 commit c0afeee
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 @@ -297,10 +297,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 c0afeee

Please sign in to comment.