SuperAPI AI Directory

spring-security

Security & auditing

View repository

Updated 10-15 15:23

About this skill

When to use this skill

Use this skill whenever the user wants to:

  • Configure authentication, authorization, sessions, and security headers with Spring Security
  • Integrate OAuth2, JWT, method security, and CSRF

How to use this skill

  1. Configuration: SecurityFilterChain, UserDetailsService, PasswordEncoder; login/logout and exception handling.
  2. Advanced: JWT, OAuth2 client/resource server; @PreAuthorize, CORS.
  3. Reference:https://docs.spring.io/spring-security/reference/

Best Practices

  • Password encryption, session and cookie security; least privilege and role design.
  • Use HTTPS and security headers in production; protect sensitive paths.

Keywords

spring security, authentication, authorization, JWT, OAuth2