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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.keycloak.adapters.KeycloakDeployment
build
(InputStream is) Invokes KeycloakDeploymentBuilder.internalBuild with reflection to avoid rewriting source codestatic org.keycloak.representations.adapters.config.AdapterConfig
-
Constructor Details
-
KeycloakNuxeoDeployment
public KeycloakNuxeoDeployment()
-
-
Method Details
-
build
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)
-