Secure All The Things

The definitive guide to mastering Spring Security, OAuth, and the Spring Authorization Server.

By Josh Long

Secure All The Things Book Cover

Lock Down Your Architecture

Security isn't a feature you bolt on at the end; it's the foundation of every robust application. In Secure All The Things, Spring Developer Advocate Josh Long takes you on a comprehensive journey through the modern Java security landscape.

Whether you're building traditional monolithic web applications, dynamic single-page applications, distributed microservices, or bleeding-edge native binaries, this book equips you with the tools and knowledge to secure them all.

You'll start with the fundamentals of Spring Security and progressively tackle advanced concepts like OAuth2, Passkeys, Multi-Factor Authentication (MFA), and deploying a production-ready Spring Authorization Server. Learn to implement robust security across web boundaries, messaging protocols, gRPC, GraphQL, and even desktop JavaFX apps.

What You'll Learn

1. The Fundamentals

Master the core concepts of Java, Dependency Injection, Spring Boot, and Spring Security.

2. Identity & Credentials

Implement robust user authentication spanning Passwords, Magic Links, Passkeys, and MFA.

3. Advanced Authorization

Deep dive into OAuth2, granular authorization rules, and federated identity.

4. Spring Authorization Server

Build, implement, and persist your own production-grade identity provider.

5. Securing Every Client

Apply security patterns across Web interfaces, JavaFX desktop apps, and Shell environments.

6. Securing Integrations

Lock down gRPC, SOAP, Model Context Protocol (MCP), distributed messaging, and multi-tenant architectures.