Keycloak Extensions – Jumpstart Workshop

Extend Keycloak with your own extensions – in one day.

Standard Keycloak isn't enough? No problem – Keycloak is built for extensibility from the ground up. With Service Provider Interfaces (SPIs) you can adapt almost every aspect of the system to your own requirements, without touching the core.

In this Jumpstart workshop you'll learn how Keycloak extensions work conceptually, which SPIs you need most – and you'll implement them yourself, hands-on. Including automated integration tests against a real Keycloak server.

Hands-on. Java-focused. With Europe's leading Keycloak expert.

This workshop is not an introduction to Keycloak or OAuth 2 / OIDC. Basic Keycloak knowledge and solid, up-to-date Java and Maven skills are required. For a Keycloak introduction, see the Keycloak Quickstart or the Keycloak Fundamentals Training.


Why this workshop?

One of Keycloak's biggest advantages is its extensibility: the SPI pattern allows you to build your own implementations and deploy them into Keycloak at runtime – without recompiling the core or rebuilding the distribution. Almost every important piece of functionality in Keycloak is exposed through SPIs.

That's powerful – but without a clear understanding of the right interfaces, the KeycloakSession, the *Context objects and how ProviderFactory and Provider work together, it's easy to get lost.

I'll show you how everything fits together – and we'll implement it side by side. As a bonus: using my own and globally in countless projects integrated open-source library testcontainers-keycloak, we'll test our extensions against a real Keycloak server in an integration test – no mocking, no guessing.


Agenda

Keycloak SPI concepts – the foundation

  • The SPI pattern in Keycloak: ProviderFactory and Provider interfaces
  • KeycloakSession and *Context-specific objects – what's available where?
  • How extensions are deployed and loaded at runtime

Implementing two SPIs – hands-on

  • EventListener: reacting to Keycloak events (login, logout, errors, …)
  • Authenticator: adding custom authentication steps to auth flows
  • (optional: RequiredAction SPI)

Testing extensions automatically

  • Integration tests with testcontainers-keycloak
  • Testing extensions against a real Keycloak server – no mocking required

What you'll be able to do after this training

  • ✅ Explain and apply the SPI concept in Keycloak
  • ✅ Work confidently with the most important Keycloak interfaces and objects
  • ✅ Implement your own EventListener and Authenticator extensions
  • ✅ Test Keycloak extensions automatically with testcontainers-keycloak
  • ✅ Adapt Keycloak to custom requirements – without modifying the core

Who is this training for?

This workshop is aimed at Java developers who already know Keycloak and want to extend it with custom extensions to meet individual requirements.

Prerequisites:
  • Basic Keycloak knowledge (realms, clients, authentication flows)
  • Solid, up-to-date Java skills (Java 21+) and experience with Maven
  • Familiarity with a Java IDE (IntelliJ IDEA, Eclipse, VS Code, …)

Learning objectives

  • Understand and implement Keycloak Service Provider Interfaces (SPIs) conceptually
  • Work confidently with the relevant Keycloak interfaces, classes and objects
  • Test Keycloak extensions with automated integration tests

What you need to bring

Required:

  • Notebook/laptop with local admin rights
  • Java IDE of your choice (IntelliJ IDEA, Eclipse, VS Code, …)
  • JDK 21+
  • Docker and Docker Compose V2 – installed and running
  • Internet access

We use Docker Compose as the test and verification environment to keep operational overhead to a minimum.

Book directly

Booking conditions:
  • 20% discount for 2 or more participants from the same company
  • Certificate of participation included
  • Training language: English
  • Minimum number of participants: 5
    (the event may be cancelled if this is not reached 7 days before the date)
  • Cancellation by participants is excluded; in case of illness, attendance at an alternativ date is possible
  • Payment: advance payment required, received at least 3 working days before the event
  • Online platform: Zoom (participants are responsible for ensuring their own technical prerequisites)

Contact

Please contact me directly via the following form if you are interested in training Keycloak Extensions – Jumpstart Workshop
I'm looking forward to your message and will get back to you as soon as possible!

*
*
*
*
* = required field