Skip to content
Snippets Groups Projects
Commit ccac8214 authored by Lyuben Penkovski's avatar Lyuben Penkovski
Browse files

OAuth client MUST not be used when making requests to external hosts

parent 1377013d
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment