spring-security

Installation
SKILL.md

When to use this skill

Use this skill whenever the user wants to:

  • Configure authentication and authorization in Spring Boot applications
  • Set up SecurityFilterChain, UserDetailsService, and PasswordEncoder
  • Implement JWT-based stateless authentication
  • Integrate OAuth2 client or resource server
  • Use method-level security with @PreAuthorize and @Secured
  • Configure CORS, CSRF, session management, and security headers

How to use this skill

Workflow

  1. Add the Spring Security starter dependency
  2. Configure SecurityFilterChain to define URL-based access rules
  3. Implement authentication: in-memory, JDBC, LDAP, or custom UserDetailsService
  4. Add authorization: role-based or expression-based access control
Related skills

More from teachingai/full-stack-skills

Installs
59
GitHub Stars
381
First Seen
Jan 24, 2026