diff --git a/server/src/main/java/org/gluu/oxtrust/action/ConfigureNameIdAction.java b/server/src/main/java/org/gluu/oxtrust/action/ConfigureNameIdAction.java index 6cae99812..6a298029e 100644 --- a/server/src/main/java/org/gluu/oxtrust/action/ConfigureNameIdAction.java +++ b/server/src/main/java/org/gluu/oxtrust/action/ConfigureNameIdAction.java @@ -194,12 +194,8 @@ public void removeNameIdConfig(NameIdConfig removenameIdConfig) { } public Map getAvailableNamedIds(NameIdConfig config) { - MapDifference diff = Maps.difference(availableNamedIds, usedNamedIds); - Map value = diff.entriesOnlyOnLeft(); - Map result = Maps.newHashMap(value); - if (config.getNameIdType() != null) { - result.put(config.getNameIdType(), config.getNameIdType()); - } + + Map result = Maps.newHashMap(availableNamedIds); return result; }