diff --git a/README.md b/README.md index 561ae4a2..42141493 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![CI](https://github.com/descope/java-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/descope/java-sdk/actions/workflows/ci.yml) +[![CI](https://github.com/descope/descope-java/actions/workflows/ci.yml/badge.svg)](https://github.com/descope/descope-java/actions/workflows/ci.yml) # Descope SDK for Java @@ -107,7 +107,7 @@ The user will receive a code using the selected delivery method. Verify that cod ```java // Will throw DescopeException if there is an error with update try { - AuthenticationInfo info = descopeClient.getAuthenticationServices(config, client).getOTPService().verifyCode(DeliveryMethod.EMAIL, loginId, code); + AuthenticationInfo info = descopeClient.getAuthenticationServices(config, client).getOTPService().verifyCode(DeliveryMethod.EMAIL, loginId, code); } catch (DescopeException de) { // Handle the error } @@ -791,11 +791,11 @@ You can create, update, delete or load access keys, as well as search according AccessKeyService aks = descopeClient.getManagementServices(config, projectId, client).getAccessKeyService(); try { // Create a new access key with a name, delay time, and tenant - AccessKeyResponse resp = aks.create("access-key-1", 0, - Arrays.asList("Role names"), + AccessKeyResponse resp = aks.create("access-key-1", 0, + Arrays.asList("Role names"), Arrays.asList( - new Tenant("tenant-ID1", - "Key Tenant", + new Tenant("tenant-ID1", + "Key Tenant", Arrays.asList(new AssociatedTenant("tenant-ID2", Arrays.asList("Role names")))))); } catch (DescopeException de) { // Handle the error @@ -1017,8 +1017,8 @@ try { // Load all groups for the given user/login IDs (can be found in the user's JWT, used for sign-in) try { - List groups = gs.loadAllGroupsForMembers("tenant-id", - Arrays.asList("user-id-1", "user-id-2"), + List groups = gs.loadAllGroupsForMembers("tenant-id", + Arrays.asList("user-id-1", "user-id-2"), Arrays.asList("login-id-1", "login-id-2")); for (Group g : groups) { // Do something @@ -1105,7 +1105,7 @@ You can add custom claims to a valid JWT. ```java JwtService jwts = descopeClient.getManagementServices(config, projectId, client).getJwtService(); try { - String res = jwts.updateJWTWithCustomClaims("original-jwt", + String res = jwts.updateJWTWithCustomClaims("original-jwt", new HashMap() {{ put("custom-key1", "custom-value1"); put("custom-key2", "custom-value2"); @@ -1143,7 +1143,7 @@ try { ## Code Examples -You can find various usage examples in the [examples folder](https://github.com/descope/java-sdk/blob/main/examples). +You can find various usage examples in the [examples folder](https://github.com/descope/descope-java/blob/main/examples). ### Setup @@ -1307,4 +1307,4 @@ If you need help you can email [Descope Support](mailto:support@descope.com) ## License -The Descope SDK for Java is licensed for use under the terms and conditions of the [MIT license Agreement](https://github.com/descope/java-sdk/blob/main/LICENSE). +The Descope SDK for Java is licensed for use under the terms and conditions of the [MIT license Agreement](https://github.com/descope/descope-java/blob/main/LICENSE). diff --git a/pom.xml b/pom.xml index dfd2a742..d5bc1a71 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,10 @@ com.descope java-sdk 4.0.0 - 1.0 + 1.0.1 + ${project.groupId}:${project.artifactId} + Java library used to integrate with Descope. + https://github.com/descope/descope-java 1.18.28 11 @@ -135,6 +138,15 @@ ${project.groupId}.${project.artifactId}-${project.version} + + + + org.honton.chas + license-maven-plugin + 0.0.3 + + + org.apache.maven.plugins @@ -154,23 +166,6 @@ - - org.openrewrite.maven - rewrite-maven-plugin - 5.2.6 - - - org.openrewrite.staticanalysis.CodeCleanup - - - - - org.openrewrite.recipe - rewrite-static-analysis - 1.0.3 - - - maven-compiler-plugin org.apache.maven.plugins @@ -295,4 +290,4 @@ - \ No newline at end of file +