From 0dd196e02aab8978b6dda0ff841bbf50268b5584 Mon Sep 17 00:00:00 2001 From: Thoralf Rickert-Wendt Date: Fri, 19 Jun 2020 12:46:51 +0200 Subject: [PATCH] Fixing issue https://issues.redhat.com/browse/KEYCLOAK-14520 --- .../adapters/springboot/KeycloakSpringBootConfigResolver.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adapters/oidc/spring-boot-adapter-core/src/main/java/org/keycloak/adapters/springboot/KeycloakSpringBootConfigResolver.java b/adapters/oidc/spring-boot-adapter-core/src/main/java/org/keycloak/adapters/springboot/KeycloakSpringBootConfigResolver.java index 270e11df41f8..a382230ff411 100755 --- a/adapters/oidc/spring-boot-adapter-core/src/main/java/org/keycloak/adapters/springboot/KeycloakSpringBootConfigResolver.java +++ b/adapters/oidc/spring-boot-adapter-core/src/main/java/org/keycloak/adapters/springboot/KeycloakSpringBootConfigResolver.java @@ -21,6 +21,7 @@ import org.keycloak.adapters.KeycloakDeploymentBuilder; import org.keycloak.adapters.OIDCHttpFacade; import org.keycloak.representations.adapters.config.AdapterConfig; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; @Configuration @@ -28,6 +29,7 @@ public class KeycloakSpringBootConfigResolver implements org.keycloak.adapters.K private KeycloakDeployment keycloakDeployment; + @Autowired private AdapterConfig adapterConfig; @Override @@ -44,4 +46,4 @@ public KeycloakDeployment resolve(OIDCHttpFacade.Request request) { void setAdapterConfig(AdapterConfig adapterConfig) { this.adapterConfig = adapterConfig; } -} \ No newline at end of file +}