From f057ccd5b62da15331ba8a5f64210eda31c7ffe7 Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Fri, 28 Apr 2017 11:05:24 +0200 Subject: [PATCH] KEYCLOAK-4814 disable keycloak spring boot by configuration --- securing_apps/topics/oidc/java/spring-boot-adapter.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/securing_apps/topics/oidc/java/spring-boot-adapter.adoc b/securing_apps/topics/oidc/java/spring-boot-adapter.adoc index 65c614e3a5..3df33c28c3 100755 --- a/securing_apps/topics/oidc/java/spring-boot-adapter.adoc +++ b/securing_apps/topics/oidc/java/spring-boot-adapter.adoc @@ -54,6 +54,8 @@ keycloak.credentials.secret = 11111111-1111-1111-1111-111111111111 keycloak.use-resource-role-mappings = true ---- +You can disable the Keycloak Spring Boot Adapter (for example in tests) by setting `keycloak.enabled = false`. + To configure a Policy Enforcer, unlike keycloak.json, `policy-enforcer-config` must be used instead of just `policy-enforcer`. You also need to specify the Java EE security config that would normally go in the `web.xml`.