You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Spring] Include anyRequest().authenticated() in DefaultAadResourceServerConfiguration.defaultAadResourceServerFilterChain #51191
In AadResourceServerConfiguration.DefaultAadResourceServerConfiguration, defaultAadResourceServerFilterChain(HttpSecurity http) currently configures aadResourceServer() without configuring a default authorizeHttpRequests rule:
By contrast, both DefaultAadWebSecurityConfiguration.defaultAadWebApplicationFilterChain in AadWebApplicationConfiguration.java and Spring Boot's default OAuth2ResourceServerJwtConfiguration.jwtSecurityFilterChain configure .authorizeHttpRequests(authorize -> authorize.anyRequest().authenticated()).
Expected behavior
DefaultAadResourceServerConfiguration.defaultAadResourceServerFilterChain should include .authorizeHttpRequests(authorize -> authorize.anyRequest().authenticated()) before calling http.build() so the default resource-server filter chain is consistent with DefaultAadWebSecurityConfiguration and Spring Boot's default OAuth2ResourceServerJwtConfiguration:
Summary: The default AAD resource server filter chain in Spring autoconfigure does not set authorizeHttpRequests(... anyRequest().authenticated()), unlike the AAD web app chain and Spring Boot's default JWT resource server chain.
Default resource server chain applies no authorization rule to requests
Root ask: Add .authorizeHttpRequests(authorize -> authorize.anyRequest().authenticated()) to the default chain.
🔎 Debugging / Reproduction Notes
Straightforward change; consider the behavior impact for existing users relying on the current default.
Suggested investigation steps:
Compare with DefaultAadWebSecurityConfiguration.defaultAadWebApplicationFilterChain.
Apply the change and update/add tests in the autoconfigure AAD resource server tests.
Add a CHANGELOG entry.
🏷️ Label Confidence
Category:Client — SDK code behavior.
Service:azure-spring — module under sdk/spring.
Confidence: High. Author is a team member (write permission), so no customer labels. Deprecation check could not be performed (CSV fetch unavailable); the package is actively developed.
Activity
github-actions commentedon Nov 10, 2026
Thank you for your feedback. Tagging and routing to the team member(s) best able to assist.
//cc: Moary Chen (@moarychan) Dingmeng Xue (@dingmeng-xue) Jeff (@domainname)
github-actions commentedon Nov 10, 2026
🎯 Agentic Issue Triage
Summary: The default AAD resource server filter chain in Spring autoconfigure does not set
authorizeHttpRequests(... anyRequest().authenticated()), unlike the AAD web app chain and Spring Boot's default JWT resource server chain.📋 Issue Details
Package:
com.azure.spring:spring-cloud-azure-autoconfigure7.4.0Affected API:
AadResourceServerConfiguration.DefaultAadResourceServerConfiguration#defaultAadResourceServerFilterChainScenarios:
Root ask: Add
.authorizeHttpRequests(authorize -> authorize.anyRequest().authenticated())to the default chain.🔎 Debugging / Reproduction Notes
Straightforward change; consider the behavior impact for existing users relying on the current default.
Suggested investigation steps:
DefaultAadWebSecurityConfiguration.defaultAadWebApplicationFilterChain.🏷️ Label Confidence
Client— SDK code behavior.azure-spring— module undersdk/spring.👥 Owner Routing
# ServiceLabel: %azure-spring(line 163)@moarychan@dingmeng-xue@domainname%Mgmtand other later entries did not match the Client/azure-spring labels.