From 0ac070986c7bb9e1468704228fa7835e3ca858d6 Mon Sep 17 00:00:00 2001 From: Fabian Engelniederhammer Date: Fri, 2 Feb 2024 10:39:06 +0100 Subject: [PATCH] feat: allow that `fields` only contains the primary key in protected mode #623 The result will not be of much use, since you only get all primary keys, but no additional information. This is required for the UShER integration of cov-spectrum. --- .idea/runConfigurations/LapisV2Protected.xml | 2 +- .../auth/DataOpennessAuthorizationFilter.kt | 36 +++++++++--- .../auth/ProtectedDataAuthorizationTest.kt | 57 +++++++++++++++---- .../testData/protectedTestDatabaseConfig.yaml | 32 +++++++++++ 4 files changed, 106 insertions(+), 21 deletions(-) create mode 100644 siloLapisTests/testData/protectedTestDatabaseConfig.yaml diff --git a/.idea/runConfigurations/LapisV2Protected.xml b/.idea/runConfigurations/LapisV2Protected.xml index 4510b1bf..3b3c7b06 100644 --- a/.idea/runConfigurations/LapisV2Protected.xml +++ b/.idea/runConfigurations/LapisV2Protected.xml @@ -1,7 +1,7 @@ -