Results 3 comments of dex

We have the same situation for property security.oauth2.resource.userInfoUri. In this case wouldn't it be enough to inject the DiscoveryClient into org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices? If a DiscoveryClient is available we use it to...

Didn't saw that UserInfoTokenServices is from spring-boot-autoconfigure. Never develop in a text editor, sorry. So you mean you would enhance spring-cloud-security. Does that mean you would provide alternative configurations, exclude...

We solved it now with the UserInfoRestTemplateCustomizer. It workes great for us: ``` java @Override public void customize(OAuth2RestTemplate template) { template.setRequestFactory(ribbonClientHttpRequestFactory); } ```