Context
Currently, SCA provides the configuration AadAuthenticationFilterAutoConfiguration to support resource server scenarios, but there's a condition @ConditionalOnMissingClass({ "org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationToken" }) to block using the resource server dependencies, SCA should improve this limitation.
Goal
Make the configuration AadAuthenticationFilterAutoConfiguration enabled when the resource server dependencies exist.
Context
Currently, SCA provides the configuration
AadAuthenticationFilterAutoConfigurationto support resource server scenarios, but there's a condition@ConditionalOnMissingClass({ "org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationToken" })to block using the resource server dependencies, SCA should improve this limitation.Goal
Make the configuration
AadAuthenticationFilterAutoConfigurationenabled when the resource server dependencies exist.spring-security-oauth2-core, see comments from PR Fix bugs in branch v6.0.0-beta.2 Azure-Samples/azure-spring-boot-samples#582