ReactiveOAuth2AccessTokenResponseClients should support setting a custom WebClient
See original GitHub issueWebClientReactiveAuthorizationCodeTokenResponseClient
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:
- Created 5 years ago
- Comments:17 (14 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
When there is another first time…I would love to try!