Authentication and access control for Spring and Java applications
open sourceApache-2.0free
Spring Security is an authentication and access-control framework for Java applications built on Spring, including Spring Boot apps. It handles authentication and authorization, and protects against attacks such as session fixation, clickjacking and cross-site request forgery. It integrates with the Servlet API and, optionally, Spring Web MVC. It is open source under the Apache License 2.0, developed by the Spring team.
Problems it solves
- I need to add login and role-based access control to my Spring Boot app
- How do I protect my Java web app against CSRF and session fixation
- I need a standard way to secure the REST endpoints of a Spring application
- I want authentication and authorization in a Java backend without writing it myself
Features
- Adds authentication (login) and authorization (access control) to Java and Spring applications
- Protection against session fixation, clickjacking and cross-site request forgery (CSRF)
- Servlet API integration
- Optional integration with Spring Web MVC
- Highly customizable for custom authentication and access rules
Alternatives
The same job
These do what Spring Security does.
- Apache Shiro Java security framework for authentication, authorization, sessions and cryptography
- Keycloak Open source identity and access management for modern applications and services
- Sa-Token Lightweight Java authentication and authorization framework: login sessions, permissions and roles, SSO, OAuth 2.0 server, gateway and RPC auth, JWT and API signing.
