From 921d282d2c37aa734d602682aff4b9bf54961f18 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Thu, 29 Aug 2024 12:09:14 +0200 Subject: [PATCH] controller http: set correct oidc secret value and remove unused duplicate field --- controller_http.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controller_http.go b/controller_http.go index bdb026e..debf955 100644 --- a/controller_http.go +++ b/controller_http.go @@ -61,7 +61,6 @@ type HTTPController struct { type OrchestratorAPIConfig struct { AuthDisabled bool Endpoint string - AuthToken string OidcIssuerEndpoint string OidcAudienceEndpoint string OidcClientSecret string @@ -128,7 +127,7 @@ func newConditionsAPIClient(cfg *OrchestratorAPIConfig) (orc.Queryor, error) { return orc.NewClient( cfg.Endpoint, orc.WithHTTPClient(client), - orc.WithAuthToken(cfg.AuthToken), + orc.WithAuthToken(cfg.OidcClientSecret), ) }