https://bz.apache.org/bugzilla/show_bug.cgi?id=64030
--- Comment #3 from Sebastian Boga <[email protected]> --- Hello Any news about this? We are using this part of code in a JSR223 to decode the JWT until we will have a proper Function import org.apache.commons.codec.binary.Base64; String jwtToken = vars.get("auth_token"); log.info("------------ Decode JWT ------------"); String[] split_string = jwtToken.split("\\."); String base64EncodedHeader = split_string[0]; String base64EncodedBody = split_string[1]; String base64EncodedSignature = split_string[2]; log.info("~~~~~~~~~ JWT Header ~~~~~~~"); Base64 base64Url = new Base64(true); String header = new String(base64Url.decode(base64EncodedHeader)); log.info("JWT Header : " + header); log.info("~~~~~~~~~ JWT Body ~~~~~~~"); String body = new String(base64Url.decode(base64EncodedBody)); log.info("JWT Body : "+body); prev.setResponseData(body,"UTF-8"); -- You are receiving this mail because: You are the assignee for the bug.
