Training Agenda

Spring Security
& OAuth2

Security is one of the areas where misconfiguration has the highest cost — and Spring Security's abstraction layers make it easy to get wrong without realizing it. This training cuts through the configuration complexity with a clear mental model: how the security filter chain works, how OAuth2 and JWT flows operate, and how to implement authentication and authorization that is correct by construction rather than by accident.

1–2 days On-site, remote, or hybrid Up to 20 participants German or English
What We Cover
Authentication and authorization done correctly
Day 1

Spring Security Core & Form Auth

  • SecurityFilterChain: filter order, request matching, how authentication flows
  • UserDetailsService and UserDetails: custom user loading
  • Password encoding: BCrypt, Argon2 — never plain text
  • CSRF: when to enable, when to disable, and why
  • CORS configuration in Spring Security vs MVC
  • Session management: stateful vs stateless, session fixation protection
  • Method security: @EnableMethodSecurity, @PreAuthorize with SpEL
  • Testing security: @WithMockUser, @WithUserDetails, MockMvc security integration
Day 2

OAuth2, JWT & Keycloak

  • OAuth2 flows: Authorization Code with PKCE, Client Credentials — which to use when
  • Spring Security OAuth2 Resource Server: JWT decoder configuration
  • JWT validation: signature, expiry, audience, issuer claims
  • Custom JWT converters: mapping claims to Spring Security authorities
  • OAuth2 Client: authorization code flow in Spring Boot, token storage
  • Keycloak integration: realm setup, client configuration, Spring Boot integration
  • Scope-based and role-based authorization: @PreAuthorize with hasAuthority vs hasRole
  • Refresh token handling and silent renewal patterns
Learning Outcomes
What your team walks away with

Teams who understand their own security configuration — not copying stack overflow snippets and hoping for the best.

Book the Spring Security training

Available as a 1-day focused session on OAuth2/JWT or a full 2-day course including Spring Security fundamentals.

Get in touch