### Context In current [AadClientRegistrationRepository#toClientRegistration ](https://github.com/Azure/azure-sdk-for-java/blob/spring-cloud-azure_4.4.0/sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/aad/AadClientRegistrationRepository.java#L165-L178) , `userInfoUri` is not set, which caused **OidcUserService#shouldRetrieveUserInfo** always returns false. ### Problem **OidcUserService#shouldRetrieveUserInfo** always returns false, it is unexpected behavior. ### Goal 1. Make **userInfoUri** configured and use it to get user information. 2. Confirm proxy setting will work when send http request to **userInfoUri**. **DefaultOAuth2UserService's RestTemplate**. Refs: https://github.com/Azure/azure-sdk-for-java/issues/31347#issuecomment-1282055670 ### Useful links https://learn.microsoft.com/en-us/azure/active-directory/develop/userinfo
Context
In current AadClientRegistrationRepository#toClientRegistration ,
userInfoUriis not set, which caused OidcUserService#shouldRetrieveUserInfo always returns false.Problem
OidcUserService#shouldRetrieveUserInfo always returns false, it is unexpected behavior.
Goal
Useful links
https://learn.microsoft.com/en-us/azure/active-directory/develop/userinfo