From 080c682769e59636f5ba390b7a806d9b52f06322 Mon Sep 17 00:00:00 2001 From: Yang Xie Date: Sun, 11 Apr 2021 14:55:49 +0900 Subject: [PATCH] KEYCLOAK-17693 add config for loading custom IdMapper class --- .../topics/oidc/java/servlet-filter-adapter.adoc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/securing_apps/topics/oidc/java/servlet-filter-adapter.adoc b/securing_apps/topics/oidc/java/servlet-filter-adapter.adoc index 503a87f49a..6fa222318e 100644 --- a/securing_apps/topics/oidc/java/servlet-filter-adapter.adoc +++ b/securing_apps/topics/oidc/java/servlet-filter-adapter.adoc @@ -52,6 +52,16 @@ Note that you should configure your client in the {project_name} Admin Console w The Admin URL will make callbacks to the Admin URL to do things like backchannel logout. So, the Admin URL in this example should be `http[s]://hostname/{context-root}/keycloak`. +If you need to customize the session ID mapper, you can configure the fully qualified name of the class in the Filter init-param keycloak.config.idMapper. Session ID mapper is a mapper that is used to map user IDs and session IDs. By default org.keycloak.adapters.spi.InMemorySessionIdMapper is configured. + +[source,xml] +---- + + keycloak.config.idMapper + org.keycloak.adapters.spi.InMemorySessionIdMapper + +---- + The {project_name} filter has the same configuration parameters as the other adapters except you must define them as filter init params instead of context params. To use this filter, include this maven artifact in your WAR poms: