question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReactiveOAuth2AccessTokenResponseClients should support setting a custom WebClient

See original GitHub issue

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 https://github.com/spring-projects/spring-security/issues/6051

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
richardvaldiviesomaciascommented, Dec 3, 2018

@richardvaldiviesomacias, I think this is the link you’re looking for! Hope that helps. Thanks @shraiysh

1reaction
richardvaldiviesomaciascommented, Dec 1, 2018

When there is another first time…I would love to try!

Read more comments on GitHub >

github_iconTop Results From Across the Web

OAuth2AccessTokenResponseC...
If I try to write a custom filter that uses WebClient to request the token, will I encounter major roadblocks or hard-to-detect bugs?...
Read more >
Customizing Authorization and Token Requests with Spring ...
Now, we'll see how to customize the OAuth2 token request. We can customize the token request by customizing OAuth2AccessTokenResponseClient. The ...
Read more >
11. OAuth2 - Spring
Support for the ability to transparently include the current OAuth token or explicitly select which token should be used. 11.2.1 WebClient OAuth2 Setup....
Read more >
Spring Security Reference - 21. WebClient | Docs4dev
Spring Framework has built in support for setting a Bearer token. ... of setting up WebClient in a fully reactive environment can be...
Read more >
Spring WebClient for Easy Access to OAuth 2.0 Protected ...
Spring ẀebClient was added as part of the reactive web stack WebFlux in ... to application.yml , the following properties must be set:....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found