Skip to content

Commit

Permalink
fix(release): add missing metadata for release (#50)
Browse files Browse the repository at this point in the history
* fix(release): add missing metadata for release
  • Loading branch information
omercnet authored Jul 13, 2023
1 parent 6887979 commit a54b770
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 30 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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<Group> groups = gs.loadAllGroupsForMembers("tenant-id",
Arrays.asList("user-id-1", "user-id-2"),
List<Group> 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
Expand Down Expand Up @@ -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<String, Object>() {{
put("custom-key1", "custom-value1");
put("custom-key2", "custom-value2");
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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).
33 changes: 14 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
<groupId>com.descope</groupId>
<artifactId>java-sdk</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.0</version>
<version>1.0.1</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>Java library used to integrate with Descope.</description>
<url>https://github.com/descope/descope-java</url>
<properties>
<org.projectlombok.version>1.18.28</org.projectlombok.version>
<maven.compiler.source>11</maven.compiler.source>
Expand Down Expand Up @@ -135,6 +138,15 @@
</dependencies>
<build>
<finalName>${project.groupId}.${project.artifactId}-${project.version}</finalName>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.honton.chas</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>0.0.3</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -154,23 +166,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>5.2.6</version>
<configuration>
<activeRecipes>
<recipe>org.openrewrite.staticanalysis.CodeCleanup</recipe>
</activeRecipes>
</configuration>
<dependencies>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-static-analysis</artifactId>
<version>1.0.3</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -295,4 +290,4 @@
</build>
</profile>
</profiles>
</project>
</project>

0 comments on commit a54b770

Please sign in to comment.