<div dir="ltr">Hi Dean <div>we are running Keycloak 2.1.0-Final version using mongo DB but it is not working, we are getting the error below </div><div><br></div><div>ERROR [org.keycloak.broker.oidc.<wbr>AbstractOAuth2IdentityProvider<wbr>] (default task-3) Failed to make identity provider oauth callback: java.lang.RuntimeException: Property 'databaseSchema' needs to be specified in the configuration<br></div><div><br></div><div>we have the correct configuration listed on the documentation, but it is not working </div><div><a href="https://keycloak.gitbooks.io/server-installation-and-configuration/content/v/2.1/topics/mongo.html" target="_blank">https://keycloak.gitbooks.io/<wbr>server-installation-and-<wbr>configuration/content/v/2.1/<wbr>topics/mongo.html</a><br></div><div><br></div><div>We also see that other person got the same error, </div><div><a href="http://lists.jboss.org/pipermail/keycloak-user/2016-May/006007.html" target="_blank">http://lists.jboss.org/<wbr>pipermail/keycloak-user/2016-<wbr>May/006007.html</a></div><div><br></div><div><br></div><div>This is our keycloak-server.json configuration </div><div><p style="font-size:12.8px">{</p><p style="font-size:12.8px"> "providers": [</p><p style="font-size:12.8px"> "classpath:${jboss.home.dir}/<wbr>providers/*"</p><p style="font-size:12.8px"> ],</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "admin": {</p><p style="font-size:12.8px"> "realm": "master"</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "eventsStore": {</p><p style="font-size:12.8px"> "provider": "mongo",</p><p style="font-size:12.8px"> "mongo": {</p><p style="font-size:12.8px"> "exclude-events": [ "REFRESH_TOKEN" ]</p><p style="font-size:12.8px"> }</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "realm": {</p><p style="font-size:12.8px"> "provider": "mongo"</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "user": {</p><p style="font-size:12.8px"> "provider": "mongo"</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "userCache": {</p><p style="font-size:12.8px"> "default" : {</p><p style="font-size:12.8px"> "enabled": true</p><p style="font-size:12.8px"> }</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "userSessionPersister": {</p><p style="font-size:12.8px"> "provider": "mongo"</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "authorizationPersister": {</p><p style="font-size:12.8px"> "provider": "mongo"</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "timer": {</p><p style="font-size:12.8px"> "provider": "basic"</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "theme": {</p><p style="font-size:12.8px"> "staticMaxAge": 2592000,</p><p style="font-size:12.8px"> "cacheTemplates": true,</p><p style="font-size:12.8px"> "cacheThemes": true,</p><p style="font-size:12.8px"> "folder": {</p><p style="font-size:12.8px"> "dir": "${jboss.home.dir}/themes"</p><p style="font-size:12.8px"> }</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "scheduled": {</p><p style="font-size:12.8px"> "interval": 900</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "connectionsHttpClient": {</p><p style="font-size:12.8px"> "default": {}</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "connectionsMongo": {</p><p style="font-size:12.8px"> "default": {</p><p style="font-size:12.8px"> "host": "10.0.22.56",</p><p style="font-size:12.8px"> "port": "27017",</p><p style="font-size:12.8px"> "db": "ondbook",</p><p style="font-size:12.8px"> "user": "appUser",</p><p style="font-size:12.8px"> "password" : "password",</p><p style="font-size:12.8px"> "connectionsPerHost": 100,</p><p style="font-size:12.8px"> "databaseSchema": "update",</p><p style="font-size:12.8px"> "schema": "2.1.0.Final"</p><p style="font-size:12.8px"> }</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "realmCache": {</p><p style="font-size:12.8px"> "default" : {</p><p style="font-size:12.8px"> "enabled": true</p><p style="font-size:12.8px"> }</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "connectionsInfinispan": {</p><p style="font-size:12.8px"> "provider": "default",</p><p style="font-size:12.8px"> "default": {</p><p style="font-size:12.8px"> "cacheContainer" : "java:comp/env/infinispan/<wbr>Keycloak"</p><p style="font-size:12.8px"> }</p><p style="font-size:12.8px"> }</p><p style="font-size:12.8px">}</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">Other problem is that we do not know why the logs is showing JPA connection when we config Mongo </p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">Caused by: java.lang.RuntimeException: Property 'databaseSchema' needs to be specified in the configuration</p><p style="font-size:12.8px">at org.keycloak.connections.jpa.<wbr>DefaultJpaConnectionProviderFa<wbr>ctory.lazyInit(<wbr>DefaultJpaConnectionProviderFa<wbr>ctory.java:132)</p><p style="font-size:12.8px">at org.keycloak.connections.jpa.<wbr>DefaultJpaConnectionProviderFa<wbr>ctory.create(<wbr>DefaultJpaConnectionProviderFa<wbr>ctory.java:62)</p><p style="font-size:12.8px"></p><p style="font-size:12.8px">at org.keycloak.connections.jpa.<wbr>DefaultJpaConnectionProviderFa<wbr>ctory.create(<wbr>DefaultJpaConnectionProviderFa<wbr>ctory.java:50)</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">Could you help us </p><p style="font-size:12.8px">Thanks </p><div class="gmail-yj6qo gmail-ajU" style="margin:2px 0px 0px;font-size:12.8px"></div></div></div>