From 223034bdc8594c3285e04e02cca9d623a2fb591f Mon Sep 17 00:00:00 2001 From: Ryan Amari Date: Thu, 7 Nov 2024 10:30:09 -0500 Subject: [PATCH] Add signed-url to jwt filter --- .../java/edu/harvard/dbmi/avillach/security/JWTFilter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pic-sure-api-war/src/main/java/edu/harvard/dbmi/avillach/security/JWTFilter.java b/pic-sure-api-war/src/main/java/edu/harvard/dbmi/avillach/security/JWTFilter.java index 1525dc7c..1ca58bc4 100755 --- a/pic-sure-api-war/src/main/java/edu/harvard/dbmi/avillach/security/JWTFilter.java +++ b/pic-sure-api-war/src/main/java/edu/harvard/dbmi/avillach/security/JWTFilter.java @@ -242,7 +242,10 @@ private HashMap prepareRequestMap(ContainerRequestContext reques Query initialQuery = null; // Read the query from the backing store if we are getting the results (full query may not be specified in request) - if (requestPath.startsWith("/query/") && (requestPath.endsWith("result") || requestPath.endsWith("result/"))) { + if (requestPath.startsWith("/query/") && + (requestPath.endsWith("result") || requestPath.endsWith("result/") || + requestPath.endsWith("signed-redirect") || requestPath.endsWith("signed-redirect/")) + ) { // Path: /query/{queryId}/result String[] pathParts = requestPath.split("/"); UUID uuid = UUID.fromString(pathParts[2]);