From 32b1b798ce569010139b87059dc0d89111807498 Mon Sep 17 00:00:00 2001 From: mposolda Date: Fri, 22 Jul 2016 18:47:33 +0200 Subject: [PATCH] KEYCLOAK-3357 Mongo docs missing few providers --- topics/mongo.adoc | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/topics/mongo.adoc b/topics/mongo.adoc index 4f4e836650..95f2b84c73 100755 --- a/topics/mongo.adoc +++ b/topics/mongo.adoc @@ -9,7 +9,7 @@ To configure {{book.project.name}} to use Mongo, you need to edit the _keycloak- in standalone mode, this file is in the _.../standalone/configuration_ directory. If you are running in domain mode this file will live in the _.../domain/servers/{server name}/configuration_ directory. -Open the _keycloak-server.json_ file. Look for the following JSON snippet This is the area you will be modifying +Open the _keycloak-server.json_ file. Look for the following JSON snippets and replace all the _jpa_ providers with _mongo_ . This is the area you will be modifying to use Mongo. [source,json] @@ -27,7 +27,15 @@ to use Mongo. }, "user": { - "provider": "${keycloak.user.provider:jpa}" + "provider": "jpa" +}, + +"userSessionPersister": { + "provider": "jpa" +}, + +"authorizationPersister": { + "provider": "jpa" }, ---- @@ -50,6 +58,14 @@ Change that JSON snippet to use Mongo: "user": { "provider": "mongo" }, + +"userSessionPersister": { + "provider": "mongo" +}, + +"authorizationPersister": { + "provider": "mongo" +}, ---- And at the end of the file add the snippet like this where you can configure details about your Mongo database: