feat(server-impl): refactoring resources JAX-RS, corrections AuditService/SyncService/UserService, ajout entites Sync et scripts Docker
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -4,17 +4,19 @@ import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.quarkus.jackson.ObjectMapperCustomizer;
|
||||
import jakarta.inject.Singleton;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* Configuration Jackson pour ignorer les propriétés inconnues
|
||||
* Nécessaire pour la compatibilité avec les versions récentes de Keycloak
|
||||
* Configure Jackson globally to ignore unknown JSON properties.
|
||||
* This is required for forward compatibility with newer Keycloak versions (e.g. cpuInfo field).
|
||||
*/
|
||||
@Singleton
|
||||
@Slf4j
|
||||
public class JacksonConfig implements ObjectMapperCustomizer {
|
||||
|
||||
@Override
|
||||
public void customize(ObjectMapper objectMapper) {
|
||||
// Ignorer les propriétés inconnues pour compatibilité Keycloak
|
||||
log.info("### LIONS: Applying Jackson configuration for Keycloak compatibility ###");
|
||||
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user