Dear Keycloak developers,
Thanks to the latest changes for JDBC_PING, Ryan implemented the ability to define dependencies between provider factories. Kudos to him and everyone who reviewed these parts.
When developing extensions for Keycloak, developers can now specify dependencies between provider factory classes by implementing the method dependsOn() in the
ProviderFactory interface.
This is already in main and should be available in Keycloak starting with release 26.1
I assume this will be helpful also in other scenarios where you previously used workarounds like lazy initialization.
The work might eventually continue to provide a way to merge init() and postInit(), still this would require more work and some thoughts to make it backwards compatible. There is an issue
https://github.com/keycloak/keycloak/issues/33887 to track this, but no plans who and when to start on this.
Best,
Alexander
-- Alexander Schwartz, RHCE
He/Him
Principal Software Engineer, Keycloak Maintainer
Red Hat - Germany remote
asch...@redhat.com
Red Hat GmbH, Registered seat: Werner von Siemens Ring 12, D-85630 Grasbrunn, Germany
Commercial register: Amtsgericht Muenchen/Munich, HRB 153243,
Managing Directors: Ryan Barnhart, Charles Cachera, Michael O'Neill, Amy Ross