Skip to content

Commit d754626

Browse files
Do not read basic auth info if auth type is other (#340)
1 parent 16095e4 commit d754626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/config/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func CurrentContext() (endpoint Endpoint, user *User) {
101101
func GetCurrentContextInfo() (server string, username string, password string) {
102102
endpoint, user := CurrentContext()
103103
server = fmt.Sprintf("%s,%d", endpoint.Address, endpoint.Port)
104-
if user != nil {
104+
if user != nil && user.AuthenticationType == "basic" {
105105
username = user.BasicAuth.Username
106106
if user.AuthenticationType == "basic" {
107107
password = decryptCallback(

0 commit comments

Comments
 (0)