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;