We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16095e4 commit d754626Copy full SHA for d754626
internal/config/context.go
@@ -101,7 +101,7 @@ func CurrentContext() (endpoint Endpoint, user *User) {
101
func GetCurrentContextInfo() (server string, username string, password string) {
102
endpoint, user := CurrentContext()
103
server = fmt.Sprintf("%s,%d", endpoint.Address, endpoint.Port)
104
- if user != nil {
+ if user != nil && user.AuthenticationType == "basic" {
105
username = user.BasicAuth.Username
106
if user.AuthenticationType == "basic" {
107
password = decryptCallback(
0 commit comments