How to call a custom config properties from Keycloack.conf or quarkus.properties

121 views
Skip to first unread message

Bruno Antunes

unread,
Mar 20, 2023, 4:31:38 AM3/20/23
to Keycloak User
Hello guys!!

Do you know if is it possible to call a custom config properties from Keycloack.conf or quarkus properties using Keycloak 20.0.5 ?

First I added the property "custom.property=test" inside of the files  keycloack.conf or quarkus properties, then I try to read the value using these approaches:

1-) first approach:
org.keycloak.quarkus.runtime.configuration.Configuration.getConfig().getValue("custom.property", String.class);

2-)second approach:
org.eclipse.microprofile.config.ConfigProvider.getConfig().getValue("custom.property", String.class);

Thanks in advance

Bruno Romao.




Reply all
Reply to author
Forward
0 new messages