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); } }