Class KeycloakNuxeoDeployment
- java.lang.Object
-
- org.nuxeo.ecm.platform.ui.web.keycloak.KeycloakNuxeoDeployment
-
public class KeycloakNuxeoDeployment extends Object
This class is developed to overcome a Jackson version problem between Nuxeo and Keycloak.
Nuxeo uses Jackson version 1.8.x where Keycloak uses 1.9.x
Sadly theObjectMapper.setSerializationInclusion(com.fasterxml.jackson.annotation.JsonInclude.Include)
method is not in 1.8.x
ThenKeycloakNuxeoDeployment
is the same class asKeycloakDeploymentBuilder
, rewriting static methodKeycloakDeploymentBuilder.loadAdapterConfig(java.io.InputStream)
to avoid the use ofObjectMapper.setSerializationInclusion(com.fasterxml.jackson.annotation.JsonInclude.Include)
- Since:
- 7.4
-
-
Constructor Summary
Constructors Constructor Description KeycloakNuxeoDeployment()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.keycloak.adapters.KeycloakDeployment
build(InputStream is)
Invokes KeycloakDeploymentBuilder.internalBuild with reflection to avoid rewriting source codestatic org.keycloak.representations.adapters.config.AdapterConfig
loadAdapterConfig(InputStream is)
-
-
-
Method Detail
-
build
public static org.keycloak.adapters.KeycloakDeployment build(InputStream is)
Invokes KeycloakDeploymentBuilder.internalBuild with reflection to avoid rewriting source code- Parameters:
is
- the configuration fileInputStream
- Returns:
- the
KeycloakDeployment
corresponding to the configuration file
-
loadAdapterConfig
public static org.keycloak.representations.adapters.config.AdapterConfig loadAdapterConfig(InputStream is)
-
-