diff --git a/pom.xml b/pom.xml index 3b21f70..8829861 100644 --- a/pom.xml +++ b/pom.xml @@ -84,6 +84,21 @@ common-smartgears + + org.gcube.core + common-scope + + + + + org.gcube.core + common-scope-maps + + + + org.gcube.core + common-encryption + @@ -130,7 +145,7 @@ ${project.artifactId} - + - + diff --git a/src/main/java/org/gcube/idm/IdentityManagerResourceInitializer.java b/src/main/java/org/gcube/idm/IdentityManagerResourceInitializer.java index 6b873a8..8cdf61a 100644 --- a/src/main/java/org/gcube/idm/IdentityManagerResourceInitializer.java +++ b/src/main/java/org/gcube/idm/IdentityManagerResourceInitializer.java @@ -3,6 +3,7 @@ package org.gcube.idm; import javax.ws.rs.ApplicationPath; import org.gcube.idm.rest.GreetingsRest; +import org.gcube.idm.rest.UsersRest; import org.gcube.smartgears.annotations.ManagedBy; import org.glassfish.jersey.server.ResourceConfig; @@ -20,6 +21,7 @@ public class IdentityManagerResourceInitializer extends ResourceConfig { public IdentityManagerResourceInitializer() { packages(GreetingsRest.class.getPackage().toString()); + packages(UsersRest.class.getPackage().toString()); } } diff --git a/src/main/java/org/gcube/keycloack/KeycloackApiClient.java b/src/main/java/org/gcube/keycloack/KeycloackApiClient.java index 20df1f5..c9080ad 100644 --- a/src/main/java/org/gcube/keycloack/KeycloackApiClient.java +++ b/src/main/java/org/gcube/keycloack/KeycloackApiClient.java @@ -17,7 +17,8 @@ public class KeycloackApiClient { this.context = context; this.kclient = kclient; this.realmName = realmName; - // ClientsResource clients = kclient.realm(realmName).clients(); + //ClientsResource clients = kclient.realm(realmName).clients().get* + //clients.get(context); } } diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index ef9a39b..c67a8f4 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -2,18 +2,23 @@ - org.gcube.acme.ResourceInitializer - - + org.gcube.idm.IdentityManagerResourceInitializer + + default /docs/* - + default /api-docs/* - - org.gcube.acme.ResourceInitializer - /* - + + org.gcube.idm.IdentityManagerResourceInitializer + /* + + + + + index.html + \ No newline at end of file diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html new file mode 100644 index 0000000..37e86fe --- /dev/null +++ b/src/main/webapp/index.html @@ -0,0 +1,6 @@ + + + it works!!! + + + \ No newline at end of file