What problem does it solve?
It helps you choose and reason about the right Spring Security authentication and authorization approach for a Spring Boot 4.x service, and it clarifies how method and filter-chain rules interact across your request and test pipeline.
Core Features & Use Cases
- Authentication mode selection: Pick the right approach between JWT Resource Server, OAuth2 Client, Basic Auth, or gateway-validated JWT based on your system architecture.
- SecurityFilterChain design guidance: Understand matcher ordering, stateless vs stateful session strategies, and where security gates sit in the servlet request pipeline.
- Method-level authorization strategy: Apply @PreAuthorize/@PostAuthorize correctly (including custom evaluator beans) with an emphasis on placing rules in the service layer.
- Test pyramid alignment: Decide what security tools belong in component, end-to-end, and acceptance tests to avoid fragile or incorrect security testing.
Quick Start
Ask the AI to review your current endpoints and your intended identity provider (or whether you have a gateway) and recommend the best SecurityFilterChain and test-layer strategy for Spring Boot 4.x.