-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] OAuth2 config-> JwtDecoder / NimbusJwtDecoder still uses RestTemplate() instead RestTemplateBuilder #31233
Labels
azure-spring
All azure-spring related issues
azure-spring-aad
Spring active directory related issues.
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Milestone
Comments
ghost
added
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
labels
Sep 30, 2022
damir78
changed the title
[BUG] 4.4.0, 4.5.0-beta.2 OAuth2 config-> JwtDecoder / NimbusJwtDecoder still uses RestTemplate() instead RestTemplaeBuilder
[BUG] 4.4.0, 4.5.0-beta.2 OAuth2 config-> JwtDecoder / NimbusJwtDecoder still uses RestTemplate() instead RestTemplateBuilder
Sep 30, 2022
joshfree
added
Client
This issue points to a problem in the data-plane of the library.
azure-spring
All azure-spring related issues
labels
Oct 3, 2022
ghost
removed
the
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
label
Oct 3, 2022
joshfree
added
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
and removed
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
labels
Oct 3, 2022
ghost
added
the
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
label
Oct 3, 2022
@chenrujun could you please follow up? |
Hi, @damir78 , thanks for reaching out. I'll investigate this issue ASAP. |
chenrujun
changed the title
[BUG] 4.4.0, 4.5.0-beta.2 OAuth2 config-> JwtDecoder / NimbusJwtDecoder still uses RestTemplate() instead RestTemplateBuilder
[BUG] OAuth2 config-> JwtDecoder / NimbusJwtDecoder still uses RestTemplate() instead RestTemplateBuilder
Oct 9, 2022
3 tasks
Closing in favor of #31347 |
Repository owner
moved this from In Progress
to Done
in Spring Cloud Azure
Oct 9, 2022
chenrujun
added
azure-spring-aad
Spring active directory related issues.
and removed
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
labels
Oct 14, 2022
Reopen this issue because current plan to fix this issue by a standalone PR. |
Repository owner
moved this from Done
to In Progress
in Spring Cloud Azure
Oct 17, 2022
chenrujun
pushed a commit
to chenrujun/azure-sdk-for-java
that referenced
this issue
Oct 17, 2022
…estTemplateBuilder
chenrujun
pushed a commit
that referenced
this issue
Oct 19, 2022
Repository owner
moved this from Pending Review
to Done
in Spring Cloud Azure
Oct 19, 2022
chenrujun
pushed a commit
to chenrujun/azure-sdk-for-java
that referenced
this issue
Oct 21, 2022
…estTemplateBuilder
chenrujun
pushed a commit
to chenrujun/azure-sdk-for-java
that referenced
this issue
Oct 24, 2022
…estTemplateBuilder
moarychan
pushed a commit
that referenced
this issue
Oct 25, 2022
…31684) * Fix #31190. Put a value into Collections.emptyMap() * Fix #31191. duplicated "scope" parameter. * Fix 31218 rest template is not well configured when jwk resolver is null * Fix #31482 rest template used to get access token should only contain 2 converters. * Fix #31233: NimbusJwtDecoder still uses RestTemplate() instead RestTemplateBuilder * Fix #31593: Proxy setting not work in Azure AD B2C web application
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
azure-spring
All azure-spring related issues
azure-spring-aad
Spring active directory related issues.
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Important: related issues: Connecting to Azure-AD via proxy #26493 #30456
Short story:
Add
JwtDecoderFactory
intoAadOAuth2ClientConfiguration
orAadWebSecurityConfigurerAdapter
with the jwtDecoder that uses RestTemplateBilder.Long story:
The created
AuthentifactionProvider (oauth2Login() )
byAadWebSecurityConfigurerAdapter#configure(HttpSecurity http)
uses the defaultJwtDecoder /NimbusJwtDecoder
created byOAuth2LoginConfigurer<HttpSecurity> oauth2Login()
.This configurer tries to find a bean of
JwtDecoderFactory
.If no
jwtDecoderFactory
found, then willOidcAuthorizationCodeAuthenticationProvider
creates a newJwtDecoderFactory
that uses defaultRestTemplate()
:After calling
NimbusJwtDecoder buildDecoder() with default RestTemplate()
:The text was updated successfully, but these errors were encountered: