.param("password", config.getPassword());
if(config.isPublicClient()){
form.param("client_id", config.getClientId());
} else {
target.register(new BasicAuthFilter(config.getClientId(), config.getClientSecret()));
}
TokenService tokenService = target.proxy(TokenService.class);
AccessTokenResponse response = tokenService.refreshToken(config.getRealm(), form.asMap());