Skip to content

Commit

Permalink
Fix OAuth2 docs: Corrected OAuth2ClientHttpRequestInterceptor usage. C…
Browse files Browse the repository at this point in the history
…loses gh-16165.
  • Loading branch information
harpreets789 committed Nov 26, 2024
1 parent c16b2c2 commit a7127d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/modules/ROOT/pages/servlet/oauth2/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,9 @@ public class RestClientConfig {
@Bean
public RestClient restClient(OAuth2AuthorizedClientManager authorizedClientManager) {
OAuth2ClientHttpRequestInterceptor requestInterceptor =
new OAuth2ClientHttpRequestInterceptor(authorizedClientManager, clientRegistrationIdResolver());
new OAuth2ClientHttpRequestInterceptor(authorizedClientManager);
requestInterceptor.setClientRegistrationIdResolver(clientRegistrationIdResolver());
return RestClient.builder()
.requestInterceptor(requestInterceptor)
.build();
Expand Down

0 comments on commit a7127d1

Please sign in to comment.