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 22, 2024
1 parent 69a30d2 commit 3953d7e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/provider/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ func (n *nutanixClient) Get() (interfaces.Prism, error) {
return nil, err
}
creds := &prismgoclient.Credentials{
URL: me.Address.Host, // Not really an URL
Endpoint: me.Address.Host,
Insecure: me.Insecure,
Username: me.ApiCredentials.Username,
Password: me.ApiCredentials.Password,
URL: me.Address.Host, // Not really an URL
Endpoint: me.Address.Host,
Insecure: me.Insecure,
Username: me.ApiCredentials.Username,
Password: me.ApiCredentials.Password,
SessionAuth: true,
}

clientOpts := make([]prismClientV3.ClientOption, 0)
Expand Down

0 comments on commit 3953d7e

Please sign in to comment.