From a39b61e6e686680e2b45b10e25b36fa41a4de76a Mon Sep 17 00:00:00 2001 From: Milton Ch <86965029+Milton-Ch@users.noreply.github.com> Date: Sat, 17 Dec 2022 06:27:15 -0400 Subject: [PATCH] fix(jans-auth-server): changed getAttributeValues to getAttributeObjectValues (#3346) --- .../main/java/io/jans/as/common/model/common/SimpleUser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jans-auth-server/common/src/main/java/io/jans/as/common/model/common/SimpleUser.java b/jans-auth-server/common/src/main/java/io/jans/as/common/model/common/SimpleUser.java index 3a0c6a8aba6..7f63d374e79 100644 --- a/jans-auth-server/common/src/main/java/io/jans/as/common/model/common/SimpleUser.java +++ b/jans-auth-server/common/src/main/java/io/jans/as/common/model/common/SimpleUser.java @@ -22,11 +22,11 @@ public class SimpleUser extends io.jans.orm.model.base.SimpleUser { public Object getAttribute(String attributeName, boolean optional, boolean multivalued) throws InvalidClaimException { Object attribute = null; - List values = getAttributeValues(attributeName); + List values = getAttributeObjectValues(attributeName); if (values != null) { if (multivalued) { JSONArray array = new JSONArray(); - for (String v : values) { + for (Object v : values) { array.put(v); } attribute = array;