updated inizialitation and client
This commit is contained in:
parent
f969b88376
commit
0d55eb662a
23
pom.xml
23
pom.xml
|
@ -84,6 +84,21 @@
|
||||||
<artifactId>common-smartgears</artifactId>
|
<artifactId>common-smartgears</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.core</groupId>
|
||||||
|
<artifactId>common-scope</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.core</groupId>
|
||||||
|
<artifactId>common-scope-maps</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.core</groupId>
|
||||||
|
<artifactId>common-encryption</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- Required for Enunciate plugin -->
|
<!-- Required for Enunciate plugin -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -130,7 +145,7 @@
|
||||||
<finalName>${project.artifactId}</finalName>
|
<finalName>${project.artifactId}</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- Sphinx plugin' -->
|
<!-- Sphinx plugin' -->
|
||||||
<plugin>
|
<!-- <plugin>
|
||||||
<groupId>kr.motd.maven</groupId>
|
<groupId>kr.motd.maven</groupId>
|
||||||
<artifactId>sphinx-maven-plugin</artifactId>
|
<artifactId>sphinx-maven-plugin</artifactId>
|
||||||
<version>2.10.0</version>
|
<version>2.10.0</version>
|
||||||
|
@ -149,11 +164,11 @@
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin> -->
|
||||||
|
|
||||||
|
|
||||||
<!-- Enunciate Maven plugin -->
|
<!-- Enunciate Maven plugin -->
|
||||||
<plugin>
|
<!-- <plugin>
|
||||||
<groupId>com.webcohesion.enunciate</groupId>
|
<groupId>com.webcohesion.enunciate</groupId>
|
||||||
<artifactId>enunciate-maven-plugin</artifactId>
|
<artifactId>enunciate-maven-plugin</artifactId>
|
||||||
<version>${enunciate.version}</version>
|
<version>${enunciate.version}</version>
|
||||||
|
@ -165,7 +180,7 @@
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin> -->
|
||||||
<!-- Copy Enunciate Documentation from your-application/api-docs
|
<!-- Copy Enunciate Documentation from your-application/api-docs
|
||||||
into your war -->
|
into your war -->
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
|
@ -3,6 +3,7 @@ package org.gcube.idm;
|
||||||
import javax.ws.rs.ApplicationPath;
|
import javax.ws.rs.ApplicationPath;
|
||||||
|
|
||||||
import org.gcube.idm.rest.GreetingsRest;
|
import org.gcube.idm.rest.GreetingsRest;
|
||||||
|
import org.gcube.idm.rest.UsersRest;
|
||||||
import org.gcube.smartgears.annotations.ManagedBy;
|
import org.gcube.smartgears.annotations.ManagedBy;
|
||||||
import org.glassfish.jersey.server.ResourceConfig;
|
import org.glassfish.jersey.server.ResourceConfig;
|
||||||
|
|
||||||
|
@ -20,6 +21,7 @@ public class IdentityManagerResourceInitializer extends ResourceConfig {
|
||||||
|
|
||||||
public IdentityManagerResourceInitializer() {
|
public IdentityManagerResourceInitializer() {
|
||||||
packages(GreetingsRest.class.getPackage().toString());
|
packages(GreetingsRest.class.getPackage().toString());
|
||||||
|
packages(UsersRest.class.getPackage().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,8 @@ public class KeycloackApiClient {
|
||||||
this.context = context;
|
this.context = context;
|
||||||
this.kclient = kclient;
|
this.kclient = kclient;
|
||||||
this.realmName = realmName;
|
this.realmName = realmName;
|
||||||
// ClientsResource clients = kclient.realm(realmName).clients();
|
//ClientsResource clients = kclient.realm(realmName).clients().get*
|
||||||
|
//clients.get(context);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,18 +2,23 @@
|
||||||
<!DOCTYPE xml>
|
<!DOCTYPE xml>
|
||||||
<web-app>
|
<web-app>
|
||||||
<servlet>
|
<servlet>
|
||||||
<servlet-name>org.gcube.acme.ResourceInitializer</servlet-name>
|
<servlet-name>org.gcube.idm.IdentityManagerResourceInitializer</servlet-name>
|
||||||
</servlet>
|
</servlet>
|
||||||
<servlet-mapping>
|
<servlet-mapping>
|
||||||
<servlet-name>default</servlet-name>
|
<servlet-name>default</servlet-name>
|
||||||
<url-pattern>/docs/*</url-pattern>
|
<url-pattern>/docs/*</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
<servlet-mapping>
|
<servlet-mapping>
|
||||||
<servlet-name>default</servlet-name>
|
<servlet-name>default</servlet-name>
|
||||||
<url-pattern>/api-docs/*</url-pattern>
|
<url-pattern>/api-docs/*</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
<servlet-mapping>
|
<servlet-mapping>
|
||||||
<servlet-name>org.gcube.acme.ResourceInitializer</servlet-name>
|
<servlet-name>org.gcube.idm.IdentityManagerResourceInitializer</servlet-name>
|
||||||
<url-pattern>/*</url-pattern>
|
<url-pattern>/*</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
|
|
||||||
|
|
||||||
|
<welcome-file-list>
|
||||||
|
<welcome-file>index.html</welcome-file>
|
||||||
|
</welcome-file-list>
|
||||||
</web-app>
|
</web-app>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
it works!!!
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue