chore(quarkus-327): bump to Quarkus 3.27.3 LTS, make pom autonomous, fix UserServiceImpl tests (search → searchByUsername), rename deprecated config keys
Some checks failed
CI/CD Pipeline / pipeline (push) Failing after 1m57s
Some checks failed
CI/CD Pipeline / pipeline (push) Failing after 1m57s
This commit is contained in:
@@ -1,33 +1,33 @@
|
||||
package dev.lions.user.manager.config;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.quarkus.jackson.ObjectMapperCustomizer;
|
||||
import jakarta.inject.Singleton;
|
||||
import org.keycloak.representations.idm.RealmRepresentation;
|
||||
import org.keycloak.representations.idm.UserRepresentation;
|
||||
import org.keycloak.representations.idm.RoleRepresentation;
|
||||
|
||||
/**
|
||||
* Customizer pour Jackson afin d'ignorer les propriétés inconnues dans les
|
||||
* représentations Keycloak.
|
||||
* Cela évite les erreurs de désérialisation (comme bruteForceStrategy) lorsque
|
||||
* le serveur Keycloak
|
||||
* est plus récent que les bibliothèques clients.
|
||||
*/
|
||||
@Singleton
|
||||
public class KeycloakJacksonCustomizer implements ObjectMapperCustomizer {
|
||||
|
||||
@Override
|
||||
public void customize(ObjectMapper objectMapper) {
|
||||
// En plus de la configuration globale, on force les Mix-ins pour les classes
|
||||
// Keycloak critiques
|
||||
objectMapper.addMixIn(RealmRepresentation.class, IgnoreUnknownMixin.class);
|
||||
objectMapper.addMixIn(UserRepresentation.class, IgnoreUnknownMixin.class);
|
||||
objectMapper.addMixIn(RoleRepresentation.class, IgnoreUnknownMixin.class);
|
||||
}
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
abstract static class IgnoreUnknownMixin {
|
||||
}
|
||||
}
|
||||
package dev.lions.user.manager.config;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.quarkus.jackson.ObjectMapperCustomizer;
|
||||
import jakarta.inject.Singleton;
|
||||
import org.keycloak.representations.idm.RealmRepresentation;
|
||||
import org.keycloak.representations.idm.UserRepresentation;
|
||||
import org.keycloak.representations.idm.RoleRepresentation;
|
||||
|
||||
/**
|
||||
* Customizer pour Jackson afin d'ignorer les propriétés inconnues dans les
|
||||
* représentations Keycloak.
|
||||
* Cela évite les erreurs de désérialisation (comme bruteForceStrategy) lorsque
|
||||
* le serveur Keycloak
|
||||
* est plus récent que les bibliothèques clients.
|
||||
*/
|
||||
@Singleton
|
||||
public class KeycloakJacksonCustomizer implements ObjectMapperCustomizer {
|
||||
|
||||
@Override
|
||||
public void customize(ObjectMapper objectMapper) {
|
||||
// En plus de la configuration globale, on force les Mix-ins pour les classes
|
||||
// Keycloak critiques
|
||||
objectMapper.addMixIn(RealmRepresentation.class, IgnoreUnknownMixin.class);
|
||||
objectMapper.addMixIn(UserRepresentation.class, IgnoreUnknownMixin.class);
|
||||
objectMapper.addMixIn(RoleRepresentation.class, IgnoreUnknownMixin.class);
|
||||
}
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
abstract static class IgnoreUnknownMixin {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user