Merge pull request #11 from mposolda/master

KEYCLOAK-3357 Mongo docs missing few providers
This commit is contained in:
Marek Posolda 2016-07-22 18:48:45 +02:00 committed by GitHub
commit b92adc672d

View file

@ -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 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. 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. to use Mongo.
[source,json] [source,json]
@ -27,7 +27,15 @@ to use Mongo.
}, },
"user": { "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": { "user": {
"provider": "mongo" "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: And at the end of the file add the snippet like this where you can configure details about your Mongo database: