diff --git a/jans-config-api/server/src/main/java/io/jans/configapi/service/auth/AgamaFlowService.java b/jans-config-api/server/src/main/java/io/jans/configapi/service/auth/AgamaFlowService.java index 2334dda1cbe..ff1ddae95fe 100644 --- a/jans-config-api/server/src/main/java/io/jans/configapi/service/auth/AgamaFlowService.java +++ b/jans-config-api/server/src/main/java/io/jans/configapi/service/auth/AgamaFlowService.java @@ -104,13 +104,7 @@ public List getAllFlows() { } public Flow getFlowByName(String flowName) { - List flows = persistenceEntryManager.findEntries(getAgamaFlowDn(flowName), Flow.class, - Filter.createEqualityFilter(Flow.ATTR_NAMES.QNAME, flowName), 1); - logger.debug("Agama Flow with flowName:{} flows:{}", flowName, flows); - if (!flows.isEmpty()) { - return flows.get(0); - } - return null; + return getFlowByDn(getAgamaFlowDn(flowName)); } public Flow getFlowByDn(String dn) {