Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ preferred-citation:
doi: 10.3233/SHTI210060
type: proceedings
title: "Data Sharing Framework (DSF)"
version: 2.1.2
date-released: 2026-11-18
version: 2.1.3
date-released: 2026-11-23
url: https://dsf.dev
repository-code: https://github.com/datasharingframework/dsf
repository-artifact: https://github.com/datasharingframework/dsf/releases
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/dsf-bpe-process-api-v1-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/dsf-bpe-process-api-v1-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/dsf-bpe-process-api-v1-operaton/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/dsf-bpe-process-api-v1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/dsf-bpe-process-api-v2-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/dsf-bpe-process-api-v2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/dsf-bpe-process-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/dsf-bpe-server-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/dsf-bpe-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/dsf-bpe-test-plugin-v1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/dsf-bpe-test-plugin-v2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/dsf-bpe-test-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<modules>
Expand Down
2 changes: 1 addition & 1 deletion dsf-common/dsf-common-auth/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-common-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-common/dsf-common-build-info-reader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-common-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-common/dsf-common-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-common-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-common/dsf-common-db/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-common-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-common/dsf-common-docker-secrets-reader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-common-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-common/dsf-common-documentation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-common-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-common/dsf-common-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-common-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private UserIdentityImpl(Principal principal, Set<String> roles)
@Override
public Subject getSubject()
{
return null;
return new Subject(true, Set.of(principal), Set.of(), Set.of());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.eclipse.jetty.security.openid.OpenIdConfiguration;
import org.eclipse.jetty.security.openid.OpenIdCredentials;
import org.eclipse.jetty.security.openid.OpenIdLoginService;
import org.eclipse.jetty.security.openid.OpenIdUserPrincipal;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Session;
import org.slf4j.Logger;
Expand Down Expand Up @@ -54,16 +55,25 @@ public UserIdentity login(String identifier, Object credentials, Request request
@Override
public boolean validate(UserIdentity user)
{
if (!(user.getUserPrincipal() instanceof PractitionerIdentity identity))
if (!(user.getUserPrincipal() instanceof OpenIdUserPrincipal identity))
{
logger.warn("Login principal not OpenId");
return false;
}

if (user.getSubject().getPrincipals(PractitionerIdentity.class).isEmpty())
{
logger.warn("No practitioner identity principal");
return false;
}

if (identity.getCredentials().isEmpty())
if (identity.getCredentials() == null)
{
logger.warn("No credentials");
return false;
}

if (!identity.isNotExpired())
if (identity.getCredentials().isExpired())
{
logger.debug("ID Token has expired");
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ public Log4jTextLayout(boolean color)
public StringLayout consoleLayout(Configuration configuration)
{
if (color)
return PatternLayout.newBuilder().withPattern(
return PatternLayout.newBuilder().setPattern(
"%highlight{%p %t - %C{1}.%M(%L) | %m}{FATAL=red, ERROR=red, WARN=yellow, INFO=white, DEBUG=white, TRACE=white}%n")
.build();
else
return PatternLayout.newBuilder().withPattern("%p %t - %C{1}.%M(%L) | %m%n").build();
return PatternLayout.newBuilder().setPattern("%p %t - %C{1}.%M(%L) | %m%n").build();
}

@Override
public StringLayout fileLayout(Configuration configuration)
{
return PatternLayout.newBuilder().withPattern("%d [%t] %-5p %c - %m%n").build();
return PatternLayout.newBuilder().setPattern("%d [%t] %-5p %c - %m%n").build();
}
}

Expand All @@ -87,17 +87,17 @@ public Log4jTextMdcLayout(boolean color)
public StringLayout consoleLayout(Configuration configuration)
{
if (color)
return PatternLayout.newBuilder().withPattern(
return PatternLayout.newBuilder().setPattern(
"%highlight{%p %t - %C{1}.%M(%L)%notEmpty{ - %X} | %m}{FATAL=red, ERROR=red, WARN=yellow, INFO=white, DEBUG=white, TRACE=white}%n")
.build();
else
return PatternLayout.newBuilder().withPattern("%p %t - %C{1}.%M(%L)%notEmpty{ - %X} | %m%n").build();
return PatternLayout.newBuilder().setPattern("%p %t - %C{1}.%M(%L)%notEmpty{ - %X} | %m%n").build();
}

@Override
public StringLayout fileLayout(Configuration configuration)
{
return PatternLayout.newBuilder().withPattern("%d [%t] %-5p %c%notEmpty{ - %X} - %m%n").build();
return PatternLayout.newBuilder().setPattern("%d [%t] %-5p %c%notEmpty{ - %X} - %m%n").build();
}
}

Expand Down Expand Up @@ -180,11 +180,10 @@ public Log4jConfiguration(LoggerContext loggerContext, String name, String fileN

if (fileEnabled)
{
Appender file = RollingFileAppender.newBuilder().setName("FILE")
.withFileName("log/" + fileNamePart + ".log")
.withFilePattern("log/" + fileNamePart + "_%d{yyyy-MM-dd}_%i.log.gz").setIgnoreExceptions(false)
Appender file = RollingFileAppender.newBuilder().setName("FILE").setFileName("log/" + fileNamePart + ".log")
.setFilePattern("log/" + fileNamePart + "_%d{yyyy-MM-dd}_%i.log.gz").setIgnoreExceptions(false)
.setLayout(fileLayout.fileLayout(this))
.withPolicy(CompositeTriggeringPolicy.createPolicy(OnStartupTriggeringPolicy.createPolicy(1),
.setPolicy(CompositeTriggeringPolicy.createPolicy(OnStartupTriggeringPolicy.createPolicy(1),
TimeBasedTriggeringPolicy.newBuilder().build()))
.build();
addAppender(file);
Expand Down Expand Up @@ -246,10 +245,10 @@ private Appender createFileAppender(String appenderName, String fileNamePart, St
return null;

return RollingFileAppender.newBuilder().setName(appenderName + ".FILE")
.withFileName("log/" + fileNamePart + ".log")
.withFilePattern("log/" + fileNamePart + "_%d{yyyy-MM-dd}_%i.log.gz").setIgnoreExceptions(false)
.setFileName("log/" + fileNamePart + ".log")
.setFilePattern("log/" + fileNamePart + "_%d{yyyy-MM-dd}_%i.log.gz").setIgnoreExceptions(false)
.setLayout(layout)
.withPolicy(CompositeTriggeringPolicy.createPolicy(OnStartupTriggeringPolicy.createPolicy(1),
.setPolicy(CompositeTriggeringPolicy.createPolicy(OnStartupTriggeringPolicy.createPolicy(1),
TimeBasedTriggeringPolicy.newBuilder().build()))
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ else if (STYLE_JSON_LOGSTASH.equalsIgnoreCase(value))
return configuration -> JsonTemplateLayout.newBuilder().setConfiguration(configuration)
.setEventTemplateUri(TemplateUri.LOGSTASH.getUri()).build();
else if (STYLE_TEXT.equalsIgnoreCase(value))
return _ -> PatternLayout.newBuilder().withPattern("%d %m%n").build();
return _ -> PatternLayout.newBuilder().setPattern("%d %m%n").build();
else if (STYLE_TEXT_MDC.equalsIgnoreCase(value))
return _ -> PatternLayout.newBuilder().withPattern("%d%notEmpty{ %X} %m%n").build();
return _ -> PatternLayout.newBuilder().setPattern("%d%notEmpty{ %X} %m%n").build();
else
throw new IllegalArgumentException(
"Value '" + value + "' for " + PREFIX + parameter + POSTFIX_STYLE + " not supported");
Expand Down
2 changes: 1 addition & 1 deletion dsf-common/dsf-common-oidc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-common-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-common/dsf-common-status/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-common-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-common/dsf-common-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-common-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<modules>
Expand Down
2 changes: 1 addition & 1 deletion dsf-fhir/dsf-fhir-rest-adapter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-fhir-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-fhir/dsf-fhir-server-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-fhir-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-fhir/dsf-fhir-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-fhir-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion dsf-fhir/dsf-fhir-validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-fhir-pom</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</parent>

<properties>
Expand Down
Loading
Loading