Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fixed client install path

Christian Bauer41229d708181
diff --git a/manager/src/main/java/org/openremote/manager/server2/identity/Keycloak.java b/manager/src/main/java/org/openremote/manager/server2/identity/Keycloak.java
index 4d1c09ad1..12b2787c0 100644
--- a/manager/src/main/java/org/openremote/manager/server2/identity/Keycloak.java
+++ b/manager/src/main/java/org/openremote/manager/server2/identity/Keycloak.java
@@ -1,11 +1,9 @@
package org.openremote.manager.server2.identity;
import org.jboss.resteasy.annotations.Form;
-import org.keycloak.common.util.PemUtils;
import org.keycloak.representations.AccessTokenResponse;
import org.keycloak.representations.idm.*;
import org.openremote.manager.server.identity.ClientInstall;
-import rx.Observable;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;
@@ -25,6 +23,11 @@ public interface Keycloak {
@Produces(APPLICATION_JSON)
AccessTokenResponse getAccessToken(@PathParam("realm") String realm, @Form AuthForm authForm);
+ @GET
+ @Path("realms/{realm}/clients-registrations/install/{clientId}")
+ @Produces(APPLICATION_JSON)
+ ClientInstall getClientInstall(@PathParam("realm") String realm, @PathParam("clientId") String clientId);
+
@GET
@Path("admin/realms/{realm}")
@Produces(APPLICATION_JSON)
@@ -92,10 +95,4 @@ public interface Keycloak {
@Path("admin/realms/{realm}/users/{userId}/role-mappings/clients/{clientObjectId}")
@Consumes(APPLICATION_JSON)
Response addUserClientRoleMapping(@PathParam("realm") String realm, @PathParam("userId") String userId, @PathParam("clientObjectId") String clientObjectId, RoleRepresentation[] roleRepresentations);
-
- @GET
- @Path("admin/realms/{realm}/clients-registrations/install/{clientId}")
- @Produces(APPLICATION_JSON)
- ClientInstall getClientInstall(@PathParam("realm") String realm, @PathParam("clientId") String clientId);
-
}
\ No newline at end of file