From 2c32dde3bf5a67ae076cbefaf9adfca337f7ca0a Mon Sep 17 00:00:00 2001 From: Steve Riesenberg <5248162+sjohnr@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:29:49 -0500 Subject: [PATCH] Fix compile error with latest snapshots --- .../src/main/java/example/RestClientConfiguration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servlet/spring-boot/java/oauth2/restclient/src/main/java/example/RestClientConfiguration.java b/servlet/spring-boot/java/oauth2/restclient/src/main/java/example/RestClientConfiguration.java index acc78709..5ab0e4d6 100644 --- a/servlet/spring-boot/java/oauth2/restclient/src/main/java/example/RestClientConfiguration.java +++ b/servlet/spring-boot/java/oauth2/restclient/src/main/java/example/RestClientConfiguration.java @@ -48,7 +48,8 @@ public RestClient restClient(OAuth2AuthorizedClientManager authorizedClientManag RestClient.Builder builder) { OAuth2ClientHttpRequestInterceptor requestInterceptor = new OAuth2ClientHttpRequestInterceptor( - authorizedClientManager, clientRegistrationIdResolver); + authorizedClientManager); + requestInterceptor.setClientRegistrationIdResolver(clientRegistrationIdResolver); OAuth2AuthorizationFailureHandler authorizationFailureHandler = OAuth2ClientHttpRequestInterceptor .authorizationFailureHandler(authorizedClientRepository);