UserStorageProviderFactory create not invoked

Hello,

I implemented a UserStorageProviderFactory and specified the implementation in META-INF/services.
On startup the init() and postInit() methods are invoked but not the create() method. The provider is listed in the keycloak admin gui but not created. No error is logged.

Thank you for any advice.
Tom

Only the factory of a provider will be initialized on startup. The create() method will be called during runtime, when it’s needed, e.g. in a Keycloak transaction, where users will be accessed. With each transaction, a new instance of your provider class will be created.
Expensive operations and state/connections/etc. should be created/initialized in the factory in the init() or postInit() method and then hand-over into your provider constructor in the create method.

Thank you very much for the clarification.