scim2 icon indicating copy to clipboard operation
scim2 copied to clipboard

what are the dependencies to import in the project for scimclient

Open anotherrohit opened this issue 4 years ago • 2 comments

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);

anotherrohit avatar Jun 20 '20 02:06 anotherrohit

<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>

lance-purple-unboundid avatar Jun 23 '20 21:06 lance-purple-unboundid

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.

anotherrohit avatar Jun 24 '20 02:06 anotherrohit