From 3953d7e0f520e283415d11aa21af0c21519893a4 Mon Sep 17 00:00:00 2001 From: Sid Shukla Date: Fri, 22 Mar 2024 15:27:22 +0100 Subject: [PATCH] Switch Nutanix Client to using Session Auth This will ensure we make fewer basic auth requests to Prism Central IAM Services. --- pkg/provider/client.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/provider/client.go b/pkg/provider/client.go index 39ede6393..c135f2722 100644 --- a/pkg/provider/client.go +++ b/pkg/provider/client.go @@ -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)