Skip to content

Commit b356c44

Browse files
authored
fix: check for auth creds in options to trigger new auth lib usage (#3162)
If a user explicitly sends in a new auth credential we should use it in the context of our new auth stack as the older transports don't respect the AuthCredential dial setting. Internal Bug: 419103794
1 parent e68e11e commit b356c44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/settings.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ func (ds *DialSettings) IsNewAuthLibraryEnabled() bool {
110110
if ds.EnableNewAuthLibrary {
111111
return true
112112
}
113+
if ds.AuthCredentials != nil {
114+
return true
115+
}
113116
if b, err := strconv.ParseBool(os.Getenv(newAuthLibEnvVar)); err == nil {
114117
return b
115118
}

0 commit comments

Comments
 (0)