diff --git a/core/src/main/java/org/keycloak/Version.java b/core/src/main/java/org/keycloak/Version.java index a1efa649c2..7b2c94f00f 100755 --- a/core/src/main/java/org/keycloak/Version.java +++ b/core/src/main/java/org/keycloak/Version.java @@ -12,6 +12,7 @@ import java.util.Properties; */ public class Version { public static String VERSION; + public static String RESOURCES_VERSION; public static String BUILD_TIME; public static final String UNKNOWN = "UNKNOWN"; public static final Version SINGLETON; @@ -26,6 +27,7 @@ public class Version { props.load(is); VERSION = props.getProperty("version"); BUILD_TIME = props.getProperty("build-time"); + RESOURCES_VERSION = VERSION.toLowerCase(); } catch (IOException e) { VERSION=UNKNOWN; BUILD_TIME=UNKNOWN; diff --git a/core/src/main/java/org/keycloak/util/MimeTypeUtil.java b/core/src/main/java/org/keycloak/util/MimeTypeUtil.java new file mode 100644 index 0000000000..75270bd382 --- /dev/null +++ b/core/src/main/java/org/keycloak/util/MimeTypeUtil.java @@ -0,0 +1,29 @@ +package org.keycloak.util; + +import javax.activation.MimetypesFileTypeMap; +import java.io.File; + +/** + * @author Stian Thorgersen + */ +public class MimeTypeUtil { + + private static MimetypesFileTypeMap map = new MimetypesFileTypeMap(); + static { + map.addMimeTypes("text/css css CSS"); + map.addMimeTypes("text/javascript js JS"); + map.addMimeTypes("text/javascript js JS"); + map.addMimeTypes("image/png png PNG"); + map.addMimeTypes("image/svg+xml svg SVG"); + map.addMimeTypes("text/html html htm HTML HTM"); + } + + public static String getContentType(File file) { + return map.getContentType(file); + } + + public static String getContentType(String path) { + return map.getContentType(path); + } + +} diff --git a/distribution/appliance-dist/assembly.xml b/distribution/appliance-dist/assembly.xml index 37f59db68c..9001f26c8c 100755 --- a/distribution/appliance-dist/assembly.xml +++ b/distribution/appliance-dist/assembly.xml @@ -37,9 +37,6 @@ ${project.build.directory}/unpacked/modules keycloak/modules/system/layers/base - - org/picketlink/** - ${project.build.directory}/unpacked/deployments/auth-server.war/WEB-INF/classes/META-INF diff --git a/distribution/modules/build.xml b/distribution/modules/build.xml index 69eb308c3e..208e061b7e 100755 --- a/distribution/modules/build.xml +++ b/distribution/modules/build.xml @@ -1,136 +1,365 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/pom.xml b/distribution/modules/pom.xml index 60286e6fa1..bf5c7c0305 100755 --- a/distribution/modules/pom.xml +++ b/distribution/modules/pom.xml @@ -17,11 +17,22 @@ Keycloak JBoss Modules pom + + org.keycloak + keycloak-dependencies-server-all + ${project.version} + pom + org.keycloak keycloak-core ${project.version} + + org.keycloak + keycloak-core-jaxrs + ${project.version} + org.keycloak keycloak-adapter-core @@ -52,15 +63,17 @@ keycloak-subsystem ${project.version} + + org.keycloak.subsystem + keycloak-server + ${project.version} + war + org.keycloak keycloak-as7-subsystem ${project.version} - - org.bouncycastle - bcprov-jdk15on - org.wildfly.core wildfly-cli @@ -230,7 +243,7 @@ - org.keycloak + org.keycloak.subsystem keycloak-server ${project.version} war diff --git a/distribution/modules/src/main/resources/modules/com/google/zxing/core/main/module.xml b/distribution/modules/src/main/resources/modules/com/google/zxing/core/main/module.xml new file mode 100755 index 0000000000..78a8c49302 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/com/google/zxing/core/main/module.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/com/google/zxing/javase/main/module.xml b/distribution/modules/src/main/resources/modules/com/google/zxing/javase/main/module.xml new file mode 100755 index 0000000000..a08a5f9005 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/com/google/zxing/javase/main/module.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/de/idyl/winzipaes/main/module.xml b/distribution/modules/src/main/resources/modules/de/idyl/winzipaes/main/module.xml new file mode 100755 index 0000000000..7d13910ed5 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/de/idyl/winzipaes/main/module.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/net/iharder/base64/main/module.xml b/distribution/modules/src/main/resources/modules/net/iharder/base64/main/module.xml index 5f39dcfc2c..352ee9c498 100755 --- a/distribution/modules/src/main/resources/modules/net/iharder/base64/main/module.xml +++ b/distribution/modules/src/main/resources/modules/net/iharder/base64/main/module.xml @@ -1,26 +1,6 @@ - + diff --git a/distribution/modules/src/main/resources/modules/org/bouncycastle/main/module.xml b/distribution/modules/src/main/resources/modules/org/bouncycastle/main/module.xml deleted file mode 100755 index d0ec17b9e1..0000000000 --- a/distribution/modules/src/main/resources/modules/org/bouncycastle/main/module.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - diff --git a/distribution/modules/src/main/resources/modules/org/freemarker/main/module.xml b/distribution/modules/src/main/resources/modules/org/freemarker/main/module.xml new file mode 100755 index 0000000000..90b6464676 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/freemarker/main/module.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/jboss/aesh/main/module.xml b/distribution/modules/src/main/resources/modules/org/jboss/aesh/main/module.xml old mode 100644 new mode 100755 index 5b3cf8d454..6fe34f6f22 --- a/distribution/modules/src/main/resources/modules/org/jboss/aesh/main/module.xml +++ b/distribution/modules/src/main/resources/modules/org/jboss/aesh/main/module.xml @@ -1,26 +1,6 @@ - + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-account-api/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-account-api/main/module.xml new file mode 100755 index 0000000000..8432c99484 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-account-api/main/module.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-account-freemarker/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-account-freemarker/main/module.xml new file mode 100755 index 0000000000..1790a854d8 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-account-freemarker/main/module.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-adapter-core/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-adapter-core/main/module.xml index 2af6613ec2..1fee40c52e 100755 --- a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-adapter-core/main/module.xml +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-adapter-core/main/module.xml @@ -1,26 +1,6 @@ - + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-as7-adapter/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-as7-adapter/main/module.xml index e42ded8ab0..b5c6191821 100755 --- a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-as7-adapter/main/module.xml +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-as7-adapter/main/module.xml @@ -1,26 +1,6 @@ - + @@ -28,7 +8,7 @@ - + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-as7-subsystem/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-as7-subsystem/main/module.xml index 37603763e7..50f423478d 100755 --- a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-as7-subsystem/main/module.xml +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-as7-subsystem/main/module.xml @@ -1,26 +1,6 @@ - + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-broker-core/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-broker-core/main/module.xml new file mode 100755 index 0000000000..4d48a6e880 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-broker-core/main/module.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-broker-oidc/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-broker-oidc/main/module.xml new file mode 100755 index 0000000000..e2cac38839 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-broker-oidc/main/module.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-broker-saml/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-broker-saml/main/module.xml new file mode 100755 index 0000000000..f16869073d --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-broker-saml/main/module.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-connections-infinispan/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-connections-infinispan/main/module.xml new file mode 100755 index 0000000000..d6b86d5c1b --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-connections-infinispan/main/module.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-connections-jpa-liquibase/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-connections-jpa-liquibase/main/module.xml new file mode 100755 index 0000000000..f52bc84788 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-connections-jpa-liquibase/main/module.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-connections-jpa/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-connections-jpa/main/module.xml new file mode 100755 index 0000000000..070b3b0d70 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-connections-jpa/main/module.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-connections-mongo/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-connections-mongo/main/module.xml new file mode 100755 index 0000000000..5f4aa72140 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-connections-mongo/main/module.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-core-jaxrs/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-core-jaxrs/main/module.xml new file mode 100755 index 0000000000..6c99976670 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-core-jaxrs/main/module.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-core/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-core/main/module.xml index 095e41903c..c10c776c26 100755 --- a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-core/main/module.xml +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-core/main/module.xml @@ -1,26 +1,6 @@ - + @@ -30,9 +10,10 @@ - + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-email-api/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-email-api/main/module.xml new file mode 100755 index 0000000000..5a9c4f98f2 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-email-api/main/module.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-email-freemarker/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-email-freemarker/main/module.xml new file mode 100755 index 0000000000..23003490cc --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-email-freemarker/main/module.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-api/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-api/main/module.xml new file mode 100755 index 0000000000..af1ceeb9ff --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-api/main/module.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-email/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-email/main/module.xml new file mode 100755 index 0000000000..209116515d --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-email/main/module.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-jboss-logging/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-jboss-logging/main/module.xml new file mode 100755 index 0000000000..b786cfcf48 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-jboss-logging/main/module.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-jpa/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-jpa/main/module.xml new file mode 100755 index 0000000000..f902c4e1a1 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-jpa/main/module.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-mongo/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-mongo/main/module.xml new file mode 100755 index 0000000000..3e20796874 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-events-mongo/main/module.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-export-import-api/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-export-import-api/main/module.xml new file mode 100755 index 0000000000..b36c5cb7cf --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-export-import-api/main/module.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-export-import-dir/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-export-import-dir/main/module.xml new file mode 100755 index 0000000000..db4ee600b4 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-export-import-dir/main/module.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-export-import-single-file/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-export-import-single-file/main/module.xml new file mode 100755 index 0000000000..12dfd46f25 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-export-import-single-file/main/module.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-export-import-zip/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-export-import-zip/main/module.xml new file mode 100755 index 0000000000..1351976b3b --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-export-import-zip/main/module.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-forms-common-freemarker/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-forms-common-freemarker/main/module.xml new file mode 100755 index 0000000000..b3798a3a1f --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-forms-common-freemarker/main/module.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-forms-common-themes/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-forms-common-themes/main/module.xml new file mode 100755 index 0000000000..e9359dc22f --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-forms-common-themes/main/module.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-invalidation-cache-infinispan/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-invalidation-cache-infinispan/main/module.xml new file mode 100755 index 0000000000..45729feee2 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-invalidation-cache-infinispan/main/module.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-invalidation-cache-model/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-invalidation-cache-model/main/module.xml new file mode 100755 index 0000000000..5e222dbdd7 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-invalidation-cache-model/main/module.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-jboss-adapter-core/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-jboss-adapter-core/main/module.xml index 5ecc097b6e..b84e377136 100755 --- a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-jboss-adapter-core/main/module.xml +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-jboss-adapter-core/main/module.xml @@ -1,26 +1,6 @@ - + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-js-adapter/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-js-adapter/main/module.xml new file mode 100755 index 0000000000..5a2fdf085e --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-js-adapter/main/module.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-ldap-federation/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-ldap-federation/main/module.xml new file mode 100755 index 0000000000..5c81548dc9 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-ldap-federation/main/module.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-login-api/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-login-api/main/module.xml new file mode 100755 index 0000000000..8fcd75c8f0 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-login-api/main/module.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-login-freemarker/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-login-freemarker/main/module.xml new file mode 100755 index 0000000000..e7b2d3526b --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-login-freemarker/main/module.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-api/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-api/main/module.xml new file mode 100755 index 0000000000..30ce7636da --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-api/main/module.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-jpa/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-jpa/main/module.xml new file mode 100755 index 0000000000..5603e027aa --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-jpa/main/module.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-mongo/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-mongo/main/module.xml new file mode 100755 index 0000000000..2017d49455 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-mongo/main/module.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-sessions-infinispan/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-sessions-infinispan/main/module.xml new file mode 100755 index 0000000000..b17720e3fc --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-sessions-infinispan/main/module.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-sessions-jpa/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-sessions-jpa/main/module.xml new file mode 100755 index 0000000000..b26bce7757 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-sessions-jpa/main/module.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-sessions-mem/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-sessions-mem/main/module.xml new file mode 100755 index 0000000000..6e6b3472d1 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-sessions-mem/main/module.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-sessions-mongo/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-sessions-mongo/main/module.xml new file mode 100755 index 0000000000..8e562076af --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-model-sessions-mongo/main/module.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-picketlink-api/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-picketlink-api/main/module.xml new file mode 100755 index 0000000000..b51112b48a --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-picketlink-api/main/module.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-picketlink-ldap/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-picketlink-ldap/main/module.xml new file mode 100755 index 0000000000..429188fbb2 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-picketlink-ldap/main/module.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-saml-protocol/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-saml-protocol/main/module.xml new file mode 100755 index 0000000000..44f4d75106 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-saml-protocol/main/module.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-server/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-server/main/module.xml new file mode 100755 index 0000000000..a2efd4ac4a --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-server/main/module.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-services/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-services/main/module.xml new file mode 100755 index 0000000000..e98c558b5a --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-services/main/module.xml @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-core/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-core/main/module.xml new file mode 100755 index 0000000000..76b344d25d --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-core/main/module.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-facebook/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-facebook/main/module.xml new file mode 100755 index 0000000000..a3db93e3c7 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-facebook/main/module.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-github/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-github/main/module.xml new file mode 100755 index 0000000000..ad2223940e --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-github/main/module.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-google/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-google/main/module.xml new file mode 100755 index 0000000000..e1ba05b13a --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-google/main/module.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-twitter/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-twitter/main/module.xml new file mode 100755 index 0000000000..3f67efef05 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-social-twitter/main/module.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-timer-api/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-timer-api/main/module.xml new file mode 100755 index 0000000000..0140db4a67 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-timer-api/main/module.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-timer-basic/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-timer-basic/main/module.xml new file mode 100755 index 0000000000..6147e17e02 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-timer-basic/main/module.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-undertow-adapter/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-undertow-adapter/main/module.xml index 9d19d40521..8059df1748 100755 --- a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-undertow-adapter/main/module.xml +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-undertow-adapter/main/module.xml @@ -1,26 +1,6 @@ - + @@ -28,7 +8,7 @@ - + diff --git a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-wildfly-adapter/main/module.xml b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-wildfly-adapter/main/module.xml index a89bac4e34..4402e8a16f 100755 --- a/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-wildfly-adapter/main/module.xml +++ b/distribution/modules/src/main/resources/modules/org/keycloak/keycloak-wildfly-adapter/main/module.xml @@ -1,26 +1,6 @@ - + @@ -28,7 +8,7 @@ - + diff --git a/distribution/modules/src/main/resources/modules/org/liquibase/main/module.xml b/distribution/modules/src/main/resources/modules/org/liquibase/main/module.xml new file mode 100755 index 0000000000..23826c4b39 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/liquibase/main/module.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/mongodb/mongo-java-driver/main/module.xml b/distribution/modules/src/main/resources/modules/org/mongodb/mongo-java-driver/main/module.xml new file mode 100755 index 0000000000..d07ac5d9eb --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/mongodb/mongo-java-driver/main/module.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/distribution/modules/src/main/resources/modules/org/twitter4j/main/module.xml b/distribution/modules/src/main/resources/modules/org/twitter4j/main/module.xml new file mode 100755 index 0000000000..887a044a24 --- /dev/null +++ b/distribution/modules/src/main/resources/modules/org/twitter4j/main/module.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/distribution/pom.xml b/distribution/pom.xml index f7283649ca..dd6a947afb 100755 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -25,6 +25,7 @@ + subsystem-war modules as7-adapter-zip tomcat6-adapter-zip diff --git a/distribution/subsystem-war/pom.xml b/distribution/subsystem-war/pom.xml new file mode 100755 index 0000000000..18b0dfd5a3 --- /dev/null +++ b/distribution/subsystem-war/pom.xml @@ -0,0 +1,40 @@ + + + + keycloak-parent + org.keycloak + 1.2.0.Beta1-SNAPSHOT + ../../pom.xml + + + 4.0.0 + org.keycloak.subsystem + keycloak-server + war + Keycloak Subsystem Server WAR + + + + + + + auth-server + + + org.jboss.as.plugins + jboss-as-maven-plugin + + false + + + + org.wildfly.plugins + wildfly-maven-plugin + + false + + + + + diff --git a/distribution/subsystem-war/src/main/resources/META-INF/keycloak-server.json b/distribution/subsystem-war/src/main/resources/META-INF/keycloak-server.json new file mode 100755 index 0000000000..9f0d03ea5d --- /dev/null +++ b/distribution/subsystem-war/src/main/resources/META-INF/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/subsystem-war/src/main/webapp/WEB-INF/jboss-deployment-structure.xml b/distribution/subsystem-war/src/main/webapp/WEB-INF/jboss-deployment-structure.xml new file mode 100755 index 0000000000..356b953564 --- /dev/null +++ b/distribution/subsystem-war/src/main/webapp/WEB-INF/jboss-deployment-structure.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/distribution/subsystem-war/src/main/webapp/WEB-INF/web.xml b/distribution/subsystem-war/src/main/webapp/WEB-INF/web.xml new file mode 100755 index 0000000000..7228afe95f --- /dev/null +++ b/distribution/subsystem-war/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,52 @@ + + + + auth + + + Keycloak REST Interface + org.jboss.resteasy.plugins.server.servlet.HttpServlet30Dispatcher + + javax.ws.rs.Application + org.keycloak.services.resources.KeycloakApplication + + + resteasy.servlet.mapping.prefix + / + + 1 + true + + + + org.keycloak.services.listeners.KeycloakSessionDestroyListener + + + + Keycloak Client Connection Filter + org.keycloak.services.filters.ClientConnectionFilter + + + + Keycloak Session Management + org.keycloak.services.filters.KeycloakSessionServletFilter + + + + Keycloak Session Management + /* + + + + Keycloak Client Connection Filter + /* + + + + Keycloak REST Interface + /* + + diff --git a/events/api/src/main/java/org/keycloak/events/Errors.java b/events/api/src/main/java/org/keycloak/events/Errors.java index 94e5a7e653..7f2cb41137 100755 --- a/events/api/src/main/java/org/keycloak/events/Errors.java +++ b/events/api/src/main/java/org/keycloak/events/Errors.java @@ -37,7 +37,6 @@ public interface Errors { String FEDERATED_IDENTITY_EMAIL_EXISTS = "federated_identity_email_exists"; String FEDERATED_IDENTITY_USERNAME_EXISTS = "federated_identity_username_exists"; - String FEDERATED_IDENTITY_DISABLED_REGISTRATION = "federated_identity_disabled_registration"; String SSL_REQUIRED = "ssl_required"; String USER_SESSION_NOT_FOUND = "user_session_not_found"; diff --git a/examples/broker/saml-broker-authentication/saml-broker-authentication-realm.json b/examples/broker/saml-broker-authentication/saml-broker-authentication-realm.json index 1d8e07a99e..5433cf0eb0 100644 --- a/examples/broker/saml-broker-authentication/saml-broker-authentication-realm.json +++ b/examples/broker/saml-broker-authentication/saml-broker-authentication-realm.json @@ -38,7 +38,11 @@ "adminUrl": "/saml-broker-authentication", "baseUrl": "/saml-broker-authentication", "redirectUris": [ - "/saml-broker-authentication/*" + "/saml-broker-authentication/*", + "http://localhost:8080/saml-broker-authentication/*" + ], + "webOrigins": [ + "http://localhost:8080" ] } ], @@ -51,7 +55,7 @@ "updateProfileFirstLogin" : "true", "storeToken" : "true", "config": { - "singleSignOnServiceUrl": "http://localhost:8080/auth/realms/saml-broker-realm/protocol/saml", + "singleSignOnServiceUrl": "http://localhost:8081/auth/realms/saml-broker-realm/protocol/saml", "nameIDPolicyFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress", "signingCertificate": "MIIDdzCCAl+gAwIBAgIEbySuqTANBgkqhkiG9w0BAQsFADBsMRAwDgYDVQQGEwdVbmtub3duMRAwDgYDVQQIEwdVbmtub3duMRAwDgYDVQQHEwdVbmtub3duMRAwDgYDVQQKEwdVbmtub3duMRAwDgYDVQQLEwdVbmtub3duMRAwDgYDVQQDEwdVbmtub3duMB4XDTE1MDEyODIyMTYyMFoXDTE3MTAyNDIyMTYyMFowbDEQMA4GA1UEBhMHVW5rbm93bjEQMA4GA1UECBMHVW5rbm93bjEQMA4GA1UEBxMHVW5rbm93bjEQMA4GA1UEChMHVW5rbm93bjEQMA4GA1UECxMHVW5rbm93bjEQMA4GA1UEAxMHVW5rbm93bjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAII/K9NNvXi9IySl7+l2zY/kKrGTtuR4WdCI0xLW/Jn4dLY7v1/HOnV4CC4ecFOzhdNFPtJkmEhP/q62CpmOYOKApXk3tfmm2rwEz9bWprVxgFGKnbrWlz61Z/cjLAlhD3IUj2ZRBquYgSXQPsYfXo1JmSWF5pZ9uh1FVqu9f4wvRqY20ZhUN+39F+1iaBsoqsrbXypCn1HgZkW1/9D9GZug1c3vB4wg1TwZZWRNGtxwoEhdK6dPrNcZ+6PdanVilWrbQFbBjY4wz8/7IMBzssoQ7Usmo8F1Piv0FGfaVeJqBrcAvbiBMpk8pT+27u6p8VyIX6LhGvnxIwM07NByeSUCAwEAAaMhMB8wHQYDVR0OBBYEFFlcNuTYwI9W0tQ224K1gFJlMam0MA0GCSqGSIb3DQEBCwUAA4IBAQB5snl1KWOJALtAjLqD0mLPg1iElmZP82Lq1htLBt3XagwzU9CaeVeCQ7lTp+DXWzPa9nCLhsC3QyrV3/+oqNli8C6NpeqI8FqN2yQW/QMWN1m5jWDbmrWwtQzRUn/rh5KEb5m3zPB+tOC6e/2bV3QeQebxeW7lVMD0tSCviUg1MQf1l2gzuXQo60411YwqrXwk6GMkDOhFDQKDlMchO3oRbQkGbcP8UeiKAXjMeHfzbiBr+cWz8NYZEtxUEDYDjTpKrYCSMJBXpmgVJCZ00BswbksxJwaGqGMPpUKmCV671pf3m8nq3xyiHMDGuGwtbU+GE8kVx85menmp8+964nin", "wantAuthnRequestsSigned": true, diff --git a/examples/broker/saml-broker-authentication/saml-broker-realm.json b/examples/broker/saml-broker-authentication/saml-broker-realm.json index 016b843e3a..0fc06434df 100644 --- a/examples/broker/saml-broker-authentication/saml-broker-realm.json +++ b/examples/broker/saml-broker-authentication/saml-broker-realm.json @@ -28,10 +28,10 @@ }, "applications": [ { - "name": "http://localhost:8080/auth/", + "name": "http://localhost:8081/auth/", "enabled": true, "redirectUris": [ - "http://localhost:8080/auth/realms/saml-broker-authentication-realm/broker/saml-identity-provider" + "http://localhost:8081/auth/realms/saml-broker-authentication-realm/broker/saml-identity-provider" ], "attributes": { "saml.assertion.signature": "true", diff --git a/examples/broker/saml-broker-authentication/src/main/webapp/keycloak.json b/examples/broker/saml-broker-authentication/src/main/webapp/keycloak.json index 3ec9cb818f..dccd4a337f 100644 --- a/examples/broker/saml-broker-authentication/src/main/webapp/keycloak.json +++ b/examples/broker/saml-broker-authentication/src/main/webapp/keycloak.json @@ -2,7 +2,7 @@ "realm" : "saml-broker-authentication-realm", "resource" : "saml-broker-authentication", "realm-public-key" : "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrVrCuTtArbgaZzL1hvh0xtL5mc7o0NqPVnYXkLvgcwiC3BjLGw1tGEGoJaXDuSaRllobm53JBhjx33UNv+5z/UMG4kytBWxheNVKnL6GgqlNabMaFfPLPCF8kAgKnsi79NMo+n6KnSY8YeUmec/p2vjO2NjsSAVcWEQMVhJ31LwIDAQAB", - "auth-server-url": "http://localhost:8080/auth", + "auth-server-url": "http://localhost:8081/auth", "ssl-required" : "external", "public-client" : true } diff --git a/forms/common-themes/src/main/resources/theme/admin/base/index.ftl b/forms/common-themes/src/main/resources/theme/admin/base/index.ftl new file mode 100755 index 0000000000..e4a8a19ea4 --- /dev/null +++ b/forms/common-themes/src/main/resources/theme/admin/base/index.ftl @@ -0,0 +1,78 @@ + + + + + + Keycloak Admin Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ Loading... +
+
+
+ + + diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/index.html b/forms/common-themes/src/main/resources/theme/admin/base/resources/index.html deleted file mode 100755 index 6f56ee6f04..0000000000 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/index.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - Keycloak Admin Console - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- You will be logged off in seconds due to inactivity. - Click here to continue using this web page. -
- - - - - -
-
-
-
- Loading... -
-
-
- - - diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/app.js b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/app.js index 054c218279..b398b83c41 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/app.js +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/app.js @@ -6,13 +6,12 @@ consoleBaseUrl = consoleBaseUrl + "/console"; var configUrl = consoleBaseUrl + "/config"; var auth = {}; -var authUrl = window.location.href.substring(0, window.location.href.indexOf('/admin/')); var module = angular.module('keycloak', [ 'keycloak.services', 'keycloak.loaders', 'ui.bootstrap', 'ui.select2', 'angularFileUpload' ]); var resourceRequests = 0; var loadingTimer = -1; -angular.element(document).ready(function ($http) { +angular.element(document).ready(function () { var keycloakAuth = new Keycloak(configUrl); keycloakAuth.onAuthLogout = function() { @@ -58,27 +57,15 @@ module.factory('authInterceptor', function($q, Auth) { module.config([ '$routeProvider', function($routeProvider) { $routeProvider - /* .when('/create/realm', { - templateUrl : 'partials/realm-detail.html', - resolve : { - realm : function(RealmLoader) { - return {}; - } - }, - controller : 'RealmDetailCtrl' - }) - */ - - .when('/create/realm', { - templateUrl : 'partials/realm-create.html', + templateUrl : resourceUrl + '/partials/realm-create.html', resolve : { }, controller : 'RealmCreateCtrl' }) .when('/realms/:realm', { - templateUrl : 'partials/realm-detail.html', + templateUrl : resourceUrl + '/partials/realm-detail.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -90,7 +77,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmDetailCtrl' }) .when('/realms/:realm/login-settings', { - templateUrl : 'partials/realm-login-settings.html', + templateUrl : resourceUrl + '/partials/realm-login-settings.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -102,7 +89,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmLoginSettingsCtrl' }) .when('/realms/:realm/theme-settings', { - templateUrl : 'partials/realm-theme-settings.html', + templateUrl : resourceUrl + '/partials/realm-theme-settings.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -114,7 +101,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmThemeCtrl' }) .when('/realms/:realm/cache-settings', { - templateUrl : 'partials/realm-cache-settings.html', + templateUrl : resourceUrl + '/partials/realm-cache-settings.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -126,11 +113,11 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmCacheCtrl' }) .when('/realms', { - templateUrl : 'partials/realm-list.html', + templateUrl : resourceUrl + '/partials/realm-list.html', controller : 'RealmListCtrl' }) .when('/realms/:realm/token-settings', { - templateUrl : 'partials/realm-tokens.html', + templateUrl : resourceUrl + '/partials/realm-tokens.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -139,7 +126,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmTokenDetailCtrl' }) .when('/realms/:realm/keys-settings', { - templateUrl : 'partials/realm-keys.html', + templateUrl : resourceUrl + '/partials/realm-keys.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -148,7 +135,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmKeysDetailCtrl' }) .when('/realms/:realm/identity-provider-settings', { - templateUrl : 'partials/realm-identity-provider.html', + templateUrl : resourceUrl + '/partials/realm-identity-provider.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -166,7 +153,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmIdentityProviderCtrl' }) .when('/create/identity-provider/:realm/:provider_id', { - templateUrl : function(params){ return 'partials/realm-identity-provider-' + params.provider_id + '.html'; }, + templateUrl : function(params){ return resourceUrl + '/partials/realm-identity-provider-' + params.provider_id + '.html'; }, resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -202,7 +189,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmIdentityProviderCtrl' }) .when('/realms/:realm/default-roles', { - templateUrl : 'partials/realm-default-roles.html', + templateUrl : resourceUrl + '/partials/realm-default-roles.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -217,7 +204,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmDefaultRolesCtrl' }) .when('/realms/:realm/required-credentials', { - templateUrl : 'partials/realm-credentials.html', + templateUrl : resourceUrl + '/partials/realm-credentials.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -226,7 +213,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmRequiredCredentialsCtrl' }) .when('/realms/:realm/smtp-settings', { - templateUrl : 'partials/realm-smtp.html', + templateUrl : resourceUrl + '/partials/realm-smtp.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -235,7 +222,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmSMTPSettingsCtrl' }) .when('/realms/:realm/events', { - templateUrl : 'partials/realm-events.html', + templateUrl : resourceUrl + '/partials/realm-events.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -244,7 +231,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmEventsCtrl' }) .when('/realms/:realm/events-settings', { - templateUrl : 'partials/realm-events-config.html', + templateUrl : resourceUrl + '/partials/realm-events-config.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -259,7 +246,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmEventsConfigCtrl' }) .when('/create/user/:realm', { - templateUrl : 'partials/user-detail.html', + templateUrl : resourceUrl + '/partials/user-detail.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -271,7 +258,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'UserDetailCtrl' }) .when('/realms/:realm/users/:user', { - templateUrl : 'partials/user-detail.html', + templateUrl : resourceUrl + '/partials/user-detail.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -283,7 +270,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'UserDetailCtrl' }) .when('/realms/:realm/users/:user/user-credentials', { - templateUrl : 'partials/user-credentials.html', + templateUrl : resourceUrl + '/partials/user-credentials.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -295,7 +282,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'UserCredentialsCtrl' }) .when('/realms/:realm/users/:user/role-mappings', { - templateUrl : 'partials/role-mappings.html', + templateUrl : resourceUrl + '/partials/role-mappings.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -310,7 +297,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'UserRoleMappingCtrl' }) .when('/realms/:realm/users/:user/sessions', { - templateUrl : 'partials/user-sessions.html', + templateUrl : resourceUrl + '/partials/user-sessions.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -325,7 +312,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'UserSessionsCtrl' }) .when('/realms/:realm/users/:user/federated-identity', { - templateUrl : 'partials/user-federated-identity.html', + templateUrl : resourceUrl + '/partials/user-federated-identity.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -340,7 +327,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'UserFederatedIdentityCtrl' }) .when('/realms/:realm/users', { - templateUrl : 'partials/user-list.html', + templateUrl : resourceUrl + '/partials/user-list.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -350,7 +337,7 @@ module.config([ '$routeProvider', function($routeProvider) { }) .when('/create/role/:realm', { - templateUrl : 'partials/role-detail.html', + templateUrl : resourceUrl + '/partials/role-detail.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -368,7 +355,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RoleDetailCtrl' }) .when('/realms/:realm/roles/:role', { - templateUrl : 'partials/role-detail.html', + templateUrl : resourceUrl + '/partials/role-detail.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -386,7 +373,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RoleDetailCtrl' }) .when('/realms/:realm/roles', { - templateUrl : 'partials/role-list.html', + templateUrl : resourceUrl + '/partials/role-list.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -399,7 +386,7 @@ module.config([ '$routeProvider', function($routeProvider) { }) .when('/create/role/:realm/applications/:application', { - templateUrl : 'partials/application-role-detail.html', + templateUrl : resourceUrl + '/partials/application-role-detail.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -420,7 +407,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationRoleDetailCtrl' }) .when('/realms/:realm/applications/:application/roles/:role', { - templateUrl : 'partials/application-role-detail.html', + templateUrl : resourceUrl + '/partials/application-role-detail.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -441,7 +428,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationRoleDetailCtrl' }) .when('/realms/:realm/applications/:application/claims', { - templateUrl : 'partials/application-claims.html', + templateUrl : resourceUrl + '/partials/application-claims.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -456,7 +443,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationClaimsCtrl' }) .when('/realms/:realm/applications/:application/sessions', { - templateUrl : 'partials/application-sessions.html', + templateUrl : resourceUrl + '/partials/application-sessions.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -471,7 +458,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationSessionsCtrl' }) .when('/realms/:realm/applications/:application/credentials', { - templateUrl : 'partials/application-credentials.html', + templateUrl : resourceUrl + '/partials/application-credentials.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -483,7 +470,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationCredentialsCtrl' }) .when('/realms/:realm/applications/:application/identity-provider', { - templateUrl : 'partials/application-identity-provider.html', + templateUrl : resourceUrl + '/partials/application-identity-provider.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -495,7 +482,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationIdentityProviderCtrl' }) .when('/realms/:realm/applications/:application/clustering', { - templateUrl : 'partials/application-clustering.html', + templateUrl : resourceUrl + '/partials/application-clustering.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -507,7 +494,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationClusteringCtrl' }) .when('/register-node/realms/:realm/applications/:application/clustering', { - templateUrl : 'partials/application-clustering-node.html', + templateUrl : resourceUrl + '/partials/application-clustering-node.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -519,7 +506,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationClusteringNodeCtrl' }) .when('/realms/:realm/applications/:application/clustering/:node', { - templateUrl : 'partials/application-clustering-node.html', + templateUrl : resourceUrl + '/partials/application-clustering-node.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -531,7 +518,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationClusteringNodeCtrl' }) .when('/realms/:realm/applications/:application/saml/keys', { - templateUrl : 'partials/application-saml-keys.html', + templateUrl : resourceUrl + '/partials/application-saml-keys.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -543,7 +530,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationSamlKeyCtrl' }) .when('/realms/:realm/applications/:application/saml/:keyType/import/:attribute', { - templateUrl : 'partials/application-saml-key-import.html', + templateUrl : resourceUrl + '/partials/application-saml-key-import.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -555,7 +542,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationCertificateImportCtrl' }) .when('/realms/:realm/applications/:application/saml/:keyType/export/:attribute', { - templateUrl : 'partials/application-saml-key-export.html', + templateUrl : resourceUrl + '/partials/application-saml-key-export.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -567,7 +554,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationCertificateExportCtrl' }) .when('/realms/:realm/applications/:application/roles', { - templateUrl : 'partials/application-role-list.html', + templateUrl : resourceUrl + '/partials/application-role-list.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -582,7 +569,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationRoleListCtrl' }) .when('/realms/:realm/applications/:application/revocation', { - templateUrl : 'partials/application-revocation.html', + templateUrl : resourceUrl + '/partials/application-revocation.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -594,7 +581,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationRevocationCtrl' }) .when('/realms/:realm/applications/:application/scope-mappings', { - templateUrl : 'partials/application-scope-mappings.html', + templateUrl : resourceUrl + '/partials/application-scope-mappings.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -609,7 +596,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationScopeMappingCtrl' }) .when('/realms/:realm/applications/:application/installation', { - templateUrl : 'partials/application-installation.html', + templateUrl : resourceUrl + '/partials/application-installation.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -621,7 +608,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationInstallationCtrl' }) .when('/create/application/:realm', { - templateUrl : 'partials/application-detail.html', + templateUrl : resourceUrl + '/partials/application-detail.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -639,7 +626,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationDetailCtrl' }) .when('/realms/:realm/applications/:application', { - templateUrl : 'partials/application-detail.html', + templateUrl : resourceUrl + '/partials/application-detail.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -657,7 +644,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationDetailCtrl' }) .when('/realms/:realm/applications', { - templateUrl : 'partials/application-list.html', + templateUrl : resourceUrl + '/partials/application-list.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -673,7 +660,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'ApplicationListCtrl' }) .when('/import/application/:realm', { - templateUrl : 'partials/application-import.html', + templateUrl : resourceUrl + '/partials/application-import.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -688,7 +675,7 @@ module.config([ '$routeProvider', function($routeProvider) { // OAUTH Client .when('/realms/:realm/oauth-clients/:oauth/claims', { - templateUrl : 'partials/oauth-client-claims.html', + templateUrl : resourceUrl + '/partials/oauth-client-claims.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -703,7 +690,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'OAuthClientClaimsCtrl' }) .when('/realms/:realm/oauth-clients/:oauth/revocation', { - templateUrl : 'partials/oauth-client-revocation.html', + templateUrl : resourceUrl + '/partials/oauth-client-revocation.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -715,7 +702,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'OAuthClientRevocationCtrl' }) .when('/realms/:realm/oauth-clients/:oauth/credentials', { - templateUrl : 'partials/oauth-client-credentials.html', + templateUrl : resourceUrl + '/partials/oauth-client-credentials.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -727,7 +714,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'OAuthClientCredentialsCtrl' }) .when('/realms/:realm/oauth-clients/:oauth/scope-mappings', { - templateUrl : 'partials/oauth-client-scope-mappings.html', + templateUrl : resourceUrl + '/partials/oauth-client-scope-mappings.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -742,7 +729,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'OAuthClientScopeMappingCtrl' }) .when('/realms/:realm/oauth-clients/:oauth/installation', { - templateUrl : 'partials/oauth-client-installation.html', + templateUrl : resourceUrl + '/partials/oauth-client-installation.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -757,7 +744,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'OAuthClientInstallationCtrl' }) .when('/create/oauth-client/:realm', { - templateUrl : 'partials/oauth-client-detail.html', + templateUrl : resourceUrl + '/partials/oauth-client-detail.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -769,7 +756,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'OAuthClientDetailCtrl' }) .when('/realms/:realm/oauth-clients/:oauth', { - templateUrl : 'partials/oauth-client-detail.html', + templateUrl : resourceUrl + '/partials/oauth-client-detail.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -781,7 +768,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'OAuthClientDetailCtrl' }) .when('/realms/:realm/oauth-clients/:oauth/identity-provider', { - templateUrl : 'partials/oauth-client-identity-provider.html', + templateUrl : resourceUrl + '/partials/oauth-client-identity-provider.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -793,7 +780,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'OAuthClientIdentityProviderCtrl' }) .when('/realms/:realm/oauth-clients', { - templateUrl : 'partials/oauth-client-list.html', + templateUrl : resourceUrl + '/partials/oauth-client-list.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -806,11 +793,11 @@ module.config([ '$routeProvider', function($routeProvider) { }) .when('/', { - templateUrl : 'partials/home.html', + templateUrl : resourceUrl + '/partials/home.html', controller : 'HomeCtrl' }) .when('/mocks/:realm', { - templateUrl : 'partials/realm-detail_mock.html', + templateUrl : resourceUrl + '/partials/realm-detail_mock.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -822,7 +809,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmDetailCtrl' }) .when('/realms/:realm/sessions/revocation', { - templateUrl : 'partials/session-revocation.html', + templateUrl : resourceUrl + '/partials/session-revocation.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -831,7 +818,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmRevocationCtrl' }) .when('/realms/:realm/sessions/realm', { - templateUrl : 'partials/session-realm.html', + templateUrl : resourceUrl + '/partials/session-realm.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -843,7 +830,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmSessionStatsCtrl' }) .when('/realms/:realm/user-federation', { - templateUrl : 'partials/user-federation.html', + templateUrl : resourceUrl + '/partials/user-federation.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -852,7 +839,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'UserFederationCtrl' }) .when('/realms/:realm/user-federation/providers/ldap/:instance', { - templateUrl : 'partials/federated-ldap.html', + templateUrl : resourceUrl + '/partials/federated-ldap.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -864,7 +851,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'LDAPCtrl' }) .when('/create/user-federation/:realm/providers/ldap', { - templateUrl : 'partials/federated-ldap.html', + templateUrl : resourceUrl + '/partials/federated-ldap.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -876,7 +863,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'LDAPCtrl' }) .when('/realms/:realm/user-federation/providers/kerberos/:instance', { - templateUrl : 'partials/federated-kerberos.html', + templateUrl : resourceUrl + '/partials/federated-kerberos.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -891,7 +878,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'GenericUserFederationCtrl' }) .when('/create/user-federation/:realm/providers/kerberos', { - templateUrl : 'partials/federated-kerberos.html', + templateUrl : resourceUrl + '/partials/federated-kerberos.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -906,7 +893,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'GenericUserFederationCtrl' }) .when('/create/user-federation/:realm/providers/:provider', { - templateUrl : 'partials/federated-generic.html', + templateUrl : resourceUrl + '/partials/federated-generic.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -923,7 +910,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'GenericUserFederationCtrl' }) .when('/realms/:realm/user-federation/providers/:provider/:instance', { - templateUrl : 'partials/federated-generic.html', + templateUrl : resourceUrl + '/partials/federated-generic.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -938,7 +925,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'GenericUserFederationCtrl' }) .when('/realms/:realm/defense/headers', { - templateUrl : 'partials/defense-headers.html', + templateUrl : resourceUrl + '/partials/defense-headers.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -951,7 +938,7 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'DefenseHeadersCtrl' }) .when('/realms/:realm/defense/brute-force', { - templateUrl : 'partials/brute-force.html', + templateUrl : resourceUrl + '/partials/brute-force.html', resolve : { realm : function(RealmLoader) { return RealmLoader(); @@ -960,14 +947,14 @@ module.config([ '$routeProvider', function($routeProvider) { controller : 'RealmBruteForceCtrl' }) .when('/server-info', { - templateUrl : 'partials/server-info.html' + templateUrl : resourceUrl + '/partials/server-info.html' }) .when('/logout', { - templateUrl : 'partials/home.html', + templateUrl : resourceUrl + '/partials/home.html', controller : 'LogoutCtrl' }) .otherwise({ - templateUrl : 'partials/notfound.html' + templateUrl : resourceUrl + '/partials/notfound.html' }); } ]); @@ -1291,7 +1278,7 @@ module.directive('kcDropdown', function ($compile, Notifications) { }, restrict: 'EA', replace: true, - templateUrl: 'templates/kc-select.html', + templateUrl: resourceUrl + '/templates/kc-select.html', link: function(scope, element, attr) { scope.updateModel = function(item) { scope.kcModel = item; @@ -1345,7 +1332,7 @@ module.directive('kcNavigation', function ($compile, Notifications) { scope: true, restrict: 'E', replace: true, - templateUrl: 'templates/kc-navigation.html', + templateUrl: resourceUrl + '/templates/kc-navigation.html', compile: function(element, attrs){ if (!attrs.kcSocial) { @@ -1360,7 +1347,7 @@ module.directive('kcNavigationApplication', function () { scope: true, restrict: 'E', replace: true, - templateUrl: 'templates/kc-navigation-application.html', + templateUrl: resourceUrl + '/templates/kc-navigation-application.html', } }); @@ -1369,7 +1356,7 @@ module.directive('kcNavigationOauthClient', function () { scope: true, restrict: 'E', replace: true, - templateUrl: 'templates/kc-navigation-oauth-client.html', + templateUrl: resourceUrl + '/templates/kc-navigation-oauth-client.html', } }); diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/realm.js b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/realm.js index 52b313a3ae..140cbbe9d8 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/realm.js +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/realm.js @@ -4,6 +4,7 @@ module.controller('GlobalCtrl', function($scope, $http, Auth, WhoAmI, Current, $ }; $scope.authUrl = authUrl; + $scope.resourceUrl = resourceUrl; $scope.auth = Auth; $scope.serverInfo = ServerInfo.get(); $scope.serverInfoUpdate = function() { diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/services.js b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/services.js index 2c50ff74e0..d131b50146 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/services.js +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/services.js @@ -20,7 +20,7 @@ module.service('Dialog', function($modal) { }; return $modal.open({ - templateUrl: 'templates/kc-modal.html', + templateUrl: resourceUrl + '/templates/kc-modal.html', controller: controller, resolve: { title: function() { diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-claims.html b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-claims.html index a01bc3c73b..d23887cae5 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-claims.html +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-claims.html @@ -1,4 +1,4 @@ -
+
@@ -9,7 +9,7 @@

{{application.name}} Allowed Claims

-
+
diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-clustering-node.html b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-clustering-node.html index c456ac2792..74ef211f37 100644 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-clustering-node.html +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-clustering-node.html @@ -1,4 +1,4 @@ -
+
diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-clustering.html b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-clustering.html index 3d5c8500c5..985260fea5 100644 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-clustering.html +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-clustering.html @@ -1,4 +1,4 @@ -
+
diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-credentials.html b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-credentials.html index f5b33e400f..1d9ab8827a 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-credentials.html +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-credentials.html @@ -1,4 +1,4 @@ -
+
diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-detail.html b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-detail.html index 1f6b8385ac..a317db09e3 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-detail.html +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-detail.html @@ -1,4 +1,4 @@ -
+
diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-identity-provider.html b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-identity-provider.html index 94d79be4e4..57adcd3f35 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-identity-provider.html +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-identity-provider.html @@ -1,4 +1,4 @@ -
+
diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-import.html b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-import.html index 723bf011b3..4399d3c78e 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-import.html +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-import.html @@ -1,4 +1,4 @@ -
+