From db9b204d1bca9604086a841137c598bbe3ebffe4 Mon Sep 17 00:00:00 2001 From: Milton Ch <86965029+Milton-Ch@users.noreply.github.com> Date: Fri, 30 Dec 2022 10:05:53 -0400 Subject: [PATCH] fix(jans-auth-server): parse string from object (#3470) --- .../model/src/main/java/io/jans/as/model/jwt/JwtClaimSet.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jans-auth-server/model/src/main/java/io/jans/as/model/jwt/JwtClaimSet.java b/jans-auth-server/model/src/main/java/io/jans/as/model/jwt/JwtClaimSet.java index 0abe45b9a0c..20b38357c1f 100644 --- a/jans-auth-server/model/src/main/java/io/jans/as/model/jwt/JwtClaimSet.java +++ b/jans-auth-server/model/src/main/java/io/jans/as/model/jwt/JwtClaimSet.java @@ -276,8 +276,7 @@ public void setClaimFromJsonObject(String key, Object attribute) { if (attribute instanceof JSONArray) { claims.put(key, JsonApplier.getStringList((JSONArray) attribute)); } else { - String value = (String) attribute; - claims.put(key, value); + claims.put(key, attribute); } }