Skip to content

Commit

Permalink
v29.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Gematik-Entwicklung authored and RStaeber committed Oct 28, 2024
1 parent dd6a87f commit ed6b2b4
Show file tree
Hide file tree
Showing 16 changed files with 723 additions and 699 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ or use docker compose:

```console
$ mvn clean install -pl idp-server -am -Dskip.unittests -Dskip.inttests
$ export appVersion=29.0.3
$ export appVersion=29.0.4
$ export serverLoglevel=info (default)
$ docker-compose --project-name myidp -f docker-compose-ref.yml up -d
```
Expand Down
4 changes: 4 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Release 29.0.4

- add method isExpired() to IdpJoseObject

# Release 29.0.3

- fix missing claim ORGANIZATION_IK in configuration
Expand Down
376 changes: 188 additions & 188 deletions doc/tokenFlowEgk.html

Large diffs are not rendered by default.

358 changes: 179 additions & 179 deletions doc/tokenFlowPs.html

Large diffs are not rendered by default.

632 changes: 316 additions & 316 deletions doc/tokenFlowSso.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions idp-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<parent>
<groupId>de.gematik.idp</groupId>
<artifactId>idp-global</artifactId>
<version>29.0.3</version>
<version>29.0.4</version>
<relativePath>../pom.xml</relativePath>
</parent>
<groupId>de.gematik.idp</groupId>
<artifactId>idp-client</artifactId>

<version>29.0.3</version>
<version>29.0.4</version>
<packaging>jar</packaging>

<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions idp-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<parent>
<groupId>de.gematik.idp</groupId>
<artifactId>idp-global</artifactId>
<version>29.0.3</version>
<version>29.0.4</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>idp-commons</artifactId>

<version>29.0.3</version>
<version>29.0.4</version>

<dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public ZonedDateTime getExpiresAt() {
return getDateTimeClaim(EXPIRES_AT, this::getBodyClaims).orElseThrow();
}

public boolean isExpired() {
return ZonedDateTime.now().isAfter(getExpiresAt());
}

public ZonedDateTime getExpiresAtBody() {
return getBodyClaimAsZonedDateTime(EXPIRES_AT).orElseThrow();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,22 @@ void getTokenExp_ShouldBeCorrect() {
.isBetween(ZonedDateTime.now().plusMinutes(4), ZonedDateTime.now().plusMinutes(6));
}

@Test
void token_isExpired_isFalse() {
final JsonWebToken jsonWebToken =
idpJwtProcessor.buildJwt(new JwtBuilder().expiresAt(ZonedDateTime.now().plusMinutes(5)));

assertThat(jsonWebToken.isExpired()).isFalse();
}

@Test
void token_isExpired_isTrue() {
final JsonWebToken jsonWebToken =
idpJwtProcessor.buildJwt(new JwtBuilder().expiresAt(ZonedDateTime.now().minusMinutes(5)));

assertThat(jsonWebToken.isExpired()).isTrue();
}

@Test
void getBodyClaims_shouldMatch() {
final JsonWebToken jsonWebToken =
Expand Down
4 changes: 2 additions & 2 deletions idp-crypto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<parent>
<groupId>de.gematik.idp</groupId>
<artifactId>idp-global</artifactId>
<version>29.0.3</version>
<version>29.0.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>idp-crypto</artifactId>
<version>29.0.3</version>
<version>29.0.4</version>

<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion idp-report/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.gematik.idp</groupId>
<artifactId>idp-global</artifactId>
<version>29.0.3</version>
<version>29.0.4</version>
</parent>
<artifactId>idp-report</artifactId>

Expand Down
4 changes: 2 additions & 2 deletions idp-sektoral/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<parent>
<groupId>de.gematik.idp</groupId>
<artifactId>idp-global</artifactId>
<version>29.0.3</version>
<version>29.0.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>idp-sektoral</artifactId>
<version>29.0.3</version>
<version>29.0.4</version>
<packaging>jar</packaging>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions idp-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<parent>
<groupId>de.gematik.idp</groupId>
<artifactId>idp-global</artifactId>
<version>29.0.3</version>
<version>29.0.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>idp-server</artifactId>
<version>29.0.3</version>
<version>29.0.4</version>
<packaging>jar</packaging>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions idp-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<parent>
<groupId>de.gematik.idp</groupId>
<artifactId>idp-global</artifactId>
<version>29.0.3</version>
<version>29.0.4</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>idp-test</artifactId>
<version>29.0.3</version>
<version>29.0.4</version>

<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion idp-testsuite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.gematik.idp</groupId>
<artifactId>idp-testsuite</artifactId>
<version>29.0.3</version>
<version>29.0.4</version>
<packaging>jar</packaging>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>de.gematik.idp</groupId>
<artifactId>idp-global</artifactId>
<version>29.0.3</version>
<version>29.0.4</version>
<packaging>pom</packaging>

<description>IDP</description>
Expand Down

0 comments on commit ed6b2b4

Please sign in to comment.