From 7ea1e3840d5d9466936184a6cd94e8b1179088ef Mon Sep 17 00:00:00 2001 From: Dimantchick Date: Sat, 2 Sep 2023 11:58:37 +0700 Subject: [PATCH] Fix keycloak-server.json don't use ENV vars in docker container --- .../auth/config/RegularJsonConfigProviderFactory.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oauth-rest/oauth-authorization-server/src/main/java/com/baeldung/auth/config/RegularJsonConfigProviderFactory.java b/oauth-rest/oauth-authorization-server/src/main/java/com/baeldung/auth/config/RegularJsonConfigProviderFactory.java index 1e955fc38..a4081588b 100644 --- a/oauth-rest/oauth-authorization-server/src/main/java/com/baeldung/auth/config/RegularJsonConfigProviderFactory.java +++ b/oauth-rest/oauth-authorization-server/src/main/java/com/baeldung/auth/config/RegularJsonConfigProviderFactory.java @@ -3,5 +3,8 @@ import org.keycloak.services.util.JsonConfigProviderFactory; public class RegularJsonConfigProviderFactory extends JsonConfigProviderFactory { - + @Override + protected Properties getProperties() { + return new SystemEnvProperties(System.getenv()); + } }