Skip to content

Commit

Permalink
controller http: set correct oidc secret value
Browse files Browse the repository at this point in the history
and remove unused duplicate field
  • Loading branch information
joelrebel committed Aug 29, 2024
1 parent 2cfa2f8 commit 921d282
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controller_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ type HTTPController struct {
type OrchestratorAPIConfig struct {
AuthDisabled bool
Endpoint string
AuthToken string
OidcIssuerEndpoint string
OidcAudienceEndpoint string
OidcClientSecret string
Expand Down Expand Up @@ -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),
)
}

Expand Down

0 comments on commit 921d282

Please sign in to comment.