Spring Security
Spring Security is a framework for securing Java and Spring applications through authentication, authorization, access control, and related security mechanisms.
Spring Security in Action, Second Edition
Spring Security is an open-source framework for securing Spring applications through authentication, authorization, access control, and protection against common attacks.
- How it is used
- Secures Spring applications through authentication, authorization, access control, and protection against common attacks.
- How deep it goes
- Descends from architecture and defaults into configuration, customization, OAuth 2, reactive security, and testing through progressively complex examples.
- Examples
- Uses first Spring applications, authorization servers, OAuth 2 clients, backend calls, reactive apps, mock users, and endpoint tests.
- What you can do after
- Apply Spring Security to practical Spring scenarios, choose suitable configurations, customize defaults, and test security implementations.
Read how Spring Security in Action, Second Edition explains Spring Security →
Software Security for Developers
Spring Security is a Java and Spring framework for authentication, authorization, and protection against common application security threats.
- How it is used
- Applies authentication patterns and endpoint authorization in Java web applications and service integrations.
- How deep it goes
- Demonstrates an OIDC authorization-code flow and configuration, but deliberately stops short of deep framework implementation details.
- Examples
- Uses YAML client configuration, discovery metadata, browser redirection, authorization codes, token requests, and decoded access-token claims.
- What you can do after
- Apply Spring Security by configuring an OIDC client and tracing authorization-code authentication through endpoint protection and token issuance.
Read how Software Security for Developers explains Spring Security →
Spring AI in Action
Spring Security is a Spring framework project that provides authentication, authorization, and protection against common application security threats.
- How it is used
- Secures Spring AI applications by restricting document access, premium content, and LLM-invoked tools.
- How deep it goes
- Configures dependencies, web filters, users, roles, and method annotations while keeping the framework's broader configuration possibilities out of scope.
- Examples
- Demonstrates Board Game Buddy, premium game content, the getGameComplexity tool, and authenticated HTTP requests.
- What you can do after
- Operate/configure Spring applications with HTTP Basic authentication and role-based restrictions on web requests and tool methods.
Spring in Action, Sixth Edition
Spring Security is a Spring framework for securing applications through authentication, authorization, and related security mechanisms.
- How it is used
- Secures Spring Boot applications, administrative servers, APIs, and operational endpoints through authentication and authorization.
- How deep it goes
- Explains starter-based autoconfiguration, login behavior, endpoint matching, roles, HTTP Basic, and CSRF, while deferring the framework’s broader scope.
- Examples
- Uses default login, generated credentials, Actuator role restrictions, EndpointRequest matchers, and Admin server credential configuration.
- What you can do after
- Configure Spring Security with a starter, default credentials, role-based endpoint rules, request matchers, HTTP Basic, and CSRF settings.
Read how Spring in Action, Sixth Edition explains Spring Security →
Also covered in
- Troubleshooting Java: Read, debug, and optimize JVM applications
- Troubleshooting Java, Second Edition
What to know first
- authenticationAuthentication is the process of verifying the claimed identity of a user, service, device, or other entity.
- authorizationAuthorization is the determination of which actions or resources an identity or other entity is permitted to access under defined permissions or policies.
- basic authenticationAn HTTP authentication scheme in which a client sends a username and password as Base64-encoded credentials in an Authorization header.
Related concepts
- authenticationimplements · Authentication is the process of verifying the claimed identity of a user, service, device, or other entity.
- authorizationimplements · Authorization is the determination of which actions or resources an identity or other entity is permitted to access under defined permissions or policies.
- application securityimplements · Application security is the discipline of protecting software applications, their data, and their interfaces from vulnerabilities, unauthorized access, misuse, and attacks.
- CORSused by · Cross-Origin Resource Sharing (CORS) is a web standard that uses HTTP headers to let servers specify which origins may access their resources through browsers.
- cross-site request forgeryconfigures · Cross-site request forgery is a web attack that induces an authenticated user’s browser to submit an unintended request to a trusted application.
Questions about Spring Security
What is Spring Security?
Spring Security is a framework for securing Java and Spring applications through authentication, authorization, access control, and related security mechanisms.
Which Manning books explain Spring Security?
Spring Security in Action, Second Edition, Software Security for Developers, Spring AI in Action and Spring in Action, Sixth Edition.
What should I know before learning Spring Security?
Manning books that teach Spring Security usually introduce authentication, Java, authorization and basic authentication first.
What is the difference between Spring Security and Apache Shiro?
Spring Security is a framework for securing Java and Spring applications through authentication, authorization, access control, and related security mechanisms. Apache Shiro is an open-source Java security framework providing authentication, authorization, cryptography, and session management.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



