Hello I have a Custom User Storage provider that connects to a MySQL database using JPA. The user will provides the config details using the UI (via ProviderConfigurationBuilder). In the Factory class I am trying to do something like this
but I am getting
Caused by: jakarta.persistence.PersistenceException: The FastbootHibernateProvider PersistenceProvider can not support runtime provided properties. Make sure you set all properties you need in the configuration resources before building the application.
What is the correct way to handle a runtime configuration?
Things I've tried:
I've tried adding quarkus.properties and matching the data source names with the persistence.xml
Sorry if this has been answered before, just not clear since examples I see don't provide runtime configurations.
Version
25.0.1
Expected behavior
Allow runtime configuration for external database connection for user storage
Actual behavior
getting an error about needing to provide the configuration at build time
How to Reproduce?
Place provider in providers folder along with db connector
Start keycloak in dev mode
Configure the custom user storage via UI (connection succeeds)
try to query users
Anything else?
The only time I have seen this provider work for me was when I initially tested against a Keycloak embedded Spring boot app using this article.
Describe the bug
Hello I have a Custom User Storage provider that connects to a MySQL database using JPA. The user will provides the config details using the UI (via ProviderConfigurationBuilder). In the Factory class I am trying to do something like this
but I am getting
Caused by: jakarta.persistence.PersistenceException: The FastbootHibernateProvider PersistenceProvider can not support runtime provided properties. Make sure you set all properties you need in the configuration resources before building the application.
What is the correct way to handle a runtime configuration?
Things I've tried: I've tried adding quarkus.properties and matching the data source names with the persistence.xml
Sorry if this has been answered before, just not clear since examples I see don't provide runtime configurations.
Version
25.0.1
Expected behavior
Allow runtime configuration for external database connection for user storage
Actual behavior
getting an error about needing to provide the configuration at build time
How to Reproduce?
Anything else?
The only time I have seen this provider work for me was when I initially tested against a Keycloak embedded Spring boot app using this article.