oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/reactive/function/client/ServletOAuth2AuthorizedClientExchangeFilterFunction.java
public static Consumer<Map<String, Object>> oauth2AuthorizedClient(OAuth2AuthorizedClient authorizedClient) {
		return attributes -> {
			if (authorizedClient == null) {
				attributes.remove(OAUTH2_AUTHORIZED_CLIENT_ATTR_NAME);
			} else {
				attributes.put(OAUTH2_AUTHORIZED_CLIENT_ATTR_NAME, authorizedClient);
			}
		};
	}
public static Consumer<Map<String, Object>> oauth2AuthorizedClient(OAuth2AuthorizedClient authorizedClient) {
		return attributes -> {
			if (authorizedClient == null) {
				attributes.remove(OAUTH2_AUTHORIZED_CLIENT_ATTR_NAME);
			} else {
				attributes.put(OAUTH2_AUTHORIZED_CLIENT_ATTR_NAME, authorizedClient);
			}
		};
	}
public static Consumer < Map < String , Object > > oauth2AuthorizedClient ( OAuth2AuthorizedClient authorizedClient ) { return attributes -> { if ( authorizedClient == null ) { attributes . remove ( OAUTH2_AUTHORIZED_CLIENT_ATTR_NAME ) ; } else { attributes . put ( OAUTH2_AUTHORIZED_CLIENT_ATTR_NAME , authorizedClient ) ; } } ; }
Modifies the {@link ClientRequest#attributes()} to include the {@link OAuth2AuthorizedClient} to be used for
providing the Bearer Token.

@param authorizedClient the {@link OAuth2AuthorizedClient} to use.
@return the {@link Consumer} to populate the attributes
Modifies the { @link ClientRequest#attributes () } to include the { @link OAuth2AuthorizedClient } to be used for providing the Bearer Token .