diff --git a/cmd/infohub/main.go b/cmd/infohub/main.go index 2166616c3b2700260929be4de9dc90937b491db2..d1e1b4e767c1c6b529395b2b29de4fcc6c717219 100644 --- a/cmd/infohub/main.go +++ b/cmd/infohub/main.go @@ -85,7 +85,7 @@ func main() { oauthCtx := context.WithValue(context.Background(), oauth2.HTTPClient, httpClient) oauthClient := newOAuth2Client(oauthCtx, cfg.OAuth.ClientID, cfg.OAuth.ClientSecret, cfg.OAuth.TokenURL) - credentials := credential.New(cfg.Credential.IssuerURI, oauthClient) + credentials := credential.New(cfg.Credential.IssuerURI, httpClient) // create policy client policy := policy.New(cfg.Policy.Addr, policy.WithHTTPClient(oauthClient))