Learn how to maintain control as a software architect in the age of coding agents.
🔎 Discover our new training: Architecture in the Context of Agentic Development.
Workshop

Keycloak Extensions

Basics
1 day
12
Seats
German and English
Online and in-person
Available on request

Also available as in-house training

We run this training exclusively for your team, online or on site.
In-house Offerings

Objectives

  • Understand the concepts behind and implement Keycloak Service Provider Interfaces (SPIs)
  • Confidently use the relevant Keycloak interfaces, classes, and objects
  • Automate testing of Keycloak extensions

Curriculum

Keycloak SPI Concepts – The Foundation

  • The SPI Pattern in Keycloak: ProviderFactory and Provider Interfaces
  • KeycloakSession and Context-specific objects – what is available where?
  • How extensions are deployed and loaded at runtime

Implementing Two SPIs – Hands-On

  • EventListener: Respond to Keycloak events (login, logout, errors, etc.)
  • Authenticator: Incorporate custom authentication steps into auth flows
  • (optional: RequiredAction SPI)

Automated Testing of Extensions

  • Integration testing with testcontainers-keycloak
  • Testing extensions against a real Keycloak server—without mocking

Audience

This workshop is intended for Java developers who are already familiar with Keycloak and want to customize it to meet their specific needs using their own extensions.

Prerequisites:

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

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

Required:

  • Notebook/laptop with local admin privileges
  • 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 our testing and verification environment to keep operational overhead to a minimum.

Description

Is the standard Keycloak not enough? No problem—Keycloak is built from the ground up to be extensible. With Service Provider Interfaces (SPIs), you can customize nearly every aspect of the system to meet your own requirements without having to touch the core.

‍

In this workshop, you’ll learn how Keycloak extensions work conceptually, which SPIs you’ll need most often—and you’ll implement them yourself right away. This includes automated integration tests against a real Keycloak server.

‍

One of Keycloak’s biggest advantages is its extensibility: The SPI pattern allows you to build your own implementations and deploy them to Keycloak at runtime—without having to recompile the actual core or the distribution. Virtually every important feature in Keycloak is accessible via SPIs.

‍

That sounds powerful—and it is. But without an understanding of the right interfaces, the ‘KeycloakSession’, the Context objects, and how the ProviderFactory and Provider work together, you’ll quickly lose track of what’s going on.

‍

Our trainer Niko Köbler will show you how it all fits together—and you’ll implement it together. Bonus: Using his own open-source library testcontainers-keycloak—which has been used in many global projects—you’ll test the extensions you’ve developed against a real Keycloak server in an integration test—no mocking, no guesswork.

Trainers

Niko Köbler

Freelance Keycloak Expert

Main Skills

Keycloak, IAM

In-house Training

You can also book this training as an in-house training course exclusively for your team. Please use the enquiry form for more details.

Enquire now

You may also like

Workshop

Keycloak Quickstart

Basics
Advanved
1 Day
12
seats
German and English
Online and In-person
Custom Quote
socreatory training
Popular

Keycloak IAM & SSO Masterclass

Basics
Advanved
1-3 days
12
seats
German and English
Online and In-person
from 600.00 €
socreatory training

OWASP Top Ten in practice

Basics
Advanved
3 Days
12
seats
German and English
Online and In-person
Custom Quote
iSAQB® training
Certificate

iSAQB® CPSA-A® WEBSEC

20
Technology
10
Methodology
10
Communication
Basics
Advanved
3 days
12
seats
German and English
Online and In-person
from 2,069.00 €

Frequently Asked Questions

What is the maximum number of participants in a training session?

For most training sessions, we limit the maximum number of participants to 12 per instructor. This allows us to ensure that you receive the best possible guidance.

Are meals provided during in-person training sessions?

Of course, we’ll take care of your meals during our in-person training sessions. We usually provide snacks twice a day and lunch. Drinks are also available.

Where can I find information about the training session I've already booked?

You can find all the information about your training in our socreatory Navigator. Here, in addition to useful links and information, you’ll find the specific location of the training for in-person sessions and the link to the video call for online sessions.

When and how will I receive my certificate of attendance after the training?

If you have attended at least 75% of the sessions, you will receive a certificate of attendance from us. You can download it from our socreatory Navigator a few days after the training.

Why socreatory?

Beyond the expertise of our trainers and our wide range of training courses, we offer even more compelling reasons to train with us.

All the benefits at your fingertips – download our program overview!

Unique Variety

We offer you the most comprehensive training program for software architecture in the German-speaking region – accredited and certified by iSAQB®.

Powerful IT expertise

Our experienced trainers are renowned experts in the industry and have co-developed 80 percent of the module curricula, both in terms of content and teaching methodology.

Hands-on learning experience

We are committed to providing interactive and engaging learning experiences, ensuring all participants can directly apply what they've learned.

Fair pricing model

The total price is reduced for as few as two participants from your company. Furthermore, you benefit from early bird pricing and enhanced planning certainty.

Looking for team training?

Unlock your team's potential with our specialized software architecture courses. We offer a variety of options, from in-depth iSAQB® training to customized workshops tailored precisely to your company's needs. Discover how these training programs can enhance your team's skills, and take advantage of attractive group and package discounts to maximize the value of your investment.