I have code to check JWT:
checkJwt( authorization ){ AsyncResult<User> ar ->
if( ar ){
rc.user = ar.result()
rc.next()
}else{
log.warn "checkJwt failed: ${ar.cause()}"
}
void checkJwt( String authorization, Handler<AsyncResult<User>> handler ) {
jwtAuth.authenticate( [ jwt:authorization.substring( 7 ) ] as JsonObject, handler )
}
in 4.0.2 it ran just fine.
after updating to 4.0.3, the following exception started to appear:
checkJwt failed: io.vertx.ext.auth.authentication.CredentialValidationException: token cannot be null or empty
The String I'm trying to decode is defenitely not empty.
Any invisible breaking changes?