scim2
scim2 copied to clipboard
what are the dependencies to import in the project for scimclient
what libs are needed to be imported for creating the scim2 client? Can you let me know the libs to add in the build path for below usage
Client client = ClientBuilder.newClient().register(OAuth2ClientSupport.feature("..bearerToken.."));; WebTarget target = client.target("https://example.com/scim/v2"); ScimService scimService = new ScimService(target);
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.inject</groupId>
<artifactId>jersey-hk2</artifactId>
<version>2.31</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.glassfish.jersey.security/oauth2-client -->
<dependency>
<groupId>org.glassfish.jersey.security</groupId>
<artifactId>oauth2-client</artifactId>
<version>2.31</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.unboundid.product.scim2/scim2-sdk-client -->
<dependency>
<groupId>com.unboundid.product.scim2</groupId>
<artifactId>scim2-sdk-client</artifactId>
<version>2.3.4</version>
</dependency>
Thanks @lance-purple-unboundid I added the mentioned libs in my classpath, but see a Exception in thread "main" java.lang.RuntimeException: java.lang.ClassNotFoundException: Provider org.glassfish.jersey.client.JerseyClientBuilder could not be instantiated: java.lang.reflect.InvocationTargetException Any idea what is wrong.