Created
August 28, 2022 18:58
-
-
Save stefanozanella/126942fac47a1deb025a21e28d9a38de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
fun webClient(authorizedClientManager: OAuth2AuthorizedClientManager): WebClient = | |
WebClient | |
.builder() | |
.apply( | |
ServletOAuth2AuthorizedClientExchangeFilterFunction( | |
authorizedClientManager | |
).oauth2Configuration() | |
) | |
.build() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment