From 00e91bce4cf118788521822d1647b7b6ae70b377 Mon Sep 17 00:00:00 2001 From: Milton Ch Date: Fri, 30 Dec 2022 08:58:32 -0400 Subject: [PATCH] fix(jans-auth-server): parse string from object --- .../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); } }