KEYCLOAK-19763 fix MapClientProvider.getClientByClientId

This commit is contained in:
vramik 2021-11-04 10:21:15 +01:00 committed by Hynek Mlnařík
parent e99b363ba0
commit 439e2e4288

View file

@ -241,7 +241,7 @@ public class MapClientProvider implements ClientProvider {
ModelCriteriaBuilder<ClientModel> mcb = criteria(); ModelCriteriaBuilder<ClientModel> mcb = criteria();
mcb = mcb.compare(SearchableFields.REALM_ID, Operator.EQ, realm.getId()) mcb = mcb.compare(SearchableFields.REALM_ID, Operator.EQ, realm.getId())
.compare(SearchableFields.CLIENT_ID, Operator.ILIKE, clientId); .compare(SearchableFields.CLIENT_ID, Operator.EQ, clientId);
return tx.read(withCriteria(mcb)) return tx.read(withCriteria(mcb))
.map(entityToAdapterFunc(realm)) .map(entityToAdapterFunc(realm))