Class KeycloakNuxeoDeployment
java.lang.Object
org.nuxeo.ecm.platform.ui.web.keycloak.KeycloakNuxeoDeployment
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 the
Then
Nuxeo uses Jackson version 1.8.x where Keycloak uses 1.9.x
Sadly the
ObjectMapper.setSerializationInclusion(com.fasterxml.jackson.annotation.JsonInclude.Include) method is not in 1.8.xThen
KeycloakNuxeoDeployment is the same class as KeycloakDeploymentBuilder, rewriting static method
 KeycloakDeploymentBuilder.loadAdapterConfig(java.io.InputStream) to avoid the use of
 ObjectMapper.setSerializationInclusion(com.fasterxml.jackson.annotation.JsonInclude.Include)- Since:
- 7.4
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic org.keycloak.adapters.KeycloakDeploymentbuild(InputStream is) Invokes KeycloakDeploymentBuilder.internalBuild with reflection to avoid rewriting source codestatic org.keycloak.representations.adapters.config.AdapterConfig
- 
Constructor Details- 
KeycloakNuxeoDeploymentpublic KeycloakNuxeoDeployment()
 
- 
- 
Method Details- 
buildInvokes KeycloakDeploymentBuilder.internalBuild with reflection to avoid rewriting source code- Parameters:
- is- the configuration file- InputStream
- Returns:
- the KeycloakDeploymentcorresponding to the configuration file
 
- 
loadAdapterConfigpublic static org.keycloak.representations.adapters.config.AdapterConfig loadAdapterConfig(InputStream is) 
 
-