Skip to content

ReactiveOAuth2AccessTokenResponseClients should support setting a custom WebClient #6182

Closed
@jzheaux

Description

@jzheaux

WebClientReactiveAuthorizationCodeTokenResponseClient would be more convenient to use if their respective webClient properties could be set.

Let's add a setter, like:

/**
  Use the given {@link WebClient}.
  @param webClient The {@link WebClient} to use
  @since 5.2
*/
public void setWebClient(WebClient webClient) {
    Assert.notNull(webClient, "webClient cannot be null");
    this.webClient = webClient;
}

As well as tests to confirm that the setter works.

Related to #6051

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)status: first-timers-onlyAn issue that can only be worked on by brand new contributorstype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions