diff --git a/distribution/demo-dist/pom.xml b/distribution/demo-dist/pom.xml index 73f1622493..a9bed2a02c 100755 --- a/distribution/demo-dist/pom.xml +++ b/distribution/demo-dist/pom.xml @@ -34,6 +34,13 @@ keycloak-demo-${project.version} + + org.apache.maven.plugins + maven-deploy-plugin + + true + + org.apache.maven.plugins maven-dependency-plugin diff --git a/distribution/subsystem-war/pom.xml b/distribution/subsystem-war/pom.xml index a86119090d..20427b3071 100755 --- a/distribution/subsystem-war/pom.xml +++ b/distribution/subsystem-war/pom.xml @@ -18,6 +18,13 @@ auth-server + + org.apache.maven.plugins + maven-deploy-plugin + + true + + org.jboss.as.plugins jboss-as-maven-plugin diff --git a/examples/admin-client/src/main/webapp/index.jsp b/examples/admin-client/src/main/webapp/index.jsp index 980f1962ec..47b52c15e1 100644 --- a/examples/admin-client/src/main/webapp/index.jsp +++ b/examples/admin-client/src/main/webapp/index.jsp @@ -1,6 +1,6 @@ <%@ page import="org.keycloak.admin.client.Keycloak" %> <%@ page import="org.keycloak.admin.client.resource.ClientsResource" %> -<%@ page import="org.keycloak.representations.idm.ApplicationRepresentation" %> +<%@ page import="org.keycloak.representations.idm.ClientRepresentation" %> <%@ page import="org.keycloak.util.UriUtils" %> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %> <%@ page session="false" %> @@ -13,16 +13,16 @@ String authServer = UriUtils.getOrigin(request.getRequestURL().toString()) + "/auth"; Keycloak keycloak = Keycloak.getInstance(authServer, "example", "examples-admin-client", "password", "examples-admin-client", "password"); - ClientsResource applications = keycloak.realm("example").applications(); + ClientsResource clients = keycloak.realm("example").clients(); out.println("

Applications

"); out.println("
    "); - for (ApplicationRepresentation app : applications.findAll()) { + for (ClientRepresentation client : clients.findAll()) { out.println("\t
  • "); - if (app.getBaseUrl() != null) { - out.println("\t\t" + app.getName() + ""); + if (client.getBaseUrl() != null) { + out.println("\t\t" + client.getClientId() + ""); } else { - out.println("\t\t" + app.getName()); + out.println("\t\t" + client.getClientId()); } out.println("
  • "); }