Sitemap

Member-only story

Keycloak Custom SPI and Database Extensions: Adding Your Own Tables 2/2

9 min readSep 15, 2025

--

In the previous story, we learned the foundation for extending Keycloak with custom database entities and providers. In this story, we’ll explain how to expose the subscription management via a REST API extension.

Press enter or click to view image in full size

If you are not a Medium member, then click here to read for free.

· Prerequisites
· Overview
· Implementing Subscription CRUD in a Custom Provider
Define the Provider Interface
Implement the Provider
Factory for Subscription Provider
The SPI Class
Service Loader Configuration
· Exposing Subscription CRUD via REST API
REST Resource Implementation
Factory for REST Resource
Registering the REST Extension
· Test the REST APIs
· Conclusion
· Additional Readings
· References

Prerequisites

This is the list of all the prerequisites:

  • All steps in Part 1 must be completed

--

--