KEYCLOAK-4127

Temporarily disable cache for authorization services as it breaks clustering
This commit is contained in:
Stian Thorgersen 2016-12-21 08:36:11 +01:00
parent e3e18913f1
commit 663b99d884

View file

@ -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 <a href="mailto:psilva@redhat.com">Pedro Igor</a>
*/
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;
}
}