We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42fbd16 commit 2c32ddeCopy full SHA for 2c32dde
servlet/spring-boot/java/oauth2/restclient/src/main/java/example/RestClientConfiguration.java
@@ -48,7 +48,8 @@ public RestClient restClient(OAuth2AuthorizedClientManager authorizedClientManag
48
RestClient.Builder builder) {
49
50
OAuth2ClientHttpRequestInterceptor requestInterceptor = new OAuth2ClientHttpRequestInterceptor(
51
- authorizedClientManager, clientRegistrationIdResolver);
+ authorizedClientManager);
52
+ requestInterceptor.setClientRegistrationIdResolver(clientRegistrationIdResolver);
53
54
OAuth2AuthorizationFailureHandler authorizationFailureHandler = OAuth2ClientHttpRequestInterceptor
55
.authorizationFailureHandler(authorizedClientRepository);
0 commit comments