Closed pmauduit closed 2 years ago
It seems from my understanding that the DefaultReactiveOauth2UserService class also requires a webclient configured to use a proxy: https://github.com/spring-projects/spring-security/blob/main/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/userinfo/DefaultReactiveOAuth2UserService.java#L81
Request being prepared here: https://github.com/spring-projects/spring-security/blob/main/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/userinfo/DefaultReactiveOAuth2UserService.java#L172-L177
When trying to login onto a oauth2 provider, 2 different requests are made by the SP gateway:
token-uri
user-info-uri
Setting a breakpoint on ExchangeFunctions.java:117, we can see both ones getting out, but:
this.connector.httpClient.config.proxyProvider