KEYCLOAK-14584: Clients that have empty string as Base URL are displayed

in Account Console
This commit is contained in:
Stan Silvert 2020-06-25 12:41:31 -04:00 committed by Bruno Oliveira da Silva
parent 5e44bb781b
commit 25e8210066

View file

@ -537,7 +537,7 @@ public class AccountRestService {
List<ClientRepresentation> apps = new LinkedList<ClientRepresentation>();
for (ClientModel client : clients) {
if (client.isBearerOnly() || client.getBaseUrl() == null) {
if (client.isBearerOnly() || client.getBaseUrl() == null || client.getBaseUrl().isEmpty()) {
continue;
}
apps.add(modelToRepresentation(client, inUseClients, offlineClients, consentModels));