KEYCLOAK-4127
Temporarily disable cache for authorization services as it breaks clustering
This commit is contained in:
parent
e3e18913f1
commit
663b99d884
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue