Skip to content

Commit

Permalink
fix(core): If client isn't set when Authenticate() is called, creat…
Browse files Browse the repository at this point in the history
…ed an empty client.
  • Loading branch information
spbsoluble committed Oct 31, 2024
1 parent 1fb370e commit c915873
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions auth_providers/auth_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@ func (c *CommandAuthConfig) updateCACerts() error {
// Authenticate performs the authentication test to Keyfactor Command API and sets Command product version.
func (c *CommandAuthConfig) Authenticate() error {

if c.HttpClient == nil {
c.SetClient(nil)
}
//create headers for request
headers := map[string]string{
"Content-Type": "application/json",
Expand Down

0 comments on commit c915873

Please sign in to comment.