Develop Keycloak extensions

2024-12-02 - 2024-12-03

Keycloak Extensions entwickeln (Online)

Description

In this two-day training course, you will learn how to develop and test Keycloak extensions. You will get to know the most important concepts and objects as well as the most common SPIs.

A major advantage of the Keycloak platform is that it can be extended with your own requirements and implementations without having to build/compile the actual core yourself. Keycloak relies to a large extent on the standard Java SPI (Service Provider Interface) mechanism, which allows you to implement your own extensions to an interface and deploy these extensions to the application core at runtime or put them into production in a joint deployment. Almost every functionality is mapped in Keycloak via the SPI pattern, allowing Keycloak to be almost completely customized to your own wishes and requirements.

In this 2-day workshop, we will first learn about the concept of Keycloak SPIs, consisting of factory and provider classes, as well as the most important objects, such as the KeycloakSession and other *Context-specific containers. We then implement the most common service provider interfaces such as EventListener, ResourceProvider, Authenticator, RequiredAction and User Storage and use them to create sample extensions. With these exercises, we gain a basic understanding of how SPIs are developed for Keycloak and what to look out for.

With the help of the testcontainers-keycloak extension, we will be able to test some of our extensions in an integration test scenario in a “real” Keycloak server.

Agenda

Getting to know the most important concepts for Keyclaok extensions

  • ProviderFactory and provider interfaces
  • KeycloakSession and *Context-specific objects

Implementation of the most common Keycloak SPIs:

  • EventListener
  • ResourceProvider
  • Authenticator
  • RequiredAction
  • UserStorage

Testing extensions with testcontainers-keycloak

Your Trainers

Niko Köbler

Niko Köbler IT-Beratung

Keycloak, IAM

  • Develop Keycloak extensions
  • Keycloak IAM & SSO
  • Keycloak and OIDC

Niko Köbler ist Freelancer und seit über acht Jahren als Keycloak- und IAM-Experte für Kunden aus unterschiedlichen Branchen europaweit tätig. Auf YouTube betreibt er seit Anfang 2021 einen erfolgreichen Keycloak-Channel und unterstützt die Community in verschiedenen Foren. Außerdem ist er ein bekannter und gefragter Sprecher auf IT-Konferenzen, Co-Lead einer Java User Group und schreibt als Autor Artikel für verschiedene Fachzeitschriften. https://www.n-k.de

All info about training