Skip to content

Commit

Permalink
pass http protocol with credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
jskazinski authored and David-T-White committed Sep 21, 2023
1 parent c4e570b commit 037986c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ func (controller *Controller) configureClient(credentials map[string]string) err
return nil
}

klog.InfoS("login to API", "address", apiAddr, "username", username)
controller.client.StoreCredentials(apiAddr, username, password)
protocol := "http"
klog.InfoS("login to API", "address", apiAddr, "protocol", protocol, "username", username)
controller.client.StoreCredentials(apiAddr, protocol, username, password)
err := controller.client.Login()
if err != nil {
return status.Error(codes.Unauthenticated, err.Error())
Expand Down

0 comments on commit 037986c

Please sign in to comment.