Skip to content

Commit

Permalink
Switch Nutanix Client to using Session Auth
Browse files Browse the repository at this point in the history
This will ensure we make fewer basic auth requests to Prism Central
IAM Services.
  • Loading branch information
thunderboltsid committed Mar 26, 2024
1 parent b7bd47d commit e4bde64
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ func (n *NutanixClientHelper) BuildClientForNutanixClusterWithFallback(ctx conte
return nil, err
}
creds := prismgoclient.Credentials{
URL: me.Address.Host,
Endpoint: me.Address.Host,
Insecure: me.Insecure,
Username: me.ApiCredentials.Username,
Password: me.ApiCredentials.Password,
URL: me.Address.Host,
Endpoint: me.Address.Host,
Insecure: me.Insecure,
Username: me.ApiCredentials.Username,
Password: me.ApiCredentials.Password,
SessionAuth: true,
}
return Build(creds, me.AdditionalTrustBundle)
}
Expand Down

0 comments on commit e4bde64

Please sign in to comment.