Azure / Azure/azure-sdk-for-java
[FEATURE REQ] Improve AadAuthenticationFilterAutoConfiguration dependencies
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 2.2k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 178
Description
### 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.
- Update samples to use a resource server starter, not the `spring-security-oauth2-core`, see comments from PR https://github.com/Azure-Samples/azure-spring-boot-samples/pull/582
- Update doc(migration & code snappets)
Contributor guide
Assessment
This issue has not been assessed yet.