Skip to content

Commit

Permalink
Merge branch 'release-1.1.24'
Browse files Browse the repository at this point in the history
  • Loading branch information
max402 committed May 3, 2024
2 parents 076b090 + f9c74e1 commit 6b1f660
Show file tree
Hide file tree
Showing 32 changed files with 67 additions and 89 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ name: Release
jobs:
release_workflow:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Step 1 - Checkout repository code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion keycloak-storage-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.adorsys.sts</groupId>
<artifactId>secure-token-service</artifactId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>

<artifactId>keycloak-storage-provider</artifactId>
Expand Down
21 changes: 3 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>de.adorsys.sts</groupId>
<artifactId>secure-token-service</artifactId>
<version>1.1.23</version>
<version>1.1.24</version>
<packaging>pom</packaging>

<name>SecureTokenService</name>
Expand Down Expand Up @@ -49,14 +49,13 @@
<maven.build-timestamp>${maven.build.timestamp}</maven.build-timestamp>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spring-boot.version>3.2.4</spring-boot.version>
<keystore-management.version>0.0.10</keystore-management.version>
<spring-boot.version>3.2.5</spring-boot.version>
<keystore-management.version>0.0.11</keystore-management.version>
<shedlock.version>5.3.0</shedlock.version>
<openapi.version>2.4.0</openapi.version>
<swagger-annotations.version>2.2.20</swagger-annotations.version>
<jackson.version>2.15.1</jackson.version>
<jackson-databind.version>2.15.1</jackson-databind.version>
<bouncycastle.version>1.64</bouncycastle.version>
<keycloak.version>22.0.4</keycloak.version>
<surefire.version>3.0.0-M4</surefire.version>
<jacoco.version>0.8.8</jacoco.version>
Expand Down Expand Up @@ -275,20 +274,6 @@
<version>${nimbus-jose-jwt.version}</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>${bouncycastle.version}</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk15on -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>${bouncycastle.version}</version>
</dependency>

<dependency>
<groupId>net.javacrumbs.shedlock</groupId>
<artifactId>shedlock-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker_push.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS
echo "$DOCKERHUB_PASS" | docker login -u $DOCKERHUB_USER --password-stdin

# ----- push sts-example -----

Expand Down
2 changes: 1 addition & 1 deletion sts-client-example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sts-client-example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sts-client-example",
"version": "1.1.23",
"version": "1.1.24",
"license": "MIT",
"scripts": {
"ng": "npx ng ",
Expand Down
2 changes: 1 addition & 1 deletion sts-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys.sts</groupId>
<artifactId>secure-token-service</artifactId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>

<artifactId>sts-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion sts-e2e-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

public class AuthServerTestable extends LoggingAuthServer {

public AuthServerTestable(String name, String issUrl, String jwksUrl, int refreshIntervalSeconds) {
super(name, issUrl, jwksUrl, refreshIntervalSeconds);
public AuthServerTestable(String name, String issUrl, String jwksUrl, int refreshIntervalSeconds, String keyCloakUrl) {
super(name, issUrl, jwksUrl, refreshIntervalSeconds, keyCloakUrl);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ private AuthServer mapFromProperties(AuthServerConfigurationProperties.AuthServe
properties.getName(),
properties.getIssUrl(),
properties.getJwksUrl(),
properties.getRefreshIntervalSeconds()
properties.getRefreshIntervalSeconds(),
properties.getKeyCloakUrl()
);
}
}
2 changes: 1 addition & 1 deletion sts-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 2 additions & 0 deletions sts-example/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ sts:
- name: local keycloak
iss-url : http://localhost:8080/auth/realms/moped
jwks-url: http://localhost:8080/auth/realms/moped/protocol/openid-connect/certs
key-cloak-url: http://localhost:8080/auth/realms/moped
- name: secret-server
iss-url : http://localhost:8885
jwks-url: http://localhost:8885/pop
key-cloak-url: http://localhost:8085/realms/moped
resource-servers:
- audience: sts
jwks-url: http://localhost:8888/pop
Expand Down
2 changes: 1 addition & 1 deletion sts-keymanagement/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion sts-keymanagement/sts-keymanagement-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>sts-keymanagement</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion sts-keymanagement/sts-keymanagement-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>sts-keymanagement</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion sts-persistence-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion sts-persistence-mongo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion sts-pop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion sts-resource-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion sts-secret-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>


Expand Down
2 changes: 1 addition & 1 deletion sts-secret/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion sts-server-info/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion sts-service-component-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion sts-simple-encryption/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion sts-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package de.adorsys.sts.token.authentication;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
Expand All @@ -22,42 +24,13 @@ public void setAuthservers(List<AuthServerProperties> authservers) {
this.authservers = authservers;
}

@Getter
@Setter
public static class AuthServerProperties {
private String name;
private String issUrl;
private String jwksUrl;
private Integer refreshIntervalSeconds = 600;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getIssUrl() {
return issUrl;
}

public void setIssUrl(String issUrl) {
this.issUrl = issUrl;
}

public String getJwksUrl() {
return jwksUrl;
}

public void setJwksUrl(String jwksUrl) {
this.jwksUrl = jwksUrl;
}

public Integer getRefreshIntervalSeconds() {
return refreshIntervalSeconds;
}

public void setRefreshIntervalSeconds(Integer refreshIntervalSeconds) {
this.refreshIntervalSeconds = refreshIntervalSeconds;
}
private String keyCloakUrl;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ private AuthServer mapFromProperties(AuthServerConfigurationProperties.AuthServe
properties.getName(),
properties.getIssUrl(),
properties.getJwksUrl(),
properties.getRefreshIntervalSeconds()
properties.getRefreshIntervalSeconds(),
properties.getKeyCloakUrl()
);
}
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
package de.adorsys.sts.token.authentication;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.nimbusds.jose.jwk.JWK;
import de.adorsys.sts.tokenauth.AuthServer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

public class LoggingAuthServer extends AuthServer {

public LoggingAuthServer(String name, String issUrl, String jwksUrl, int refreshIntervalSeconds) {
super(name, issUrl, jwksUrl, refreshIntervalSeconds);
public LoggingAuthServer(String name, String issUrl, String jwksUrl, int refreshIntervalSeconds, String keyCloakUrl) {
super(name, issUrl, jwksUrl, refreshIntervalSeconds, keyCloakUrl);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion sts-token-auth/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secure-token-service</artifactId>
<groupId>de.adorsys.sts</groupId>
<version>1.1.23</version>
<version>1.1.24</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Loading

0 comments on commit 6b1f660

Please sign in to comment.