# spring-projects/spring-security

Spring Security

Repository: https://github.com/spring-projects/spring-security
Canonical: https://ross.abutalabs.com/products/spring-security
Homepage: http://spring.io/projects/spring-security
Language: Java
License: Apache-2.0
License Family: permissive
Topics: java, security, spring, spring-framework, framework
Last push: 2026-08-26T16:17:58+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 98, longevity 100
- inputs: {"age_days": 5349, "days_push": 7, "days_rel": 13, "gap_med": 0.0, "n_releases_24m": 49}
- flags: no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9612, forks 6332 (observed 2026-08-28T04:10:36.298209+00:00)

## What it is
Spring Security is a powerful and highly customizable authentication and access-control framework for Java applications, and the de-facto standard for securing Spring-based apps. It provides comprehensive, extensible support for authentication and authorization, plus protection against common attacks like CSRF, session fixation, and clickjacking.

## Use cases
- add login and authentication to a Spring Boot application
- secure REST API endpoints with role-based access control
- protect a web app against CSRF and session fixation attacks
- integrate OAuth2 or JWT-based authentication in Java
- secure reactive WebFlux applications
- customize user authentication with a custom UserDetailsService
- add a default login page and generated credentials to a Spring Boot app

## When to choose
- you are building a Spring or Spring Boot application and need authentication and authorization
- you want battle-tested protection against common web vulnerabilities out of the box
- you need fine-grained, extensible security configuration for servlet or reactive apps
- you want the de-facto standard Java security framework with long-term community and enterprise support

## When to avoid
- your project does not use the Spring ecosystem, where lighter-weight alternatives may fit better
- you need a standalone identity provider or SSO server rather than an in-application security layer
- you want a zero-configuration security solution without learning Spring's configuration model

## Facets
- artifact type: framework
- maturity: stable
- function: auth, authorization, security, middleware, web-framework
- domain: security, backend, web-development, developer-tools
- platform: jvm, cross-platform
- tags: spring-boot, servlet, webflux, oauth2, session-management, csrf-protection, enterprise, spring

## Member repositories
- spring-projects/spring-security (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:36.298209+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:21:52.434064+00:00, confidence not recorded.
  - homepage: http://spring.io/projects/spring-security (fetched 2026-08-29T08:21:25.952653+00:00, sha fdc71b43742f)
  - site_page: https://spring.io/quickstart (fetched 2026-08-29T08:21:25.963683+00:00, sha fc64dd950363)
  - site_page: https://spring.io/projects/spring-restdocs (fetched 2026-08-29T08:21:25.967446+00:00, sha 1e2a101b77d3)
  - site_page: https://docs.spring.io/spring-security/reference/servlet/getting-started.html (fetched 2026-08-29T08:21:25.968987+00:00, sha bd87f056df6e)
  - site_page: https://docs.spring.io/spring-security/reference/reactive/getting-started.html (fetched 2026-08-29T08:21:25.971805+00:00, sha fd026732cdd4)
  - site_page: https://enterprise.spring.io (fetched 2026-08-29T08:21:25.961595+00:00, sha 85ac7d6d5114)
  - site_page: https://enterprise.spring.io/lts-releases (fetched 2026-08-29T08:21:25.965485+00:00, sha 3251cc8760b6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
