Azure / Azure/azure-sdk-for-java

[FEATURE REQ] Improve AadAuthenticationFilterAutoConfiguration dependencies

Open
#32,509 2 comments 0 reactions 1 assignee Claimed by @rujche View on GitHub
azure-spring azure-spring-aad azure-spring-docs azure-spring-samples
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.