Skip to content

Commit

Permalink
Use cached policy store in Infinispan PolicyAdapter (keycloak#20566)
Browse files Browse the repository at this point in the history
  • Loading branch information
deathbeam authored May 29, 2023
1 parent b41904b commit 1b06c4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public Set<Policy> getAssociatedPolicies() {
}
if (associatedPolicies != null) return associatedPolicies;
associatedPolicies = new HashSet<>();
PolicyStore policyStore = cacheSession.getPolicyStoreDelegate();
PolicyStore policyStore = cacheSession.getPolicyStore();
String resourceServerId = cached.getResourceServerId();
for (String id : cached.getAssociatedPoliciesIds(modelSupplier)) {
Policy policy = policyStore.findById(InfinispanCacheStoreFactoryProviderFactory.NULL_REALM, cacheSession.getResourceServerStore().findById(InfinispanCacheStoreFactoryProviderFactory.NULL_REALM, resourceServerId), id);
Expand Down

0 comments on commit 1b06c4c

Please sign in to comment.