From a507771f7ce347f57389954a13342f7bf750d297 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Mon, 18 May 2015 14:02:19 +0200 Subject: [PATCH] Fix demo dist --- distribution/demo-dist/assembly.xml | 8 --- distribution/demo-dist/pom.xml | 26 +++++++ .../demo-dist/src/main/keycloak-server.json | 72 +++++++++++++++++++ .../demo-dist/src/main/providers/README.txt | 2 + .../demo-dist/src/main/themes/README.txt | 3 + .../demo-dist/src/main/xslt/standalone.xsl | 72 +++++++++++++++++++ 6 files changed, 175 insertions(+), 8 deletions(-) create mode 100644 distribution/demo-dist/src/main/keycloak-server.json create mode 100644 distribution/demo-dist/src/main/providers/README.txt create mode 100644 distribution/demo-dist/src/main/themes/README.txt create mode 100755 distribution/demo-dist/src/main/xslt/standalone.xsl diff --git a/distribution/demo-dist/assembly.xml b/distribution/demo-dist/assembly.xml index b45f88196e..f00bfea444 100755 --- a/distribution/demo-dist/assembly.xml +++ b/distribution/demo-dist/assembly.xml @@ -14,7 +14,6 @@ keycloak **/*.sh - standalone/configuration/standalone.xml standalone/configuration/standalone-keycloak.xml @@ -36,11 +35,4 @@ - - - ${project.build.directory}/unpacked/wildfly-${wildfly.version}/standalone/configuration/standalone-keycloak.xml - keycloak/standalone/configuration - standalone.xml - - diff --git a/distribution/demo-dist/pom.xml b/distribution/demo-dist/pom.xml index c94687137a..1e8f6adcb8 100755 --- a/distribution/demo-dist/pom.xml +++ b/distribution/demo-dist/pom.xml @@ -115,6 +115,32 @@ + + org.codehaus.mojo + xml-maven-plugin + 1.0 + + + generate-resources + package + + transform + + + + + ${project.build.directory}/unpacked/wildfly-${wildfly.version}/standalone/configuration + src/main/xslt/standalone.xsl + + standalone.xml + + ${project.build.directory}/unpacked/wildfly-${wildfly.version}/standalone/configuration + + + + + + maven-assembly-plugin diff --git a/distribution/demo-dist/src/main/keycloak-server.json b/distribution/demo-dist/src/main/keycloak-server.json new file mode 100644 index 0000000000..9f0d03ea5d --- /dev/null +++ b/distribution/demo-dist/src/main/keycloak-server.json @@ -0,0 +1,72 @@ +{ + "admin": { + "realm": "master" + }, + + "eventsStore": { + "provider": "jpa", + "jpa": { + "exclude-events": [ "REFRESH_TOKEN" ] + } + }, + + "realm": { + "provider": "jpa" + }, + + "user": { + "provider": "jpa" + }, + + "userSessions": { + "provider" : "mem" + }, + + "realmCache": { + "provider": "mem" + }, + + "userCache": { + "provider": "mem", + "mem": { + "maxSize": 20000 + } + }, + + "timer": { + "provider": "basic" + }, + + "theme": { + "default": "keycloak", + "staticMaxAge": 2592000, + "cacheTemplates": true, + "cacheThemes": true, + "folder": { + "dir": "${jboss.server.config.dir}/themes" + } + }, + + "login": { + "provider": "freemarker" + }, + + "account": { + "provider": "freemarker" + }, + + "email": { + "provider": "freemarker" + }, + + "scheduled": { + "interval": 900 + }, + + "connectionsJpa": { + "default": { + "dataSource": "java:jboss/datasources/KeycloakDS", + "databaseSchema": "update" + } + } +} \ No newline at end of file diff --git a/distribution/demo-dist/src/main/providers/README.txt b/distribution/demo-dist/src/main/providers/README.txt new file mode 100644 index 0000000000..a6d523b43f --- /dev/null +++ b/distribution/demo-dist/src/main/providers/README.txt @@ -0,0 +1,2 @@ +Any provider implementation jars and libraries in this folder will be loaded by Keycloak. See the providers +section in the documentation for more details. \ No newline at end of file diff --git a/distribution/demo-dist/src/main/themes/README.txt b/distribution/demo-dist/src/main/themes/README.txt new file mode 100644 index 0000000000..705b73ac69 --- /dev/null +++ b/distribution/demo-dist/src/main/themes/README.txt @@ -0,0 +1,3 @@ +Themes to configure the look and feel of login pages and account management console. It's not recommended to +modify existing the built-in themes, instead you should create a new theme that extends a built-in theme. See the theme +section in the documentation for more details. \ No newline at end of file diff --git a/distribution/demo-dist/src/main/xslt/standalone.xsl b/distribution/demo-dist/src/main/xslt/standalone.xsl new file mode 100755 index 0000000000..5de72afe94 --- /dev/null +++ b/distribution/demo-dist/src/main/xslt/standalone.xsl @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + jdbc:h2:${jboss.server.data.dir}/keycloak;AUTO_SERVER=TRUE + h2 + + sa + sa + + + + + + + + + + + + true + auth + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file