OAuth 2.1 and OpenID Connect for (Java-)Developers

Truly understand OAuth 2 and OIDC – by implementing it yourself.
Most developers use OAuth 2 and OpenID Connect through libraries and frameworks – without really knowing what's happening underneath. That's fine as long as everything works. But when something goes wrong – when a token looks strange, a flow breaks, or security questions arise – you won't get far without a deep understanding of the protocols.
In this workshop we set the abstraction layer aside. We implement the complete OAuth 2 and OIDC flows in Java ourselves – from authenticating a user via the Authorization Code Grant with PKCE to verifying a signed JWT in the resource server. Those who know the details master the system.
Protocol-deep. Java hands-on. With Europe's leading Keycloak expert.
ℹ️ What we implement here is typically handled by an OIDC library in production. The value of this training lies in understanding, not in reusing the code. Having implemented the flows once yourself means you debug faster, make better architectural decisions, and spot security vulnerabilities before they become problems.
Who is this training for?
- …are a Java developer who wants to truly understand OAuth 2 and OIDC – not just use them,
- …regularly work with tokens, auth flows or OIDC libraries and want to finally understand the underlying mechanics,
- …carry responsibility for the security of authentication and authorisation in your application,
- …need to debug OAuth/OIDC issues and keep running into walls.
Agenda
Fundamentals & specifications
- OAuth 2 and OIDC basics: grant types, access token, ID token, refresh token, JWT
- What's new in OAuth 2.1 compared to OAuth 2.0? The key changes and deprecations
- Best practices for handling tokens – in server-side and client-side applications (SPA)
Implementation – hands-on in Java
- Client: user authentication via the Authorization Code Grant + PKCE (Proof Key for Code Exchange)
- Resource Server: verification of signed JSON Web Tokens (JWT) including automatic client self-configuration via the OIDC Discovery Endpoint
Discussion & best practices
- Token handling: what can be stored where – and what must not be?
- Do's & don'ts when working with tokens in practice
- Common security vulnerabilities and how to avoid them
What you'll be able to do after this training
- ✅ Explain and trace the OAuth 2.1 and OIDC flows in detail
- ✅ Implement the Authorization Code Grant with PKCE from scratch
- ✅ Correctly verify signed JWTs in a resource server
- ✅ Handle tokens securely in both server-side and client-side applications
- ✅ Identify and avoid security vulnerabilities in OAuth/OIDC implementations
- ✅ Systematically debug OAuth/OIDC issues
What you need to bring
- Notebook/laptop
- Java IDE of your choice (IntelliJ IDEA, Eclipse, VS Code, …)
- JDK 17+
- Internet access
Dates
Public dates
- More dates available on request.
In-house training for your team
Just get in touch; I typically reply within 24 hours.
Contact
Please contact me directly via the following form if you are interested in training OAuth 2.1 and OpenID Connect for (Java-)Developers
I'm looking forward to your message and will get back to you as soon as possible!