diff --git a/model/infinispan/src/main/java/org/keycloak/models/authorization/infinispan/InfinispanStoreProviderFactory.java b/model/infinispan/src/main/java/org/keycloak/models/authorization/infinispan/InfinispanStoreProviderFactory.java index 13ff8c9cdc..5b11340466 100644 --- a/model/infinispan/src/main/java/org/keycloak/models/authorization/infinispan/InfinispanStoreProviderFactory.java +++ b/model/infinispan/src/main/java/org/keycloak/models/authorization/infinispan/InfinispanStoreProviderFactory.java @@ -23,11 +23,12 @@ import org.keycloak.models.KeycloakSession; import org.keycloak.models.KeycloakSessionFactory; import org.keycloak.models.cache.authorization.CachedStoreFactoryProvider; import org.keycloak.models.cache.authorization.CachedStoreProviderFactory; +import org.keycloak.provider.EnvironmentDependentProviderFactory; /** * @author Pedro Igor */ -public class InfinispanStoreProviderFactory implements CachedStoreProviderFactory { +public class InfinispanStoreProviderFactory implements CachedStoreProviderFactory, EnvironmentDependentProviderFactory { @Override public CachedStoreFactoryProvider create(KeycloakSession session) { return new InfinispanStoreFactoryProvider(session); @@ -52,4 +53,9 @@ public class InfinispanStoreProviderFactory implements CachedStoreProviderFactor public String getId() { return "infinispan-authz-store-factory"; } + + @Override + public boolean isSupported() { + return false; + } }