Skip to content

Commit

Permalink
fix(jans-auth-server): changed getAttributeValues to getAttributeObje…
Browse files Browse the repository at this point in the history
…ctValues (#3346)
  • Loading branch information
Milton-Ch authored Dec 17, 2022
1 parent 184c866 commit a39b61e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> values = getAttributeValues(attributeName);
List<Object> 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;
Expand Down

0 comments on commit a39b61e

Please sign in to comment.