From 4ef72792c33d6756e950e77e798bcf93c4e8e83d Mon Sep 17 00:00:00 2001 From: Djeumen Rolain Date: Wed, 20 Jul 2022 03:13:44 +0100 Subject: [PATCH] fix: facilitate multiple same type NameID creation More details can be found in oxTrust issue #2167 --- .../org/gluu/oxtrust/action/ConfigureNameIdAction.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; }