[BUG] Make sure all RestTemplate are managed by AadRestTemplateCreator
See original GitHub issueContext
To support connect Azure AD via proxy, AadRestTemplateCreator
is used to create all RestTempalte
that used to send http request to Azure AD endpoint or Graph endpoint. But some RestTemplate
are not created by AadRestTemplateCreator
. For example: #31233
Goal
Find all RestTemplate
used to send http request to Azure AD endpoint or Graph endpoint, make sure they are all created by AadRestTemplateCreator
.
Solution
(Just potential solution. update is possible when this task started and find something new)
- Fix #31233 : 1 day
- ~Search all
new RestTemplate
in spring-security-oauth2 related package. Make sure all relatedRestTemplate
are all created byAadRestTemplateCreator
. 1 day~ Debug sample app (aad-web-application), add break point at RestTemplate’s constructor. Make sure all RestTemplate instance is (1) created by AadRestTemplateCreator or (2) will be replaced by AadRestTemplateCreator created instance. - Setup a proxy and test this feature. Fix potential problems. 2 day
Toal man-day = 1 + 1 + 2 = 4
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
[BUG] OAuth2 config-> JwtDecoder / NimbusJwtDecoder still ...
[BUG] OAuth2 config-> JwtDecoder / NimbusJwtDecoder still uses RestTemplate() instead ... [BUG] Make sure all RestTemplate are managed by ...
Read more >Spring RestTemplate - how to enable full debugging/logging ...
Now all RestTemplate HTTP traffic will be logged to ... Make sure spring doesn't ignore your logging config ... Install and run Fiddler....
Read more >Spring RestTemplate Error Handling - Baeldung
Learn how to handle errors with Spring's RestTemplate. ... if we could implement a reusable error handler for all of our remote calls....
Read more >Complete Guide to Spring RestTemplate - Reflectoring
The REST web service contains the methods to create, read, update, and delete product resources and supports the HTTP verbs GET, POST, PUT,...
Read more >Spring RestTemplate Example - DigitalOcean
Final step is to create the client classes that will use RestTemplate bean defined above. package com.journaldev.spring.config; import java.util ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Confirmed that after #31597, proxy setting will take effect for all http requests sent by RestTemplate.
Here is the list of http request urls:
Azure AD web application
Azure AD resource-server
Azure AD B2C web application
Azure AD B2C resource-server
Closing this issue.
Record of this step:
Here are some examples:
RestTemplate createc by AadRestTemplateCreator
RestTemplate not createc by AadRestTemplateCreator, but will be replaced by AadRestTemplateCreator created instance.
DefaultOAuth2UserService’s RestTemplate is not created by AadRestTemplateCreator. But it will not be executed. Need more investigation about this. Issue created: https://github.com/Azure/azure-sdk-for-java/issues/31546