Affects: 5.3.13
I'm using fusionauth-jwt, when I override configureMessageConverters like this:
@Override
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new Hibernate5Module());
mapper.registerModule(new JavaTimeModule());
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
converters.add(new MappingJackson2HttpMessageConverter(mapper));
}
The fusionauth-jwt verifier throws this exception:
io.fusionauth.jwt.InvalidJWTException: The encoded JWT is not properly Base64 encoded.
I report the problem to fusionauth-jwt, but they say this is not from their side. Then I tried another JWT library called java-jwt, but the problem persist and it says:
The input is not a valid base64 encoded string.
Comment From: rasa-app
I found the problem, the token was enclosed in double quote. Sorry to bother