oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/reactive/function/client/ServerOAuth2AuthorizedClientExchangeFilterFunction.java
public static Consumer<Map<String, Object>> serverWebExchange(ServerWebExchange serverWebExchange) {
		return attributes -> attributes.put(SERVER_WEB_EXCHANGE_ATTR_NAME, serverWebExchange);
	}
public static Consumer<Map<String, Object>> serverWebExchange(ServerWebExchange serverWebExchange) {
		return attributes -> attributes.put(SERVER_WEB_EXCHANGE_ATTR_NAME, serverWebExchange);
	}
Modifies the {@link ClientRequest#attributes()} to include the {@link OAuth2AuthorizedClient} to be used for
providing the Bearer Token. Example usage:

<pre>
WebClient webClient = WebClient.builder()
.filter(new OAuth2AuthorizedClientExchangeFilterFunction(authorizedClientRepository))
.build();
Mono<String> response = webClient
.get()
.uri(uri)
.attributes(serverWebExchange(serverWebExchange))
// ...
.retrieve()
.bodyToMono(String.class);
</pre>
@param serverWebExchange the {@link ServerWebExchange} to use
@return the {@link Consumer} to populate the client request attributes