title: Webflux - Spring Boot - oAuth2 client with http proxy support
body: <p>I'm struggeling to correctly setup the webflux-weblient with oauth2 behind a proxy. </p>
  
  <p>It seems, that the ServerOAuth2AuthorizedClientExchangeFilterFunction uses a new instance of a webclient , which doesn't contain my proxy-configuration.</p>
  
  <p><strong>OAuth2-Config</strong></p>
  
  
  
  <pre><code>    ServerOAuth2AuthorizedClientExchangeFilterFunction oauth2ClientFilter = new ServerOAuth2AuthorizedClientExchangeFilterFunction(
        clientRegistrations,
        new UnAuthenticatedServerOAuth2AuthorizedClientRepository());
     oauth2ClientFilter.setDefaultClientRegistrationId("azure");
  </code></pre>
  
  <p>OAuth2AuthorizedClientResolver.class contains: </p>
  
  <pre><code>private ReactiveOAuth2AccessTokenResponseClient&lt;OAuth2ClientCredentialsGrantRequest&gt; clientCredentialsTokenResponseClient = new WebClientReactiveClientCredentialsTokenResponseClient();
  </code></pre>
  
  <p>The <code>WebClientReactiveClientCredentialsTokenResponseClient.java</code> creates a new webclient as follows:</p>
  
  <p><code>private WebClient webClient = WebClient.builder().build();</code></p>
  
  <p>Does anybody have a sample how to correctly setup a http-proxy for the oauth2 client? </p>